@umbraco-commerce/backoffice 17.1.5 → 18.0.0-rc1
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/package.json +4 -4
- package/types/umbraco-commerce-public.d.ts +288 -268
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-commerce/backoffice",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0-rc1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./types/umbraco-commerce-public.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"README.md"
|
|
9
9
|
],
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
12
|
-
"npm": ">=
|
|
11
|
+
"node": ">=24.13",
|
|
12
|
+
"npm": ">=11"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/umbraco/Umbraco.Commerce.Issues/issues"
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"url": "https://umbraco.com"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@umbraco-cms/backoffice": "
|
|
23
|
+
"@umbraco-cms/backoffice": "18.0.0-rc1"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -18,129 +18,118 @@ import type { UmbExtensionElementInitializer } from '@umbraco-cms/backoffice/ext
|
|
|
18
18
|
import type { UmbPropertyEditorConfig } from '@umbraco-cms/backoffice/property-editor';
|
|
19
19
|
|
|
20
20
|
declare type AllowedCountryDto = {
|
|
21
|
-
country?:
|
|
21
|
+
country?: null | ICountryDto;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
declare type AllowedCountryRegionDto = {
|
|
25
|
-
country?:
|
|
26
|
-
region?:
|
|
25
|
+
country?: null | ICountryDto;
|
|
26
|
+
region?: null | IRegionDto;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
declare type CountryDto = {
|
|
30
|
-
id: string;
|
|
31
30
|
code: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
defaultCurrency?: ICurrencyDto;
|
|
32
|
+
defaultPaymentMethod?: IPaymentMethodDto;
|
|
33
|
+
defaultShippingMethod?: IShippingMethodDto;
|
|
34
|
+
id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
regions?: null | Array<IRegionDto>;
|
|
37
|
+
sortOrder?: null | number;
|
|
38
|
+
store?: IStoreDto;
|
|
39
|
+
taxCalculationMethod?: ITaxCalculationMethodDto;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
declare type CountryNamedReferenceDto = {
|
|
43
|
-
id: string;
|
|
44
43
|
code: string;
|
|
45
|
-
|
|
44
|
+
id: string;
|
|
45
|
+
name?: string;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
declare type CountryReferenceDto = {
|
|
49
|
-
id: string;
|
|
50
49
|
code: string;
|
|
50
|
+
id: string;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
declare type CountryRegionTaxClassDto = {
|
|
54
|
-
country?:
|
|
55
|
-
region?:
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
country?: null | ICountryDto;
|
|
55
|
+
region?: null | IRegionDto;
|
|
56
|
+
taxCode?: string;
|
|
57
|
+
taxRate?: null | number;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
declare type CurrencyDto = {
|
|
61
|
-
|
|
61
|
+
allowedCountries?: null | Array<AllowedCountryDto>;
|
|
62
62
|
code: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
culture?: string;
|
|
64
|
+
decimalPlaces?: null | number;
|
|
65
|
+
decimalSeparator?: string;
|
|
66
|
+
formatTemplate?: string;
|
|
67
|
+
groupSeparator?: string;
|
|
68
|
+
id: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
sortOrder?: null | number;
|
|
71
|
+
store?: null | IStoreDto;
|
|
72
|
+
symbol?: string;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
declare type CurrencyNamedReferenceDto = {
|
|
76
|
-
id: string;
|
|
77
76
|
code: string;
|
|
78
|
-
|
|
77
|
+
id: string;
|
|
78
|
+
name?: string;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
declare type CurrencyReferenceDto = {
|
|
82
|
-
id: string;
|
|
83
82
|
code: string;
|
|
83
|
+
id: string;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
declare type DynamicRateShippingCalculationConfigDto = {
|
|
87
|
-
rangeProviderAlias?: string
|
|
88
|
-
rates?: Array<DynamicShippingRateDto
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
declare type DynamicRateShippingCalculationConfigRequestDto = {
|
|
92
|
-
rangeProviderAlias?: string | null;
|
|
93
|
-
rates?: Array<DynamicShippingRateDto> | null;
|
|
87
|
+
rangeProviderAlias?: string;
|
|
88
|
+
rates?: null | Array<DynamicShippingRateDto>;
|
|
94
89
|
};
|
|
95
90
|
|
|
96
91
|
declare type DynamicShippingRateDto = {
|
|
97
92
|
from?: unknown;
|
|
98
93
|
to?: unknown;
|
|
99
|
-
values?: Array<DynamicShippingRateValueDto
|
|
94
|
+
values?: null | Array<DynamicShippingRateValueDto>;
|
|
100
95
|
};
|
|
101
96
|
|
|
102
97
|
declare type DynamicShippingRateValueDto = {
|
|
103
|
-
rateProviderAlias?: string
|
|
98
|
+
rateProviderAlias?: string;
|
|
104
99
|
value?: unknown;
|
|
105
100
|
};
|
|
106
101
|
|
|
107
102
|
declare type EmailTemplateDto = {
|
|
108
|
-
id: string;
|
|
109
103
|
alias: string;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
104
|
+
bccAddresses?: null | Array<string>;
|
|
105
|
+
category?: null | TemplateCategory;
|
|
106
|
+
ccAddresses?: null | Array<string>;
|
|
107
|
+
id: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
replyToAddresses?: null | Array<string>;
|
|
110
|
+
sendToCustomer?: null | boolean;
|
|
111
|
+
senderAddress?: string;
|
|
112
|
+
senderName?: string;
|
|
113
|
+
sortOrder?: null | number;
|
|
114
|
+
store?: null | IStoreDto;
|
|
115
|
+
subject?: string;
|
|
116
|
+
templateView?: string;
|
|
117
|
+
toAddresses?: null | Array<string>;
|
|
123
118
|
};
|
|
124
119
|
|
|
125
120
|
declare type EmailTemplateNamedReferenceDto = {
|
|
126
|
-
id: string;
|
|
127
121
|
alias: string;
|
|
128
|
-
|
|
122
|
+
id: string;
|
|
123
|
+
name?: string;
|
|
129
124
|
};
|
|
130
125
|
|
|
131
126
|
declare type EmailTemplateReferenceDto = {
|
|
132
|
-
id: string;
|
|
133
127
|
alias: string;
|
|
128
|
+
id: string;
|
|
134
129
|
};
|
|
135
130
|
|
|
136
131
|
declare type FixedRateShippingCalculationConfigDto = {
|
|
137
|
-
prices?: Array<ServicePriceDto
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
declare type FormattedPriceDto = {
|
|
141
|
-
withoutTax?: string | null;
|
|
142
|
-
tax?: string | null;
|
|
143
|
-
withTax?: string | null;
|
|
132
|
+
prices?: null | Array<ServicePriceDto>;
|
|
144
133
|
};
|
|
145
134
|
|
|
146
135
|
declare enum GiftCardActivationMethod {
|
|
@@ -149,30 +138,128 @@ declare enum GiftCardActivationMethod {
|
|
|
149
138
|
ORDER_STATUS = "OrderStatus"
|
|
150
139
|
}
|
|
151
140
|
|
|
141
|
+
declare type ICountryDto = ({
|
|
142
|
+
$type: 'CountryRef';
|
|
143
|
+
} & CountryReferenceDto) | ({
|
|
144
|
+
$type: 'CountryNamedRef';
|
|
145
|
+
} & CountryNamedReferenceDto) | ({
|
|
146
|
+
$type: 'Country';
|
|
147
|
+
} & CountryDto);
|
|
148
|
+
|
|
149
|
+
declare type ICurrencyDto = ({
|
|
150
|
+
$type: 'CurrencyRef';
|
|
151
|
+
} & CurrencyReferenceDto) | ({
|
|
152
|
+
$type: 'CurrencyNamedRef';
|
|
153
|
+
} & CurrencyNamedReferenceDto) | ({
|
|
154
|
+
$type: 'Currency';
|
|
155
|
+
} & CurrencyDto);
|
|
156
|
+
|
|
157
|
+
declare type IEmailTemplateDto = ({
|
|
158
|
+
$type: 'EmailTemplateRef';
|
|
159
|
+
} & EmailTemplateReferenceDto) | ({
|
|
160
|
+
$type: 'EmailTemplateNamedRef';
|
|
161
|
+
} & EmailTemplateNamedReferenceDto) | ({
|
|
162
|
+
$type: 'EmailTemplate';
|
|
163
|
+
} & EmailTemplateDto);
|
|
164
|
+
|
|
165
|
+
declare type ILocationDto = ({
|
|
166
|
+
$type: 'LocationRef';
|
|
167
|
+
} & LocationReferenceDto) | ({
|
|
168
|
+
$type: 'LocationNamedRef';
|
|
169
|
+
} & LocationNamedReferenceDto) | ({
|
|
170
|
+
$type: 'Location';
|
|
171
|
+
} & LocationDto);
|
|
172
|
+
|
|
173
|
+
declare type IOrderStatusDto = ({
|
|
174
|
+
$type: 'OrderStatusRef';
|
|
175
|
+
} & OrderStatusReferenceDto) | ({
|
|
176
|
+
$type: 'OrderStatusNamedRef';
|
|
177
|
+
} & OrderStatusNamedReferenceDto) | ({
|
|
178
|
+
$type: 'OrderStatus';
|
|
179
|
+
} & OrderStatusDto);
|
|
180
|
+
|
|
181
|
+
declare type IPaymentMethodDto = ({
|
|
182
|
+
$type: 'PaymentMethodRef';
|
|
183
|
+
} & PaymentMethodReferenceDto) | ({
|
|
184
|
+
$type: 'PaymentMethodNamedRef';
|
|
185
|
+
} & PaymentMethodNamedReferenceDto) | ({
|
|
186
|
+
$type: 'PaymentMethod';
|
|
187
|
+
} & PaymentMethodDto);
|
|
188
|
+
|
|
189
|
+
declare type IRegionDto = ({
|
|
190
|
+
$type: 'RegionRef';
|
|
191
|
+
} & RegionReferenceDto) | ({
|
|
192
|
+
$type: 'RegionNamedRef';
|
|
193
|
+
} & RegionNamedReferenceDto) | ({
|
|
194
|
+
$type: 'Region';
|
|
195
|
+
} & RegionDto);
|
|
196
|
+
|
|
197
|
+
declare type IShippingCalculationConfigDto = ({
|
|
198
|
+
$type: 'FixedRate';
|
|
199
|
+
} & FixedRateShippingCalculationConfigDto) | ({
|
|
200
|
+
$type: 'DynamicRate';
|
|
201
|
+
} & DynamicRateShippingCalculationConfigDto) | ({
|
|
202
|
+
$type: 'RealtimeRate';
|
|
203
|
+
} & RealtimeRateShippingCalculationConfigDto);
|
|
204
|
+
|
|
205
|
+
declare type IShippingMethodDto = ({
|
|
206
|
+
$type: 'ShippingMethodRef';
|
|
207
|
+
} & ShippingMethodReferenceDto) | ({
|
|
208
|
+
$type: 'ShippingMethodNamedRef';
|
|
209
|
+
} & ShippingMethodNamedReferenceDto) | ({
|
|
210
|
+
$type: 'ShippingMethod';
|
|
211
|
+
} & ShippingMethodDto);
|
|
212
|
+
|
|
213
|
+
declare type IStoreDto = ({
|
|
214
|
+
$type: 'StoreRef';
|
|
215
|
+
} & StoreReferenceDto) | ({
|
|
216
|
+
$type: 'StoreNamedRef';
|
|
217
|
+
} & StoreNamedReferenceDto) | ({
|
|
218
|
+
$type: 'StoreBasicRef';
|
|
219
|
+
} & StoreBasicDto) | ({
|
|
220
|
+
$type: 'Store';
|
|
221
|
+
} & StoreDto);
|
|
222
|
+
|
|
223
|
+
declare type ITaxCalculationMethodDto = ({
|
|
224
|
+
$type: 'TaxCalculationMethodRef';
|
|
225
|
+
} & TaxCalculationMethodReferenceDto) | ({
|
|
226
|
+
$type: 'TaxCalculationMethodNamedRef';
|
|
227
|
+
} & TaxCalculationMethodNamedReferenceDto) | ({
|
|
228
|
+
$type: 'TaxCalculationMethod';
|
|
229
|
+
} & TaxCalculationMethodDto);
|
|
230
|
+
|
|
231
|
+
declare type ITaxClassDto = ({
|
|
232
|
+
$type: 'TaxClassRef';
|
|
233
|
+
} & TaxClassReferenceDto) | ({
|
|
234
|
+
$type: 'TaxClassNamedRef';
|
|
235
|
+
} & TaxClassNamedReferenceDto) | ({
|
|
236
|
+
$type: 'TaxClass';
|
|
237
|
+
} & TaxClassDto);
|
|
238
|
+
|
|
152
239
|
declare type LocationDto = {
|
|
153
|
-
|
|
240
|
+
addressLine1?: string;
|
|
241
|
+
addressLine2?: string;
|
|
154
242
|
alias: string;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
sortOrder?: number | null;
|
|
243
|
+
city?: string;
|
|
244
|
+
countryIsoCode?: string;
|
|
245
|
+
id: string;
|
|
246
|
+
name?: string;
|
|
247
|
+
region?: string;
|
|
248
|
+
sortOrder?: null | number;
|
|
249
|
+
store?: null | IStoreDto;
|
|
250
|
+
type?: null | LocationType;
|
|
251
|
+
zipCode?: string;
|
|
165
252
|
};
|
|
166
253
|
|
|
167
254
|
declare type LocationNamedReferenceDto = {
|
|
168
|
-
id: string;
|
|
169
255
|
alias: string;
|
|
170
|
-
|
|
256
|
+
id: string;
|
|
257
|
+
name?: string;
|
|
171
258
|
};
|
|
172
259
|
|
|
173
260
|
declare type LocationReferenceDto = {
|
|
174
|
-
id: string;
|
|
175
261
|
alias: string;
|
|
262
|
+
id: string;
|
|
176
263
|
};
|
|
177
264
|
|
|
178
265
|
declare enum LocationType {
|
|
@@ -192,134 +279,98 @@ declare enum OrderRoundingMethod {
|
|
|
192
279
|
}
|
|
193
280
|
|
|
194
281
|
declare type OrderStatusDto = {
|
|
195
|
-
id: string;
|
|
196
282
|
alias: string;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
sortOrder?:
|
|
283
|
+
color?: string;
|
|
284
|
+
id: string;
|
|
285
|
+
name?: string;
|
|
286
|
+
sortOrder?: null | number;
|
|
287
|
+
store?: null | IStoreDto;
|
|
201
288
|
};
|
|
202
289
|
|
|
203
290
|
declare type OrderStatusNamedReferenceDto = {
|
|
204
|
-
id: string;
|
|
205
291
|
alias: string;
|
|
206
|
-
|
|
292
|
+
id: string;
|
|
293
|
+
name?: string;
|
|
207
294
|
};
|
|
208
295
|
|
|
209
296
|
declare type OrderStatusReferenceDto = {
|
|
210
|
-
id: string;
|
|
211
297
|
alias: string;
|
|
298
|
+
id: string;
|
|
212
299
|
};
|
|
213
300
|
|
|
214
301
|
declare type PaymentMethodDto = {
|
|
215
|
-
id: string;
|
|
216
302
|
alias: string;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
imageId?: string | null;
|
|
222
|
-
paymentProviderAlias?: string | null;
|
|
303
|
+
allowedCountryRegions?: null | Array<AllowedCountryRegionDto>;
|
|
304
|
+
enabledFeatures?: null | PaymentProviderFeaturesDto;
|
|
305
|
+
id: string;
|
|
306
|
+
imageId?: string;
|
|
223
307
|
isEnabled: boolean;
|
|
224
|
-
|
|
308
|
+
name?: string;
|
|
309
|
+
paymentProviderAlias?: string;
|
|
310
|
+
paymentProviderSettings?: null | {
|
|
225
311
|
[key: string]: unknown;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
312
|
+
};
|
|
313
|
+
prices?: null | Array<ServicePriceDto>;
|
|
314
|
+
sku?: string;
|
|
315
|
+
sortOrder?: null | number;
|
|
316
|
+
store?: null | IStoreDto;
|
|
317
|
+
taxClass?: null | ITaxClassDto;
|
|
231
318
|
};
|
|
232
319
|
|
|
233
320
|
declare type PaymentMethodNamedReferenceDto = {
|
|
234
|
-
id: string;
|
|
235
321
|
alias: string;
|
|
236
|
-
|
|
322
|
+
id: string;
|
|
323
|
+
name?: string;
|
|
237
324
|
};
|
|
238
325
|
|
|
239
326
|
declare type PaymentMethodReferenceDto = {
|
|
240
|
-
id: string;
|
|
241
327
|
alias: string;
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
declare type PaymentMethodWithFeeDto = {
|
|
245
328
|
id: string;
|
|
246
|
-
alias: string;
|
|
247
|
-
name?: string | null;
|
|
248
|
-
store?: StoreBasicDto | StoreDto | StoreNamedReferenceDto | StoreReferenceDto | null;
|
|
249
|
-
sku?: string | null;
|
|
250
|
-
taxClass?: TaxClassDto | TaxClassNamedReferenceDto | TaxClassReferenceDto | null;
|
|
251
|
-
imageId?: string | null;
|
|
252
|
-
paymentProviderAlias?: string | null;
|
|
253
|
-
isEnabled: boolean;
|
|
254
|
-
paymentProviderSettings?: {
|
|
255
|
-
[key: string]: unknown;
|
|
256
|
-
} | null;
|
|
257
|
-
enabledFeatures?: PaymentProviderFeaturesDto | null;
|
|
258
|
-
allowedCountryRegions?: Array<AllowedCountryRegionDto> | null;
|
|
259
|
-
prices?: Array<ServicePriceDto> | null;
|
|
260
|
-
sortOrder?: number | null;
|
|
261
|
-
fee?: PriceDto | null;
|
|
262
329
|
};
|
|
263
330
|
|
|
264
331
|
declare type PaymentProviderFeaturesDto = {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
refundPayment?: boolean | null;
|
|
332
|
+
cancelPayment?: null | boolean;
|
|
333
|
+
capturePayment?: null | boolean;
|
|
334
|
+
fetchPaymentStatus?: null | boolean;
|
|
269
335
|
partiallyRefundPayment: boolean;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
declare type PriceDto = {
|
|
273
|
-
currency?: CurrencyReferenceDto | null;
|
|
274
|
-
withoutTax?: number | null;
|
|
275
|
-
tax?: number | null;
|
|
276
|
-
withTax?: number | null;
|
|
277
|
-
formatted?: FormattedPriceDto | null;
|
|
336
|
+
refundPayment?: null | boolean;
|
|
278
337
|
};
|
|
279
338
|
|
|
280
339
|
declare type RealtimeRateShippingCalculationConfigDto = {
|
|
281
|
-
fixedPriceSurcharge?: {
|
|
282
|
-
[key: string]:
|
|
283
|
-
}
|
|
284
|
-
percentageSurcharge?:
|
|
285
|
-
rateCacheDuration?:
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
declare type RealtimeRateShippingCalculationConfigRequestDto = {
|
|
289
|
-
fixedPriceSurcharge?: {
|
|
290
|
-
[key: string]: number | null;
|
|
291
|
-
} | null;
|
|
292
|
-
percentageSurcharge?: number | null;
|
|
293
|
-
rateCacheDuration?: number | null;
|
|
340
|
+
fixedPriceSurcharge?: null | {
|
|
341
|
+
[key: string]: null | number;
|
|
342
|
+
};
|
|
343
|
+
percentageSurcharge?: null | number;
|
|
344
|
+
rateCacheDuration?: null | number;
|
|
294
345
|
};
|
|
295
346
|
|
|
296
347
|
declare type RegionDto = {
|
|
297
|
-
id: string;
|
|
298
348
|
code: string;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
sortOrder?:
|
|
349
|
+
country?: null | ICountryDto;
|
|
350
|
+
defaultPaymentMethod?: null | IPaymentMethodDto;
|
|
351
|
+
defaultShippingMethod?: null | IShippingMethodDto;
|
|
352
|
+
id: string;
|
|
353
|
+
name?: string;
|
|
354
|
+
sortOrder?: null | number;
|
|
355
|
+
store?: null | IStoreDto;
|
|
305
356
|
};
|
|
306
357
|
|
|
307
358
|
declare type RegionNamedReferenceDto = {
|
|
308
|
-
id: string;
|
|
309
359
|
code: string;
|
|
310
|
-
|
|
360
|
+
id: string;
|
|
361
|
+
name?: string;
|
|
311
362
|
};
|
|
312
363
|
|
|
313
364
|
declare type RegionReferenceDto = {
|
|
314
|
-
id: string;
|
|
315
365
|
code: string;
|
|
366
|
+
id: string;
|
|
316
367
|
};
|
|
317
368
|
|
|
318
369
|
declare type ServicePriceDto = {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
region?:
|
|
322
|
-
value?:
|
|
370
|
+
country?: null | ICountryDto;
|
|
371
|
+
currency?: null | ICurrencyDto;
|
|
372
|
+
region?: null | IRegionDto;
|
|
373
|
+
value?: null | number;
|
|
323
374
|
};
|
|
324
375
|
|
|
325
376
|
declare enum ShippingCalculationMode {
|
|
@@ -329,167 +380,136 @@ declare enum ShippingCalculationMode {
|
|
|
329
380
|
}
|
|
330
381
|
|
|
331
382
|
declare type ShippingMethodDto = {
|
|
332
|
-
id: string;
|
|
333
383
|
alias: string;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
384
|
+
allowedCountryRegions?: null | Array<AllowedCountryRegionDto>;
|
|
385
|
+
calculationConfig?: null | IShippingCalculationConfigDto;
|
|
386
|
+
calculationMode?: null | ShippingCalculationMode;
|
|
387
|
+
id: string;
|
|
388
|
+
imageId?: string;
|
|
337
389
|
isEnabled: boolean;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
calculationMode: ShippingCalculationMode;
|
|
342
|
-
calculationConfig?: DynamicRateShippingCalculationConfigDto | DynamicRateShippingCalculationConfigRequestDto | FixedRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigRequestDto | null;
|
|
343
|
-
shippingProviderSettings?: {
|
|
390
|
+
name?: string;
|
|
391
|
+
shippingProviderAlias?: string;
|
|
392
|
+
shippingProviderSettings?: null | {
|
|
344
393
|
[key: string]: unknown;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
sortOrder?:
|
|
394
|
+
};
|
|
395
|
+
sku?: string;
|
|
396
|
+
sortOrder?: null | number;
|
|
397
|
+
store?: null | IStoreDto;
|
|
398
|
+
taxClass?: null | ITaxClassDto;
|
|
348
399
|
};
|
|
349
400
|
|
|
350
401
|
declare type ShippingMethodNamedReferenceDto = {
|
|
351
|
-
id: string;
|
|
352
402
|
alias: string;
|
|
353
|
-
|
|
403
|
+
id: string;
|
|
404
|
+
name?: string;
|
|
354
405
|
};
|
|
355
406
|
|
|
356
407
|
declare type ShippingMethodReferenceDto = {
|
|
357
|
-
id: string;
|
|
358
408
|
alias: string;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
declare type ShippingMethodWithRatesDto = {
|
|
362
409
|
id: string;
|
|
363
|
-
alias: string;
|
|
364
|
-
name?: string | null;
|
|
365
|
-
store?: StoreBasicDto | StoreDto | StoreNamedReferenceDto | StoreReferenceDto | null;
|
|
366
|
-
sku?: string | null;
|
|
367
|
-
isEnabled: boolean;
|
|
368
|
-
taxClass?: TaxClassDto | TaxClassNamedReferenceDto | TaxClassReferenceDto | null;
|
|
369
|
-
imageId?: string | null;
|
|
370
|
-
shippingProviderAlias?: string | null;
|
|
371
|
-
calculationMode: ShippingCalculationMode;
|
|
372
|
-
calculationConfig?: DynamicRateShippingCalculationConfigDto | DynamicRateShippingCalculationConfigRequestDto | FixedRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigRequestDto | null;
|
|
373
|
-
shippingProviderSettings?: {
|
|
374
|
-
[key: string]: unknown;
|
|
375
|
-
} | null;
|
|
376
|
-
allowedCountryRegions?: Array<AllowedCountryRegionDto> | null;
|
|
377
|
-
sortOrder?: number | null;
|
|
378
|
-
rates?: Array<ShippingRateDto> | null;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
declare type ShippingOptionDto = {
|
|
382
|
-
id?: string | null;
|
|
383
|
-
name?: string | null;
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
declare type ShippingRateDto = {
|
|
387
|
-
option?: ShippingOptionDto | null;
|
|
388
|
-
packageId?: string | null;
|
|
389
|
-
value?: PriceDto | null;
|
|
390
410
|
};
|
|
391
411
|
|
|
392
412
|
declare type StoreBasicDto = {
|
|
393
|
-
id: string;
|
|
394
413
|
alias: string;
|
|
395
|
-
|
|
396
|
-
measurementSystem
|
|
397
|
-
|
|
414
|
+
id: string;
|
|
415
|
+
measurementSystem?: null | MeasurementSystem;
|
|
416
|
+
name?: string;
|
|
417
|
+
sortOrder?: null | number;
|
|
398
418
|
};
|
|
399
419
|
|
|
400
420
|
declare type StoreDto = {
|
|
401
|
-
|
|
421
|
+
abandonedCartEmailTemplate?: null | IEmailTemplateDto;
|
|
422
|
+
abandonedCartInactivityPeriod: number;
|
|
423
|
+
abandonedCartLandingPageUrl?: string;
|
|
402
424
|
alias: string;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
baseCurrency?: CurrencyDto | CurrencyNamedReferenceDto | CurrencyReferenceDto | null;
|
|
407
|
-
defaultLocation?: LocationDto | LocationNamedReferenceDto | LocationReferenceDto | null;
|
|
408
|
-
defaultCountry?: CountryDto | CountryNamedReferenceDto | CountryReferenceDto | null;
|
|
409
|
-
defaultTaxClass?: TaxClassDto | TaxClassNamedReferenceDto | TaxClassReferenceDto | null;
|
|
410
|
-
defaultOrderStatus?: OrderStatusDto | OrderStatusNamedReferenceDto | OrderStatusReferenceDto | null;
|
|
411
|
-
errorOrderStatus?: OrderStatusDto | OrderStatusNamedReferenceDto | OrderStatusReferenceDto | null;
|
|
412
|
-
pricesIncludeTax?: boolean | null;
|
|
425
|
+
allowedUserRoles?: null | Array<string>;
|
|
426
|
+
allowedUsers?: null | Array<string>;
|
|
427
|
+
baseCurrency?: null | ICurrencyDto;
|
|
413
428
|
canRefundTransactionFee: boolean;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
giftCardCodeLength?:
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
giftCardPropertyAliases?: string
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
429
|
+
cartNumberTemplate?: string;
|
|
430
|
+
confirmationEmailTemplate?: null | IEmailTemplateDto;
|
|
431
|
+
cookieTimeout?: null | number;
|
|
432
|
+
defaultCountry?: null | ICountryDto;
|
|
433
|
+
defaultGiftCardEmailTemplate?: null | IEmailTemplateDto;
|
|
434
|
+
defaultLocation?: null | ILocationDto;
|
|
435
|
+
defaultOrderStatus?: null | IOrderStatusDto;
|
|
436
|
+
defaultTaxClass?: null | ITaxClassDto;
|
|
437
|
+
errorEmailTemplate?: null | IEmailTemplateDto;
|
|
438
|
+
errorOrderStatus?: null | IOrderStatusDto;
|
|
439
|
+
giftCardActivationMethod?: null | GiftCardActivationMethod;
|
|
440
|
+
giftCardActivationOrderStatus?: null | IOrderStatusDto;
|
|
441
|
+
giftCardCodeLength?: null | number;
|
|
442
|
+
giftCardCodeTemplate?: string;
|
|
443
|
+
giftCardDaysValid?: null | number;
|
|
444
|
+
giftCardPropertyAliases?: string;
|
|
445
|
+
id: string;
|
|
446
|
+
logoImageUrl?: string;
|
|
447
|
+
measurementSystem?: null | MeasurementSystem;
|
|
448
|
+
name?: string;
|
|
449
|
+
orderNumberTemplate?: string;
|
|
450
|
+
orderRoundingMethod?: null | OrderRoundingMethod;
|
|
451
|
+
pricesIncludeTax?: null | boolean;
|
|
452
|
+
productPropertyAliases?: string;
|
|
453
|
+
productUniquenessPropertyAliases?: string;
|
|
454
|
+
sortOrder?: null | number;
|
|
455
|
+
themeColor?: string;
|
|
456
|
+
useCookies?: null | boolean;
|
|
437
457
|
};
|
|
438
458
|
|
|
439
459
|
declare type StoreNamedReferenceDto = {
|
|
440
|
-
id: string;
|
|
441
460
|
alias: string;
|
|
442
|
-
|
|
461
|
+
id: string;
|
|
462
|
+
name?: string;
|
|
443
463
|
};
|
|
444
464
|
|
|
445
465
|
declare type StoreReferenceDto = {
|
|
446
|
-
id: string;
|
|
447
466
|
alias: string;
|
|
467
|
+
id: string;
|
|
448
468
|
};
|
|
449
469
|
|
|
450
470
|
declare type TaxCalculationMethodDto = {
|
|
451
|
-
id: string;
|
|
452
471
|
alias: string;
|
|
453
|
-
|
|
454
|
-
|
|
472
|
+
id: string;
|
|
473
|
+
name?: string;
|
|
455
474
|
salesTaxProviderAlias: string;
|
|
456
|
-
salesTaxProviderSettings?: {
|
|
475
|
+
salesTaxProviderSettings?: null | {
|
|
457
476
|
[key: string]: unknown;
|
|
458
|
-
}
|
|
459
|
-
sortOrder?:
|
|
477
|
+
};
|
|
478
|
+
sortOrder?: null | number;
|
|
479
|
+
store?: null | IStoreDto;
|
|
460
480
|
};
|
|
461
481
|
|
|
462
482
|
declare type TaxCalculationMethodNamedReferenceDto = {
|
|
463
|
-
id: string;
|
|
464
483
|
alias: string;
|
|
465
|
-
|
|
484
|
+
id: string;
|
|
485
|
+
name?: string;
|
|
466
486
|
};
|
|
467
487
|
|
|
468
488
|
declare type TaxCalculationMethodReferenceDto = {
|
|
469
|
-
id: string;
|
|
470
489
|
alias: string;
|
|
490
|
+
id: string;
|
|
471
491
|
};
|
|
472
492
|
|
|
473
493
|
declare type TaxClassDto = {
|
|
474
|
-
id: string;
|
|
475
494
|
alias: string;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
defaultTaxRate?:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
sortOrder?:
|
|
495
|
+
countryRegionTaxClasses?: null | Array<CountryRegionTaxClassDto>;
|
|
496
|
+
defaultTaxCode?: string;
|
|
497
|
+
defaultTaxRate?: null | number;
|
|
498
|
+
id: string;
|
|
499
|
+
name?: string;
|
|
500
|
+
sortOrder?: null | number;
|
|
501
|
+
store?: null | IStoreDto;
|
|
482
502
|
};
|
|
483
503
|
|
|
484
504
|
declare type TaxClassNamedReferenceDto = {
|
|
485
|
-
id: string;
|
|
486
505
|
alias: string;
|
|
487
|
-
|
|
506
|
+
id: string;
|
|
507
|
+
name?: string;
|
|
488
508
|
};
|
|
489
509
|
|
|
490
510
|
declare type TaxClassReferenceDto = {
|
|
491
|
-
id: string;
|
|
492
511
|
alias: string;
|
|
512
|
+
id: string;
|
|
493
513
|
};
|
|
494
514
|
|
|
495
515
|
declare enum TemplateCategory {
|