OfflinePayment

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.

Types

Link copied to clipboard
class Builder(localId: String, amountMoney: Money, status: Payment.OfflineStatus, locationId: String, sourceType: Payment.SourceType)

Builder class for constructing OfflinePayment objects.

Properties

Link copied to clipboard
open override val amountMoney: Money

The base amount of money processed for this payment, not including tipMoney.

Link copied to clipboard
open override val appFeeMoney: Money?

The amount taken by the developer as a fee, not more than 90% of totalMoney.

Link copied to clipboard

Non-confidential details for the source card.

Link copied to clipboard
open override val cashDetails: CashPaymentDetails?

An optional field for a cash payment that holds information such as the buyer supplied amount and the change the user should get back.

Link copied to clipboard
open override val createdAt: Date

Timestamp of when the payment was created.

Link copied to clipboard

Details about an external payment. The details are only populated if the sourceType is SourceType.EXTERNAL.

Link copied to clipboard
val id: String?

Unique ID for this payment, assigned by Square. Value stays null until payment is uploaded and gets a server-side ID.

Link copied to clipboard

Unique ID for this payment, generated when device is offline. Can be used to identify this Payment until it is uploaded to server and id becomes available.

Link copied to clipboard
open override val locationId: String

The ID of the location associated with the payment, if available.

Link copied to clipboard
open override val orderId: String?

The ID of the order associated with this payment.

Link copied to clipboard
open override val referenceId: String?

An optional ID that associates this payment with an entity in another system.

Link copied to clipboard
open override val sourceType: Payment.SourceType

The source type of the payment (card, cash, etc).

Link copied to clipboard

Indicates the OfflineStatus of the payment.

Link copied to clipboard
open override val tipMoney: Money?

The portion of totalMoney that is designated as a tip.

Link copied to clipboard

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.

Link copied to clipboard
open override val updatedAt: Date

Timestamp when the payment was last updated.

Link copied to clipboard

Timestamp of when the payment was uploaded for processing.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard