コード例 #1
0
 public virtual async Task <StripeAccount> CreateAsync(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeAccount> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, Urls.Accounts, false),
                                                SetupRequestOptions(requestOptions))
                ));
 }
コード例 #2
0
 //Sync
 public virtual StripeAccount Create(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeAccount> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/accounts", false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
コード例 #3
0
 //Sync
 public virtual StripeAccount Create(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return Mapper<StripeAccount>.MapFromJson(
         Requestor.PostString(this.ApplyAllParameters(createOptions, Urls.Accounts, false),
         SetupRequestOptions(requestOptions))
     );
 }
コード例 #4
0
        public virtual StripeAccount Create(StripeAccountCreateOptions createOptions)
        {
            var url = this.ApplyAllParameters(createOptions, Urls.Accounts, false);

            var response = Requestor.PostString(url, ApiKey);

            return(Mapper <StripeAccount> .MapFromJson(response));
        }
コード例 #5
0
 //Async
 public virtual async Task <StripeAccount> CreateAsync(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeAccount> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, $"{Urls.BaseUrl}/accounts", false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }
コード例 #6
0
 //Async
 public virtual async Task<StripeAccount> CreateAsync(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return Mapper<StripeAccount>.MapFromJson(
         await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, Urls.Accounts, false),
         SetupRequestOptions(requestOptions),
         cancellationToken)
     );
 }