getSettingsShippingProfile function

Future<ApiResponse<SettingsShippingProfileRead>> getSettingsShippingProfile(
  1. ExsitedClient client,
  2. Object shippingProfileId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/settings/shipping_profiles/{shipping_profile_id}

Get one shipping profile, under shipping_profile.

Implementation

Future<ApiResponse<SettingsShippingProfileRead>> getSettingsShippingProfile(
  ExsitedClient client,
  Object shippingProfileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(SettingsUrls.settingsShippingProfile,
        pathParams: {'shipping_profile_id': shippingProfileId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: SettingsShippingProfileRead.fromMap);