ExternalPaymentDetails class

Stores details about an external payment. Contains only non-confidential information. For more information, see Take External Payments.

Annotations
  • @JsonSerializable()

Constructors

ExternalPaymentDetails({required String source, required String type, Money? sourceFeeMoney, String? sourceId})
@macro Stores details about an external payment. Contains only non-confidential information. For more information, see Take External Payments.
const
ExternalPaymentDetails.fromJson(Map<String, dynamic> json)
Converts a Map to an ExternalPaymentDetails
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
A description of the external payment source. For example, "Food Delivery Service".
final
sourceFeeMoney Money?
The fees paid to the source. The amount_money minus this field is the net amount seller receives.
final
sourceId String?
An ID to associate the payment to its originating source.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type String
The type of external payment the seller received. It can be one of the following: CHECK - Paid using a physical check. BANK_TRANSFER - Paid using external bank transfer. OTHER_GIFT_CARD - Paid using a non-Square gift card. CRYPTO - Paid using a crypto currency. SQUARE_CASH - Paid using Square Cash App. SOCIAL - Paid using peer-to-peer payment applications. EXTERNAL - A third-party application gathered this payment outside of Square. EMONEY - Paid using an E-money provider. CARD - A credit or debit card that Square does not support. STORED_BALANCE - Use for house accounts, store credit, and so forth. OTHER - A type not listed here.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a ExternalPaymentDetails to a Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited