@htmlbricks/hb-page-checkout 0.8.35 → 0.8.42

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
+ }
@@ -1,89 +0,0 @@
1
- {
2
- "storybookArgs": {
3
- "shipments": {
4
- "control": {
5
- "type": "array"
6
- }
7
- },
8
- "user": {
9
- "control": {
10
- "type": "object"
11
- }
12
- },
13
- "payment": {
14
- "control": {
15
- "type": "object"
16
- }
17
- },
18
- "paymentCompleted": {
19
- "action": "paymentCompleted"
20
- },
21
- "saveUser": {
22
- "action": "saveUser"
23
- },
24
- "gateways": {
25
- "control": {
26
- "type": "array"
27
- }
28
- },
29
- "completed": {
30
- "control": {
31
- "type": "radio"
32
- },
33
- "options": [
34
- "yes",
35
- "no"
36
- ]
37
- }
38
- },
39
- "styleSetup": {
40
- "vars": [
41
- {
42
- "name": "--hb-checkout-border",
43
- "description": "",
44
- "defaultValue": "0.5px solid rgba(197, 197, 197, 0.808)",
45
- "valueType": "string"
46
- },
47
- {
48
- "name": "--bs-primary",
49
- "valueType": "color",
50
- "theme": "bootstrap",
51
- "defaultValue": "#07689f"
52
- },
53
- {
54
- "name": "--bs-secondary",
55
- "valueType": "color",
56
- "theme": "bootstrap",
57
- "defaultValue": "#c9d6df"
58
- },
59
- {
60
- "name": "--bs-success",
61
- "valueType": "color",
62
- "theme": "bootstrap",
63
- "defaultValue": "#11d3bc"
64
- },
65
- {
66
- "name": "--bs-info",
67
- "valueType": "color",
68
- "theme": "bootstrap",
69
- "defaultValue": "#a2d5f2"
70
- },
71
- {
72
- "name": "--bs-warning",
73
- "valueType": "color",
74
- "theme": "bootstrap",
75
- "defaultValue": "#ffc107"
76
- },
77
- {
78
- "name": "--bs-danger",
79
- "valueType": "color",
80
- "theme": "bootstrap",
81
- "defaultValue": "#f67280"
82
- }
83
- ],
84
- "parts": []
85
- },
86
- "htmlSlots": [],
87
- "i18n": [],
88
- "examples": []
89
- }