コード例 #1
0
 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))
                ));
 }
コード例 #2
0
 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)
                ));
 }