commit a1cb4e49500133ea26e20deeebdd004a89b66f5a Author: Cyclops Labs Date: Thu Apr 18 03:19:34 2019 +0000 Added new file diff --git a/types.go b/types.go new file mode 100644 index 0000000..47752f7 --- /dev/null +++ b/types.go @@ -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"` +}