1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-20 09:27:44 +03:00
n8n/packages/nodes-base/nodes/Stripe
Omar Ajoue b2c674591c
Feature/paired item support (#3869)
* Add paired item helper and implement it in some nodes
2022-08-30 17:55:33 +02:00
..
descriptions n8n-3867-progressively-apply-prettier-to-all (#3873) 2022-08-17 17:50:24 +02:00
helpers.ts n8n-3867-progressively-apply-prettier-to-all (#3873) 2022-08-17 17:50:24 +02:00
README.md Fix indentation on Stripe-Trigger Node 2020-05-12 00:06:51 +02:00
Stripe.node.json Add new codex files (#2037) 2021-07-29 15:34:55 +02:00
Stripe.node.ts Feature/paired item support (#3869) 2022-08-30 17:55:33 +02:00
stripe.svg Add Stripe regular node (#1470) 2021-07-10 13:15:14 +02:00
StripeTrigger.node.json Add new codex files and fix previous files (#1608) 2021-04-10 10:18:10 +02:00
StripeTrigger.node.ts n8n-3867-progressively-apply-prettier-to-all (#3873) 2022-08-17 17:50:24 +02:00

All Stripe webhook events are taken from docs: 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
types = []
$$('ul#event-types li').forEach(el => {
	const value = el.querySelector('.method-list-item-label-name').innerText

	types.push({
		name: value
			.replace(/(\.|_)/, ' ')
			.split(' ')
			.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
			.join(' '),
		value,
		description: el.querySelector('.method-list-item-description').innerText
	})
})
copy(types)