Payment constructor

Payment({
  1. required String? id,
  2. required double? amount,
  3. required int? originalAmount,
  4. required bool? isPartial,
  5. required String? currencyCode,
  6. required String? countryCode,
  7. required dynamic status,
  8. required String? description,
  9. required String? merchantReferenceId,
  10. required dynamic customerToken,
  11. required dynamic paymentMethod,
  12. required int? expiration,
  13. required bool? captured,
  14. required bool? refunded,
  15. required int? refundedAmount,
  16. required dynamic receiptEmail,
  17. required dynamic redirectUrl,
  18. required String? completePaymentUrl,
  19. required String? errorPaymentUrl,
  20. required dynamic receiptNumber,
  21. required dynamic flowType,
  22. required dynamic address,
  23. required dynamic statementDescriptor,
  24. required dynamic transactionId,
  25. required int? createdAt,
  26. required int? updatedAt,
  27. required CheckoutMetadata? metadata,
  28. required dynamic failureCode,
  29. required dynamic failureMessage,
  30. required bool? paid,
  31. required int? paidAt,
})

Implementation

Payment({
  required this.id,
  required this.amount,
  required this.originalAmount,
  required this.isPartial,
  required this.currencyCode,
  required this.countryCode,
  required this.status,
  required this.description,
  required this.merchantReferenceId,
  required this.customerToken,
  required this.paymentMethod,
  required this.expiration,
  required this.captured,
  required this.refunded,
  required this.refundedAmount,
  required this.receiptEmail,
  required this.redirectUrl,
  required this.completePaymentUrl,
  required this.errorPaymentUrl,
  required this.receiptNumber,
  required this.flowType,
  required this.address,
  required this.statementDescriptor,
  required this.transactionId,
  required this.createdAt,
  required this.updatedAt,
  required this.metadata,
  required this.failureCode,
  required this.failureMessage,
  required this.paid,
  required this.paidAt,
});