getSettingsDiscountProfile function

Future<ApiResponse<SettingsDiscountProfileRead>> getSettingsDiscountProfile(
  1. ExsitedClient client,
  2. Object discountProfileId, {
  3. bool? raiseOnError,
  4. 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);