Example #1
0
        public Task <MemberResponse> RetrieveMemberAsync(long id)
        {
            var path = "/onboarding/v1/members/" + id;

            return(AsyncRestClient.Get <MemberResponse>(RequestOptions.BaseUrl + path,
                                                        CreateHeaders(path, RequestOptions)));
        }
Example #2
0
 public Task<ProductListResponse> SearchProductsAsync(SearchProductsRequest searchProductsRequest)
 {
     var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchProductsRequest);
     var path = "/craftlink/v1/products" + queryParam;
     return AsyncRestClient.Get<ProductListResponse>(RequestOptions.BaseUrl + path,
         CreateHeaders(path, RequestOptions));
 }
Example #3
0
        public Task <ReportingPaymentRefundListResponse> RetrievePaymentRefundsAsync(long paymentId)
        {
            var path = "/payment-reporting/v1/payments/" + paymentId + "/refunds";

            return(AsyncRestClient.Get <ReportingPaymentRefundListResponse>(RequestOptions.BaseUrl + path,
                                                                            CreateHeaders(path, RequestOptions)));
        }
Example #4
0
        public Task <PaymentTransactionRefundResponse> RetrievePaymentTransactionRefundAsync(long id)
        {
            var path = "/payment/v1/refund-transactions/" + id;

            return(AsyncRestClient.Get <PaymentTransactionRefundResponse>(RequestOptions.BaseUrl + path,
                                                                          CreateHeaders(path, RequestOptions)));
        }
Example #5
0
        public Task <PaymentResponse> RetrievePaymentAsync(long id)
        {
            var path = "/payment/v1/card-payments/" + id;

            return(AsyncRestClient.Get <PaymentResponse>(RequestOptions.BaseUrl + path,
                                                         CreateHeaders(path, RequestOptions)));
        }
Example #6
0
        public Task <PaymentResponse> RetrieveCheckoutPaymentAsync(string token)
        {
            var path = "/payment/v1/checkout-payments/" + token;

            return(AsyncRestClient.Get <PaymentResponse>(RequestOptions.BaseUrl + path,
                                                         CreateHeaders(path, RequestOptions)));
        }
        public Task <BinNumberResponse> RetrieveBinNumberAsync(string binNumber)
        {
            var path = "/installment/v1/bins/" + binNumber;

            return(AsyncRestClient.Get <BinNumberResponse>(RequestOptions.BaseUrl + path,
                                                           CreateHeaders(path, RequestOptions)));
        }
        public Task <PayoutDetailResponse> RetrievePayoutDetailsAsync(long id)
        {
            var path = "/settlement-reporting/v1/settlement-file/payout-details/" + id;

            return(AsyncRestClient.Get <PayoutDetailResponse>(RequestOptions.BaseUrl + path,
                                                              CreateHeaders(path, RequestOptions)));
        }
        public Task <InstallmentListResponse> SearchInstallmentsAsync(SearchInstallmentsRequest searchInstallmentsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchInstallmentsRequest);
            var path       = "/installment/v1/installments" + queryParam;

            return(AsyncRestClient.Get <InstallmentListResponse>(RequestOptions.BaseUrl + path,
                                                                 CreateHeaders(path, RequestOptions)));
        }
Example #10
0
        public Task <WithdrawListResponse> SearchWithdrawsAsync(SearchWithdrawsRequest request)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(request);
            var path       = "/wallet/v1/withdraws" + queryParam;

            return(AsyncRestClient.Get <WithdrawListResponse>(RequestOptions.BaseUrl + path,
                                                              CreateHeaders(path, RequestOptions)));
        }
Example #11
0
        public Task <ReportingPaymentListResponse> SearchPaymentsAsync(SearchPaymentsRequest searchPaymentsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPaymentsRequest);
            var path       = "/payment-reporting/v1/payments" + queryParam;

            return(AsyncRestClient.Get <ReportingPaymentListResponse>(RequestOptions.BaseUrl + path,
                                                                      CreateHeaders(path, RequestOptions)));
        }
Example #12
0
        public Task <RefundWalletTransactionToCardListResponse> RetrieveRefundWalletTransactionsToCardAsync(
            long walletTransactionId)
        {
            var path = "/payment/v1/wallet-transactions/" + walletTransactionId + "/refunds";

            return(AsyncRestClient.Get <RefundWalletTransactionToCardListResponse>(RequestOptions.BaseUrl + path,
                                                                                   CreateHeaders(path, RequestOptions)));
        }
