コード例 #1
0
 public EntityReturned Post(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null)
 {
     return(Mapper <EntityReturned> .MapFromJson(
                Requestor.PostString(
                    this.ApplyAllParameters(options, url),
                    this.SetupRequestOptions(requestOptions))));
 }
コード例 #2
0
 public async Task <StripeDeleted> DeleteEntityAsync(string url, StripeRequestOptions requestOptions, CancellationToken cancellationToken, StripeBaseOptions options = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                await Requestor.DeleteAsync(
                    this.ApplyAllParameters(options, url),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }
コード例 #3
0
 public virtual async Task <StripeList <EntityReturned> > GetEntityListAsync(string url, StripeRequestOptions requestOptions, CancellationToken cancellationToken, StripeBaseOptions options = null)
 {
     return(Mapper <StripeList <EntityReturned> > .MapFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(options, url, true),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }
コード例 #4
0
 public virtual StripeDeleted DeleteEntity(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(options, url),
                    this.SetupRequestOptions(requestOptions))));
 }
コード例 #5
0
 public StripeList <EntityReturned> GetEntityList(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null)
 {
     return(Mapper <StripeList <EntityReturned> > .MapFromJson(
                Requestor.GetString(
                    this.ApplyAllParameters(options, url, true),
                    this.SetupRequestOptions(requestOptions))));
 }
コード例 #6
0
 public async Task <EntityReturned> PostAsync(string url, StripeRequestOptions requestOptions, CancellationToken cancellationToken, StripeBaseOptions options = null)
 {
     return(Mapper <EntityReturned> .MapFromJson(
                await Requestor.PostStringAsync(
                    this.ApplyAllParameters(options, url),
                    SetupRequestOptions(requestOptions),
                    cancellationToken
                    )
                ));
 }