updateSettingsDiscountProfile function
Future<ApiResponse<SettingsDiscountProfileRead> >
updateSettingsDiscountProfile(
- ExsitedClient client,
- Object discountProfileId,
- Object payload, {
- bool? raiseOnError,
- 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);