{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"PlanUpgrade",
	"type":"object",
	"additionalProperties":false,
	"description":"TAnalytics-v1",
	"properties":{
		"Type":{
			"enum":[
				"PROMO",
				"PAID"
			],
			"description":"Whether upgrade was done to promo or paid"
		},
		"Price":{
			"type":"number",
			"description":"Optional Price to upgrade"
		},
		"RenewalCycle":{
			"enum":[
				"DAILY",
				"MONTHLY",
				"ANNUAL",
				"ANNUAL_ONETIME",
				"LIFETIME"
			],
			"description":"Optional Renewal cycle of the plan"
		},
		"StartTime":{
			"type":"number",
			"description":"Required Start time of the offer"
		},
		"ExpiryTime":{
			"type":"number",
			"description":"Optional Time when the offer expires"
		},
		"SubExternalID":{
			"type":"string",
			"description":"Optional Subscriber's external ID from carrier, if and when available"
		}
		
	},
	"required":[
		"Type",
		"StartTime"
	]
}