getSettingsAccountingCode function

Future<ApiResponse<SettingsAccountingCode>> getSettingsAccountingCode(
  1. ExsitedClient client,
  2. Object accountingCodeId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/settings/accounting_codes/{accounting_code_id}

Implementation

Future<ApiResponse<SettingsAccountingCode>> getSettingsAccountingCode(
  ExsitedClient client,
  Object accountingCodeId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(AccountingCodesUrls.settingsAccountingCode,
        pathParams: {'accounting_code_id': accountingCodeId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: SettingsAccountingCode.fromMap);