updateMerchantPolicy method

Future updateMerchantPolicy(
  1. dynamic id,
  2. dynamic returnPolicy,
  3. dynamic shippingPolicy
)

update merchant policy

Implementation

Future updateMerchantPolicy(id, returnPolicy, shippingPolicy) async {
  var data = {
    'merchant_id': id,
    'return_policy': returnPolicy,
    'shipping_policy': shippingPolicy,
  };
  var apiResponse = await post("/merchant/update-merchant-shipping-and-return-policy", data);
  return apiResponse;
}