Data model

Oversimplified class diagram of Customers APIOversimplified class diagram of Customers API

Oversimplified class diagram of Customers API

Customer

Represents a customer of in service.

Party

Represents a single entity as part of the customer. It can be of type person, organization and undefined(if we don't know what it represents yet).

Confused?
Some examples might be helpful.

  • If a marriage applies for a loan it will be represented by one customer and two parties of type person.
  • If an LLC signs a contract it will be represented by one customer, a party for the LLC and a party for every person that signs the contract.
  • If nine year old tries to register (unsuccessfully of course on a cryptocurrency exchange they'll be represented as a customer and a party of type person.