TopupIn class

Constructors

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

Properties

amountCents ↔ int?
AmountCents is how much to charge, in cents of Currency. Required.
getter/setter pair
currency ↔ String?
Currency is the ISO-4217 code to charge in. Empty takes the deployment's own default.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
paymentMethodId ↔ String?
MethodID names a card the subject already saved, for the saved-card endpoint.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId ↔ String?
SourceID is a single-use card token from the payment form, for the token endpoint. It is vaulted as part of the charge, so a caller never holds card numbers and this service never sees one.
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) → TopupIn?
Returns a new TopupIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TopupIn>
mapFromJson(dynamic json) → Map<String, TopupIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TopupIn>>

Constants

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