typedoc-vitepress-theme-example / customer / CustomerAccount
CustomerAccount
Class representing a customer account.
Constructors
new CustomerAccount(customer, contactInfo, billingInfo)
ts
new CustomerAccount(
customer,
contactInfo,
billingInfo): CustomerAccount
Parameters
• customer: Customer
• contactInfo: CustomerContact
• billingInfo: CustomerBilling
Returns
Properties
billingInfo
ts
private billingInfo: CustomerBilling;
contactInfo
ts
private contactInfo: CustomerContact;
customer
ts
private customer: Customer;
orderHistory
ts
private orderHistory: CustomerOrderHistory[];
Methods
addOrderToHistory()
ts
addOrderToHistory(order): void
Add an order to the customer's order history.
Parameters
• order: CustomerOrderHistory
The order to be added to the history.
Returns
void
getBillingInfo()
ts
getBillingInfo(): CustomerBilling
Get the customer billing information.
Returns
The customer billing information.
getContactInfo()
ts
getContactInfo(): CustomerContact
Get the customer contact information.
Returns
The customer contact information.
getCustomer()
ts
getCustomer(): Customer
Get the customer information.
Returns
The customer information.
getOrderHistory()
ts
getOrderHistory(): CustomerOrderHistory[]
Get the customer's order history.
Returns
An array of the customer's order history.