MyfatoorahRequest.live constructor

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

Implementation

MyfatoorahRequest.live({
  required this.token,
  required this.language,
  required this.invoiceAmount,
  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,
}) : url = "https://api.myfatoorah.com";