n8n-nodes-base
Version:
Base nodes of n8n
152 lines (147 loc) • 4.36 kB
text/typescript
/**
* Stripe Node - Version 1
* Discriminator: resource=customer, operation=update
*/
interface Credentials {
stripeApi: CredentialReference;
}
/** Update a charge */
export type StripeV1CustomerUpdateParams = {
resource: 'customer';
operation: 'update';
/**
* ID of the customer to update
*/
customerId?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** Address of the customer to update
* @default {}
*/
address?: {
/** Details
*/
details?: {
/** Address line 1 (e.g. street, PO Box, or company name)
*/
line1?: string | Expression<string> | PlaceholderValue;
/** Address line 2 (e.g. apartment, suite, unit, or building)
*/
line2?: string | Expression<string> | PlaceholderValue;
/** City, district, suburb, town, or village
*/
city?: string | Expression<string> | PlaceholderValue;
/** State, county, province, or region
*/
state?: string | Expression<string> | PlaceholderValue;
/** Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>)
*/
country?: string | Expression<string> | PlaceholderValue;
/** ZIP or postal code
*/
postal_code?: string | Expression<string> | PlaceholderValue;
};
};
/** Arbitrary text to describe the customer to create
*/
description?: string | Expression<string> | PlaceholderValue;
/** Email of the customer to create
*/
email?: string | Expression<string> | PlaceholderValue;
/** Set of key-value pairs to attach to the customer to create
* @default {}
*/
metadata?: {
/** Metadata Properties
*/
metadataProperties?: Array<{
/** Key
*/
key?: string | Expression<string> | PlaceholderValue;
/** Value
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** Full name or business name of the customer to create
*/
name?: string | Expression<string> | PlaceholderValue;
/** Telephone number of this customer
*/
phone?: string | Expression<string> | PlaceholderValue;
/** Shipping information for the customer
* @default {}
*/
shipping?: {
/** Shipping Properties
*/
shippingProperties?: Array<{
/** Name of the person who will receive the shipment
*/
name?: string | Expression<string> | PlaceholderValue;
/** Recipient Address
* @default {}
*/
address?: {
/** Details
*/
details?: {
/** Address line 1 (e.g. street, PO Box, or company name)
*/
line1?: string | Expression<string> | PlaceholderValue;
/** Address line 2 (e.g. apartment, suite, unit, or building)
*/
line2?: string | Expression<string> | PlaceholderValue;
/** City, district, suburb, town, or village
*/
city?: string | Expression<string> | PlaceholderValue;
/** State, county, province, or region
*/
state?: string | Expression<string> | PlaceholderValue;
/** Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>)
*/
country?: string | Expression<string> | PlaceholderValue;
/** ZIP or postal code
*/
postal_code?: string | Expression<string> | PlaceholderValue;
};
};
/** Phone number of the person who will receive the shipment
*/
phone?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export type StripeV1CustomerUpdateOutput = {
balance?: number;
created?: number;
delinquent?: boolean;
discount?: null;
id?: string;
invoice_prefix?: string;
invoice_settings?: {
custom_fields?: null;
footer?: null;
rendering_options?: null;
};
livemode?: boolean;
metadata?: {
Telefone?: string;
};
next_invoice_sequence?: number;
object?: string;
preferred_locales?: Array<string>;
tax_exempt?: string;
test_clock?: null;
};
export type StripeV1CustomerUpdateNode = {
type: 'n8n-nodes-base.stripe';
version: 1;
credentials?: Credentials;
config: NodeConfig<StripeV1CustomerUpdateParams>;
output?: Items<StripeV1CustomerUpdateOutput>;
};