Exemplo n.º 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))));
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public virtual Authorization Update(string authorizationId, AuthorizationUpdateOptions options, RequestOptions requestOptions = null)
 {
     return(this.UpdateEntity(authorizationId, options, requestOptions));
 }
Exemplo n.º 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)));
 }