public EntityReturned Post(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null) { return(Mapper <EntityReturned> .MapFromJson( Requestor.PostString( this.ApplyAllParameters(options, url), this.SetupRequestOptions(requestOptions)))); }
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))); }
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))); }
public virtual StripeDeleted DeleteEntity(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null) { return(Mapper <StripeDeleted> .MapFromJson( Requestor.Delete( this.ApplyAllParameters(options, url), this.SetupRequestOptions(requestOptions)))); }
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)))); }
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 ) )); }