Example #13
0
        public Task <WalletTransactionRefundableAmountResponse> RetrieveRefundableAmountOfWalletTransactionAsync(
            long walletTransactionId)
        {
            var path = "/payment/v1/wallet-transactions/" + walletTransactionId + "/refundable-amount";

            return(AsyncRestClient.Get <WalletTransactionRefundableAmountResponse>(RequestOptions.BaseUrl + path,
                                                                                   CreateHeaders(path, RequestOptions)));
        }
Example #14
0
        public Task <StoredCardListResponse> SearchStoredCardsAsync(SearchStoredCardsRequest searchStoredCardsRequest)
        {
            var query = RequestQueryParamsBuilder.BuildQueryParam(searchStoredCardsRequest);
            var path  = "/payment/v1/cards" + query;

            return(AsyncRestClient.Get <StoredCardListResponse>(RequestOptions.BaseUrl + path,
                                                                CreateHeaders(path, RequestOptions)));
        }
Example #15
0
        public Task <MemberListResponse> SearchMembersAsync(SearchMembersRequest searchMembersRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchMembersRequest);
            var path       = "/onboarding/v1/members" + queryParam;

            return(AsyncRestClient.Get <MemberListResponse>(RequestOptions.BaseUrl + path,
                                                            CreateHeaders(path, RequestOptions)));
        }
Example #16
0
        public Task <WalletTransactionListResponse> SearchWalletTransactionsAsync(long walletId,
                                                                                  SearchWalletTransactionsRequest searchWalletTransactionsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchWalletTransactionsRequest);
            var path       = "/wallet/v1/wallets/" + walletId + "/wallet-transactions" + queryParam;

            return(AsyncRestClient.Get <WalletTransactionListResponse>(RequestOptions.BaseUrl + path,
                                                                       CreateHeaders(path, RequestOptions)));
        }
Example #17
0
        public Task <byte[]> RetrieveDailyTransactionReportAsync(RetrieveDailyTransactionReportRequest retrieveDailyTransactionReportRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(retrieveDailyTransactionReportRequest);
            var path       = "/file-reporting/v1/transaction-reports" + queryParam;
            var headers    = CreateHeaders(path, RequestOptions);

            headers.Add(ContentType, ApplicationOctetStream);
            return(AsyncRestClient.Get <byte[]>(RequestOptions.BaseUrl + path, headers));
        }
        public Task <PayoutBouncedTransactionListResponse> SearchBouncedPayoutTransactionsAsync(
            SearchPayoutBouncedTransactionsRequest searchPayoutCompletedTransactionsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPayoutCompletedTransactionsRequest);
            var path       = "/settlement-reporting/v1/settlement-file/bounced-sub-merchant-rows" + queryParam;

            return(AsyncRestClient.Get <PayoutBouncedTransactionListResponse>(RequestOptions.BaseUrl + path,
                                                                              CreateHeaders(path, RequestOptions)));
        }
Example #19
0
        public Task <WithdrawResponse> RetrieveWithdrawAsync(long withdrawId)
        {
            var path = "/wallet/v1/withdraws/" + withdrawId;

            return(AsyncRestClient.Get <WithdrawResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Example #20
0
        public Task <WalletResponse> RetrieveMerchantMemberWalletAsync()
        {
            var path = "/wallet/v1/merchants/me/wallet";

            return(AsyncRestClient.Get <WalletResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Example #21
0
        public Task <WalletResponse> RetrieveMemberWalletAsync(long memberId)
        {
            var path = "/wallet/v1/members/" + memberId + "/wallet";

            return(AsyncRestClient.Get <WalletResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Example #22
0
        public Task <RemittanceResponse> RetrieveRemittanceAsync(long id)
        {
            var path = "/wallet/v1/remittances/" + id;

            return(AsyncRestClient.Get <RemittanceResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Example #23
0
 public Task<ProductResponse> RetrieveProductAsync(long id)
 {
     var path = "/craftlink/v1/products/" + id;
     return AsyncRestClient.Get<ProductResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions));
 }