PaymentIn class

Constructors

PaymentIn({int? amountCents, String? currency, String? idempotencyKey, String? sourceId})
Returns a new PaymentIn instance.

Properties

amountCents ↔ int?
AmountCents is the amount to charge, in whole cents (5000 is $50.00). Server-side bounds apply and are authoritative — the default floor is $1 and the ceiling $5,000, so a fat-fingered or hostile amount is refused before any money moves.
getter/setter pair
currency ↔ String?
Currency is the ISO 4217 code, lower-cased. Empty means usd.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
idempotencyKey ↔ String?
IdempotencyKey makes a retry safe: the same key never charges twice, it replays the first result. Sending one is strongly recommended for an agent, which retries by construction. Empty falls back to a windowed key derived from the amount and currency, so a double-submit inside 15 minutes still collapses onto one charge.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId ↔ String?
SourceID is the single-use payment token that stands in for the card: a Square Web Payments SDK nonce minted in the browser, or a Square sandbox test nonce when the org's credentials are sandbox ones. The card number itself never reaches this process, which is what keeps it out of PCI scope.
getter/setter pair

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PaymentIn?
Returns a new PaymentIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PaymentIn>
mapFromJson(dynamic json) → Map<String, PaymentIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PaymentIn>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.