{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"Pay",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. Pay object to capture payment information",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["PAY"]
		},
		"schema_definition":{
			"type": "string",
			"enum": ["Pay"]
		},
		"event_type":{
			"type": "string",
			"enum": ["USER_EVENT", "SYSTEM_EVENT"],
			"description":"To identify if the event is triggered by the system or by a user interaction"
		},
		"event_descriptor":{
			"$ref":"/resources/schema/analytics/client/v3/EventDescriptorValues.json",
			"description":"The identify the trigger of user interaction"
		},
		"event_zone":{
			"$ref":"/resources/schema/analytics/client/v3/EventZoneValues.json",
			"description":"The identify the zone from which user interaction happened"
		},
		"user_interaction":{
			"$ref":"/resources/schema/analytics/client/v3/UserInteractionValues.json",
			"description":"The identify the user interaction type"
		},
		"event_module":{
			"$ref":"/resources/schema/analytics/client/v3/EventModuleValues.json",
			"description":"The identify the screen position where the event occured"
		},
		"event_position":{
			"type":"integer",
			"description":"The position of the user selection in a list. Default value is 0 for events where list is not relevant."
		},
		"event_label":{
			"type":"string",
			"description":"The label of the button or the icon interacted with"
		},
		"event_environment":{
			"type":"string",
			"enum": ["CAR_PLAY", "MOBILE"],
			"description":"To identify is event happened on the mobile app or when connected to Car Play"
		},
		"page_title":{
			"type":"string",
			"description":"The identify the screen where the event occured. This is the URL for the screen/page"
		},
		"order_value":{
			"type":"number",
			"description":"The amount paid by the user"
		},
		"currency":{
			"type":"string",
			"enum": ["USD", "EUR"],
			"description":"To identify the currency of the payment"
		},
		"payment_type":{
			"$ref":"/resources/schema/analytics/client/v3/PaymentTypeValues.json",
			"description":"To identify the payment type"	
		},
		"payment_status":{
			"$ref":"/resources/schema/analytics/client/v3/PaymentStatusValues.json",
			"description":"To identify the payment status"	
		},
		"merchant":{
			"$ref":"/resources/schema/analytics/client/v3/MerchantValues.json",
			"description":"To identify the service supplier"
		},
		"product_category":{
			"$ref":"/resources/schema/analytics/client/v3/CategoryType.json",
			"description":"The category of the product ordered"
		},
		"card_type":{
			"$ref":"/resources/schema/analytics/client/v3/CardTypeValues.json",
			"description":"The identify the card type"
		},
		"first_time":{
			"type":"string",
			"enum": ["YES", "NO", "NONE"],
			"description":"To identify if it is the first time the user pays"
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"event_type",
		"event_zone",
		"event_module",
		"event_label",
		"order_value",
		"currency",
		"payment_status"
	]
}