コード例 #1
0
 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))));
 }
コード例 #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)
         )
     );
 }
コード例 #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
         )
     );
 }
コード例 #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));
 }
コード例 #5
0
 public virtual BankAccount Create(string customerId, BankAccountCreateOptions options, RequestOptions requestOptions = null)
 {
     return(this.CreateNestedEntity(customerId, options, requestOptions));
 }
コード例 #6
0
 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)));
 }