示例#1
0
 public virtual Card Create(CardCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <Card> .MapFromJson(
                Requestor.PostString(
                    this.ApplyAllParameters(createOptions, classUrl, false),
                    this.SetupRequestOptions(requestOptions))));
 }
示例#2
0
 public virtual async Task <Card> CreateAsync(CardCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <Card> .MapFromJson(
                await Requestor.PostStringAsync(
                    this.ApplyAllParameters(createOptions, classUrl, false),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }
示例#3
0
 public virtual Task <Card> CreateAsync(CardCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.CreateEntityAsync(options, requestOptions, cancellationToken));
 }
示例#4
0
 public virtual Card Create(CardCreateOptions options, RequestOptions requestOptions = null)
 {
     return(this.CreateEntity(options, requestOptions));
 }