/** * Magento 2 Node - Version 1 * Discriminator: resource=customer, operation=update */ interface Credentials { magento2Api: CredentialReference; } /** Update a customer */ export type Magento2V1CustomerUpdateParams = { resource: 'customer'; operation: 'update'; /** * ID of the customer to update */ customerId?: string | Expression | PlaceholderValue; /** * Email */ email?: string | Expression | PlaceholderValue; /** * First Name */ firstName?: string | Expression | PlaceholderValue; /** * Last Name */ lastName?: string | Expression | PlaceholderValue; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ website_id?: string | Expression; /** * Update Fields * @default {} */ updateFields?: { /** Addresses * @default {} */ addresses?: { /** Address */ address?: Array<{ /** Street */ street?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** Region */ region?: string | Expression | PlaceholderValue; /** Postal Code */ postcode?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ country_id?: string | Expression; /** Company */ company?: string | Expression | PlaceholderValue; /** Fax */ fax?: string | Expression | PlaceholderValue; /** First Name */ firstname?: string | Expression | PlaceholderValue; /** Last Name */ lastname?: string | Expression | PlaceholderValue; /** Middle Name */ middlename?: string | Expression | PlaceholderValue; /** Prefix */ prefix?: string | Expression | PlaceholderValue; /** Suffix */ suffix?: string | Expression | PlaceholderValue; /** Telephone */ telephone?: string | Expression | PlaceholderValue; /** Whether this address is default billing address * @default false */ default_billing?: boolean | Expression; /** Whether this address is default shipping address * @default false */ default_shipping?: boolean | Expression; }>; }; /** Amazon ID */ amazon_id?: string | Expression | PlaceholderValue; /** Confirmation */ confirmation?: string | Expression | PlaceholderValue; /** Custom Attributes * @default {} */ customAttributes?: { /** Custom Attribute */ customAttribute?: Array<{ /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ attribute_code?: string | Expression; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; /** Date of Birth */ dob?: string | Expression; /** Default Billing Address ID */ default_billing?: string | Expression | PlaceholderValue; /** Default Shipping Address ID */ default_shipping?: string | Expression | PlaceholderValue; /** Gender */ gender?: 1 | 2 | 3 | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ group_id?: string | Expression; /** Is Subscribed * @default false */ is_subscribed?: boolean | Expression; /** Middle Name */ middlename?: string | Expression | PlaceholderValue; /** Password */ password?: string | Expression | PlaceholderValue; /** Prefix */ prefix?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ store_id?: string | Expression; /** Suffix */ suffix?: string | Expression | PlaceholderValue; /** Vertex Customer Code */ vertex_customer_code?: string | Expression | PlaceholderValue; /** Vertex Customer Country */ vertex_customer_country?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { /operation: ["create"] } */ website_id?: string | Expression; }; }; export type Magento2V1CustomerUpdateNode = { type: 'n8n-nodes-base.magento2'; version: 1; credentials?: Credentials; config: NodeConfig; };