| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function allowed(): array |
||
| 15 | { |
||
| 16 | return [ |
||
| 17 | 'id' => 'string', |
||
| 18 | 'creationTime' => 'string:datetime', // When this record was created |
||
| 19 | 'receivedTime' => 'string:datetime', // When this payment was received |
||
| 20 | 'reason' => 'string', // Reason for the payment. Shown to customer where appropriate. Ex. "Deposit", "Balance payment", "Additional fee", etc, |
||
| 21 | 'description' => 'string', // Indicates what the payment was for (ex. "Booking 1234", "Prepaid package ABC", "Gift voucher XYZ") |
||
| 22 | 'comment' => 'string', // An optional comment tracked with the payment. Not shown to customers. |
||
| 23 | 'amount' => 'Money', // The payment amount |
||
| 24 | 'paymentMethod' => 'string', // ['creditCard' or 'paypal' or 'bankTransfer' or 'cash' or 'checque' or 'debitCard' or 'existingCredit' or 'accountCredit' or 'moneyVoucher' or 'other'] |
||
| 25 | 'paymentMethodOther' => 'string', // If paymentMethod is 'other', this field is required, and it specifies what other method was used, |
||
| 26 | 'agent' => 'string', // Who registered this payment. If this field is not present, it means that the customer paid online on Bookeo's booking page |
||
| 27 | 'customerId' => 'string', // The id of customer associated with this payment |
||
| 28 | 'gatewayName' => 'string', // The name of the payment gateway that processed the payment (if it was processed by a payment gateway) |
||
| 29 | 'transactionId' => 'string', // The transaction number/id as provided by the payment gateway that processed the payment - if any |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | } |
||
| 33 |