PaymentModel constructor
PaymentModel({
- required String transactionId,
- String status = '',
- int amount = 0,
- int fee = 0,
- String currency = '',
- int refunded = 0,
- String refundedAt = '',
- int captured = 0,
- String capturedAt = '',
- String voidedAt = '',
- String description = '',
- String amountFormat = '',
- String feeFormat = '',
- String refundedFormat = '',
- String capturedFormat = '',
- String invoiceId = '',
- String ip = '',
- String callbackUrl = '',
- String createdAt = '',
- 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 = '',
});