@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | return [ |
| 18 | 18 | 'basket_id' => 'string', |
| 19 | - 'payment' => 'float', // The payment for the basket |
|
| 19 | + 'payment' => 'float', // The payment for the basket |
|
| 20 | 20 | ]; |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function allowed(): array |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - 'id' => 'int', // The unique id for the customer object. |
|
| 42 | + 'id' => 'int', // The unique id for the customer object. |
|
| 43 | 43 | 'ref' => 'string', // The unique reference for the customer. |
| 44 | 44 | 'ip' => 'string', // The ip of the customer. |
| 45 | 45 | 'first_name' => 'string', // The first name of the customer. |
@@ -55,14 +55,14 @@ discard block |
||
| 55 | 55 | 'postcode' => 'string', // The postcode of the customer. |
| 56 | 56 | 'country' => 'string', // The country of the customer. |
| 57 | 57 | 'image' => 'string', // The profile image of the customer. |
| 58 | - 'sales_total' => 'float', // The sales (bookings/purchases) total for the customer. |
|
| 59 | - 'paid_total' => 'float', // The paid total for the customer. |
|
| 60 | - 'due_total' => 'float', // The due total for the customer. |
|
| 58 | + 'sales_total' => 'float', // The sales (bookings/purchases) total for the customer. |
|
| 59 | + 'paid_total' => 'float', // The paid total for the customer. |
|
| 60 | + 'due_total' => 'float', // The due total for the customer. |
|
| 61 | 61 | // TODO: implement validation like "array of objects" |
| 62 | 62 | 'custom_fields' => 'array[CustomField]', // The custom fields for this customer, as dictated by the customers settings. Pass an array of objects. |
| 63 | - 'credit_total' => 'float', // The total amount of credit for the customer. |
|
| 64 | - 'waiver_signed' => 'bool', // If the customer has signed the waiver, if applicable. |
|
| 65 | - 'waiver' => 'bool', // If signed, the waiver object for the customer . |
|
| 63 | + 'credit_total' => 'float', // The total amount of credit for the customer. |
|
| 64 | + 'waiver_signed' => 'bool', // If the customer has signed the waiver, if applicable. |
|
| 65 | + 'waiver' => 'bool', // If signed, the waiver object for the customer . |
|
| 66 | 66 | ]; |
| 67 | 67 | } |
| 68 | 68 | } |