public virtual StripeCharge Update(string chargeId, StripeChargeUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { return(Mapper <StripeCharge> .MapFromJson( Requestor.PostString(Infrastructure.ParameterBuilder.ApplyAllParameters(this, updateOptions, $"{Urls.Charges}/{chargeId}", false), SetupRequestOptions(requestOptions)) )); }
public virtual async Task <StripeCharge> UpdateAsync(string chargeId, StripeChargeUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeCharge> .MapFromJson( await Requestor.PostStringAsync(Infrastructure.ParameterBuilder.ApplyAllParameters(this, updateOptions, $"{Urls.Charges}/{chargeId}", false), SetupRequestOptions(requestOptions), cancellationToken) )); }