예제 #1
0
 public Task <TokenResponse> Request(
     WalletTokenRequest walletTokenRequest,
     CancellationToken cancellationToken = default)
 {
     CheckoutUtils.ValidateParams("walletTokenRequest", walletTokenRequest);
     return(ApiClient.Post <TokenResponse>(Tokens, SdkAuthorization(), walletTokenRequest, cancellationToken));
 }
예제 #2
0
        public Task <TokenResponse> RequestAsync(WalletTokenRequest walletTokenRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            if (walletTokenRequest == null)
            {
                throw new ArgumentNullException(nameof(walletTokenRequest));
            }

            return(_apiClient.PostAsync <TokenResponse>("tokens", _credentials, cancellationToken, walletTokenRequest));
        }