public WebhookEndpointServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new WebhookEndpointService(this.StripeClient);

            this.createOptions = new WebhookEndpointCreateOptions
            {
                EnabledEvents = new List <string>
                {
                    "charge.succeeded",
                },
                Url = "https://stripe.com",
            };

            this.updateOptions = new WebhookEndpointUpdateOptions
            {
                EnabledEvents = new List <string>
                {
                    "charge.succeeded",
                },
            };

            this.listOptions = new WebhookEndpointListOptions
            {
                Limit = 1,
            };
        }
        public WebhookEndpointServiceTest()
        {
            this.service = new WebhookEndpointService();

            this.createOptions = new WebhookEndpointCreateOptions()
            {
                EnabledEvents = new string[]
                {
                    "charge.succeeded",
                },
                Url = "https://stripe.com",
            };

            this.updateOptions = new WebhookEndpointUpdateOptions()
            {
                EnabledEvents = new string[]
                {
                    "charge.succeeded",
                },
            };

            this.listOptions = new WebhookEndpointListOptions()
            {
                Limit = 1,
            };
        }
Esempio n. 3
0
 public virtual IAsyncEnumerable <WebhookEndpoint> ListAutoPagingAsync(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken));
 }
Esempio n. 4
0
 public virtual IEnumerable <WebhookEndpoint> ListAutoPaging(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntitiesAutoPaging(options, requestOptions));
 }
Esempio n. 5
0
 public virtual Task <StripeList <WebhookEndpoint> > ListAsync(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAsync(options, requestOptions, cancellationToken));
 }
Esempio n. 6
0
 public virtual StripeList <WebhookEndpoint> List(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntities(options, requestOptions));
 }