A small project which contains pertinent data types used in the golang implementation of cyclops components.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
types/types.go

73 lines
2.8 KiB

//
// A basic package that facilitates interactions with the Cyclops
// customer db - these types are used within the customer DB itself
// as well as clients of the customer DB.
//
// (C) Cyclops Labs 2019
//
package types
type Product struct {
ProductId string `json:"productId"`
CustomerId string `json:"customerId"`
Name string `json:"name"`
Type string `json:"type"`
Discount string `json:"discount"`
CancelDate string `json:"cancelDate"`
Billable string `json:"billable"`
ApiLink string `json:"apiLink"`
}
type OSProjectObject struct {
ProjectName string `json:"projectName"`
ProjectID string `json:"projectId"`
LdapID string `json:"ldapId"`
Billable string `json:"billable"`
IsActive string `json:"isActive"`
}
type Customer struct {
CustomerId string `json:"customerId"`
ResellerId string `json:"resellerId"`
Name string `json:"name"`
Address string `json:"address"`
BillContact string `json:"billContact"`
Discount string `json:"discount"`
BillPeriod string `json:"billPeriod"`
BillCurrency string `json:"billCurrency"`
InvoiceMode string `json:"invoiceMode"`
EmailTo string `json:"emailTo"`
EmailCc string `json:"emailCc"`
EmailBcc string `json:"emailBcc"`
IsActive string `json:"isActive"`
CancelDate string `json:"cancelDate"`
Gender string `json:"gender"`
Language string `json:"language"`
Products []Product `json:"products"`
ApiLink string `json:"apiLink"`
Billable string `json:"billable"`
OSProjects []OSProjectObject `json:"osProjects"`
}
type Reseller struct {
ResellerId string `json:"resellerId"`
Name string `json:"name"`
Address string `json:"address"`
BillContact string `json:"billContact"`
Discount string `json:"discount"`
BillPeriod string `json:"billPeriod"`
BillCurrency string `json:"billCurrency"`
InvoiceMode string `json:"invoiceMode"`
EmailTo string `json:"emailTo"`
EmailCc string `json:"emailCc"`
EmailBcc string `json:"emailBcc"`
IsActive string `json:"isActive"`
CancelDate string `json:"cancelDate"`
Gender string `json:"gender"`
Language string `json:"language"`
Customers []Customer `json:"customers"`
ApiLink string `json:"apiLink"`
Billable string `json:"billable"`
DomainId string `json:"domainId"`
OSProjects []OSProjectObject `json:"osProjects"`
}