getBenefitApplication method

Future<GetBenefitApplicationOutput> getBenefitApplication({
  1. required String catalog,
  2. required String identifier,
})

Retrieves detailed information about a specific benefit application.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter catalog : The catalog identifier that specifies which benefit catalog to query.

Parameter identifier : The unique identifier of the benefit application to retrieve.

Implementation

Future<GetBenefitApplicationOutput> getBenefitApplication({
  required String catalog,
  required String identifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'PartnerCentralBenefitsService.GetBenefitApplication'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Catalog': catalog,
      'Identifier': identifier,
    },
  );

  return GetBenefitApplicationOutput.fromJson(jsonResponse.body);
}