ClientsRecord

DOCUMENTSTOOLSFINANCIAL

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 nametypedetails
_namestringclient's name
_ssnstringthe social security number of the client
_addrethereum addressclient's address

addClientPurchase function called by the manager to add the purchase detail for an existing client

parameter nametypedetails
_ssnstringthe social security number of the client
_itemsinteger arraythe id of item bought by the client
_valueintegerthe 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 nametypedetails
_ssnstringthe social security number of the client
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract