updateSettingsDiscountProfile function

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

PATCH /api/{api_version}/settings/discount_profiles/{discount_profile_id}

Update a discount profile, under discount_profile.

Implementation

Future<ApiResponse<SettingsDiscountProfileRead>> updateSettingsDiscountProfile(
  ExsitedClient client,
  Object discountProfileId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(SettingsUrls.settingsDiscountProfile,
        pathParams: {'discount_profile_id': discountProfileId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: SettingsDiscountProfileRead.fromMap);