@htmlbricks/hb-checkout 0.4.37 → 0.5.9

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,204 @@
1
+ {
2
+ "$ref": "#/definitions/Component",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Component": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "completed": {
9
+ "enum": [
10
+ "yes",
11
+ "no"
12
+ ],
13
+ "type": "string"
14
+ },
15
+ "gateways": {
16
+ "items": {
17
+ "$ref": "#/definitions/IGateway"
18
+ },
19
+ "type": "array"
20
+ },
21
+ "payment": {
22
+ "$ref": "#/definitions/IPayment"
23
+ },
24
+ "shipments": {
25
+ "items": {
26
+ "$ref": "#/definitions/IShipment"
27
+ },
28
+ "type": "array"
29
+ },
30
+ "user": {
31
+ "$ref": "#/definitions/IUser"
32
+ }
33
+ },
34
+ "required": [
35
+ "shipments",
36
+ "user",
37
+ "gateways",
38
+ "payment",
39
+ "completed"
40
+ ],
41
+ "type": "object"
42
+ },
43
+ "IGateway": {
44
+ "additionalProperties": false,
45
+ "properties": {
46
+ "cardNetworks": {
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "type": "array"
51
+ },
52
+ "currency": {
53
+ "enum": [
54
+ "€",
55
+ "$"
56
+ ],
57
+ "type": "string"
58
+ },
59
+ "fixedPrice": {
60
+ "type": "number"
61
+ },
62
+ "gatewayId": {
63
+ "type": "string"
64
+ },
65
+ "gatewayMerchantId": {
66
+ "type": "string"
67
+ },
68
+ "id": {
69
+ "enum": [
70
+ "google",
71
+ "paypal"
72
+ ],
73
+ "type": "string"
74
+ },
75
+ "label": {
76
+ "type": "string"
77
+ },
78
+ "merchantId": {
79
+ "type": "string"
80
+ },
81
+ "paypalid": {
82
+ "type": "string"
83
+ },
84
+ "percentagePrice": {
85
+ "type": "number"
86
+ }
87
+ },
88
+ "required": [
89
+ "id",
90
+ "label"
91
+ ],
92
+ "type": "object"
93
+ },
94
+ "IPayment": {
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "countryCode": {
98
+ "type": "string"
99
+ },
100
+ "currencyCode": {
101
+ "type": "string"
102
+ },
103
+ "merchantName": {
104
+ "type": "string"
105
+ },
106
+ "shipmentFee": {
107
+ "type": "number"
108
+ },
109
+ "total": {
110
+ "type": "number"
111
+ },
112
+ "type": {
113
+ "$ref": "#/definitions/IPaymentType"
114
+ }
115
+ },
116
+ "required": [
117
+ "merchantName",
118
+ "total",
119
+ "currencyCode",
120
+ "countryCode"
121
+ ],
122
+ "type": "object"
123
+ },
124
+ "IPaymentType": {
125
+ "enum": [
126
+ "book",
127
+ "buy",
128
+ "checkout",
129
+ "donate",
130
+ "order",
131
+ "pay",
132
+ "plain",
133
+ "subscribe"
134
+ ],
135
+ "type": "string"
136
+ },
137
+ "IShipment": {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "arriveDate": {
141
+ "format": "date-time",
142
+ "type": "string"
143
+ },
144
+ "available": {
145
+ "type": "boolean"
146
+ },
147
+ "currency": {
148
+ "type": "string"
149
+ },
150
+ "id": {
151
+ "type": "string"
152
+ },
153
+ "label": {
154
+ "type": "string"
155
+ },
156
+ "price": {
157
+ "type": "number"
158
+ },
159
+ "selected": {
160
+ "type": "boolean"
161
+ },
162
+ "standard": {
163
+ "type": "boolean"
164
+ }
165
+ },
166
+ "required": [
167
+ "price",
168
+ "arriveDate",
169
+ "available",
170
+ "id",
171
+ "label",
172
+ "currency"
173
+ ],
174
+ "type": "object"
175
+ },
176
+ "IUser": {
177
+ "additionalProperties": false,
178
+ "properties": {
179
+ "addressWithNumber": {
180
+ "type": "string"
181
+ },
182
+ "city": {
183
+ "type": "string"
184
+ },
185
+ "fixed": {
186
+ "type": "boolean"
187
+ },
188
+ "fullName": {
189
+ "type": "string"
190
+ },
191
+ "nationality": {
192
+ "type": "string"
193
+ },
194
+ "zip": {
195
+ "type": "string"
196
+ }
197
+ },
198
+ "required": [
199
+ "fullName"
200
+ ],
201
+ "type": "object"
202
+ }
203
+ }
204
+ }
@@ -43,3 +43,11 @@ export type IPayment = {
43
43
  type?: IPaymentType;
44
44
  shipmentFee?: number;
45
45
  };
46
+
47
+ export type Component = {
48
+ shipments: IShipment[];
49
+ user: IUser;
50
+ gateways: IGateway[];
51
+ payment: IPayment;
52
+ completed: "yes" | "no";
53
+ };