Example #1
0
        public Task <ReportingPaymentTransactionRefundListResponse> RetrievePaymentTransactionRefundsAsync(long paymentId,
                                                                                                           long paymentTransactionId)
        {
            var path = "/payment-reporting/v1/payments/" + paymentId + "/transactions/" + paymentTransactionId +
                       "/refunds";

            return(AsyncRestClient.Get <ReportingPaymentTransactionRefundListResponse>(RequestOptions.BaseUrl + path,
                                                                                       CreateHeaders(path, RequestOptions)));
        }
        public Task <PayoutCompletedTransactionListResponse> SearchPayoutCompletedTransactionsAsync(
            SearchPayoutCompletedTransactionsRequest searchPayoutCompletedTransactionsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPayoutCompletedTransactionsRequest);
            var path       = "/settlement-reporting/v1/settlement-file/payout-completed-transactions" + queryParam;

            return(AsyncRestClient.Get <PayoutCompletedTransactionListResponse>(RequestOptions.BaseUrl + path,
                                                                                CreateHeaders(path, RequestOptions)));
        }
Example #3
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));
        }
Example #4
0
        public Task <ReportingPaymentTransactionRefundListResponse> SearchPaymentTransactionRefundsAsync(
            SearchPaymentTransactionRefundsRequest searchPaymentTransactionRefundsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchPaymentTransactionRefundsRequest);
            var path       = "/payment-reporting/v1/refund-transactions" + queryParam;

            return(AsyncRestClient.Get <ReportingPaymentTransactionRefundListResponse>(RequestOptions.BaseUrl + path,
                                                                                       CreateHeaders(path, RequestOptions)));
        }
Example #5
0
        public Task <PaymentTransactionApprovalListResponse> DisapprovePaymentTransactionsAsync(
            DisapprovePaymentTransactionsRequest disapprovePaymentTransactionsRequest)
        {
            var path = "/payment/v1/payment-transactions/disapprove";

            return(AsyncRestClient.Post <PaymentTransactionApprovalListResponse>(RequestOptions.BaseUrl + path,
                                                                                 CreateHeaders(disapprovePaymentTransactionsRequest, path, RequestOptions),
                                                                                 disapprovePaymentTransactionsRequest));
        }
Example #6
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 #7
0
 public Task DeleteProductAsync(long id)
 {
     var path = "/craftlink/v1/products/" + id;
     return AsyncRestClient.Delete<object>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions));
 }
Example #8
0
 public Task<ProductResponse> RetrieveProductAsync(long id)
 {
     var path = "/craftlink/v1/products/" + id;
     return AsyncRestClient.Get<ProductResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions));
 }
Example #9
0
 public Task<ProductResponse> UpdateProductAsync(long id, UpdateProductRequest updateProductRequest)
 {
     var path = "/craftlink/v1/products/" + id;
     return AsyncRestClient.Put<ProductResponse>(RequestOptions.BaseUrl + path,
         CreateHeaders(updateProductRequest, path, RequestOptions), updateProductRequest);
 }
Example #10
0
        public Task <RemittanceResponse> RetrieveRemittanceAsync(long id)
        {
            var path = "/wallet/v1/remittances/" + id;

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

            return(AsyncRestClient.Get <WithdrawResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
Example #12
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 #13
0
        public Task <WalletResponse> RetrieveMerchantMemberWalletAsync()
        {
            var path = "/wallet/v1/merchants/me/wallet";

            return(AsyncRestClient.Get <WalletResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)));
        }
 public UserAuthenticationTests()
 {
     baseClient = new BaseClient();
     client     = baseClient.GetClient(ServiceType.Security);
 }
 public TicketClarificationTests()
 {
     baseClient = new BaseClient();
     client     = baseClient.GetClient(ServiceType.Security);
 }
Example #16
0
 public LabTests()
 {
     baseClient = new BaseClient();
     client     = baseClient.GetClient(ServiceType.Security);
 }
Example #17
0
 public Task<ProductResponse> CreateProductAsync(CreateProductRequest createProductRequest)
 {
     var path = "/craftlink/v1/products";
     return AsyncRestClient.Post<ProductResponse>(RequestOptions.BaseUrl + path,
         CreateHeaders(createProductRequest, path, RequestOptions), createProductRequest);
 }