mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
👕 Fix lint issues and naming
This commit is contained in:
@@ -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: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user