PaymentMethod class

Represents a payment method containing all information needed to submit a basket via Olo's Ordering API

Constructors

PaymentMethod({required String id, required String last4, required CardType cardType, required int expirationMonth, required int expirationYear, required String postalCode, required String countryCode, required String digitalWalletCardDescription, required String email, required String phoneNumber, required String fullName, required String fullPhoneticName, required Address billingAddress, required bool isDigitalWallet, required bool productionEnvironment})
Create an instance of a payment method.
const
PaymentMethod.fromMap(Map map)
factory

Properties

billingAddress Address
The billing address associated with the transaction. The country code and postal code fields will always be set.
final
cardType CardType
The issuer of the card
final
countryCode String
The country code associated with the card
final
digitalWalletCardDescription String
The description of the card, as provided by Apple or Google.
final
email String
The email address associated with the transaction, or an empty string if unavailable.
final
expirationMonth int
The expiration month of the card
final
expirationYear int
The expiration year of the card
final
fullName String
The full name associated with the transaction, or an empty string if unavailable.
final
fullPhoneticName String
The full phonetic name associated with the transaction, or an empty string if unavailable.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The payment method id.
final
isDigitalWallet bool
Whether or not this payment method is associated with a digital wallet
final
last4 String
The last four digits of the card
final
phoneNumber String
The phone number associated with the transaction, or an empty string if unavailable.
final
postalCode String
The zip/postal code of the card
final
productionEnvironment bool
Whether or not this payment method was created in the production environment
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited

Operators

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