Example #1
0
        public Task <WithdrawResponse> CancelWithdrawAsync(long withdrawId)
        {
            var path = "/wallet/v1/withdraws/" + withdrawId + "/cancel";

            return(AsyncRestClient.Post <WithdrawResponse>(RequestOptions.BaseUrl + path,
                                                           CreateHeaders(path, RequestOptions)));
        }
Example #2
0
        public Task <CheckMasterpassUserResponse> CheckMasterpassUserAsync(CheckMasterpassUserRequest checkMasterpassUserRequest)
        {
            var path = "/payment/v1/masterpass-payments/check-user";

            return(AsyncRestClient.Post <CheckMasterpassUserResponse>(RequestOptions.BaseUrl + path,
                                                                      CreateHeaders(checkMasterpassUserRequest, path, RequestOptions), checkMasterpassUserRequest));
        }
Example #3
0
        public Task <StoredCardResponse> UpdateCardAsync(UpdateCardRequest updateCardRequest)
        {
            var path = "/payment/v1/cards/update";

            return(AsyncRestClient.Post <StoredCardResponse>(RequestOptions.BaseUrl + path,
                                                             CreateHeaders(updateCardRequest, path, RequestOptions), updateCardRequest));
        }
Example #4
0
        public Task <WalletResponse> ResetMerchantMemberWalletBalanceAsync(ResetMerchantMemberWalletBalanceRequest request)
        {
            var path = "/wallet/v1/merchants/me/wallet/reset-balance";

            return(AsyncRestClient.Post <WalletResponse>(RequestOptions.BaseUrl + path,
                                                         CreateHeaders(request, path, RequestOptions), request));
        }
Example #5
0
        public Task <PaymentResponse> PostAuthPaymentAsync(long paymentId, PostAuthPaymentRequest postAuthPaymentRequest)
        {
            var path = "/payment/v1/card-payments/" + paymentId + "/post-auth";

            return(AsyncRestClient.Post <PaymentResponse>(RequestOptions.BaseUrl + path,
                                                          CreateHeaders(postAuthPaymentRequest, path, RequestOptions), postAuthPaymentRequest));
        }
Example #6
0
        public Task <WithdrawResponse> CreateWithdrawAsync(CreateWithdrawRequest request)
        {
            var path = "/wallet/v1/withdraws";

            return(AsyncRestClient.Post <WithdrawResponse>(RequestOptions.BaseUrl + path,
                                                           CreateHeaders(request, path, RequestOptions), request));
        }
Example #7
0
        public Task <StoredCardResponse> StoreCardAsync(StoreCardRequest storeCardRequest)
        {
            var path = "/payment/v1/cards";

            return(AsyncRestClient.Post <StoredCardResponse>(RequestOptions.BaseUrl + path,
                                                             CreateHeaders(storeCardRequest, path, RequestOptions), storeCardRequest));
        }
Example #8
0
        public Task <RefundWalletTransactionToCardResponse> RefundWalletTransactionToCardAsync(long walletTransactionId,
                                                                                               RefundWalletTransactionToCardRequest request)
        {
            var path = "/payment/v1/wallet-transactions/" + walletTransactionId + "/refunds";

            return(AsyncRestClient.Post <RefundWalletTransactionToCardResponse>(RequestOptions.BaseUrl + path,
                                                                                CreateHeaders(request, path, RequestOptions), request));
        }
        public Task <SettlementResponse> CreateInstantWalletSettlementAsync(
            CreateInstantWalletSettlementRequest request)
        {
            var path = "/settlement/v1/instant-wallet-settlements";

            return(AsyncRestClient.Post <SettlementResponse>(RequestOptions.BaseUrl + path,
                                                             CreateHeaders(request, path, RequestOptions), request));
        }
Example #10
0
        public Task <PaymentResponse> Complete3DSPaymentAsync(CompleteThreeDSPaymentRequest completeThreeDsPaymentRequest)
        {
            var path = "/payment/v1/card-payments/3ds-complete";

            return(AsyncRestClient.Post <PaymentResponse>(RequestOptions.BaseUrl + path,
                                                          CreateHeaders(completeThreeDsPaymentRequest, path, RequestOptions),
                                                          completeThreeDsPaymentRequest));
        }
Example #11
0
        public Task <InitThreeDSPaymentResponse> Init3DSPaymentAsync(InitThreeDSPaymentRequest initThreeDSPaymentRequest)
        {
            var path = "/payment/v1/card-payments/3ds-init";

            return(AsyncRestClient.Post <InitThreeDSPaymentResponse>(RequestOptions.BaseUrl + path,
                                                                     CreateHeaders(initThreeDSPaymentRequest, path, RequestOptions),
                                                                     initThreeDSPaymentRequest));
        }
