MyfatoorahRequest.live constructor

MyfatoorahRequest.live({
  1. required String token,
  2. required ApiLanguage language,
  3. required double invoiceAmount,
  4. required String successUrl,
  5. required String errorUrl,
  6. required Country currencyIso,
  7. ShippingConsignee? shippingConsignee,
  8. String? mobileCountryCode,
  9. String? initiatePaymentUrl,
  10. String? executePaymentUrl,
  11. String? customerMobile,
  12. String? customerName,
  13. String? customerEmail,
  14. String? customerReference,
  15. String? customerCivilId,
  16. String? userDefinedField,
  17. CustomerAddress? customerAddress,
  18. DateTime? expiryDate,
  19. List<Supplier>? suppliers,
  20. int? shippingMethod,
  21. List<InvoiceItem>? invoiceItems,
  22. RecurringModel? recurringModel,
  23. String? url,
})

Implementation

MyfatoorahRequest.live({
  required this.token,
  required this.language,
  required this.invoiceAmount,
  required this.successUrl,
  required this.errorUrl,
  required this.currencyIso,
  this.shippingConsignee,
  this.mobileCountryCode,
  this.initiatePaymentUrl,
  this.executePaymentUrl,
  this.customerMobile,
  this.customerName,
  this.customerEmail,
  this.customerReference,
  this.customerCivilId,
  this.userDefinedField,
  this.customerAddress,
  this.expiryDate,
  this.suppliers,
  this.shippingMethod,
  this.invoiceItems,
  this.recurringModel,
  String? url,
}) : this.url = _getUrl(currencyIso, url);