/** * Stripe Node - Version 1 * Discriminator: resource=source, operation=create */ interface Credentials { stripeApi: CredentialReference; } /** Create a charge */ export type StripeV1SourceCreateParams = { resource: 'source'; operation: 'create'; /** * ID of the customer to attach the source to */ customerId?: string | Expression | PlaceholderValue; /** * Type of source (payment instrument) to create * @default wechat */ type?: 'wechat' | Expression; /** * Amount in cents to be collected for this charge, e.g. enter <code>100</code> for $1.00 * @default 0 */ amount?: number | Expression; /** * Three-letter ISO currency code, e.g. <code>USD</code> or <code>EUR</code>. It must be a <a href="https://stripe.com/docs/currencies">Stripe-supported currency</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ currency?: string | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Set of key-value pairs to attach to the source to create * @default {} */ metadata?: { /** Metadata Properties */ metadataProperties?: Array<{ /** Key */ key?: string | Expression | PlaceholderValue; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; /** Arbitrary text to display on the customer's statement */ statement_descriptor?: string | Expression | PlaceholderValue; }; }; export type StripeV1SourceCreateNode = { type: 'n8n-nodes-base.stripe'; version: 1; credentials?: Credentials; config: NodeConfig; };