openpss / com.hendraanggrian.openpss.db.schemas / Customer

Customer

data class Customer : Document<Customers>, Numbered, Named

Types

Contact

data class Contact

Constructors

<init>

Customer(no: Int, name: String, isCompany: Boolean, since: LocalDate, address: String?, note: String?, contacts: List<Contact>)

Properties

address

var address: String?

contacts

var contacts: List<Contact>

id

lateinit var id: Id<String, Customers>

NoSQL object identifier.

isCompany

val isCompany: Boolean

name

var name: String

no

val no: Int

Since id is reserved in Document, no is direct replacement. Basically means the same thing.

note

var note: String?

since

val since: LocalDate

Functions

toString

fun toString(): String

Companion Object Functions

new

fun new(name: String, isCompany: Boolean): Customer