cloudcommerce 0.0.2 → 0.0.3
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.
- package/{.eslintrc.js → .eslintrc.cjs} +4 -4
- package/.github/renovate.json +2 -1
- package/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/package.json +7 -6
- package/packages/api/dist/index.d.ts +65 -0
- package/packages/api/dist/index.js +42 -24
- package/packages/api/dist/index.js.map +1 -1
- package/packages/api/dist/types/applications.d.ts +208 -0
- package/packages/api/dist/types/authentications.d.ts +97 -0
- package/packages/api/dist/types/brands.d.ts +148 -0
- package/packages/api/dist/types/carts.d.ts +292 -0
- package/packages/api/dist/types/categories.d.ts +190 -0
- package/packages/api/dist/types/collections.d.ts +151 -0
- package/packages/api/dist/types/customers.d.ts +495 -0
- package/packages/api/dist/types/grids.d.ts +149 -0
- package/packages/api/dist/types/orders.d.ts +1588 -0
- package/packages/api/dist/types/procedures.d.ts +139 -0
- package/packages/api/dist/types/products.d.ts +1284 -0
- package/packages/api/dist/types/stores.d.ts +120 -0
- package/packages/api/dist/types/triggers.d.ts +79 -0
- package/packages/api/dist/types.d.ts +65 -0
- package/packages/api/dist/types.js +2 -0
- package/packages/api/dist/types.js.map +1 -0
- package/packages/api/package.json +4 -2
- package/packages/api/scripts/build.mjs +5 -0
- package/packages/api/src/index.ts +46 -55
- package/packages/api/src/types/applications.d.ts +208 -0
- package/packages/api/src/types/authentications.d.ts +97 -0
- package/packages/api/src/types/brands.d.ts +148 -0
- package/packages/api/src/types/carts.d.ts +292 -0
- package/packages/api/src/types/categories.d.ts +190 -0
- package/packages/api/src/types/collections.d.ts +151 -0
- package/packages/api/src/types/customers.d.ts +495 -0
- package/packages/api/src/types/grids.d.ts +149 -0
- package/packages/api/src/types/orders.d.ts +1588 -0
- package/packages/api/src/types/procedures.d.ts +139 -0
- package/packages/api/src/types/products.d.ts +1284 -0
- package/packages/api/src/types/stores.d.ts +120 -0
- package/packages/api/src/types/triggers.d.ts +79 -0
- package/packages/api/src/types.ts +74 -0
- package/packages/api/tests/types.test.ts +13 -0
- package/packages/apps/discounts/package.json +1 -1
- package/packages/storefront/package.json +1 -1
- package/{packages/api/tsconfig.json → tsconfig.json} +8 -3
- package/turbo.json +3 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface Collections {
|
|
9
|
+
_id: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
store_id: number;
|
|
13
|
+
/**
|
|
14
|
+
* Collection full name
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Slug to complete page URL, starting with number or lowercase letter
|
|
19
|
+
*/
|
|
20
|
+
slug?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Short collection description in plain text
|
|
23
|
+
*/
|
|
24
|
+
short_description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Full collection description, may use HTML tags
|
|
27
|
+
*/
|
|
28
|
+
body_html?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Full collection description, plain text only
|
|
31
|
+
*/
|
|
32
|
+
body_text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Title tag for page SEO
|
|
35
|
+
*/
|
|
36
|
+
meta_title?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Meta description tag for page SEO
|
|
39
|
+
*/
|
|
40
|
+
meta_description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Text translations for internationalization
|
|
43
|
+
*/
|
|
44
|
+
i18n?: {
|
|
45
|
+
/**
|
|
46
|
+
* Language specific text fields
|
|
47
|
+
*
|
|
48
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
49
|
+
* via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
|
|
50
|
+
*/
|
|
51
|
+
[k: string]: {
|
|
52
|
+
/**
|
|
53
|
+
* Category full name
|
|
54
|
+
*/
|
|
55
|
+
name?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Short collection description in plain text
|
|
58
|
+
*/
|
|
59
|
+
short_description?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Full collection description, may use HTML tags
|
|
62
|
+
*/
|
|
63
|
+
body_html?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Full collection description, plain text only
|
|
66
|
+
*/
|
|
67
|
+
body_text?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Title tag for page SEO
|
|
70
|
+
*/
|
|
71
|
+
meta_title?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Meta description tag for page SEO
|
|
74
|
+
*/
|
|
75
|
+
meta_description?: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* List of collection products
|
|
80
|
+
*/
|
|
81
|
+
products?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Collection icon image
|
|
84
|
+
*/
|
|
85
|
+
icon?: {
|
|
86
|
+
/**
|
|
87
|
+
* Image link
|
|
88
|
+
*/
|
|
89
|
+
url: string;
|
|
90
|
+
/**
|
|
91
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
92
|
+
*/
|
|
93
|
+
size?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
96
|
+
*/
|
|
97
|
+
alt?: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* List of collection images
|
|
101
|
+
*/
|
|
102
|
+
pictures?: {
|
|
103
|
+
/**
|
|
104
|
+
* Picture ID (ObjectID) [auto]
|
|
105
|
+
*/
|
|
106
|
+
_id?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Tag to identify object, use only lowercase letters, digits and underscore
|
|
109
|
+
*/
|
|
110
|
+
tag?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Image link
|
|
113
|
+
*/
|
|
114
|
+
url: string;
|
|
115
|
+
/**
|
|
116
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
117
|
+
*/
|
|
118
|
+
size?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
121
|
+
*/
|
|
122
|
+
alt?: string;
|
|
123
|
+
}[];
|
|
124
|
+
/**
|
|
125
|
+
* List of custom attributes
|
|
126
|
+
*/
|
|
127
|
+
metafields?: {
|
|
128
|
+
/**
|
|
129
|
+
* String to help distinguish who (or which app) created and can use the metafield
|
|
130
|
+
*/
|
|
131
|
+
namespace?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Field name
|
|
134
|
+
*/
|
|
135
|
+
field?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Custom property value
|
|
138
|
+
*/
|
|
139
|
+
value: {
|
|
140
|
+
[k: string]: unknown;
|
|
141
|
+
};
|
|
142
|
+
}[];
|
|
143
|
+
/**
|
|
144
|
+
* Flags to associate additional info
|
|
145
|
+
*/
|
|
146
|
+
flags?: string[];
|
|
147
|
+
/**
|
|
148
|
+
* Optional notes with additional info about this category
|
|
149
|
+
*/
|
|
150
|
+
notes?: string;
|
|
151
|
+
}
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Customer object model
|
|
10
|
+
*/
|
|
11
|
+
export interface Customers {
|
|
12
|
+
_id: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
store_id: number;
|
|
16
|
+
/**
|
|
17
|
+
* Whether customer was registered by staff and is trusted
|
|
18
|
+
*/
|
|
19
|
+
staff_signature?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The state of registration, if completed, invited and waiting, or declined by customer
|
|
22
|
+
*/
|
|
23
|
+
state?: 'invited' | 'registered' | 'declined';
|
|
24
|
+
/**
|
|
25
|
+
* Whether customer account is enabled to make orders
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the customer can sign in to the store with this account
|
|
30
|
+
*/
|
|
31
|
+
login?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Status defined by seller, such as active or blocked
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Code to identify the affiliate that referred the customer
|
|
38
|
+
*/
|
|
39
|
+
affiliate_code?: string;
|
|
40
|
+
/**
|
|
41
|
+
* UTM campaign HTTP parameters associated with this customer's first access
|
|
42
|
+
*/
|
|
43
|
+
utm?: {
|
|
44
|
+
/**
|
|
45
|
+
* Parameter 'utm_source', the referrer: (e.g. 'google', 'newsletter')
|
|
46
|
+
*/
|
|
47
|
+
source?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Parameter 'utm_medium', the marketing medium: (e.g. 'cpc', 'banner', 'email')
|
|
50
|
+
*/
|
|
51
|
+
medium?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Parameter 'utm_campaign', the product, promo code, or slogan (e.g. 'spring_sale')
|
|
54
|
+
*/
|
|
55
|
+
campaign?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Parameter 'utm_term', identifies the paid keywords
|
|
58
|
+
*/
|
|
59
|
+
term?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Parameter 'utm_content', used to differentiate ads
|
|
62
|
+
*/
|
|
63
|
+
content?: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Providers for OAuth authentication
|
|
67
|
+
*/
|
|
68
|
+
oauth_providers?: {
|
|
69
|
+
/**
|
|
70
|
+
* The provider with which the user authenticated, e.g.: 'facebook'
|
|
71
|
+
*/
|
|
72
|
+
provider: string;
|
|
73
|
+
/**
|
|
74
|
+
* Unique ID for the user generated by the service provider
|
|
75
|
+
*/
|
|
76
|
+
user_id: string;
|
|
77
|
+
}[];
|
|
78
|
+
/**
|
|
79
|
+
* Customer language two letters code, sometimes with region, e.g.: 'pt_br', 'fr', 'en_us'
|
|
80
|
+
*/
|
|
81
|
+
locale?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Customer main email address
|
|
84
|
+
*/
|
|
85
|
+
main_email: string;
|
|
86
|
+
/**
|
|
87
|
+
* Customer email addresses list
|
|
88
|
+
*/
|
|
89
|
+
emails?: {
|
|
90
|
+
/**
|
|
91
|
+
* The actual email address
|
|
92
|
+
*/
|
|
93
|
+
address: string;
|
|
94
|
+
/**
|
|
95
|
+
* The type of email
|
|
96
|
+
*/
|
|
97
|
+
type?: 'home' | 'personal' | 'work' | 'other';
|
|
98
|
+
/**
|
|
99
|
+
* States whether or not the email address has been verified
|
|
100
|
+
*/
|
|
101
|
+
verified?: boolean;
|
|
102
|
+
}[];
|
|
103
|
+
/**
|
|
104
|
+
* Indicates whether customer would like to receive email updates from the shop
|
|
105
|
+
*/
|
|
106
|
+
accepts_marketing?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The name of this Customer, suitable for display
|
|
109
|
+
*/
|
|
110
|
+
display_name: string;
|
|
111
|
+
/**
|
|
112
|
+
* Customer name object
|
|
113
|
+
*/
|
|
114
|
+
name?: {
|
|
115
|
+
/**
|
|
116
|
+
* The family name of this user, or "last name"
|
|
117
|
+
*/
|
|
118
|
+
family_name?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The "first name" of this user
|
|
121
|
+
*/
|
|
122
|
+
given_name?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The middle name(s) of this user
|
|
125
|
+
*/
|
|
126
|
+
middle_name?: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Date of customer birth
|
|
130
|
+
*/
|
|
131
|
+
birth_date?: {
|
|
132
|
+
/**
|
|
133
|
+
* Day of birth
|
|
134
|
+
*/
|
|
135
|
+
day?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Number of month of birth
|
|
138
|
+
*/
|
|
139
|
+
month?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Year of birth
|
|
142
|
+
*/
|
|
143
|
+
year?: number;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Customer preferred pronoun
|
|
147
|
+
*/
|
|
148
|
+
pronoun?: 'he' | 'she';
|
|
149
|
+
/**
|
|
150
|
+
* User profile pictures
|
|
151
|
+
*/
|
|
152
|
+
photos?: string[];
|
|
153
|
+
/**
|
|
154
|
+
* List of customer phone numbers
|
|
155
|
+
*/
|
|
156
|
+
phones?: {
|
|
157
|
+
/**
|
|
158
|
+
* Country calling code (without +), defined by standards E.123 and E.164
|
|
159
|
+
*/
|
|
160
|
+
country_code?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The actual phone number, digits only
|
|
163
|
+
*/
|
|
164
|
+
number: string;
|
|
165
|
+
/**
|
|
166
|
+
* The type of phone
|
|
167
|
+
*/
|
|
168
|
+
type?: 'home' | 'personal' | 'work' | 'other';
|
|
169
|
+
}[];
|
|
170
|
+
/**
|
|
171
|
+
* Physical or juridical (company) person
|
|
172
|
+
*/
|
|
173
|
+
registry_type?: 'p' | 'j';
|
|
174
|
+
/**
|
|
175
|
+
* Country of document origin, an ISO 3166-2 code
|
|
176
|
+
*/
|
|
177
|
+
doc_country?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Responsible person or organization document number (only numbers)
|
|
180
|
+
*/
|
|
181
|
+
doc_number?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Municipal or state registration if exists
|
|
184
|
+
*/
|
|
185
|
+
inscription_type?: 'State' | 'Municipal';
|
|
186
|
+
/**
|
|
187
|
+
* Municipal or state registration number (with characters) if exists
|
|
188
|
+
*/
|
|
189
|
+
inscription_number?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Registered company name or responsible fullname
|
|
192
|
+
*/
|
|
193
|
+
corporate_name?: string;
|
|
194
|
+
/**
|
|
195
|
+
* List of customer shipping addresses
|
|
196
|
+
*/
|
|
197
|
+
addresses?: {
|
|
198
|
+
/**
|
|
199
|
+
* ZIP (CEP, postal...) code
|
|
200
|
+
*/
|
|
201
|
+
zip: string;
|
|
202
|
+
/**
|
|
203
|
+
* Street or public place name
|
|
204
|
+
*/
|
|
205
|
+
street?: string;
|
|
206
|
+
/**
|
|
207
|
+
* House or building street number
|
|
208
|
+
*/
|
|
209
|
+
number?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Address complement or second line, such as apartment number
|
|
212
|
+
*/
|
|
213
|
+
complement?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Borough name
|
|
216
|
+
*/
|
|
217
|
+
borough?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Some optional other reference for this address
|
|
220
|
+
*/
|
|
221
|
+
near_to?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Full in line mailing address, should include street, number and borough
|
|
224
|
+
*/
|
|
225
|
+
line_address?: string;
|
|
226
|
+
/**
|
|
227
|
+
* City name
|
|
228
|
+
*/
|
|
229
|
+
city?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Country name
|
|
232
|
+
*/
|
|
233
|
+
country?: string;
|
|
234
|
+
/**
|
|
235
|
+
* An ISO 3166-2 country code
|
|
236
|
+
*/
|
|
237
|
+
country_code?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Province or state name
|
|
240
|
+
*/
|
|
241
|
+
province?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The two-letter code for the province or state
|
|
244
|
+
*/
|
|
245
|
+
province_code?: string;
|
|
246
|
+
/**
|
|
247
|
+
* The name of recipient, generally is the customer's name
|
|
248
|
+
*/
|
|
249
|
+
name?: string;
|
|
250
|
+
/**
|
|
251
|
+
* The recipient's last name
|
|
252
|
+
*/
|
|
253
|
+
last_name?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Customer phone number for this mailing address
|
|
256
|
+
*/
|
|
257
|
+
phone?: {
|
|
258
|
+
/**
|
|
259
|
+
* Country calling code (without +), defined by standards E.123 and E.164
|
|
260
|
+
*/
|
|
261
|
+
country_code?: number;
|
|
262
|
+
/**
|
|
263
|
+
* The actual phone number, digits only
|
|
264
|
+
*/
|
|
265
|
+
number: string;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Indicates whether this address is the default address for the customer
|
|
269
|
+
*/
|
|
270
|
+
default?: boolean;
|
|
271
|
+
}[];
|
|
272
|
+
/**
|
|
273
|
+
* Products marked as favorites
|
|
274
|
+
*/
|
|
275
|
+
favorites?: string[];
|
|
276
|
+
/**
|
|
277
|
+
* Last products visited by the customer
|
|
278
|
+
*/
|
|
279
|
+
last_visited_products?: string[];
|
|
280
|
+
/**
|
|
281
|
+
* Last terms searched on shop by the customer
|
|
282
|
+
*/
|
|
283
|
+
last_searched_terms?: string[];
|
|
284
|
+
/**
|
|
285
|
+
* Default currency for the user, designator according to ISO 4217 (3 uppercase letters)
|
|
286
|
+
*/
|
|
287
|
+
currency_id?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Graphic symbol used as a shorthand for currency's name
|
|
290
|
+
*/
|
|
291
|
+
currency_symbol?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Total number of orders completed by this customer
|
|
294
|
+
*/
|
|
295
|
+
orders_count?: number;
|
|
296
|
+
/**
|
|
297
|
+
* The total amount in orders completed by this customer
|
|
298
|
+
*/
|
|
299
|
+
orders_total_value?: number;
|
|
300
|
+
/**
|
|
301
|
+
* List of customer accumulated loyalty points by program and expiration
|
|
302
|
+
*/
|
|
303
|
+
loyalty_points_entries?: {
|
|
304
|
+
/**
|
|
305
|
+
* The name of the loyalty points program
|
|
306
|
+
*/
|
|
307
|
+
name?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Unique identifier, program name using only lowercase, numbers and underscore
|
|
310
|
+
*/
|
|
311
|
+
program_id: string;
|
|
312
|
+
/**
|
|
313
|
+
* Number of loyalty points earned
|
|
314
|
+
*/
|
|
315
|
+
earned_points?: number;
|
|
316
|
+
/**
|
|
317
|
+
* Number of active (not yet used) loyalty points
|
|
318
|
+
*/
|
|
319
|
+
active_points: number;
|
|
320
|
+
/**
|
|
321
|
+
* The ratio of a point when converted to currency
|
|
322
|
+
*/
|
|
323
|
+
ratio?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Validity of the points entry, until this date the active points can be converted
|
|
326
|
+
*/
|
|
327
|
+
valid_thru?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Points origin order ID (ObjectID)
|
|
330
|
+
*/
|
|
331
|
+
order_id?: string;
|
|
332
|
+
}[];
|
|
333
|
+
/**
|
|
334
|
+
* The total amount of money that this customer has spent at the store
|
|
335
|
+
*/
|
|
336
|
+
total_spent?: number;
|
|
337
|
+
/**
|
|
338
|
+
* The total amount in cancelled orders
|
|
339
|
+
*/
|
|
340
|
+
total_cancelled?: number;
|
|
341
|
+
/**
|
|
342
|
+
* List of customer orders
|
|
343
|
+
*/
|
|
344
|
+
orders?: {
|
|
345
|
+
/**
|
|
346
|
+
* Order ID (ObjectID)
|
|
347
|
+
*/
|
|
348
|
+
_id: string;
|
|
349
|
+
/**
|
|
350
|
+
* When order was saved, date and time in ISO 8601 standard representation
|
|
351
|
+
*/
|
|
352
|
+
created_at?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Auto incremented order number
|
|
355
|
+
*/
|
|
356
|
+
number?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Designator of currency according to ISO 4217 (3 uppercase letters)
|
|
359
|
+
*/
|
|
360
|
+
currency_id?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Graphic symbol used as a shorthand for currency's name
|
|
363
|
+
*/
|
|
364
|
+
currency_symbol?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Object with sums of values
|
|
367
|
+
*/
|
|
368
|
+
amount?: {
|
|
369
|
+
/**
|
|
370
|
+
* Order total amount
|
|
371
|
+
*/
|
|
372
|
+
total: number;
|
|
373
|
+
/**
|
|
374
|
+
* The sum of all items prices
|
|
375
|
+
*/
|
|
376
|
+
subtotal?: number;
|
|
377
|
+
/**
|
|
378
|
+
* Order freight cost
|
|
379
|
+
*/
|
|
380
|
+
freight?: number;
|
|
381
|
+
/**
|
|
382
|
+
* Applied discount value
|
|
383
|
+
*/
|
|
384
|
+
discount?: number;
|
|
385
|
+
/**
|
|
386
|
+
* Value deducted via balance in wallet or loyalty points
|
|
387
|
+
*/
|
|
388
|
+
balance?: number;
|
|
389
|
+
/**
|
|
390
|
+
* The sum of all the taxes applied to the order
|
|
391
|
+
*/
|
|
392
|
+
tax?: number;
|
|
393
|
+
/**
|
|
394
|
+
* Sum of optional extra costs applied
|
|
395
|
+
*/
|
|
396
|
+
extra?: number;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Name or summary of order payment method(s)
|
|
400
|
+
*/
|
|
401
|
+
payment_method_label?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Name of order shipping method(s)
|
|
404
|
+
*/
|
|
405
|
+
shipping_method_label?: string;
|
|
406
|
+
}[];
|
|
407
|
+
/**
|
|
408
|
+
* List of customer saved credit cards
|
|
409
|
+
*/
|
|
410
|
+
credit_cards?: {
|
|
411
|
+
/**
|
|
412
|
+
* Full name of the holder, as it is on the credit card
|
|
413
|
+
*/
|
|
414
|
+
holder_name?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Issuer identification number (IIN), known as bank identification number (BIN)
|
|
417
|
+
*/
|
|
418
|
+
bin?: number;
|
|
419
|
+
/**
|
|
420
|
+
* Credit card issuer name, eg.: Visa, American Express, MasterCard
|
|
421
|
+
*/
|
|
422
|
+
company?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Last digits (up to 4) of credit card number
|
|
425
|
+
*/
|
|
426
|
+
last_digits: string;
|
|
427
|
+
/**
|
|
428
|
+
* Unique credit card token
|
|
429
|
+
*/
|
|
430
|
+
token: string;
|
|
431
|
+
/**
|
|
432
|
+
* Payment intermediator
|
|
433
|
+
*/
|
|
434
|
+
intermediator: {
|
|
435
|
+
/**
|
|
436
|
+
* Gateway name standardized as identification code
|
|
437
|
+
*/
|
|
438
|
+
code: string;
|
|
439
|
+
/**
|
|
440
|
+
* ID of respective customer account in the intermediator
|
|
441
|
+
*/
|
|
442
|
+
buyer_id?: string;
|
|
443
|
+
};
|
|
444
|
+
}[];
|
|
445
|
+
/**
|
|
446
|
+
* List of custom attributes
|
|
447
|
+
*/
|
|
448
|
+
metafields?: {
|
|
449
|
+
/**
|
|
450
|
+
* String to help distinguish who (or which app) created and can use the metafield
|
|
451
|
+
*/
|
|
452
|
+
namespace?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Field name
|
|
455
|
+
*/
|
|
456
|
+
field?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Custom property value
|
|
459
|
+
*/
|
|
460
|
+
value: {
|
|
461
|
+
[k: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
}[];
|
|
464
|
+
/**
|
|
465
|
+
* List of custom attributes
|
|
466
|
+
*/
|
|
467
|
+
hidden_metafields?: {
|
|
468
|
+
/**
|
|
469
|
+
* String to help distinguish who (or which app) created and can use the metafield
|
|
470
|
+
*/
|
|
471
|
+
namespace?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Field name
|
|
474
|
+
*/
|
|
475
|
+
field?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Custom property value
|
|
478
|
+
*/
|
|
479
|
+
value: {
|
|
480
|
+
[k: string]: unknown;
|
|
481
|
+
};
|
|
482
|
+
}[];
|
|
483
|
+
/**
|
|
484
|
+
* Flags to associate additional info
|
|
485
|
+
*/
|
|
486
|
+
flags?: string[];
|
|
487
|
+
/**
|
|
488
|
+
* Optional notes with additional info about this customer
|
|
489
|
+
*/
|
|
490
|
+
notes?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Description and notes about this customer, available only for shop administrators
|
|
493
|
+
*/
|
|
494
|
+
staff_notes?: string;
|
|
495
|
+
}
|