public virtual StripeTopup Update(string topupId, StripeTopupUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { return(Mapper <StripeTopup> .MapFromJson( Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.Topups}/{topupId}", false), SetupRequestOptions(requestOptions)) )); }
public virtual async Task <StripeTopup> UpdateAsync(string topupId, StripeTopupUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeTopup> .MapFromJson( await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.Topups}/{topupId}", false), SetupRequestOptions(requestOptions), cancellationToken) )); }