createOrder method

Future createOrder(
  1. dynamic merchantId,
  2. dynamic customerId,
  3. dynamic shippingFee,
  4. dynamic tax,
  5. dynamic transactionId,
  6. dynamic zip,
  7. dynamic streetAddress,
  8. dynamic city,
  9. dynamic state,
  10. dynamic country,
  11. dynamic saveAddress,
  12. dynamic isDefaultAddress,
  13. dynamic productIds,
  14. dynamic quantityList,
  15. dynamic meta,
)

createOrder

Implementation

Future createOrder(merchantId,customerId,shippingFee,tax,transactionId,zip,streetAddress,city,state,country,saveAddress,isDefaultAddress,productIds,quantityList,meta) async {
  var data = {
    'merchant_id': merchantId,
    'customer_id': customerId,
    'shipping_fee': shippingFee,
    'tax': tax,
    'transaction_id': transactionId,
    'zip': zip,
    'street_address': streetAddress,
    'city': city,
    'state': state,
    'country': country,
    'save_address': saveAddress,
    'is_default_address': isDefaultAddress,
    'product_ids': productIds,
    'quantity_list': quantityList,
    'meta': meta,
  };
  var apiResponse = await post("/customer/orders/checkout", data);
  return apiResponse;
}