Ejemplo 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))));
 }
Ejemplo 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)));
 }
Ejemplo 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));
 }
Ejemplo n.º 4
0
 public virtual Card Update(string cardId, CardUpdateOptions options, RequestOptions requestOptions = null)
 {
     return(this.UpdateEntity(cardId, options, requestOptions));
 }