commit
a1cb4e4950
@ -0,0 +1,68 @@ |
||||
// A basic package that facilitates interactions with the cyclops customer db
|
||||
// This package provides
|
||||
|
||||
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"` |
||||
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"` |
||||
} |
Loading…
Reference in new issue