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)) )); }
//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)) )); }
//Sync public virtual StripeAccount Create(StripeAccountCreateOptions createOptions, StripeRequestOptions requestOptions = null) { return Mapper<StripeAccount>.MapFromJson( Requestor.PostString(this.ApplyAllParameters(createOptions, Urls.Accounts, false), SetupRequestOptions(requestOptions)) ); }
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)); }
//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) )); }
//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) ); }