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