Esempio n. 1
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));
 }
Esempio n. 2
0
        public Task DeleteStoredCardAsync(DeleteStoredCardRequest deleteStoredCardRequest)
        {
            var query = RequestQueryParamsBuilder.BuildQueryParam(deleteStoredCardRequest);
            var path  = "/payment/v1/cards" + query;

            return(AsyncRestClient.Delete <object>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Esempio n. 3
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)));
        }
        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)));
        }
Esempio n. 5
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)));
        }
Esempio n. 6
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)));
        }
Esempio n. 7
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)));
        }
        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)));
        }
        public PayoutCompletedTransactionListResponse SearchPayoutCompletedTransactions(
            SearchPayoutCompletedTransactionsRequest searchPayoutCompletedTransactionsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPayoutCompletedTransactionsRequest);
            var path       = "/settlement-reporting/v1/settlement-file/payout-completed-transactions" + queryParam;

            return(RestClient.Get <PayoutCompletedTransactionListResponse>(RequestOptions.BaseUrl + path,
                                                                           CreateHeaders(path, RequestOptions)));
        }
Esempio n. 10
0
        public ReportingPaymentTransactionRefundListResponse SearchPaymentTransactionRefunds(
            SearchPaymentTransactionRefundsRequest searchPaymentTransactionRefundsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPaymentTransactionRefundsRequest);
            var path       = "/payment-reporting/v1/refund-transactions" + queryParam;

            return(RestClient.Get <ReportingPaymentTransactionRefundListResponse>(RequestOptions.BaseUrl + path,
                                                                                  CreateHeaders(path, RequestOptions)));
        }
Esempio n. 11
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)));
        }
Esempio n. 12
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));
        }