Esempio n. 1
0
 public virtual Card Update(string cardId, CardUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <Card> .MapFromJson(
                Requestor.PostString(
                    this.ApplyAllParameters(updateOptions, $"{classUrl}/{cardId}", false),
                    this.SetupRequestOptions(requestOptions))));
 }
Esempio n. 2
0
 public virtual async Task <Card> UpdateAsync(string cardId, CardUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <Card> .MapFromJson(
                await Requestor.PostStringAsync(
                    this.ApplyAllParameters(updateOptions, $"{classUrl}/{cardId}", false),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }
Esempio n. 3
0
 public virtual Task <Card> UpdateAsync(string cardId, CardUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.UpdateEntityAsync(cardId, options, requestOptions, cancellationToken));
 }
Esempio n. 4
0
 public virtual Card Update(string cardId, CardUpdateOptions options, RequestOptions requestOptions = null)
 {
     return(this.UpdateEntity(cardId, options, requestOptions));
 }