public virtual StripeFileLink Create(StripeFileLinkCreateOptions createOptions, StripeRequestOptions requestOptions = null) { return(Mapper <StripeFileLink> .MapFromJson( Requestor.PostString( this.ApplyAllParameters(createOptions, classUrl, false), this.SetupRequestOptions(requestOptions)))); }
public virtual async Task <StripeFileLink> CreateAsync(StripeFileLinkCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeFileLink> .MapFromJson( await Requestor.PostStringAsync( this.ApplyAllParameters(createOptions, classUrl, false), this.SetupRequestOptions(requestOptions), cancellationToken).ConfigureAwait(false))); }