@htmlbricks/hb-page-checkout 0.8.34 → 0.8.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$ref": "#/definitions/Component",
2
3
  "$schema": "http://json-schema.org/draft-07/schema#",
3
4
  "definitions": {
4
5
  "Component": {
@@ -90,40 +91,6 @@
90
91
  ],
91
92
  "type": "object"
92
93
  },
93
- "Events": {
94
- "additionalProperties": false,
95
- "properties": {
96
- "paymentCompleted": {
97
- "additionalProperties": false,
98
- "properties": {
99
- "completed": {
100
- "const": true,
101
- "type": "boolean"
102
- },
103
- "method": {
104
- "type": "string"
105
- },
106
- "total": {
107
- "type": "number"
108
- }
109
- },
110
- "required": [
111
- "total",
112
- "method",
113
- "completed"
114
- ],
115
- "type": "object"
116
- },
117
- "saveUser": {
118
- "$ref": "#/definitions/IUser"
119
- }
120
- },
121
- "required": [
122
- "saveUser",
123
- "paymentCompleted"
124
- ],
125
- "type": "object"
126
- },
127
94
  "IGateway": {
128
95
  "additionalProperties": false,
129
96
  "properties": {
@@ -175,36 +142,6 @@
175
142
  ],
176
143
  "type": "object"
177
144
  },
178
- "IPayment": {
179
- "additionalProperties": false,
180
- "properties": {
181
- "countryCode": {
182
- "type": "string"
183
- },
184
- "currencyCode": {
185
- "type": "string"
186
- },
187
- "merchantName": {
188
- "type": "string"
189
- },
190
- "shipmentFee": {
191
- "type": "number"
192
- },
193
- "total": {
194
- "type": "number"
195
- },
196
- "type": {
197
- "$ref": "#/definitions/IPaymentType"
198
- }
199
- },
200
- "required": [
201
- "merchantName",
202
- "total",
203
- "currencyCode",
204
- "countryCode"
205
- ],
206
- "type": "object"
207
- },
208
145
  "IPaymentType": {
209
146
  "enum": [
210
147
  "book",
@@ -287,40 +224,6 @@
287
224
  ],
288
225
  "type": "object"
289
226
  },
290
- "IShoppingPayment": {
291
- "additionalProperties": false,
292
- "properties": {
293
- "countryCode": {
294
- "enum": [
295
- "IT",
296
- "US",
297
- "EU"
298
- ],
299
- "type": "string"
300
- },
301
- "currencySymbol": {
302
- "enum": [
303
- "€",
304
- "$"
305
- ],
306
- "type": "string"
307
- },
308
- "items": {
309
- "items": {
310
- "$ref": "#/definitions/IShopItem"
311
- },
312
- "type": "array"
313
- },
314
- "shipmentFee": {
315
- "type": "number"
316
- }
317
- },
318
- "required": [
319
- "countryCode",
320
- "items"
321
- ],
322
- "type": "object"
323
- },
324
227
  "IUser": {
325
228
  "additionalProperties": false,
326
229
  "properties": {
@@ -0,0 +1,67 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "paymentCompleted": {
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "completed": {
12
+ "const": true,
13
+ "type": "boolean"
14
+ },
15
+ "method": {
16
+ "type": "string"
17
+ },
18
+ "total": {
19
+ "type": "number"
20
+ }
21
+ },
22
+ "required": [
23
+ "total",
24
+ "method",
25
+ "completed"
26
+ ],
27
+ "type": "object"
28
+ },
29
+ "saveUser": {
30
+ "$ref": "#/definitions/IUser"
31
+ }
32
+ },
33
+ "required": [
34
+ "saveUser",
35
+ "paymentCompleted"
36
+ ],
37
+ "type": "object"
38
+ },
39
+ "IUser": {
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "addressWithNumber": {
43
+ "type": "string"
44
+ },
45
+ "city": {
46
+ "type": "string"
47
+ },
48
+ "fixed": {
49
+ "type": "boolean"
50
+ },
51
+ "fullName": {
52
+ "type": "string"
53
+ },
54
+ "nationality": {
55
+ "type": "string"
56
+ },
57
+ "zip": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "fullName"
63
+ ],
64
+ "type": "object"
65
+ }
66
+ }
67
+ }