public Task <GetTranResultResponse> GetTranResult(ulong localInvoiceId) { var request = new GetTranResultRequest { MerchantConfigurationId = _config.MerchantConfigurationId, LocalInvoiceId = localInvoiceId }; return(GetTranResult(request)); }
public async Task <GetTranResultResponse> GetTranResult(GetTranResultRequest data) { var url = $"/v1/TranResult?merchantConfigurationId={data.MerchantConfigurationId}&localInvoiceId={data.LocalInvoiceId}"; var response = await _client.TryExecute <GetTranResultResponse>(HttpMethod.Get, url); switch (response.responseStatusCode) { case 200: response.result.MerchantConfigurationId = _config.MerchantConfigurationId; return(response.result); case 472: throw new PaymentTransactionNotFoundException(response.responseStatusCode); case 471: throw new InvalidIdentityException(response.responseStatusCode); default: throw response.exception; } }