Exemple #1
0
        public IEnumerable <VerificationSession> ListAutoPaging(VerificationSessionListOptions options, RequestOptions requestOptions = null)
        {
            if (options.StripeVersion == null)
            {
                throw new System.ArgumentException("The StripeVersion parameter has to be set when creating a Verification Session", "StripeVersion");
            }

            // Creating a Verification Session requires a specific API version to be set. This is handled as a parameter
            // but has to be set on the RequestOptions instead.
            requestOptions = requestOptions ?? new RequestOptions();
            requestOptions.StripeVersion = options.StripeVersion;

            return(this.ListEntitiesAutoPaging(options, requestOptions));
        }
Exemple #2
0
 public Task <StripeList <VerificationSession> > ListAsync(VerificationSessionListOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAsync(options, requestOptions, cancellationToken));
 }
Exemple #3
0
 public IAsyncEnumerable <VerificationSession> ListAutoPagingAsync(VerificationSessionListOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken));
 }