Skip to main content

Class: Customer

internal.Customer

Base abstract entity for all entities

Hierarchy

Properties

beforeInsert

Private beforeInsert: any

Defined in

medusa/dist/models/customer.d.ts:18


billing_address

billing_address: Address

Defined in

medusa/dist/models/customer.d.ts:10


billing_address_id

billing_address_id: null | string

Defined in

medusa/dist/models/customer.d.ts:9


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:6


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

medusa/dist/interfaces/models/soft-deletable-entity.d.ts:3


email

email: string

Defined in

medusa/dist/models/customer.d.ts:6


first_name

first_name: string

Defined in

medusa/dist/models/customer.d.ts:7


groups

groups: CustomerGroup[]

Defined in

medusa/dist/models/customer.d.ts:16


has_account

has_account: boolean

Defined in

medusa/dist/models/customer.d.ts:14


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:5


last_name

last_name: string

Defined in

medusa/dist/models/customer.d.ts:8


metadata

metadata: Record<string, unknown>

Defined in

medusa/dist/models/customer.d.ts:17


orders

orders: Order[]

Defined in

medusa/dist/models/customer.d.ts:15


password_hash

password_hash: string

Defined in

medusa/dist/models/customer.d.ts:12


phone

phone: string

Defined in

medusa/dist/models/customer.d.ts:13


shipping_addresses

shipping_addresses: Address[]

Defined in

medusa/dist/models/customer.d.ts:11


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:7