|
@@ -9,20 +9,20 @@ |
|
|
block discarded – undo |
|
9
|
9
|
public function allowed(): array |
|
10
|
10
|
{ |
|
11
|
11
|
return [ |
|
12
|
|
- 'id' => 'int', // The unique id for the transaction object. |
|
13
|
|
- 'reference' => 'string', // The unique reference for the transaction object. |
|
|
12
|
+ 'id' => 'int', // The unique id for the transaction object. |
|
|
13
|
+ 'reference' => 'string', // The unique reference for the transaction object. |
|
14
|
14
|
'customer' => 'Customer', // The primary customer for the transaction, an instance of the customer object. |
|
15
|
|
- 'price' => 'float', // The subtotal price for the transaction. |
|
16
|
|
- 'fee' => 'float', // The fee value of the transaction. |
|
17
|
|
- 'discount' => 'float', // The total discount value of the transaction. |
|
18
|
|
- 'tax' => 'float', // The tax value of the transaction. |
|
19
|
|
- 'total' => 'float', // The total for the transaction. |
|
20
|
|
- 'paid' => 'float', // The paid value of the transaction. |
|
21
|
|
- 'refunded' => 'float', // The refunded value of the transaction. |
|
22
|
|
- 'due' => 'float', // The due value of the transaction. |
|
23
|
|
- 'overpaid' => 'boolean', // True if transaction is overpaid. |
|
24
|
|
- 'status' => 'boolean', // True if transaction is active. |
|
25
|
|
- 'combined_taxes_fees' => 'array', // Array of taxes and fees applied to the transaction. |
|
|
15
|
+ 'price' => 'float', // The subtotal price for the transaction. |
|
|
16
|
+ 'fee' => 'float', // The fee value of the transaction. |
|
|
17
|
+ 'discount' => 'float', // The total discount value of the transaction. |
|
|
18
|
+ 'tax' => 'float', // The tax value of the transaction. |
|
|
19
|
+ 'total' => 'float', // The total for the transaction. |
|
|
20
|
+ 'paid' => 'float', // The paid value of the transaction. |
|
|
21
|
+ 'refunded' => 'float', // The refunded value of the transaction. |
|
|
22
|
+ 'due' => 'float', // The due value of the transaction. |
|
|
23
|
+ 'overpaid' => 'boolean', // True if transaction is overpaid. |
|
|
24
|
+ 'status' => 'boolean', // True if transaction is active. |
|
|
25
|
+ 'combined_taxes_fees' => 'array', // Array of taxes and fees applied to the transaction. |
|
26
|
26
|
'bookings' => 'array[Booking]', // Array of bookings applied to the transaction, contains: booking object. |
|
27
|
27
|
'payments' => 'array[Booking]', // Array of payments applied to the transaction, contains: payment object. |
|
28
|
28
|
'promotions' => 'array[Booking]', // Array of promotions applied to the transaction, contains: promotion object. |