public Task <TokenResponse> Request( WalletTokenRequest walletTokenRequest, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("walletTokenRequest", walletTokenRequest); return(ApiClient.Post <TokenResponse>(Tokens, SdkAuthorization(), walletTokenRequest, cancellationToken)); }
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)); }