Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
BaseEntityEx
Name string `json:"name"` // Account name
EnName string `json:"enName"` // Account english name
Type int `json:"type"` // Account type: STUDENT | PRIVATE | BUSINESS ...
Description string `json:"description"` // Account description
Status int `json:"status"` // Account status: UNDEFINED | ACTIVE | INACTIVE | BLOCKED | SUSPENDED
Phone string `json:"phone"` // Office / Landline phone
Mobile string `json:"mobile"` // Mobile phone
Email string `json:"email"` // Email address
Address Address `json:"address"` // Address
CampaignId string `json:"campaignId"` // Campaign Id
CurrentCredit float64 `json:"currentCredit"` // Current account credit
BaseRate float64 `json:"baseRate"` // Base rate for billing
Discount int `json:"discount"` // Permanent discount (percentage)
InvoiceId string `json:"invoiceId"` // Green invoice Id
}
Account entity is a billing account in the system @Entity: account
type Address ¶
type Address struct {
Street string `json:"street"` // Street address
City string `json:"city"` // City
State string `json:"state"` // State (if applicable)
ZipCode string `json:"zipCode"` // Local zip code (postal cod)
Country string `json:"country"` // Country name
}
Address model represents an address @Data
Click to show internal directories.
Click to hide internal directories.