mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -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:
|
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:
|
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
|
1. manually add the id #event-types to `<ul>` that contains all event types
|
||||||
2. copy-paste the function in the JS console
|
2. copy-paste the function in the JS console
|
||||||
3. the result is copied into in the clipboard
|
3. the result is copied into in the clipboard
|
||||||
4. paste the prepared array in StripeTrigger.node.ts
|
4. paste the prepared array in StripeTrigger.node.ts
|
||||||
|
|
||||||
```js
|
```js
|
||||||
types = []
|
types = []
|
||||||
|
|
|
@ -16,14 +16,14 @@ import {
|
||||||
|
|
||||||
export class StripeTrigger implements INodeType {
|
export class StripeTrigger implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
displayName: 'Stripe',
|
displayName: 'Stripe Trigger',
|
||||||
name: 'stripe',
|
name: 'stripe',
|
||||||
icon: 'file:stripe.png',
|
icon: 'file:stripe.png',
|
||||||
group: ['trigger'],
|
group: ['trigger'],
|
||||||
version: 1,
|
version: 1,
|
||||||
description: 'Handle Stripe events via webhooks',
|
description: 'Handle Stripe events via webhooks',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: 'Stripe',
|
name: 'Stripe Trigger',
|
||||||
color: '#32325d',
|
color: '#32325d',
|
||||||
},
|
},
|
||||||
inputs: [],
|
inputs: [],
|
||||||
|
|
Loading…
Reference in a new issue