@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.
@@ -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": {
@@ -43,83 +44,6 @@
43
44
  ],
44
45
  "type": "object"
45
46
  },
46
- "Events": {
47
- "additionalProperties": false,
48
- "properties": {
49
- "completed": {
50
- "additionalProperties": false,
51
- "properties": {
52
- "control": {
53
- "additionalProperties": false,
54
- "properties": {
55
- "type": {
56
- "const": "radio",
57
- "type": "string"
58
- }
59
- },
60
- "required": [
61
- "type"
62
- ],
63
- "type": "object"
64
- },
65
- "options": {
66
- "items": [
67
- {
68
- "const": "yes",
69
- "type": "string"
70
- },
71
- {
72
- "const": "no",
73
- "type": "string"
74
- }
75
- ],
76
- "maxItems": 2,
77
- "minItems": 2,
78
- "type": "array"
79
- }
80
- },
81
- "required": [
82
- "control",
83
- "options"
84
- ],
85
- "type": "object"
86
- },
87
- "paymentCompleted": {
88
- "additionalProperties": false,
89
- "properties": {
90
- "completed": {
91
- "const": true,
92
- "type": "boolean"
93
- },
94
- "method": {
95
- "type": "string"
96
- },
97
- "total": {
98
- "type": "number"
99
- }
100
- },
101
- "required": [
102
- "total",
103
- "method",
104
- "completed"
105
- ],
106
- "type": "object"
107
- },
108
- "saveShipment": {
109
- "$ref": "#/definitions/IShipment"
110
- },
111
- "saveUser": {
112
- "$ref": "#/definitions/IUser"
113
- }
114
- },
115
- "required": [
116
- "paymentCompleted",
117
- "saveUser",
118
- "saveShipment",
119
- "completed"
120
- ],
121
- "type": "object"
122
- },
123
47
  "IGateway": {
124
48
  "additionalProperties": false,
125
49
  "properties": {
@@ -0,0 +1,149 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "completed": {
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "control": {
12
+ "additionalProperties": false,
13
+ "properties": {
14
+ "type": {
15
+ "const": "radio",
16
+ "type": "string"
17
+ }
18
+ },
19
+ "required": [
20
+ "type"
21
+ ],
22
+ "type": "object"
23
+ },
24
+ "options": {
25
+ "items": [
26
+ {
27
+ "const": "yes",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "const": "no",
32
+ "type": "string"
33
+ }
34
+ ],
35
+ "maxItems": 2,
36
+ "minItems": 2,
37
+ "type": "array"
38
+ }
39
+ },
40
+ "required": [
41
+ "control",
42
+ "options"
43
+ ],
44
+ "type": "object"
45
+ },
46
+ "paymentCompleted": {
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "completed": {
50
+ "const": true,
51
+ "type": "boolean"
52
+ },
53
+ "method": {
54
+ "type": "string"
55
+ },
56
+ "total": {
57
+ "type": "number"
58
+ }
59
+ },
60
+ "required": [
61
+ "total",
62
+ "method",
63
+ "completed"
64
+ ],
65
+ "type": "object"
66
+ },
67
+ "saveShipment": {
68
+ "$ref": "#/definitions/IShipment"
69
+ },
70
+ "saveUser": {
71
+ "$ref": "#/definitions/IUser"
72
+ }
73
+ },
74
+ "required": [
75
+ "paymentCompleted",
76
+ "saveUser",
77
+ "saveShipment",
78
+ "completed"
79
+ ],
80
+ "type": "object"
81
+ },
82
+ "IShipment": {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "arriveDate": {
86
+ "format": "date-time",
87
+ "type": "string"
88
+ },
89
+ "available": {
90
+ "type": "boolean"
91
+ },
92
+ "currency": {
93
+ "type": "string"
94
+ },
95
+ "id": {
96
+ "type": "string"
97
+ },
98
+ "label": {
99
+ "type": "string"
100
+ },
101
+ "price": {
102
+ "type": "number"
103
+ },
104
+ "selected": {
105
+ "type": "boolean"
106
+ },
107
+ "standard": {
108
+ "type": "boolean"
109
+ }
110
+ },
111
+ "required": [
112
+ "price",
113
+ "arriveDate",
114
+ "available",
115
+ "id",
116
+ "label",
117
+ "currency"
118
+ ],
119
+ "type": "object"
120
+ },
121
+ "IUser": {
122
+ "additionalProperties": false,
123
+ "properties": {
124
+ "addressWithNumber": {
125
+ "type": "string"
126
+ },
127
+ "city": {
128
+ "type": "string"
129
+ },
130
+ "fixed": {
131
+ "type": "boolean"
132
+ },
133
+ "fullName": {
134
+ "type": "string"
135
+ },
136
+ "nationality": {
137
+ "type": "string"
138
+ },
139
+ "zip": {
140
+ "type": "string"
141
+ }
142
+ },
143
+ "required": [
144
+ "fullName"
145
+ ],
146
+ "type": "object"
147
+ }
148
+ }
149
+ }
@@ -1,131 +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
- "saveShipment": {
25
- "action": "saveShipment"
26
- },
27
- "gateways": {
28
- "control": {
29
- "type": "array"
30
- }
31
- },
32
- "setGateway": {
33
- "action": "setGateway"
34
- },
35
- "completed": {
36
- "control": {
37
- "type": "radio"
38
- },
39
- "options": [
40
- "yes",
41
- "no"
42
- ]
43
- }
44
- },
45
- "styleSetup": {
46
- "vars": [
47
- {
48
- "name": "--edit-color",
49
- "defaultValue": "green",
50
- "description": "",
51
- "valueType": "color"
52
- },
53
- {
54
- "name": "--paypal-button-color",
55
- "defaultValue": "yellow",
56
- "description": "",
57
- "valueType": "color"
58
- },
59
- {
60
- "name": "--hb-heckout-border",
61
- "defaultValue": "0.5px solid rgba(197, 197, 197, 0.808)",
62
- "description": "",
63
- "valueType": "string"
64
- },
65
- {
66
- "name": "--bs-primary",
67
- "valueType": "color",
68
- "theme": "bootstrap",
69
- "defaultValue": "#07689f"
70
- },
71
- {
72
- "name": "--bs-secondary",
73
- "valueType": "color",
74
- "theme": "bootstrap",
75
- "defaultValue": "#c9d6df"
76
- },
77
- {
78
- "name": "--bs-success",
79
- "valueType": "color",
80
- "theme": "bootstrap",
81
- "defaultValue": "#11d3bc"
82
- },
83
- {
84
- "name": "--bs-info",
85
- "valueType": "color",
86
- "theme": "bootstrap",
87
- "defaultValue": "#a2d5f2"
88
- },
89
- {
90
- "name": "--bs-warning",
91
- "valueType": "color",
92
- "theme": "bootstrap",
93
- "defaultValue": "#ffc107"
94
- },
95
- {
96
- "name": "--bs-danger",
97
- "valueType": "color",
98
- "theme": "bootstrap",
99
- "defaultValue": "#f67280"
100
- }
101
- ],
102
- "parts": [
103
- {
104
- "name": "title"
105
- },
106
- {
107
- "name": "subtitle"
108
- }
109
- ]
110
- },
111
- "htmlSlots": [
112
- {
113
- "name": "payment_terms"
114
- },
115
- {
116
- "name": "payment_completed"
117
- },
118
- {
119
- "name": "userinfo"
120
- },
121
- {
122
- "name": "title"
123
- }
124
- ],
125
- "i18n": [],
126
- "examples": [],
127
- "name": "",
128
- "category": "",
129
- "tags": [],
130
- "size": {}
131
- }