getTransactionSessionInfo method

Future<ResponseDto<TransactionSessionInfoResponseDto>> getTransactionSessionInfo(
  1. String authToken
)

Implementation

Future<ResponseDto<TransactionSessionInfoResponseDto>> getTransactionSessionInfo(
    String authToken) async {
  final Map<String, dynamic> response = await AcceptanceApiClient(_stage)
      .getAndParseJson(
      _getTransactionSessionInfoPath,
      _apiKey,
      authToken: authToken);

  final ResponseDto<TransactionSessionInfoResponseDto> responseDto = ResponseDto<
      TransactionSessionInfoResponseDto>.fromJson(
      response, TransactionSessionInfoResponseDto.fromJson);

  responseDto.throwApiExceptionIfError();
  return responseDto;
}