updateMerchant method

Future updateMerchant(
  1. dynamic id,
  2. dynamic name,
  3. dynamic description,
  4. dynamic supportEmail,
  5. dynamic category,
  6. dynamic zip,
  7. dynamic streetAddress,
  8. dynamic city,
  9. dynamic state,
  10. dynamic country,
)

update merchant

Implementation

Future updateMerchant(id, name, description, supportEmail, category, zip, streetAddress, city, state, country) async {
  var data = {
    'merchant_id': id,
    'name' : name,
    'description' : description,
    'support_email' : supportEmail,
    'category' : category,
    'zip' : zip,
    'street_address' : streetAddress,
    'city' : city,
    'state' : state,
    'country' : country,
  };
  var apiResponse = await post("/merchant/update", data);
  return apiResponse;
}