customer.Class.CustomerService - typedoc2md/typedoc-plugin-markdown-examples GitHub Wiki
github-wiki-example / customer / CustomerService
Class: CustomerService
Defined in: customer.ts:143
Service for managing customers.
Constructors
Constructor
new CustomerService():
CustomerService
Returns
CustomerService
Methods
addCustomer()
addCustomer(
customer,contactInfo,billingInfo):CustomerAccount
Defined in: customer.ts:153
Add a new customer.
Parameters
| 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. |
Returns
The added customer account.
getAllCustomers()
getAllCustomers():
CustomerAccount[]
Defined in: customer.ts:171
Get all customer accounts.
Returns
An array of all customer accounts.
getCustomerById()
getCustomerById(
customerId):CustomerAccount
Defined in: customer.ts:180
Get a customer account by ID.
Parameters
| Parameter | Type | Description |
|---|---|---|
customerId |
string |
The ID of the customer. |
Returns
The customer account with the specified ID.