A payment made in response to a fare charge.
| name | data type | constraints | description |
|---|---|---|---|
| amount | number | The amount that was paid. | |
| currency | string | The currency that the amount was paid in. | |
| paymentCode | string | The payment type, cash or credit | |
| creditCardType | string | The credit card type that the payment was made on. | |
| notes | string | Any notes about the payment. | |
| lastDigits | string | max size: 5, min size: 0 | The last 5 digits of a credit card. This is so that users can search by the last couple digits of a credit card number. |
Properties inherited from BaseHibernateEntity |
|||
| id | number | The unique internal ID of the object. | |
| version | number | For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions. | |
Properties inherited from BaseEntity |
|||
| violations | array of SimpleViolation | A list of constraint violations, if any, that this object has. | |
Example
{
"amount" : 12345.0,
"currency" : "...",
"paymentCode" : "...",
"creditCardType" : "...",
"notes" : "...",
"lastDigits" : "...",
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
}