
Contract purpose
This smart contract keeps a record of clients for a store.
Exposed methods and variables
manager address of system manager
addClient called by the system to add a new client record
parameter name | type | details |
---|---|---|
_name | string | client's name |
_ssn | string | the social security number of the client |
_addr | ethereum address | client's address |
addClientPurchase function called by the manager to add the purchase detail for an existing client
parameter name | type | details |
---|---|---|
_ssn | string | the social security number of the client |
_items | integer array | the id of item bought by the client |
_value | integer | the sum the client paid |
getClientDetails this client returns the name, address, purchased items IDs and the sum of money spent for a client identified by his SSN
parameter name | type | details |
---|---|---|
_ssn | string | the social security number of the client |