@@ -18,16 +18,16 @@ |
||
| 18 | 18 | public function allowed(): array |
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | - 'id' => 'int', // The unique id for the purchase object. |
|
| 22 | - 'price' => 'float', // The basket purchase subtotal. |
|
| 23 | - 'discount' => 'float', // The total discount value of the basket purchase. |
|
| 24 | - 'fee' => 'float', // The fee value of the basket purchase. |
|
| 25 | - 'tax' => 'float', // The tax value of the basket purchase. |
|
| 26 | - 'total' => 'float', // The total for the basket. |
|
| 21 | + 'id' => 'int', // The unique id for the purchase object. |
|
| 22 | + 'price' => 'float', // The basket purchase subtotal. |
|
| 23 | + 'discount' => 'float', // The total discount value of the basket purchase. |
|
| 24 | + 'fee' => 'float', // The fee value of the basket purchase. |
|
| 25 | + 'tax' => 'float', // The tax value of the basket purchase. |
|
| 26 | + 'total' => 'float', // The total for the basket. |
|
| 27 | 27 | 'total_quantity' => 'int', // The total quantity of the purchase. |
| 28 | - 'gift_voucher' => 'GiftVoucher', // The gift voucher object |
|
| 29 | - 'gift_email' => 'string', // Gift email for the purchase |
|
| 30 | - 'gift_message' => 'string', // Gift message for the purchase |
|
| 28 | + 'gift_voucher' => 'GiftVoucher', // The gift voucher object |
|
| 29 | + 'gift_email' => 'string', // Gift email for the purchase |
|
| 30 | + 'gift_message' => 'string', // Gift message for the purchase |
|
| 31 | 31 | ]; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -18,9 +18,9 @@ |
||
| 18 | 18 | public function allowed(): array |
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | - 'id' => 'int', // The unique id for the object. |
|
| 21 | + 'id' => 'int', // The unique id for the object. |
|
| 22 | 22 | 'type' => 'string', // Can be: 'discount' or 'custom'. |
| 23 | - 'amount' => 'float', // The amount of the discount. |
|
| 23 | + 'amount' => 'float', // The amount of the discount. |
|
| 24 | 24 | 'discount' => 'object', // The discount object if the promotion type is 'discount'. |
| 25 | 25 | ]; |
| 26 | 26 | } |
@@ -18,23 +18,23 @@ |
||
| 18 | 18 | public function allowed(): array |
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | - 'id' => 'int', // The unique id for the booking object. |
|
| 21 | + 'id' => 'int', // The unique id for the booking object. |
|
| 22 | 22 | 'item' => 'object', // The item associated with the booking, an instance of the item object. |
| 23 | 23 | 'time' => 'object', // The time associated with the booking, an instance of the time object |
| 24 | 24 | 'booking_date' => 'string', // The date of the basket booking. |
| 25 | 25 | 'booking_time' => 'string', // The time of the basket booking. |
| 26 | 26 | 'booking_end' => 'string', // The end time of the basket booking. |
| 27 | - 'duration' => 'int', // The duration of the basket booking. |
|
| 28 | - 'total_quantity' => 'int', // The total quantity of spaces for the basket booking. |
|
| 27 | + 'duration' => 'int', // The duration of the basket booking. |
|
| 28 | + 'total_quantity' => 'int', // The total quantity of spaces for the basket booking. |
|
| 29 | 29 | 'quantities' => 'array[Quantity]', // The quantities of item pricing categories for this basket booking. |
| 30 | 30 | 'extras' => 'array[Extra]', // The item extras for this basket booking. |
| 31 | - 'price' => 'float', // The basket booking subtotal. |
|
| 32 | - 'discount' => 'float', // The total discount value of the basket. |
|
| 33 | - 'fee' => 'float', // The fee value of the basket. |
|
| 34 | - 'tax' => 'float', // The tax value of the basket. |
|
| 35 | - 'total' => 'float', // The total for the basket. |
|
| 31 | + 'price' => 'float', // The basket booking subtotal. |
|
| 32 | + 'discount' => 'float', // The total discount value of the basket. |
|
| 33 | + 'fee' => 'float', // The fee value of the basket. |
|
| 34 | + 'tax' => 'float', // The tax value of the basket. |
|
| 35 | + 'total' => 'float', // The total for the basket. |
|
| 36 | 36 | 'questions' => 'array[Question]', // The item booking questions for this basket booking. |
| 37 | - 'participants' => 'array', // The participants for this basket booking. |
|
| 37 | + 'participants' => 'array', // The participants for this basket booking. |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | public function allowed(): array |
| 15 | 15 | { |
| 16 | 16 | return [ |
| 17 | - 'id' => 'int', // The unique id for the object. |
|
| 17 | + 'id' => 'int', // The unique id for the object. |
|
| 18 | 18 | 'name' => 'string', // The name of the gift voucher. |
| 19 | - 'amount' => 'float', // The purchase amount for this gift voucher. |
|
| 19 | + 'amount' => 'float', // The purchase amount for this gift voucher. |
|
| 20 | 20 | 'voucher_type' => 'string', // Can be: value or spaces. |
| 21 | - 'discount' => 'float', // The discountable amount for a gift code belonging to this voucher. |
|
| 21 | + 'discount' => 'float', // The discountable amount for a gift code belonging to this voucher. |
|
| 22 | 22 | 'description' => 'string', // The description of how the gift voucher is applied. |
| 23 | - 'status' => 'bool', // True if the gift voucher is active. |
|
| 23 | + 'status' => 'bool', // True if the gift voucher is active. |
|
| 24 | 24 | ]; |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | public function allowed(): array |
| 15 | 15 | { |
| 16 | 16 | return [ |
| 17 | - 'gift_voucher_id' => 'int', // Id for the gift voucher object. |
|
| 17 | + 'gift_voucher_id' => 'int', // Id for the gift voucher object. |
|
| 18 | 18 | 'gift_email' => 'string', // Gift email for the purchase |
| 19 | 19 | 'gift_message' => 'string', // Gift message for the purchase |
| 20 | - 'total_quantity' => 'int', // The total quantity of the purchase. |
|
| 21 | - 'fee_exempt' => 'bool', // True if this basket purchase is fee exempt. |
|
| 20 | + 'total_quantity' => 'int', // The total quantity of the purchase. |
|
| 21 | + 'fee_exempt' => 'bool', // True if this basket purchase is fee exempt. |
|
| 22 | 22 | 'tax_exempt' => 'string', // True if this basket purchase is tax exempt. |
| 23 | 23 | ]; |
| 24 | 24 | } |
@@ -20,16 +20,16 @@ |
||
| 20 | 20 | public function allowed(): array |
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | - 'id' => 'int', // The unique id for the basket object. |
|
| 23 | + 'id' => 'int', // The unique id for the basket object. |
|
| 24 | 24 | 'customer' => 'Customer', // The primary customer for the basket, an instance of the customer object. |
| 25 | - 'price' => 'float', // The subtotal price for the basket. |
|
| 26 | - 'fee' => 'float', // The fee value of the basket. |
|
| 27 | - 'discount' => 'float', // The total discount value of the basket. |
|
| 28 | - 'tax' => 'float', // The tax for the basket. |
|
| 29 | - 'total' => 'float', // The total for the basket. |
|
| 30 | - 'due;' => 'float', // The due amount for the basket. |
|
| 31 | - 'deposit_due' => 'float', // The deposit due, if active, amount for the basket. |
|
| 32 | - 'expired' => 'bool', // True if the basket has expired. |
|
| 25 | + 'price' => 'float', // The subtotal price for the basket. |
|
| 26 | + 'fee' => 'float', // The fee value of the basket. |
|
| 27 | + 'discount' => 'float', // The total discount value of the basket. |
|
| 28 | + 'tax' => 'float', // The tax for the basket. |
|
| 29 | + 'total' => 'float', // The total for the basket. |
|
| 30 | + 'due;' => 'float', // The due amount for the basket. |
|
| 31 | + 'deposit_due' => 'float', // The deposit due, if active, amount for the basket. |
|
| 32 | + 'expired' => 'bool', // True if the basket has expired. |
|
| 33 | 33 | 'expires_at' => 'string:timestamp', // The timestamp of when the basket expires. |
| 34 | 34 | 'storage_key' => 'string', // Unique storage key |
| 35 | 35 | 'bookings' => 'array[Booking]', // Array of basket bookings, contains: basket booking object. |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 'http_errors' => false, |
| 51 | 51 | |
| 52 | 52 | // Wrapper settings |
| 53 | - 'tries' => 2, // Count of tries |
|
| 53 | + 'tries' => 2, // Count of tries |
|
| 54 | 54 | 'seconds' => 10, // Waiting time per each try |
| 55 | 55 | |
| 56 | 56 | // Optional parameters |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | public function allowed(): array |
| 10 | 10 | { |
| 11 | 11 | return [ |
| 12 | - 'customer_id' => 'int', // The primary customer for the transaction. |
|
| 12 | + 'customer_id' => 'int', // The primary customer for the transaction. |
|
| 13 | 13 | 'status' => 'bool', // True if the transaction is active. |
| 14 | 14 | ]; |
| 15 | 15 | } |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | public function allowed(): array |
| 20 | 20 | { |
| 21 | 21 | return [ |
| 22 | - 'id' => 'int', // The unique id for the object. |
|
| 23 | - 'endpoint' => 'string', // The endpoint url this webhook event is sent to. |
|
| 24 | - 'events' => 'array', // The events this webhook is fired on. Can include: 'transaction.created', 'transaction.cancelled', 'booking.update' or 'booking.cancelled'. |
|
| 22 | + 'id' => 'int', // The unique id for the object. |
|
| 23 | + 'endpoint' => 'string', // The endpoint url this webhook event is sent to. |
|
| 24 | + 'events' => 'array', // The events this webhook is fired on. Can include: 'transaction.created', 'transaction.cancelled', 'booking.update' or 'booking.cancelled'. |
|
| 25 | 25 | 'status' => 'boolean', // True if webhook is active. |
| 26 | 26 | ]; |
| 27 | 27 | } |