-
Notifications
You must be signed in to change notification settings - Fork 1
customer.Class.CustomerService
tgreyuk edited this page Mar 23, 2025
·
9 revisions
github-wiki-example / customer / CustomerService
Defined in: customer.ts:143
Service for managing customers.
new CustomerService():
CustomerService
CustomerService
addCustomer(
customer
,contactInfo
,billingInfo
):CustomerAccount
Defined in: customer.ts:153
Add a new customer.
Parameter | Type | Description |
---|---|---|
customer |
Customer |
The customer to be added. |
contactInfo |
CustomerContact |
The contact information for the customer. |
billingInfo |
CustomerBilling |
The billing information for the customer. |
The added customer account.
getAllCustomers():
CustomerAccount
[]
Defined in: customer.ts:171
Get all customer accounts.
An array of all customer accounts.
getCustomerById(
customerId
):CustomerAccount
Defined in: customer.ts:180
Get a customer account by ID.
Parameter | Type | Description |
---|---|---|
customerId |
string |
The ID of the customer. |
The customer account with the specified ID.