mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
👕 Fix lint issues and naming
This commit is contained in:
parent
94b538d344
commit
1b47d19d46
|
@ -1,12 +1,12 @@
|
|||
All Stripe webhook events are taken from docs:
|
||||
https://stripe.com/docs/api/events/types#event_types
|
||||
[https://stripe.com/docs/api/events/types#event_types](https://stripe.com/docs/api/events/types#event_types)
|
||||
|
||||
To get the entire list of events as a JS array, scrape the website:
|
||||
|
||||
1. manually add the id #event-types to `<ul>` that contains all event types
|
||||
2. copy-paste the function in the JS console
|
||||
3. the result is copied into in the clipboard
|
||||
4. paste the prepared array in StripeTrigger.node.ts
|
||||
1. manually add the id #event-types to `<ul>` that contains all event types
|
||||
2. copy-paste the function in the JS console
|
||||
3. the result is copied into in the clipboard
|
||||
4. paste the prepared array in StripeTrigger.node.ts
|
||||
|
||||
```js
|
||||
types = []
|
||||
|
|
|
@ -16,14 +16,14 @@ import {
|
|||
|
||||
export class StripeTrigger implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Stripe',
|
||||
displayName: 'Stripe Trigger',
|
||||
name: 'stripe',
|
||||
icon: 'file:stripe.png',
|
||||
group: ['trigger'],
|
||||
version: 1,
|
||||
description: 'Handle Stripe events via webhooks',
|
||||
defaults: {
|
||||
name: 'Stripe',
|
||||
name: 'Stripe Trigger',
|
||||
color: '#32325d',
|
||||
},
|
||||
inputs: [],
|
||||
|
|
Loading…
Reference in a new issue