@htmlbricks/hb-checkout 0.8.37 → 0.8.43

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.
@@ -0,0 +1,527 @@
1
+ {
2
+ "definitions": {
3
+ "events": {
4
+ "$ref": "#/definitions/Events",
5
+ "$schema": "http://json-schema.org/draft-07/schema#",
6
+ "definitions": {
7
+ "Events": {
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "completed": {
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "control": {
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "type": {
17
+ "const": "radio",
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": [
22
+ "type"
23
+ ],
24
+ "type": "object"
25
+ },
26
+ "options": {
27
+ "items": [
28
+ {
29
+ "const": "yes",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "const": "no",
34
+ "type": "string"
35
+ }
36
+ ],
37
+ "maxItems": 2,
38
+ "minItems": 2,
39
+ "type": "array"
40
+ }
41
+ },
42
+ "required": [
43
+ "control",
44
+ "options"
45
+ ],
46
+ "type": "object"
47
+ },
48
+ "paymentCompleted": {
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "completed": {
52
+ "const": true,
53
+ "type": "boolean"
54
+ },
55
+ "method": {
56
+ "type": "string"
57
+ },
58
+ "total": {
59
+ "type": "number"
60
+ }
61
+ },
62
+ "required": [
63
+ "total",
64
+ "method",
65
+ "completed"
66
+ ],
67
+ "type": "object"
68
+ },
69
+ "saveShipment": {
70
+ "$ref": "#/definitions/IShipment"
71
+ },
72
+ "saveUser": {
73
+ "$ref": "#/definitions/IUser"
74
+ }
75
+ },
76
+ "required": [
77
+ "paymentCompleted",
78
+ "saveUser",
79
+ "saveShipment",
80
+ "completed"
81
+ ],
82
+ "type": "object"
83
+ },
84
+ "IShipment": {
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "arriveDate": {
88
+ "format": "date-time",
89
+ "type": "string"
90
+ },
91
+ "available": {
92
+ "type": "boolean"
93
+ },
94
+ "currency": {
95
+ "type": "string"
96
+ },
97
+ "id": {
98
+ "type": "string"
99
+ },
100
+ "label": {
101
+ "type": "string"
102
+ },
103
+ "price": {
104
+ "type": "number"
105
+ },
106
+ "selected": {
107
+ "type": "boolean"
108
+ },
109
+ "standard": {
110
+ "type": "boolean"
111
+ }
112
+ },
113
+ "required": [
114
+ "price",
115
+ "arriveDate",
116
+ "available",
117
+ "id",
118
+ "label",
119
+ "currency"
120
+ ],
121
+ "type": "object"
122
+ },
123
+ "IUser": {
124
+ "additionalProperties": false,
125
+ "properties": {
126
+ "addressWithNumber": {
127
+ "type": "string"
128
+ },
129
+ "city": {
130
+ "type": "string"
131
+ },
132
+ "fixed": {
133
+ "type": "boolean"
134
+ },
135
+ "fullName": {
136
+ "type": "string"
137
+ },
138
+ "nationality": {
139
+ "type": "string"
140
+ },
141
+ "zip": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "required": [
146
+ "fullName"
147
+ ],
148
+ "type": "object"
149
+ }
150
+ }
151
+ },
152
+ "component": {
153
+ "$ref": "#/definitions/Component",
154
+ "$schema": "http://json-schema.org/draft-07/schema#",
155
+ "definitions": {
156
+ "Component": {
157
+ "additionalProperties": false,
158
+ "properties": {
159
+ "completed": {
160
+ "enum": [
161
+ "yes",
162
+ "no"
163
+ ],
164
+ "type": "string"
165
+ },
166
+ "gateways": {
167
+ "items": {
168
+ "$ref": "#/definitions/IGateway"
169
+ },
170
+ "type": "array"
171
+ },
172
+ "id": {
173
+ "type": "string"
174
+ },
175
+ "payment": {
176
+ "$ref": "#/definitions/IPayment"
177
+ },
178
+ "shipments": {
179
+ "items": {
180
+ "$ref": "#/definitions/IShipment"
181
+ },
182
+ "type": "array"
183
+ },
184
+ "style": {
185
+ "type": "string"
186
+ },
187
+ "user": {
188
+ "$ref": "#/definitions/IUser"
189
+ }
190
+ },
191
+ "required": [
192
+ "shipments",
193
+ "gateways",
194
+ "payment"
195
+ ],
196
+ "type": "object"
197
+ },
198
+ "IGateway": {
199
+ "additionalProperties": false,
200
+ "properties": {
201
+ "cardNetworks": {
202
+ "items": {
203
+ "type": "string"
204
+ },
205
+ "type": "array"
206
+ },
207
+ "currency": {
208
+ "enum": [
209
+ "€",
210
+ "$"
211
+ ],
212
+ "type": "string"
213
+ },
214
+ "fixedPrice": {
215
+ "type": "number"
216
+ },
217
+ "gatewayId": {
218
+ "type": "string"
219
+ },
220
+ "gatewayMerchantId": {
221
+ "type": "string"
222
+ },
223
+ "id": {
224
+ "enum": [
225
+ "google",
226
+ "paypal"
227
+ ],
228
+ "type": "string"
229
+ },
230
+ "label": {
231
+ "type": "string"
232
+ },
233
+ "merchantId": {
234
+ "type": "string"
235
+ },
236
+ "paypalid": {
237
+ "type": "string"
238
+ },
239
+ "percentagePrice": {
240
+ "type": "number"
241
+ }
242
+ },
243
+ "required": [
244
+ "id",
245
+ "label"
246
+ ],
247
+ "type": "object"
248
+ },
249
+ "IPayment": {
250
+ "additionalProperties": false,
251
+ "properties": {
252
+ "countryCode": {
253
+ "type": "string"
254
+ },
255
+ "currencyCode": {
256
+ "type": "string"
257
+ },
258
+ "merchantName": {
259
+ "type": "string"
260
+ },
261
+ "shipmentFee": {
262
+ "type": "number"
263
+ },
264
+ "total": {
265
+ "type": "number"
266
+ },
267
+ "type": {
268
+ "$ref": "#/definitions/IPaymentType"
269
+ }
270
+ },
271
+ "required": [
272
+ "merchantName",
273
+ "total",
274
+ "currencyCode",
275
+ "countryCode"
276
+ ],
277
+ "type": "object"
278
+ },
279
+ "IPaymentType": {
280
+ "enum": [
281
+ "book",
282
+ "buy",
283
+ "checkout",
284
+ "donate",
285
+ "order",
286
+ "pay",
287
+ "plain",
288
+ "subscribe"
289
+ ],
290
+ "type": "string"
291
+ },
292
+ "IShipment": {
293
+ "additionalProperties": false,
294
+ "properties": {
295
+ "arriveDate": {
296
+ "format": "date-time",
297
+ "type": "string"
298
+ },
299
+ "available": {
300
+ "type": "boolean"
301
+ },
302
+ "currency": {
303
+ "type": "string"
304
+ },
305
+ "id": {
306
+ "type": "string"
307
+ },
308
+ "label": {
309
+ "type": "string"
310
+ },
311
+ "price": {
312
+ "type": "number"
313
+ },
314
+ "selected": {
315
+ "type": "boolean"
316
+ },
317
+ "standard": {
318
+ "type": "boolean"
319
+ }
320
+ },
321
+ "required": [
322
+ "price",
323
+ "arriveDate",
324
+ "available",
325
+ "id",
326
+ "label",
327
+ "currency"
328
+ ],
329
+ "type": "object"
330
+ },
331
+ "IUser": {
332
+ "additionalProperties": false,
333
+ "properties": {
334
+ "addressWithNumber": {
335
+ "type": "string"
336
+ },
337
+ "city": {
338
+ "type": "string"
339
+ },
340
+ "fixed": {
341
+ "type": "boolean"
342
+ },
343
+ "fullName": {
344
+ "type": "string"
345
+ },
346
+ "nationality": {
347
+ "type": "string"
348
+ },
349
+ "zip": {
350
+ "type": "string"
351
+ }
352
+ },
353
+ "required": [
354
+ "fullName"
355
+ ],
356
+ "type": "object"
357
+ }
358
+ }
359
+ }
360
+ },
361
+ "storybookArgs": {
362
+ "shipments": {
363
+ "control": {
364
+ "type": "array"
365
+ }
366
+ },
367
+ "user": {
368
+ "control": {
369
+ "type": "object"
370
+ }
371
+ },
372
+ "payment": {
373
+ "control": {
374
+ "type": "object"
375
+ }
376
+ },
377
+ "paymentCompleted": {
378
+ "action": "paymentCompleted"
379
+ },
380
+ "saveUser": {
381
+ "action": "saveUser"
382
+ },
383
+ "saveShipment": {
384
+ "action": "saveShipment"
385
+ },
386
+ "gateways": {
387
+ "control": {
388
+ "type": "array"
389
+ }
390
+ },
391
+ "setGateway": {
392
+ "action": "setGateway"
393
+ },
394
+ "completed": {
395
+ "control": {
396
+ "type": "radio"
397
+ },
398
+ "options": [
399
+ "yes",
400
+ "no"
401
+ ]
402
+ }
403
+ },
404
+ "styleSetup": {
405
+ "vars": [
406
+ {
407
+ "name": "--edit-color",
408
+ "defaultValue": "green",
409
+ "description": "",
410
+ "valueType": "color"
411
+ },
412
+ {
413
+ "name": "--paypal-button-color",
414
+ "defaultValue": "yellow",
415
+ "description": "",
416
+ "valueType": "color"
417
+ },
418
+ {
419
+ "name": "--hb-heckout-border",
420
+ "defaultValue": "0.5px solid rgba(197, 197, 197, 0.808)",
421
+ "description": "",
422
+ "valueType": "string"
423
+ },
424
+ {
425
+ "name": "--bs-primary",
426
+ "valueType": "color",
427
+ "theme": "bootstrap",
428
+ "defaultValue": "#07689f"
429
+ },
430
+ {
431
+ "name": "--bs-secondary",
432
+ "valueType": "color",
433
+ "theme": "bootstrap",
434
+ "defaultValue": "#c9d6df"
435
+ },
436
+ {
437
+ "name": "--bs-success",
438
+ "valueType": "color",
439
+ "theme": "bootstrap",
440
+ "defaultValue": "#11d3bc"
441
+ },
442
+ {
443
+ "name": "--bs-info",
444
+ "valueType": "color",
445
+ "theme": "bootstrap",
446
+ "defaultValue": "#a2d5f2"
447
+ },
448
+ {
449
+ "name": "--bs-warning",
450
+ "valueType": "color",
451
+ "theme": "bootstrap",
452
+ "defaultValue": "#ffc107"
453
+ },
454
+ {
455
+ "name": "--bs-danger",
456
+ "valueType": "color",
457
+ "theme": "bootstrap",
458
+ "defaultValue": "#f67280"
459
+ }
460
+ ],
461
+ "parts": [
462
+ {
463
+ "name": "title"
464
+ },
465
+ {
466
+ "name": "subtitle"
467
+ }
468
+ ]
469
+ },
470
+ "htmlSlots": [
471
+ {
472
+ "name": "payment_terms"
473
+ },
474
+ {
475
+ "name": "payment_completed"
476
+ },
477
+ {
478
+ "name": "userinfo"
479
+ },
480
+ {
481
+ "name": "title"
482
+ }
483
+ ],
484
+ "i18n": [],
485
+ "examples": [
486
+ {
487
+ "shipments": [
488
+ {
489
+ "price": 10,
490
+ "currency": "€",
491
+ "arriveDate": "2022-01-20T08:03:57.562Z",
492
+ "available": true,
493
+ "label": "zio barca",
494
+ "id": "ziobarca"
495
+ },
496
+ {
497
+ "price": 20,
498
+ "currency": "€",
499
+ "arriveDate": "2022-01-21T02:22:57.562Z",
500
+ "available": true,
501
+ "label": "zio barca2",
502
+ "id": "ziobarca2"
503
+ }
504
+ ],
505
+ "gateways": [
506
+ {
507
+ "id": "paypal",
508
+ "label": "bbbb",
509
+ "paypalid": "test"
510
+ }
511
+ ],
512
+ "payment": {
513
+ "merchantName": "testmerchant",
514
+ "countryCode": "it",
515
+ "currencyCode": "EUR",
516
+ "total": 45,
517
+ "type": "buy"
518
+ }
519
+ }
520
+ ],
521
+ "name": "hb-checkout",
522
+ "category": "payment",
523
+ "tags": [
524
+ "payment"
525
+ ],
526
+ "size": {}
527
+ }