Example #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))));
 }
Example #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)));
 }
Example #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)));
 }
Example #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))));
 }
Example #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))));
 }
Example #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
                    )
                ));
 }