PaymentParameter constructor

const PaymentParameter({
  1. String? paymentCode,
  2. String? expiredDate,
  3. num? total,
  4. String? merchantId,
  5. String? merchantTranId,
  6. String? currencyCode,
  7. String? intAmount,
  8. String? custName,
  9. String? custEmail,
  10. String? returnUrl,
  11. String? paymentMethodStr,
  12. String? transactionTypeStr,
  13. String? signature,
  14. int? paymentMethodInt,
  15. int? transactionTypeInt,
  16. String? token,
  17. String? refNumber,
  18. String? orderId,
  19. String? customerName,
  20. String? customerPhone,
  21. String? customerEmail,
  22. String? description,
  23. String? pgProcessingId,
  24. String? transactionReference,
  25. String? orderCreated,
  26. String? orderExpired,
  27. num? status,
  28. String? signatureBluePay,
  29. String? transactionId,
  30. String? imageUrl,
  31. double? doubleAmount,
})

Implementation

const PaymentParameter({
  String? paymentCode,
  String? expiredDate,
  num? total,
  String? merchantId,
  String? merchantTranId,
  String? currencyCode,
  String? intAmount,
  String? custName,
  String? custEmail,
  String? returnUrl,
  String? paymentMethodStr,
  String? transactionTypeStr,
  String? signature,
  int? paymentMethodInt,
  int? transactionTypeInt,
  String? token,
  String? refNumber,
  String? orderId,
  String? customerName,
  String? customerPhone,
  String? customerEmail,
  String? description,
  String? pgProcessingId,
  String? transactionReference,
  String? orderCreated,
  String? orderExpired,
  num? status,
  String? signatureBluePay,
  String? transactionId,
  String? imageUrl,
  double? doubleAmount,
}) : paymentCode = paymentCode ?? "",
     expiredDate = expiredDate ?? "",
     total = total ?? 0,
     merchantId = merchantId ?? "",
     merchantTranId = merchantTranId ?? "",
     currencyCode = currencyCode ?? "",
     intAmount = intAmount ?? "",
     custName = custName ?? "",
     custEmail = custEmail ?? "",
     returnUrl = returnUrl ?? "",
     paymentMethodStr = paymentMethodStr ?? "",
     transactionTypeStr = transactionTypeStr ?? "",
     signature = signature ?? "",
     paymentMethodInt = paymentMethodInt ?? -1,
     transactionTypeInt = transactionTypeInt ?? -1,
     token = token ?? "",
     refNumber = refNumber ?? "",
     orderId = orderId ?? "",
     customerName = customerName ?? "",
     customerPhone = customerPhone ?? "",
     customerEmail = customerEmail ?? "",
     description = description ?? "",
     pgProcessingId = pgProcessingId ?? "",
     transactionReference = transactionReference ?? "",
     orderCreated = orderCreated ?? "",
     orderExpired = orderExpired ?? "",
     status = status ?? 0,
     signatureBluePay = signatureBluePay ?? "",
     transactionId = transactionId ?? "",
     imageUrl = imageUrl ?? "",
     doubleAmount = doubleAmount ?? 0;