Documentation
¶
Index ¶
Constants ¶
const ( // SkuPriceAccountingModeCREDIT captures enum value "CREDIT" SkuPriceAccountingModeCREDIT string = "CREDIT" // SkuPriceAccountingModeCASH captures enum value "CASH" SkuPriceAccountingModeCASH string = "CASH" // SkuPriceAccountingModeBOTH captures enum value "BOTH" SkuPriceAccountingModeBOTH string = "BOTH" // SkuPriceAccountingModeNONE captures enum value "NONE" SkuPriceAccountingModeNONE string = "NONE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Cycle struct {
// ID
ID string `json:"ID,omitempty" gorm:"primary_key;unique;default:md5(random()::text || clock_timestamp()::text)::uuid"`
// resource type
// Required: true
ResourceType *string `json:"ResourceType"`
// sku list
// Required: true
SkuList datamodels.JSONdb `json:"SkuList" gorm:"type:jsonb"`
// state
// Required: true
State *string `json:"State"`
}
Cycle cycle
swagger:model Cycle
func (*Cycle) MarshalBinary ¶
MarshalBinary interface implementation
func (*Cycle) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct {
// error string
// Required: true
ErrorString *string `json:"errorString"`
}
ErrorResponse error response
swagger:model ErrorResponse
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemCreatedResponse ¶
type ItemCreatedResponse struct {
// ID
ID string `json:"ID,omitempty"`
// link
Link string `json:"Link,omitempty"`
// message
Message string `json:"Message,omitempty"`
}
ItemCreatedResponse item created response
swagger:model ItemCreatedResponse
func (*ItemCreatedResponse) MarshalBinary ¶
func (m *ItemCreatedResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ItemCreatedResponse) UnmarshalBinary ¶
func (m *ItemCreatedResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Plan ¶
type Plan struct {
// discount
Discount float64 `json:"Discount,omitempty" gorm:"type:numeric(23,13);default:0.0"`
// ID
ID string `json:"ID,omitempty" gorm:"primary_key;unique;default:md5(random()::text || clock_timestamp()::text)::uuid"`
// name
// Required: true
Name *string `json:"Name"`
// offered end date
// Required: true
// Format: date
OfferedEndDate *strfmt.Date `json:"OfferedEndDate" gorm:"type:date"`
// offered start date
// Required: true
// Format: date
OfferedStartDate *strfmt.Date `json:"OfferedStartDate" gorm:"type:date"`
// sku prices
SkuPrices []*SkuPrice `json:"SkuPrices" gorm:"-"`
}
Plan plan
swagger:model Plan
func (*Plan) MarshalBinary ¶
MarshalBinary interface implementation
func (*Plan) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Sku ¶
type Sku struct {
// ID
ID string `json:"ID,omitempty" gorm:"primary_key;unique;default:md5(random()::text || clock_timestamp()::text)::uuid"`
// name
// Required: true
Name *string `json:"Name"`
// unit
Unit string `json:"Unit,omitempty"`
}
Sku sku
swagger:model Sku
func (*Sku) MarshalBinary ¶
MarshalBinary interface implementation
func (*Sku) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SkuBundle ¶
type SkuBundle struct {
// ID
ID string `json:"ID,omitempty" gorm:"primary_key;unique;default:md5(random()::text || clock_timestamp()::text)::uuid"`
// name
// Required: true
Name *string `json:"Name"`
// sku prices
SkuPrices datamodels.JSONdb `json:"SkuPrices,omitempty" gorm:"type:jsonb"`
}
SkuBundle sku bundle
swagger:model SkuBundle
func (*SkuBundle) MarshalBinary ¶
MarshalBinary interface implementation
func (*SkuBundle) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SkuPrice ¶
type SkuPrice struct {
// accounting mode
// Enum: [CREDIT CASH BOTH NONE]
AccountingMode *string `json:"AccountingMode,omitempty" gorm:"index;default:CREDIT"`
// discount
Discount float64 `json:"Discount,omitempty" gorm:"type:numeric(23,13);default:0.0"`
// ID
ID string `json:"ID,omitempty" gorm:"primary_key;unique;default:md5(random()::text || clock_timestamp()::text)::uuid"`
// plan ID
// Required: true
PlanID *string `json:"PlanID"`
// sku ID
// Required: true
SkuID *string `json:"SkuID"`
// sku name
SkuName string `json:"SkuName,omitempty"`
// unit
// Required: true
Unit *string `json:"Unit"`
// unit credit price
UnitCreditPrice float64 `json:"UnitCreditPrice,omitempty" gorm:"type:numeric(23,13)"`
// unit price
// Required: true
UnitPrice *float64 `json:"UnitPrice" gorm:"type:numeric(23,13)"`
}
SkuPrice sku price
swagger:model SkuPrice
func (*SkuPrice) MarshalBinary ¶
MarshalBinary interface implementation
func (*SkuPrice) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Status ¶
type Status struct {
// average response time
AverageResponseTime float64 `json:"AverageResponseTime,omitempty"`
// d b state
DBState string `json:"DBState,omitempty"`
// last request
LastRequest string `json:"LastRequest,omitempty"`
// requests bo t
RequestsBoT int64 `json:"RequestsBoT,omitempty"`
// requests last hour
RequestsLastHour int64 `json:"RequestsLastHour,omitempty"`
// requests today
RequestsToday int64 `json:"RequestsToday,omitempty"`
// system state
// Required: true
SystemState *string `json:"SystemState"`
}
Status status
swagger:model Status
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation