PaymentContext class
Contains information about a payment, like its AmountOfMoney and countryCode.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- PaymentContext.new(AmountOfMoney amountOfMoney, String countryCode, bool isRecurring, {bool forceBasicFlow = false, Locale? locale, bool isInstallments = false})
-
PaymentContext.fromJson(Map<
String, dynamic> json) -
factory
Properties
- amountOfMoney ↔ AmountOfMoney
-
The amount of money for this payment.
getter/setter pair
- countryCode ↔ String
-
Country code of the Country where the transaction will take place, should match the ISO-3166-alpha-2 standard.
getter/setter pair
- forceBasicFlow ↔ bool
-
Whether to force the basic flow.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInstallments ↔ bool
-
Used when retrieving IIN Details, to indicate whether the product is allowed in context when payment is in installments
getter/setter pair
- isRecurring ↔ bool
-
Whether this payment is a recurring one.
getter/setter pair
- locale ↔ Locale?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{AmountOfMoney? amountOfMoney, String? countryCode, bool? isRecurring, bool? forceBasicFlow, Locale? locale}) → PaymentContext -
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
localeFromJson(
String? json) → Locale -
localeToJson(
Locale? locale) → String?