getSettingsDiscountProfile function
Future<ApiResponse<SettingsDiscountProfileRead> >
getSettingsDiscountProfile(
- ExsitedClient client,
- Object discountProfileId, {
- bool? raiseOnError,
- String? responseFormat,
GET /api/{api_version}/settings/discount_profiles/{discount_profile_id}
Get one discount profile, under discount_profile.
Implementation
Future<ApiResponse<SettingsDiscountProfileRead>> getSettingsDiscountProfile(
ExsitedClient client,
Object discountProfileId, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendGetRequest(SettingsUrls.settingsDiscountProfile,
pathParams: {'discount_profile_id': discountProfileId},
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: SettingsDiscountProfileRead.fromMap);