1/**
2 * Copyright 2016 IBM Corp.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *    http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/**
18 * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY
19 */
20
21package datatypes
22
23// The presale event data types indicate the information regarding an individual presale event. The '''locationId''' will indicate the datacenter associated with the presale event. The '''itemId''' will indicate the product item associated with a particular presale event - however these are more rare. The '''startDate''' and '''endDate''' will provide information regarding when the presale event is available for use. At the end of the presale event, the server or services purchased will be available once approved and provisioned.
24type Sales_Presale_Event struct {
25	Entity
26
27	// A flag to indicate that the presale event is currently active. A presale event is active if the current time is between the start and end dates.
28	ActiveFlag *bool `json:"activeFlag,omitempty" xmlrpc:"activeFlag,omitempty"`
29
30	// Description of the presale event.
31	Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"`
32
33	// End date of the presale event. Orders can be approved and provisioned after this date.
34	EndDate *Time `json:"endDate,omitempty" xmlrpc:"endDate,omitempty"`
35
36	// A flag to indicate that the presale event is expired. A presale event is expired if the current time is after the end date.
37	ExpiredFlag *bool `json:"expiredFlag,omitempty" xmlrpc:"expiredFlag,omitempty"`
38
39	// Presale event unique identifier.
40	Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"`
41
42	// The [[SoftLayer_Product_Item]] associated with the presale event.
43	Item *Product_Item `json:"item,omitempty" xmlrpc:"item,omitempty"`
44
45	// [[SoftLayer_Product_Item]] id associated with the presale event.
46	ItemId *int `json:"itemId,omitempty" xmlrpc:"itemId,omitempty"`
47
48	// The [[SoftLayer_Location]] associated with the presale event.
49	Location *Location `json:"location,omitempty" xmlrpc:"location,omitempty"`
50
51	// [[SoftLayer_Location]] id for the presale event.
52	LocationId *int `json:"locationId,omitempty" xmlrpc:"locationId,omitempty"`
53
54	// A count of the orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.
55	OrderCount *uint `json:"orderCount,omitempty" xmlrpc:"orderCount,omitempty"`
56
57	// The orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.
58	Orders []Billing_Order `json:"orders,omitempty" xmlrpc:"orders,omitempty"`
59
60	// Start date of the presale event. Orders cannot be approved before this date.
61	StartDate *Time `json:"startDate,omitempty" xmlrpc:"startDate,omitempty"`
62}
63