MyfatoorahRequest constructor

  1. @Deprecated("Use `MyfatoorahRequest.test` or MyfatoorahRequest.live")
MyfatoorahRequest({
  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 url = "https://api.myfatoorah.com",
  11. String? customerName,
  12. String? customerEmail,
  13. String? customerReference,
  14. String? customerCivilId,
  15. String? userDefinedField,
  16. CustomerAddress? customerAddress,
  17. DateTime? expiryDate,
  18. List<Supplier>? suppliers,
  19. int? shippingMethod,
  20. List<InvoiceItem>? invoiceItems,
  21. RecurringModel? recurringModel,
})

Implementation

@Deprecated("Use `MyfatoorahRequest.test` or MyfatoorahRequest.live")
MyfatoorahRequest({
  required this.token,
  required this.language,
  required this.invoiceAmount,
  required this.currencyIso,
  this.shippingConsignee,
  this.mobileCountryCode,
  this.initiatePaymentUrl,
  this.executePaymentUrl,
  this.customerMobile,
  this.url = "https://api.myfatoorah.com",
  this.customerName,
  this.customerEmail,
  this.customerReference,
  this.customerCivilId,
  this.userDefinedField,
  this.customerAddress,
  this.expiryDate,
  this.suppliers,
  this.shippingMethod,
  this.invoiceItems,
  this.recurringModel,
});