new module:models/CustomerRegistration(customer)
Constructs a new CustomerRegistration.
Document representing the registration information for a customer.
Parameters:
| Name | Type | Description |
|---|---|---|
customer |
module:models/Customer | The customer registration information. The mandatory properties for registration are login, last name and email. |
- Source:
Members
(inner) customer :module:models/Customer
The customer registration information. The mandatory properties for registration are login, last name and email.
Type:
- Source:
(inner) password :String
The password to authorize.
Type:
- String
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/CustomerRegistration}
Constructs a CustomerRegistration from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/CustomerRegistration | Optional instance to populate. |
- Source:
Returns:
The populated CustomerRegistration instance.