Example #12
0
        public Task <InitGarantiPayPaymentResponse> InitGarantiPayPaymentAsync(InitGarantiPayPaymentRequest initGarantiPayPaymentRequest)
        {
            var path = "/payment/v1/garanti-pay-payments";

            return(AsyncRestClient.Post <InitGarantiPayPaymentResponse>(RequestOptions.BaseUrl + path,
                                                                        CreateHeaders(initGarantiPayPaymentRequest, path, RequestOptions),
                                                                        initGarantiPayPaymentRequest));
        }
Example #13
0
        public Task <RemittanceResponse> ReceiveRemittanceAsync(CreateRemittanceRequest createRemittanceRequest)
        {
            var path = "/wallet/v1/remittances/receive";

            return(AsyncRestClient.Post <RemittanceResponse>(RequestOptions.BaseUrl + path,
                                                             CreateHeaders(createRemittanceRequest, path, RequestOptions),
                                                             createRemittanceRequest));
        }
Example #14
0
        public Task <PaymentRefundResponse> RefundPaymentAsync(RefundPaymentRequest refundPaymentRequest)
        {
            var path = "/payment/v1/refunds";

            return(AsyncRestClient.Post <PaymentRefundResponse>(RequestOptions.BaseUrl + path,
                                                                CreateHeaders(refundPaymentRequest, path, RequestOptions),
                                                                refundPaymentRequest));
        }
Example #15
0
        public Task <RetrieveLoyaltiesResponse> RetrieveLoyaltiesAsync(RetrieveLoyaltiesRequest retrieveLoyaltiesRequest)
        {
            var path = "/payment/v1/card-loyalties/retrieve";

            return(AsyncRestClient.Post <RetrieveLoyaltiesResponse>(RequestOptions.BaseUrl + path,
                                                                    CreateHeaders(retrieveLoyaltiesRequest, path, RequestOptions),
                                                                    retrieveLoyaltiesRequest));
        }
Example #16
0
        public Task <PaymentResponse> CreatePaymentAsync(CreatePaymentRequest createPaymentRequest)
        {
            var path = "/payment/v1/card-payments";

            return(AsyncRestClient.Post <PaymentResponse>(RequestOptions.BaseUrl + path,
                                                          CreateHeaders(createPaymentRequest, path, RequestOptions),
                                                          createPaymentRequest));
        }
Example #17
0
        public Task <InitApmPaymentResponse> InitApmPaymentAsync(InitApmPaymentRequest initApmPaymentRequest)
        {
            var path = "/payment/v1/apm-payments/init";

            return(AsyncRestClient.Post <InitApmPaymentResponse>(RequestOptions.BaseUrl + path,
                                                                 CreateHeaders(initApmPaymentRequest, path, RequestOptions),
                                                                 initApmPaymentRequest));
        }
Example #18
0
        public Task <InitThreeDSPaymentResponse> Init3DSDepositPaymentAsync(CreateDepositPaymentRequest createDepositPaymentRequest)
        {
            var path = "/payment/v1/deposits/3ds-init";

            return(AsyncRestClient.Post <InitThreeDSPaymentResponse>(RequestOptions.BaseUrl + path,
                                                                     CreateHeaders(createDepositPaymentRequest, path, RequestOptions),
                                                                     createDepositPaymentRequest));
        }
Example #19
0
        public Task <PaymentTransactionApprovalListResponse> ApprovePaymentTransactionsAsync(ApprovePaymentTransactionsRequest approvePaymentTransactionsRequest)
        {
            var path = "/payment/v1/payment-transactions/approve";

            return(AsyncRestClient.Post <PaymentTransactionApprovalListResponse>(RequestOptions.BaseUrl + path,
                                                                                 CreateHeaders(approvePaymentTransactionsRequest, path, RequestOptions),
                                                                                 approvePaymentTransactionsRequest));
        }
Example #20
0
        public void CreateFundTransferDepositPaymentAsync(CreateFundTransferDepositPaymentRequest createFundTransferDepositPaymentRequest)
        {
            var path = "/payment/v1/deposits/fund-transfer";

            AsyncRestClient.Post <object>(RequestOptions.BaseUrl + path,
                                          CreateHeaders(createFundTransferDepositPaymentRequest, path, RequestOptions),
                                          createFundTransferDepositPaymentRequest);
        }
Example #21
0
        public Task <MemberResponse> CreateMemberAsync(CreateMemberRequest createMemberRequest)
        {
            var path = "/onboarding/v1/members";

            return(AsyncRestClient.Post <MemberResponse>(RequestOptions.BaseUrl + path,
                                                         CreateHeaders(createMemberRequest, path, RequestOptions),
                                                         createMemberRequest));
        }
Example #22
0
 public Task<ProductResponse> CreateProductAsync(CreateProductRequest createProductRequest)
 {
     var path = "/craftlink/v1/products";
     return AsyncRestClient.Post<ProductResponse>(RequestOptions.BaseUrl + path,
         CreateHeaders(createProductRequest, path, RequestOptions), createProductRequest);
 }