{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"type":"object",
	"title":"CarrierTransactionEvent",
	"additionalProperties":false,
	"description":"Billing Event V1 - carrier transaction event",
	"properties":{
		"version":{
			"type":"string",
			"enum":[
				"v1"
			],
			"description":"Required version for this event"
		},
		"event_name":{
			"type":"string",
			"enum":[
				"CARRIER_TRANSACTION"
			],
			"description":"Required name for this event"
		},
		"schema_definition":{
			"type":"string",
			"enum":[
				"CarrierTransactionEvent"
			],
			"description":"Required schema name for this event"
		},
		"service_id":{
			"type":"string",
			"enum":[
				"subscription"
			],
			"description":"Required SNS service identifier for this event"
		},
		"process_time_utc_timestamp":{
			"type":"integer"
		},
		"carrier_code":{
			"$ref":"CarrierType.json"
		},
		"status":{
			"$ref":"TransactionType.json"
		},
		"ptn_md5_hash":{
			"type":"string"
		},
		"billing_id":{
			"type":"string",
			"description":"Billing User Id, a specific value for each PTN"
		},
		"offer_code":{
			"type":"string"
		},
		"soc_code":{
			"type":"string"
		},
		"charge_amount":{
			"type":"string"
		},
		"currency":{
			"type":"string"
		},
		"order_item_id":{
			"type":"string",
			"description":"A specific value for each initial purchase transaction"
		},
		"txn_id":{
			"type":"string",
			"description":"Original external purchase or renewal transaction ID"
		},
		"txn_utc_timestamp":{
			"type":"integer"
		},
		"txn_cycle_start_utc_timestamp":{
			"type":"integer"
		},
		"txn_cycle_end_utc_timestamp":{
			"type":"integer"
		},
		"unique_event_id":{
			"type":"string"
		}
		
	},
	"required":[
		"version",
		"event_name",
		"process_time_utc_timestamp",
		"carrier_code",
		"ptn_md5_hash",
		"billing_id",
		"offer_code",
		"status",
		"txn_utc_timestamp",
		"unique_event_id"
	]
}