Stripe.BankAccountService.GetAsync C# (CSharp) Method

GetAsync() public method

public GetAsync ( string customerId, string bankAccountId, Stripe.StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
customerId string
bankAccountId string
requestOptions Stripe.StripeRequestOptions
cancellationToken CancellationToken
return Task
        public virtual async Task<CustomerBankAccount> GetAsync(string customerId, string bankAccountId, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            return Mapper<CustomerBankAccount>.MapFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(null, $"{Urls.BaseUrl}/customers/{customerId}/sources/{bankAccountId}"),
                    SetupRequestOptions(requestOptions),
                    cancellationToken
                )
            );
        }