BillingPaymentAttempt class

Constructors

BillingPaymentAttempt({required BillingPaymentAttemptObjectEnum object, required String id, required String paymentId, required String instanceId, required String chargeType, required String payeeId, required Object payee, required String payerId, required CommercePayerResponse payer, String? subscriptionItemId, Object? subscriptionItem, required CommerceMoneyResponse amount, required String paymentMethodId, required CommercePaymentMethodResponse paymentMethod, required String statementId, required String? gatewayExternalId, required String? gatewayExternalUrl, required BillingPaymentAttemptStatusEnum status, required int? paidAt, required int? failedAt, required int createdAt, required int updatedAt})
Returns a new BillingPaymentAttempt instance.

Properties

amount CommerceMoneyResponse
getter/setter pair
chargeType String
Type of charge for this payment attempt.
getter/setter pair
createdAt int
Unix timestamp (in milliseconds) when the payment attempt was created.
getter/setter pair
failedAt int?
Unix timestamp (in milliseconds) when the payment failed to be processed.
getter/setter pair
gatewayExternalId String?
External identifier from the payment gateway.
getter/setter pair
gatewayExternalUrl String?
External URL from the payment gateway.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the payment attempt.
getter/setter pair
instanceId String
The ID of the instance this payment attempt belongs to.
getter/setter pair
object BillingPaymentAttemptObjectEnum
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
paidAt int?
Unix timestamp (in milliseconds) when the payment was completed.
getter/setter pair
payee Object
The payee associated with this payment attempt.
getter/setter pair
payeeId String
Unique identifier for the payee.
getter/setter pair
payer CommercePayerResponse
getter/setter pair
payerId String
Unique identifier for the payer.
getter/setter pair
paymentId String
Unique identifier for the associated payment.
getter/setter pair
paymentMethod CommercePaymentMethodResponse
getter/setter pair
paymentMethodId String
Unique identifier for the payment method.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statementId String
Unique identifier for the associated statement.
getter/setter pair
status BillingPaymentAttemptStatusEnum
The current status of the payment attempt.
getter/setter pair
subscriptionItem Object?
The subscription item associated with this payment attempt.
getter/setter pair
subscriptionItemId String?
Unique identifier for the associated subscription item.
getter/setter pair
updatedAt int
Unix timestamp (in milliseconds) when the payment attempt was last updated.
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) BillingPaymentAttempt?
Returns a new BillingPaymentAttempt instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<BillingPaymentAttempt>
mapFromJson(dynamic json) Map<String, BillingPaymentAttempt>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<BillingPaymentAttempt>>

Constants

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