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))); }
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 <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))); }
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)); }
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))); }
public Task DeleteProductAsync(long id) { var path = "/craftlink/v1/products/" + id; return AsyncRestClient.Delete<object>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)); }
public Task<ProductResponse> RetrieveProductAsync(long id) { var path = "/craftlink/v1/products/" + id; return AsyncRestClient.Get<ProductResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions)); }
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); }
public Task <RemittanceResponse> RetrieveRemittanceAsync(long id) { var path = "/wallet/v1/remittances/" + id; return(AsyncRestClient.Get <RemittanceResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions))); }
public Task <WithdrawResponse> RetrieveWithdrawAsync(long withdrawId) { var path = "/wallet/v1/withdraws/" + withdrawId; return(AsyncRestClient.Get <WithdrawResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions))); }
public Task <WalletResponse> RetrieveMemberWalletAsync(long memberId) { var path = "/wallet/v1/members/" + memberId + "/wallet"; return(AsyncRestClient.Get <WalletResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions))); }
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); }
public LabTests() { baseClient = new BaseClient(); client = baseClient.GetClient(ServiceType.Security); }
public Task<ProductResponse> CreateProductAsync(CreateProductRequest createProductRequest) { var path = "/craftlink/v1/products"; return AsyncRestClient.Post<ProductResponse>(RequestOptions.BaseUrl + path, CreateHeaders(createProductRequest, path, RequestOptions), createProductRequest); }