PurchaseRequest constructor

PurchaseRequest({
  1. required String pan,
  2. required num amount,
  3. required int terminalId,
  4. required int merchantId,
  5. required String cardHolderName,
  6. required String cvV2,
  7. String? merchantReference,
  8. required String dateExpiration,
  9. String? refundReason,
  10. String? requestDateTime,
  11. int? requestSource,
  12. required String orderCustomerEmail,
  13. String? otp,
  14. String? orderKey,
  15. required String clientMail,
  16. int? transactionIdentifierType,
  17. String? transactionIdentifierValue,
  18. String? currencyCode,
  19. int? currencyId,
  20. String? currencyCodeName,
  21. String? transactionId,
  22. int? paymentViewType,
  23. String? referenceId,
  24. String? deviceInformation,
  25. bool isTokenized = false,
  26. String? customerId,
  27. String? customerTokenId,
  28. bool isApplyRequest = false,
  29. Map<String, dynamic>? applePayPaymentData,
  30. bool isSamsungPayRequest = false,
  31. Map<String, dynamic>? samsungPayData,
  32. String? sessionToken,
})

Implementation

PurchaseRequest({
  required this.pan,
  required this.amount,
  required this.terminalId,
  required this.merchantId,
  required this.cardHolderName,
  required this.cvV2,
  this.merchantReference,
  required this.dateExpiration,
  this.refundReason,
  this.requestDateTime,
  this.requestSource,
  required this.orderCustomerEmail,
  this.otp,
  this.orderKey,
  required this.clientMail,
  this.transactionIdentifierType,
  this.transactionIdentifierValue,
  this.currencyCode,
  this.currencyId,
  this.currencyCodeName,
  this.transactionId,
  this.paymentViewType,
  this.referenceId,
  this.deviceInformation,
  this.isTokenized = false,
  this.customerId,
  this.customerTokenId,
  this.isApplyRequest = false,
  this.applePayPaymentData,
  this.isSamsungPayRequest = false,
  this.samsungPayData,
  this.sessionToken,
});