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