public virtual CustomerBankAccount Create(string customerId, BankAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <CustomerBankAccount> .MapFromJson(
                Requestor.PostString(
                    this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts"),
                    this.SetupRequestOptions(requestOptions))));
 }
Exemplo n.º 2
0
 //Sync
 public virtual CustomerBankAccount Create(string customerId, BankAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return Mapper<CustomerBankAccount>.MapFromJson(
         Requestor.PostString(
             this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts"),
             SetupRequestOptions(requestOptions)
         )
     );
 }
Exemplo n.º 3
0
 //Async
 public virtual async Task<CustomerBankAccount> CreateAsync(string customerId, BankAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return Mapper<CustomerBankAccount>.MapFromJson(
         await Requestor.PostStringAsync(
             this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts"),
             SetupRequestOptions(requestOptions),
             cancellationToken
         )
     );
 }
Exemplo n.º 4
0
 public virtual Task <BankAccount> CreateAsync(string customerId, BankAccountCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.CreateNestedEntityAsync(customerId, options, requestOptions, cancellationToken));
 }
Exemplo n.º 5
0
 public virtual BankAccount Create(string customerId, BankAccountCreateOptions options, RequestOptions requestOptions = null)
 {
     return(this.CreateNestedEntity(customerId, options, requestOptions));
 }
 public virtual async Task <CustomerBankAccount> CreateAsync(string customerId, BankAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <CustomerBankAccount> .MapFromJson(
                await Requestor.PostStringAsync(
                    this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts"),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }