Address
In this section we provide an unified interface for both shipping and billing addresses;
Address properties
type Address = {
id: ID;
type: "default" | "shipping" | "billing";
customer_id: string;
customer: Customer;
line1: string;
line2?: string;
housenumber?: string;
street?: string;
city: string;
postal_code: string;
state?: string;
country: string;
name?: string; // fallback: customer name
email?: string; // fallback: customer email
created_at: Date | string;
updated_at: Date | string;
metadata: any;
};