updateSettingsTax function

Future<ApiResponse<Object?>> updateSettingsTax(
  1. ExsitedClient client,
  2. Object taxId,
  3. Object payload, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

PATCH /api/{api_version}/settings/taxes/{tax_id}

Update, enable or disable a tax, under tax.

No typed view: no 2xx response was recorded for it. Read response.map.

Implementation

Future<ApiResponse<Object?>> updateSettingsTax(
  ExsitedClient client,
  Object taxId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(SettingsUrls.settingsTax,
        pathParams: {'tax_id': taxId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);