public virtual Card Create(CardCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <Card> .MapFromJson(
                Requestor.PostString(
                    this.ApplyAllParameters(createOptions, classUrl, false),
                    this.SetupRequestOptions(requestOptions))));
 }
 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)));
 }
Example #3
0
 public virtual Task <Card> CreateAsync(CardCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.CreateEntityAsync(options, requestOptions, cancellationToken));
 }
Example #4
0
 public virtual Card Create(CardCreateOptions options, RequestOptions requestOptions = null)
 {
     return(this.CreateEntity(options, requestOptions));
 }