n8n-nodes-base
Version:
Base nodes of n8n
61 lines (57 loc) • 1.65 kB
text/typescript
/**
* Chargebee Node - Version 1
* Discriminator: resource=customer, operation=create
*/
interface Credentials {
chargebeeApi: CredentialReference;
}
/** Create a customer */
export type ChargebeeV1CustomerCreateParams = {
resource: 'customer';
operation: 'create';
/**
* Properties to set on the new user
* @default {}
*/
properties?: {
/** ID for the new customer. If not given, this will be auto-generated.
*/
id?: string | Expression<string> | PlaceholderValue;
/** The first name of the customer
*/
first_name?: string | Expression<string> | PlaceholderValue;
/** The last name of the customer
*/
last_name?: string | Expression<string> | PlaceholderValue;
/** The email address of the customer
*/
email?: string | Expression<string> | PlaceholderValue;
/** The phone number of the customer
*/
phone?: string | Expression<string> | PlaceholderValue;
/** The company of the customer
*/
company?: string | Expression<string> | PlaceholderValue;
/** Adds a custom property to set also values which have not been predefined
* @default {}
*/
customProperties?: {
/** Property
*/
property?: Array<{
/** Name of the property to set
*/
name?: string | Expression<string> | PlaceholderValue;
/** Value of the property to set
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export type ChargebeeV1CustomerCreateNode = {
type: 'n8n-nodes-base.chargebee';
version: 1;
credentials?: Credentials;
config: NodeConfig<ChargebeeV1CustomerCreateParams>;
};