Пример #1
0
 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))
                ));
 }
Пример #2
0
 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)
                ));
 }