PaymentModel constructor

PaymentModel({
  1. required String transactionId,
  2. String status = '',
  3. int amount = 0,
  4. int fee = 0,
  5. String currency = '',
  6. int refunded = 0,
  7. String refundedAt = '',
  8. int captured = 0,
  9. String capturedAt = '',
  10. String voidedAt = '',
  11. String description = '',
  12. String amountFormat = '',
  13. String feeFormat = '',
  14. String refundedFormat = '',
  15. String capturedFormat = '',
  16. String invoiceId = '',
  17. String ip = '',
  18. String callbackUrl = '',
  19. String createdAt = '',
  20. String updatedAt = '',
})

PaymentModel is the constructor of the class of the payment transaction.

Implementation

PaymentModel({
  required this.transactionId,
  this.status = '',
  this.amount = 0,
  this.fee = 0,
  this.currency = '',
  this.refunded = 0,
  this.refundedAt = '',
  this.captured = 0,
  this.capturedAt = '',
  this.voidedAt = '',
  this.description = '',
  this.amountFormat = '',
  this.feeFormat = '',
  this.refundedFormat = '',
  this.capturedFormat = '',
  this.invoiceId = '',
  this.ip = '',
  this.callbackUrl = '',
  this.createdAt = '',
  this.updatedAt = '',
});