/
1-0-0
79 lines (79 loc) · 2.47 KB
/
1-0-0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a transaction entity in Ecommerce",
"self": {
"vendor": "com.snowplowanalytics.snowplow.ecommerce",
"name": "transaction",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"transaction_id": {
"description": "The ID of the transaction.",
"type": "string",
"maxLength": 4096
},
"revenue" : {
"type": "number",
"description": "The revenue of the transaction.",
"multipleOf": 0.01,
"minimum": 0.00,
"maximum": 9999999
},
"currency": {
"type": "string",
"description": "The currency used for the transaction (ISO 4217).",
"maxLength": 3,
"minLength": 3
},
"payment_method": {
"type": "string",
"description": "The payment method used for the transaction.",
"maxLength": 128
},
"total_quantity": {
"type": "integer",
"description": "Total quantity of items in the transaction.",
"minimum": 0,
"maximum": 9999999
},
"tax": {
"type": ["number","null"],
"description": "Total amount of tax on the transaction.",
"minimum": 0,
"multipleOf": 0.01,
"maximum": 9999999
},
"shipping": {
"type": ["number", "null"],
"description": "Total cost of shipping on the transaction.",
"minimum": 0,
"multipleOf": 0.01,
"maximum": 9999999
},
"discount_code": {
"type": [
"string",
"null"
],
"description": "Discount code used.",
"maxLength": 99
},
"discount_amount": {
"type": ["number","null"],
"description": "Discount amount taken off.",
"minimum": 0,
"multipleOf": 0.01,
"maximum": 9999999
},
"credit_order": {
"type" : ["boolean","null"],
"description": "Whether the transaction is a credit order or not."
}
},
"required": [
"transaction_id", "revenue", "payment_method", "currency", "total_quantity"
],
"additionalProperties": false
}