updateSettingsAccountingCode function
Future<ApiResponse<SettingsAccountingCode> >
updateSettingsAccountingCode(
- ExsitedClient client,
- Object accountingCodeId,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
PATCH /api/{api_version}/settings/accounting_codes/{accounting_code_id}
Implementation
Future<ApiResponse<SettingsAccountingCode>> updateSettingsAccountingCode(
ExsitedClient client,
Object accountingCodeId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPatchRequest(AccountingCodesUrls.settingsAccountingCode,
pathParams: {'accounting_code_id': accountingCodeId},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: SettingsAccountingCode.fromMap);