-
Notifications
You must be signed in to change notification settings - Fork 3
customer.Class.CustomerAccount
github-wiki-example / customer / CustomerAccount
Defined in: customer.ts:76
Class representing a customer account. Manages and integrates different aspects of customer data and interactions with the business.
new CustomerAccount(
customer
,contactInfo
,billingInfo
):CustomerAccount
Defined in: customer.ts:88
Constructs a new CustomerAccount instance.
Parameter | Type | Description |
---|---|---|
customer |
Customer |
Basic customer profile information. |
contactInfo |
CustomerContact |
Contact details for the customer. |
billingInfo |
CustomerBilling |
Customer's billing information. |
CustomerAccount
addOrderToHistory(
order
):void
Defined in: customer.ts:127
Adds a new order to the customer's historical record.
Parameter | Type | Description |
---|---|---|
order |
CustomerOrderHistory |
The order to be added to the history. |
void
getBillingInfo():
CustomerBilling
Defined in: customer.ts:119
Retrieves the billing information of the customer.
The billing details.
getContactInfo():
CustomerContact
Defined in: customer.ts:111
Retrieves the contact information of the customer.
The contact details.
getCustomer():
Customer
Defined in: customer.ts:103
Retrieves the stored customer profile information.
The customer's profile data.
getOrderHistory():
CustomerOrderHistory
[]
Defined in: customer.ts:135
Retrieves the full history of orders made by the customer.
An array of order history records.