Payment
The description of a completed payment, returned in the success value of Payment Result. All currency amounts are specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.
Inheritors
Types
Actions that can be performed on a payment, e.g. modifying the tip amount up or down.
The description of a completed payment, that was taken while Offline. All currency amounts are specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.
The status of the offline payment.
The description of a completed payment, returned in the success value of Payment Result. All currency amounts are specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.
The source type of the payment.
The status of the payment.
Properties
The base amount of money processed for this payment. This amount does not include tip. If a card surcharge was applied to this payment, the surcharge and tax on the surcharge will be included in this amount. Details on the surcharge can be found in CardPaymentDetails.
The amount taken by the developer as a fee, not more than 90% of totalMoney.
Details about a card payment. These details are only populated if the sourceType is SourceType.CARD. For an online payment, this will be of type OnlineCardPaymentDetails; for an offline payment, this will be of type OfflineCardPaymentDetails.
Details about a cash payment. These details are only populated if the sourceType is SourceType.CASH.
Details about an external payment. The details are only populated if the sourceType is SourceType.EXTERNAL.
The ID of the location associated with the payment, if available.
An optional ID that associates this payment with an entity in another system.
The source type of the payment (card, cash, etc).
The portion of totalMoney that is designated as a tip.
Total money is defined as base amount plus any tip; it doesn't need its own storage allocated, and definitely doesn't need an independent setter.