@umbraco-commerce/backoffice 14.0.1 → 14.1.0
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
CHANGED
|
@@ -4,6 +4,7 @@ import type { ManifestBase } from '@umbraco-cms/backoffice/extension-api';
|
|
|
4
4
|
import type { ManifestElement } from '@umbraco-cms/backoffice/extension-api';
|
|
5
5
|
import type { ManifestElementAndApi } from '@umbraco-cms/backoffice/extension-api';
|
|
6
6
|
import type { ManifestKind } from '@umbraco-cms/backoffice/extension-api';
|
|
7
|
+
import type { ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
|
|
7
8
|
import type { Observable } from '@umbraco-cms/backoffice/observable-api';
|
|
8
9
|
import { TemplateResult } from 'lit-html';
|
|
9
10
|
import type { UmbApi } from '@umbraco-cms/backoffice/extension-api';
|
|
@@ -29,6 +30,7 @@ declare type CountryDto = {
|
|
|
29
30
|
code: string;
|
|
30
31
|
name?: string | null;
|
|
31
32
|
store?: StoreBasicDto | StoreDto | StoreNamedReferenceDto | StoreReferenceDto | null;
|
|
33
|
+
taxCalculationMethod?: TaxCalculationMethodDto | TaxCalculationMethodNamedReferenceDto | TaxCalculationMethodReferenceDto | null;
|
|
32
34
|
defaultCurrency?: CurrencyDto | CurrencyNamedReferenceDto | CurrencyReferenceDto | null;
|
|
33
35
|
defaultPaymentMethod?: PaymentMethodDto | PaymentMethodNamedReferenceDto | PaymentMethodReferenceDto | PaymentMethodWithFeeDto | null;
|
|
34
36
|
defaultShippingMethod?: ShippingMethodDto | ShippingMethodNamedReferenceDto | ShippingMethodReferenceDto | ShippingMethodWithRatesDto | null;
|
|
@@ -47,10 +49,11 @@ declare type CountryReferenceDto = {
|
|
|
47
49
|
code: string;
|
|
48
50
|
};
|
|
49
51
|
|
|
50
|
-
declare type
|
|
52
|
+
declare type CountryRegionTaxClassDto = {
|
|
51
53
|
country?: CountryDto | CountryNamedReferenceDto | CountryReferenceDto | null;
|
|
52
54
|
region?: RegionDto | RegionNamedReferenceDto | RegionReferenceDto | null;
|
|
53
55
|
taxRate?: number | null;
|
|
56
|
+
taxCode?: string | null;
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
declare type CurrencyDto = {
|
|
@@ -306,6 +309,12 @@ declare type ServicePriceDto = {
|
|
|
306
309
|
value?: number | null;
|
|
307
310
|
};
|
|
308
311
|
|
|
312
|
+
declare enum ShippingCalculationMode {
|
|
313
|
+
FIXED = "Fixed",
|
|
314
|
+
DYNAMIC = "Dynamic",
|
|
315
|
+
REALTIME = "Realtime"
|
|
316
|
+
}
|
|
317
|
+
|
|
309
318
|
declare type ShippingMethodDto = {
|
|
310
319
|
id: string;
|
|
311
320
|
alias: string;
|
|
@@ -315,7 +324,7 @@ declare type ShippingMethodDto = {
|
|
|
315
324
|
taxClass?: TaxClassDto | TaxClassNamedReferenceDto | TaxClassReferenceDto | null;
|
|
316
325
|
imageId?: string | null;
|
|
317
326
|
shippingProviderAlias?: string | null;
|
|
318
|
-
calculationMode
|
|
327
|
+
calculationMode: ShippingCalculationMode;
|
|
319
328
|
calculationConfig?: DynamicRateShippingCalculationConfigDto | DynamicRateShippingCalculationConfigRequestDto | FixedRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigRequestDto | null;
|
|
320
329
|
shippingProviderSettings?: Record<string, unknown> | null;
|
|
321
330
|
allowedCountryRegions?: Array<AllowedCountryRegionDto> | null;
|
|
@@ -342,7 +351,7 @@ declare type ShippingMethodWithRatesDto = {
|
|
|
342
351
|
taxClass?: TaxClassDto | TaxClassNamedReferenceDto | TaxClassReferenceDto | null;
|
|
343
352
|
imageId?: string | null;
|
|
344
353
|
shippingProviderAlias?: string | null;
|
|
345
|
-
calculationMode
|
|
354
|
+
calculationMode: ShippingCalculationMode;
|
|
346
355
|
calculationConfig?: DynamicRateShippingCalculationConfigDto | DynamicRateShippingCalculationConfigRequestDto | FixedRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigDto | RealtimeRateShippingCalculationConfigRequestDto | null;
|
|
347
356
|
shippingProviderSettings?: Record<string, unknown> | null;
|
|
348
357
|
allowedCountryRegions?: Array<AllowedCountryRegionDto> | null;
|
|
@@ -413,13 +422,35 @@ declare type StoreReferenceDto = {
|
|
|
413
422
|
alias: string;
|
|
414
423
|
};
|
|
415
424
|
|
|
425
|
+
declare type TaxCalculationMethodDto = {
|
|
426
|
+
id: string;
|
|
427
|
+
alias: string;
|
|
428
|
+
name?: string | null;
|
|
429
|
+
store?: StoreBasicDto | StoreDto | StoreNamedReferenceDto | StoreReferenceDto | null;
|
|
430
|
+
salesTaxProviderAlias: string;
|
|
431
|
+
salesTaxProviderSettings?: Record<string, unknown> | null;
|
|
432
|
+
sortOrder?: number | null;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
declare type TaxCalculationMethodNamedReferenceDto = {
|
|
436
|
+
id: string;
|
|
437
|
+
alias: string;
|
|
438
|
+
name?: string | null;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
declare type TaxCalculationMethodReferenceDto = {
|
|
442
|
+
id: string;
|
|
443
|
+
alias: string;
|
|
444
|
+
};
|
|
445
|
+
|
|
416
446
|
declare type TaxClassDto = {
|
|
417
447
|
id: string;
|
|
418
448
|
alias: string;
|
|
419
449
|
name?: string | null;
|
|
420
450
|
store?: StoreBasicDto | StoreDto | StoreNamedReferenceDto | StoreReferenceDto | null;
|
|
421
451
|
defaultTaxRate?: number | null;
|
|
422
|
-
|
|
452
|
+
defaultTaxCode?: string | null;
|
|
453
|
+
countryRegionTaxClasses?: Array<CountryRegionTaxClassDto> | null;
|
|
423
454
|
sortOrder?: number | null;
|
|
424
455
|
};
|
|
425
456
|
|
|
@@ -529,7 +560,7 @@ export declare interface UcManifestResolvableOrderProperty<TMeta extends UcMetaR
|
|
|
529
560
|
}
|
|
530
561
|
|
|
531
562
|
/** @public **/
|
|
532
|
-
export declare interface UcManifestStoreMenuItem extends ManifestElement<UcStoreMenuItemElement
|
|
563
|
+
export declare interface UcManifestStoreMenuItem extends ManifestElement<UcStoreMenuItemElement>, ManifestWithDynamicConditions {
|
|
533
564
|
type: 'ucStoreMenuItem';
|
|
534
565
|
meta: UcMetaStoreMenuItem;
|
|
535
566
|
}
|