@@ -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 | } |
@@ -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 | } |
@@ -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' => 'object: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. |
@@ -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 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function allowed(): array |
| 15 | 15 | { |
| 16 | 16 | return [ |
| 17 | - 'quantities' => 'array', // The quantities of item pricing categories. Pass an array of objects. |
|
| 17 | + 'quantities' => 'array', // The quantities of item pricing categories. Pass an array of objects. |
|
| 18 | 18 | ]; |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'http_errors' => false, |
| 49 | 49 | |
| 50 | 50 | // Wrapper settings |
| 51 | - 'tries' => 2, // Count of tries |
|
| 51 | + 'tries' => 2, // Count of tries |
|
| 52 | 52 | 'seconds' => 10, // Waiting time per each try |
| 53 | 53 | |
| 54 | 54 | // Main parameters |