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, }; }
public virtual IAsyncEnumerable <WebhookEndpoint> ListAutoPagingAsync(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken)); }
public virtual IEnumerable <WebhookEndpoint> ListAutoPaging(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null) { return(this.ListEntitiesAutoPaging(options, requestOptions)); }
public virtual Task <StripeList <WebhookEndpoint> > ListAsync(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListEntitiesAsync(options, requestOptions, cancellationToken)); }
public virtual StripeList <WebhookEndpoint> List(WebhookEndpointListOptions options = null, RequestOptions requestOptions = null) { return(this.ListEntities(options, requestOptions)); }