CommercePaymentMethodResponse constructor

CommercePaymentMethodResponse({
  1. required CommercePaymentMethodResponseObjectEnum object,
  2. required String id,
  3. required String payerId,
  4. required CommercePaymentMethodResponsePaymentTypeEnum paymentType,
  5. bool? isDefault,
  6. required String gateway,
  7. required String gatewayExternalId,
  8. required String? gatewayExternalAccountId,
  9. required String? last4,
  10. required CommercePaymentMethodResponseStatusEnum status,
  11. String? walletType,
  12. required String? cardType,
  13. int? expiryYear,
  14. int? expiryMonth,
  15. int? createdAt,
  16. int? updatedAt,
  17. bool? isRemovable,
})

Returns a new CommercePaymentMethodResponse instance.

Implementation

CommercePaymentMethodResponse({
  required this.object,
  required this.id,
  required this.payerId,
  required this.paymentType,
  this.isDefault,
  required this.gateway,
  required this.gatewayExternalId,
  required this.gatewayExternalAccountId,
  required this.last4,
  required this.status,
  this.walletType,
  required this.cardType,
  this.expiryYear,
  this.expiryMonth,
  this.createdAt,
  this.updatedAt,
  this.isRemovable,
});