@wix/auto_sdk_ecom_totals-calculator 1.0.4 → 1.0.6
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/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.context.d.ts +1 -1
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.public.d.ts +1 -1
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.types.d.ts +76 -7
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.d.ts +78 -7
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.js +2 -0
- package/build/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.js.map +1 -1
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.context.d.ts +1 -1
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.public.d.ts +1 -1
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.public.js.map +1 -1
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.types.d.ts +76 -7
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.types.js.map +1 -1
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.universal.d.ts +78 -7
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.universal.js +2 -0
- package/build/es/src/ecom-v1-totals-calculation-totals-calculator.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.context.d.ts +1 -1
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.public.d.ts +1 -1
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.types.d.ts +76 -7
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.d.ts +84 -7
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.js +2 -0
- package/build/internal/cjs/src/ecom-v1-totals-calculation-totals-calculator.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.context.d.ts +1 -1
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.public.d.ts +1 -1
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.public.js.map +1 -1
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.types.d.ts +76 -7
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.universal.d.ts +84 -7
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.universal.js +2 -0
- package/build/internal/es/src/ecom-v1-totals-calculation-totals-calculator.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,4 +2,4 @@ import { calculateTotals as publicCalculateTotals } from './ecom-v1-totals-calcu
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const calculateTotals: MaybeContext<BuildRESTFunction<typeof publicCalculateTotals> & typeof publicCalculateTotals>;
|
|
4
4
|
export { SubscriptionFrequency, PaymentOptionType, ItemTypeItemType, TaxableAddressType, PickupMethod, ChargeType, DiscountType, DataFetchType, JurisdictionType, RateType, ManualCalculationReason, FallbackReason, RuleType, WeightUnit, AdditionalFeeSource, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
5
|
-
export { TotalsCalculationEntity, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, LineItem, CatalogReference, PhysicalProperties, Scope, Group, SubscriptionSettings, ServiceProperties, ItemType, ItemTypeItemTypeDataOneOf, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ApiV1AdditionalFee, V1TaxDetails, Address, StreetAddress, AddressLocation, SelectedShippingOption, MerchantDiscountInput, SelectedMemberships, SelectedMembership, CarrierShippingOption, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, MultiCurrencyPrice, OtherCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, DiscountRule, DiscountRuleName, LineItemDiscount, AdditionalFee, TaxDetails, ExternalReference, CalculateTotalsResponse, CalculatedLineItem, LineItemPricesData, ItemTaxFullDetails, TaxRateBreakdown, TaxBreakdown, PriceSummary, GiftCard, TaxSummary, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, AutoTaxFallbackCalculationDetails, ApplicationError, AggregatedTaxBreakdown, ShippingInformation, ShippingRegion, SelectedCarrierServiceOption, SelectedCarrierServiceOptionPrices, SelectedCarrierServiceOptionOtherCharge, CarrierServiceOption, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, MembershipOptions, Membership, MembershipName, MembershipPaymentCredits, InvalidMembership, V1AdditionalFee, CalculateTotalsResponseNonNullableFields, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
5
|
+
export { TotalsCalculationEntity, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, LineItem, CatalogReference, PhysicalProperties, Scope, Group, SubscriptionSettings, ServiceProperties, ItemType, ItemTypeItemTypeDataOneOf, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ApiV1AdditionalFee, V1TaxDetails, ModifierGroup, TranslatableString, ItemModifier, Address, StreetAddress, AddressLocation, SelectedShippingOption, MerchantDiscountInput, SelectedMemberships, SelectedMembership, CarrierShippingOption, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, MultiCurrencyPrice, OtherCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, DiscountRule, DiscountRuleName, LineItemDiscount, AdditionalFee, TaxDetails, ExternalReference, CalculateTotalsResponse, CalculatedLineItem, LineItemPricesData, ItemTaxFullDetails, TaxRateBreakdown, TaxBreakdown, PriceSummary, GiftCard, TaxSummary, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, AutoTaxFallbackCalculationDetails, ApplicationError, AggregatedTaxBreakdown, ShippingInformation, ShippingRegion, SelectedCarrierServiceOption, SelectedCarrierServiceOptionPrices, SelectedCarrierServiceOptionOtherCharge, CarrierServiceOption, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, MembershipOptions, Membership, MembershipName, MembershipPaymentCredits, InvalidMembership, V1AdditionalFee, CalculateTotalsResponseNonNullableFields, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
@@ -10,4 +10,4 @@ interface CalculateTotalsSignature {
|
|
|
10
10
|
*/
|
|
11
11
|
(options?: CalculateTotalsOptions | undefined): Promise<CalculateTotalsResponse & CalculateTotalsResponseNonNullableFields>;
|
|
12
12
|
}
|
|
13
|
-
export { AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculateTotalsResponse, CalculateTotalsResponseNonNullableFields, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, Coupon, DataFetchType, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, ExternalReference, FallbackReason, FieldViolation, GiftCard, Group, InvalidMembership, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PriceSummary, RateType, Region, RuleType, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalsCalculationEntity, V1AdditionalFee, V1TaxDetails, ValidationError, WeightUnit, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
13
|
+
export { AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculateTotalsResponse, CalculateTotalsResponseNonNullableFields, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, Coupon, DataFetchType, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, ExternalReference, FallbackReason, FieldViolation, GiftCard, Group, InvalidMembership, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, ModifierGroup, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PriceSummary, RateType, Region, RuleType, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalsCalculationEntity, TranslatableString, V1AdditionalFee, V1TaxDetails, ValidationError, WeightUnit, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.public.ts"],"names":[],"mappings":";;;AACA,2IAKqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,IAAA,2EAAwB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAWD,
|
|
1
|
+
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.public.ts"],"names":[],"mappings":";;;AACA,2IAKqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,IAAA,2EAAwB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAWD,yIAwGqE;AAtGnE,gKAAA,mBAAmB,OAAA;AA2BnB,uJAAA,UAAU,OAAA;AAEV,0JAAA,aAAa,OAAA;AAQb,yJAAA,YAAY,OAAA;AAEZ,2JAAA,cAAc,OAAA;AAQd,6JAAA,gBAAgB,OAAA;AAEhB,6JAAA,gBAAgB,OAAA;AAIhB,oKAAA,uBAAuB,OAAA;AAUvB,8JAAA,iBAAiB,OAAA;AAGjB,yJAAA,YAAY,OAAA;AAEZ,qJAAA,QAAQ,OAAA;AAER,qJAAA,QAAQ,OAAA;AAcR,kKAAA,qBAAqB,OAAA;AAWrB,+JAAA,kBAAkB,OAAA;AAMlB,uJAAA,UAAU,OAAA"}
|
|
@@ -104,7 +104,7 @@ export interface LineItem {
|
|
|
104
104
|
*/
|
|
105
105
|
productName?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Catalog price.
|
|
108
108
|
* @decimalValue options { gte:0 }
|
|
109
109
|
*/
|
|
110
110
|
price?: string;
|
|
@@ -308,6 +308,66 @@ export interface V1TaxDetails {
|
|
|
308
308
|
*/
|
|
309
309
|
taxGroupId?: string | null;
|
|
310
310
|
}
|
|
311
|
+
export interface ModifierGroup {
|
|
312
|
+
/**
|
|
313
|
+
* Modifier group id.
|
|
314
|
+
* @minLength 1
|
|
315
|
+
* @maxLength 36
|
|
316
|
+
*/
|
|
317
|
+
id?: string;
|
|
318
|
+
/** Modifier group name. */
|
|
319
|
+
name?: TranslatableString;
|
|
320
|
+
/**
|
|
321
|
+
* List of modifiers in this group.
|
|
322
|
+
* @minSize 1
|
|
323
|
+
* @maxSize 10
|
|
324
|
+
*/
|
|
325
|
+
modifiers?: ItemModifier[];
|
|
326
|
+
}
|
|
327
|
+
export interface TranslatableString {
|
|
328
|
+
/**
|
|
329
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
330
|
+
*
|
|
331
|
+
* Min: 1 character.
|
|
332
|
+
* Max: 200 characters.
|
|
333
|
+
* @minLength 1
|
|
334
|
+
* @maxLength 200
|
|
335
|
+
*/
|
|
336
|
+
original?: string;
|
|
337
|
+
/**
|
|
338
|
+
* String translated into the buyer's language.
|
|
339
|
+
*
|
|
340
|
+
* Min: 1 character.
|
|
341
|
+
* Max: 400 characters.
|
|
342
|
+
* Default: Same as `original`.
|
|
343
|
+
* @minLength 1
|
|
344
|
+
* @maxLength 400
|
|
345
|
+
*/
|
|
346
|
+
translated?: string | null;
|
|
347
|
+
}
|
|
348
|
+
export interface ItemModifier {
|
|
349
|
+
/**
|
|
350
|
+
* Modifier ID.
|
|
351
|
+
* @minLength 1
|
|
352
|
+
* @maxLength 36
|
|
353
|
+
*/
|
|
354
|
+
id?: string;
|
|
355
|
+
/**
|
|
356
|
+
* The quantity of this modifier.
|
|
357
|
+
* @min 1
|
|
358
|
+
* @max 100000
|
|
359
|
+
*/
|
|
360
|
+
quantity?: number | null;
|
|
361
|
+
/** Primary display label for the modifier. */
|
|
362
|
+
label?: TranslatableString;
|
|
363
|
+
/** Optional additional details or clarification for the modifier. */
|
|
364
|
+
details?: TranslatableString;
|
|
365
|
+
/**
|
|
366
|
+
* The price of the modifier.
|
|
367
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
368
|
+
*/
|
|
369
|
+
price?: string | null;
|
|
370
|
+
}
|
|
311
371
|
/** Physical address */
|
|
312
372
|
export interface Address {
|
|
313
373
|
/**
|
|
@@ -815,22 +875,30 @@ export interface CalculatedLineItem {
|
|
|
815
875
|
paymentOption?: PaymentOptionType;
|
|
816
876
|
}
|
|
817
877
|
export interface LineItemPricesData {
|
|
818
|
-
/** Total price after discounts and
|
|
878
|
+
/** Total price after discounts, tax, and modifiers. */
|
|
819
879
|
totalPriceAfterTax?: MultiCurrencyPrice;
|
|
820
|
-
/** Total price after discounts, and before tax. */
|
|
880
|
+
/** Total price after discounts and modifiers, and before tax. */
|
|
821
881
|
totalPriceBeforeTax?: MultiCurrencyPrice;
|
|
822
882
|
/** Tax details. */
|
|
823
883
|
taxDetails?: ItemTaxFullDetails;
|
|
824
884
|
/** Total discount applied for the line item. */
|
|
825
885
|
totalDiscount?: MultiCurrencyPrice;
|
|
826
|
-
/** Catalog price
|
|
886
|
+
/** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */
|
|
827
887
|
price?: MultiCurrencyPrice;
|
|
828
|
-
/**
|
|
888
|
+
/**
|
|
889
|
+
* Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.
|
|
890
|
+
* Defaults to `price` when not provided.
|
|
891
|
+
*/
|
|
829
892
|
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
830
|
-
/** Total price
|
|
893
|
+
/** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
|
|
831
894
|
lineItemPrice?: MultiCurrencyPrice;
|
|
832
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* Item price before all discounts and modifiers.
|
|
897
|
+
* Defaults to `price` when not provided.
|
|
898
|
+
*/
|
|
833
899
|
fullPrice?: MultiCurrencyPrice;
|
|
900
|
+
/** Total price of all item modifiers. */
|
|
901
|
+
modifiers?: MultiCurrencyPrice;
|
|
834
902
|
}
|
|
835
903
|
export interface ItemTaxFullDetails {
|
|
836
904
|
/** Amount for which tax is calculated. */
|
|
@@ -1429,6 +1497,7 @@ interface LineItemPricesDataNonNullableFields {
|
|
|
1429
1497
|
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
1430
1498
|
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1431
1499
|
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1500
|
+
modifiers?: MultiCurrencyPriceNonNullableFields;
|
|
1432
1501
|
}
|
|
1433
1502
|
interface CalculatedLineItemNonNullableFields {
|
|
1434
1503
|
lineItemId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.types.ts"],"names":[],"mappings":";;;AAuNA,0CAA0C;AAC1C,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAED,uDAAuD;AACvD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AA+BD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAaD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yEAAmD,CAAA;IACnD,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;
|
|
1
|
+
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.types.ts"],"names":[],"mappings":";;;AAuNA,0CAA0C;AAC1C,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAED,uDAAuD;AACvD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AA+BD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAaD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yEAAmD,CAAA;IACnD,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AA6RD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA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Ac,8BAAd,cAAc,QAKzB;AAqOD,IAAY,QAsBX;AAtBD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,qDAAyC,CAAA;IACzC,6CAAiC,CAAA;IACjC,mDAAuC,CAAA;IACvC,iDAAqC,CAAA;IACrC,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;AACjD,CAAC,EAtBW,QAAQ,wBAAR,QAAQ,QAsBnB;AA4BD,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,uDAAuD;IACvD,iEAAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,cAAc;IACd,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAyHD,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,sFAA+D,CAAA;IAC/D,uEAAuE;IACvE,wDAAiC,CAAA;IACjC,6FAA6F;IAC7F,oCAAa,CAAA;IACb,2DAA2D;IAC3D,wCAAiB,CAAA;AACnB,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B"}
|
|
@@ -104,7 +104,7 @@ export interface LineItem {
|
|
|
104
104
|
*/
|
|
105
105
|
productName?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Catalog price.
|
|
108
108
|
* @decimalValue options { gte:0 }
|
|
109
109
|
*/
|
|
110
110
|
price?: string;
|
|
@@ -308,6 +308,66 @@ export interface V1TaxDetails {
|
|
|
308
308
|
*/
|
|
309
309
|
taxGroupId?: string | null;
|
|
310
310
|
}
|
|
311
|
+
export interface ModifierGroup {
|
|
312
|
+
/**
|
|
313
|
+
* Modifier group id.
|
|
314
|
+
* @minLength 1
|
|
315
|
+
* @maxLength 36
|
|
316
|
+
*/
|
|
317
|
+
_id?: string;
|
|
318
|
+
/** Modifier group name. */
|
|
319
|
+
name?: TranslatableString;
|
|
320
|
+
/**
|
|
321
|
+
* List of modifiers in this group.
|
|
322
|
+
* @minSize 1
|
|
323
|
+
* @maxSize 10
|
|
324
|
+
*/
|
|
325
|
+
modifiers?: ItemModifier[];
|
|
326
|
+
}
|
|
327
|
+
export interface TranslatableString {
|
|
328
|
+
/**
|
|
329
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
330
|
+
*
|
|
331
|
+
* Min: 1 character.
|
|
332
|
+
* Max: 200 characters.
|
|
333
|
+
* @minLength 1
|
|
334
|
+
* @maxLength 200
|
|
335
|
+
*/
|
|
336
|
+
original?: string;
|
|
337
|
+
/**
|
|
338
|
+
* String translated into the buyer's language.
|
|
339
|
+
*
|
|
340
|
+
* Min: 1 character.
|
|
341
|
+
* Max: 400 characters.
|
|
342
|
+
* Default: Same as `original`.
|
|
343
|
+
* @minLength 1
|
|
344
|
+
* @maxLength 400
|
|
345
|
+
*/
|
|
346
|
+
translated?: string | null;
|
|
347
|
+
}
|
|
348
|
+
export interface ItemModifier {
|
|
349
|
+
/**
|
|
350
|
+
* Modifier ID.
|
|
351
|
+
* @minLength 1
|
|
352
|
+
* @maxLength 36
|
|
353
|
+
*/
|
|
354
|
+
_id?: string;
|
|
355
|
+
/**
|
|
356
|
+
* The quantity of this modifier.
|
|
357
|
+
* @min 1
|
|
358
|
+
* @max 100000
|
|
359
|
+
*/
|
|
360
|
+
quantity?: number | null;
|
|
361
|
+
/** Primary display label for the modifier. */
|
|
362
|
+
label?: TranslatableString;
|
|
363
|
+
/** Optional additional details or clarification for the modifier. */
|
|
364
|
+
details?: TranslatableString;
|
|
365
|
+
/**
|
|
366
|
+
* The price of the modifier.
|
|
367
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
368
|
+
*/
|
|
369
|
+
price?: string | null;
|
|
370
|
+
}
|
|
311
371
|
/** Physical address */
|
|
312
372
|
export interface Address {
|
|
313
373
|
/**
|
|
@@ -815,22 +875,30 @@ export interface CalculatedLineItem {
|
|
|
815
875
|
paymentOption?: PaymentOptionType;
|
|
816
876
|
}
|
|
817
877
|
export interface LineItemPricesData {
|
|
818
|
-
/** Total price after discounts and
|
|
878
|
+
/** Total price after discounts, tax, and modifiers. */
|
|
819
879
|
totalPriceAfterTax?: MultiCurrencyPrice;
|
|
820
|
-
/** Total price after discounts, and before tax. */
|
|
880
|
+
/** Total price after discounts and modifiers, and before tax. */
|
|
821
881
|
totalPriceBeforeTax?: MultiCurrencyPrice;
|
|
822
882
|
/** Tax details. */
|
|
823
883
|
taxDetails?: ItemTaxFullDetails;
|
|
824
884
|
/** Total discount applied for the line item. */
|
|
825
885
|
totalDiscount?: MultiCurrencyPrice;
|
|
826
|
-
/** Catalog price
|
|
886
|
+
/** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */
|
|
827
887
|
price?: MultiCurrencyPrice;
|
|
828
|
-
/**
|
|
888
|
+
/**
|
|
889
|
+
* Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.
|
|
890
|
+
* Defaults to `price` when not provided.
|
|
891
|
+
*/
|
|
829
892
|
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
830
|
-
/** Total price
|
|
893
|
+
/** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
|
|
831
894
|
lineItemPrice?: MultiCurrencyPrice;
|
|
832
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* Item price before all discounts and modifiers.
|
|
897
|
+
* Defaults to `price` when not provided.
|
|
898
|
+
*/
|
|
833
899
|
fullPrice?: MultiCurrencyPrice;
|
|
900
|
+
/** Total price of all item modifiers. */
|
|
901
|
+
modifiers?: MultiCurrencyPrice;
|
|
834
902
|
}
|
|
835
903
|
export interface ItemTaxFullDetails {
|
|
836
904
|
/** Amount for which tax is calculated. */
|
|
@@ -1429,6 +1497,7 @@ interface LineItemPricesDataNonNullableFields {
|
|
|
1429
1497
|
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
1430
1498
|
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1431
1499
|
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1500
|
+
modifiers?: MultiCurrencyPriceNonNullableFields;
|
|
1432
1501
|
}
|
|
1433
1502
|
interface CalculatedLineItemNonNullableFields {
|
|
1434
1503
|
lineItemId: string;
|
|
@@ -1688,6 +1757,8 @@ export interface CalculateTotalsResponseNonNullableFields {
|
|
|
1688
1757
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1689
1758
|
* @permissionScope Manage eCommerce - all permissions
|
|
1690
1759
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1760
|
+
* @permissionScope Picasso private app mega scope
|
|
1761
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
1691
1762
|
* @applicableIdentity APP
|
|
1692
1763
|
* @applicableIdentity VISITOR
|
|
1693
1764
|
* @fqn com.wix.ecom.totals_calculator.v1.TotalsCalculator.CalculateTotals
|
|
@@ -189,6 +189,8 @@ var AdditionalFeeSource;
|
|
|
189
189
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
190
190
|
* @permissionScope Manage eCommerce - all permissions
|
|
191
191
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
192
|
+
* @permissionScope Picasso private app mega scope
|
|
193
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
192
194
|
* @applicableIdentity APP
|
|
193
195
|
* @applicableIdentity VISITOR
|
|
194
196
|
* @fqn com.wix.ecom.totals_calculator.v1.TotalsCalculator.CalculateTotals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,6HAA+G;AAC/G,sEAA4F;AAC5F,sEAA4F;AAC5F,sFAAkF;
|
|
1
|
+
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,6HAA+G;AAC/G,sEAA4F;AAC5F,sEAA4F;AAC5F,sFAAkF;AAyPlF,0CAA0C;AAC1C,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAED,uDAAuD;AACvD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AA+BD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AAC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E,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAC5C,IAAA,gCAAc,EAAC,MAAM,CAAC,IAAI,EAAE;YAC1B;gBACE,WAAW,EAAE,0CAAgC;gBAC7C,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,2EAA2E;qBAClF;oBACD;wBACE,IAAI,EAAE,oFAAoF;qBAC3F;iBACF;aACF;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,aAAa,EAAE,oBAAoB;gBACnC,SAAS,EAAE,gBAAgB;gBAC3B,eAAe,EAAE,sBAAsB;gBACvC,cAAc,EAAE,qBAAqB;gBACrC,sBAAsB,EAAE,6BAA6B;gBACrD,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE,iBAAiB;gBAC7B,UAAU,EAAE,iBAAiB;gBAC7B,YAAY,EAAE,mBAAmB;gBACjC,iBAAiB,EAAE,wBAAwB;gBAC3C,UAAU,EAAE,iBAAiB;gBAC7B,QAAQ,EAAE,eAAe;gBACzB,mBAAmB,EAAE,0BAA0B;gBAC/C,UAAU,EAAE,iBAAiB;gBAC7B,cAAc,EAAE,qBAAqB;aACtC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA7FD,0CA6FC"}
|
|
@@ -2,4 +2,4 @@ import { calculateTotals as publicCalculateTotals } from './ecom-v1-totals-calcu
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const calculateTotals: MaybeContext<BuildRESTFunction<typeof publicCalculateTotals> & typeof publicCalculateTotals>;
|
|
4
4
|
export { SubscriptionFrequency, PaymentOptionType, ItemTypeItemType, TaxableAddressType, PickupMethod, ChargeType, DiscountType, DataFetchType, JurisdictionType, RateType, ManualCalculationReason, FallbackReason, RuleType, WeightUnit, AdditionalFeeSource, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
5
|
-
export { TotalsCalculationEntity, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, LineItem, CatalogReference, PhysicalProperties, Scope, Group, SubscriptionSettings, ServiceProperties, ItemType, ItemTypeItemTypeDataOneOf, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ApiV1AdditionalFee, V1TaxDetails, Address, StreetAddress, AddressLocation, SelectedShippingOption, MerchantDiscountInput, SelectedMemberships, SelectedMembership, CarrierShippingOption, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, MultiCurrencyPrice, OtherCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, DiscountRule, DiscountRuleName, LineItemDiscount, AdditionalFee, TaxDetails, ExternalReference, CalculateTotalsResponse, CalculatedLineItem, LineItemPricesData, ItemTaxFullDetails, TaxRateBreakdown, TaxBreakdown, PriceSummary, GiftCard, TaxSummary, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, AutoTaxFallbackCalculationDetails, ApplicationError, AggregatedTaxBreakdown, ShippingInformation, ShippingRegion, SelectedCarrierServiceOption, SelectedCarrierServiceOptionPrices, SelectedCarrierServiceOptionOtherCharge, CarrierServiceOption, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, MembershipOptions, Membership, MembershipName, MembershipPaymentCredits, InvalidMembership, V1AdditionalFee, CalculateTotalsResponseNonNullableFields, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
5
|
+
export { TotalsCalculationEntity, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, LineItem, CatalogReference, PhysicalProperties, Scope, Group, SubscriptionSettings, ServiceProperties, ItemType, ItemTypeItemTypeDataOneOf, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ApiV1AdditionalFee, V1TaxDetails, ModifierGroup, TranslatableString, ItemModifier, Address, StreetAddress, AddressLocation, SelectedShippingOption, MerchantDiscountInput, SelectedMemberships, SelectedMembership, CarrierShippingOption, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, MultiCurrencyPrice, OtherCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, DiscountRule, DiscountRuleName, LineItemDiscount, AdditionalFee, TaxDetails, ExternalReference, CalculateTotalsResponse, CalculatedLineItem, LineItemPricesData, ItemTaxFullDetails, TaxRateBreakdown, TaxBreakdown, PriceSummary, GiftCard, TaxSummary, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, AutoTaxFallbackCalculationDetails, ApplicationError, AggregatedTaxBreakdown, ShippingInformation, ShippingRegion, SelectedCarrierServiceOption, SelectedCarrierServiceOptionPrices, SelectedCarrierServiceOptionOtherCharge, CarrierServiceOption, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, MembershipOptions, Membership, MembershipName, MembershipPaymentCredits, InvalidMembership, V1AdditionalFee, CalculateTotalsResponseNonNullableFields, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
@@ -10,4 +10,4 @@ interface CalculateTotalsSignature {
|
|
|
10
10
|
*/
|
|
11
11
|
(options?: CalculateTotalsOptions | undefined): Promise<CalculateTotalsResponse & CalculateTotalsResponseNonNullableFields>;
|
|
12
12
|
}
|
|
13
|
-
export { AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculateTotalsResponse, CalculateTotalsResponseNonNullableFields, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, Coupon, DataFetchType, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, ExternalReference, FallbackReason, FieldViolation, GiftCard, Group, InvalidMembership, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PriceSummary, RateType, Region, RuleType, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalsCalculationEntity, V1AdditionalFee, V1TaxDetails, ValidationError, WeightUnit, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
13
|
+
export { AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, CalculateTotalsOptions, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculateTotalsResponse, CalculateTotalsResponseNonNullableFields, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, Coupon, DataFetchType, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, ExternalReference, FallbackReason, FieldViolation, GiftCard, Group, InvalidMembership, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, ModifierGroup, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PriceSummary, RateType, Region, RuleType, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalsCalculationEntity, TranslatableString, V1AdditionalFee, V1TaxDetails, ValidationError, WeightUnit, } from './ecom-v1-totals-calculation-totals-calculator.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.public.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,eAAe,IAAI,wBAAwB,GAC5C,MAAM,6DAA6D,CAAC;AAErE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,wBAAwB,CACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,OAAO,EAEL,mBAAmB,EA2BnB,UAAU,EAEV,aAAa,EAQb,YAAY,EAEZ,cAAc,
|
|
1
|
+
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.public.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,eAAe,IAAI,wBAAwB,GAC5C,MAAM,6DAA6D,CAAC;AAErE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,wBAAwB,CACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,OAAO,EAEL,mBAAmB,EA2BnB,UAAU,EAEV,aAAa,EAQb,YAAY,EAEZ,cAAc,EAQd,gBAAgB,EAEhB,gBAAgB,EAIhB,uBAAuB,EAUvB,iBAAiB,EAGjB,YAAY,EAEZ,QAAQ,EAER,QAAQ,EAcR,qBAAqB,EAWrB,kBAAkB,EAMlB,UAAU,GACX,MAAM,6DAA6D,CAAC"}
|
|
@@ -104,7 +104,7 @@ export interface LineItem {
|
|
|
104
104
|
*/
|
|
105
105
|
productName?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Catalog price.
|
|
108
108
|
* @decimalValue options { gte:0 }
|
|
109
109
|
*/
|
|
110
110
|
price?: string;
|
|
@@ -308,6 +308,66 @@ export interface V1TaxDetails {
|
|
|
308
308
|
*/
|
|
309
309
|
taxGroupId?: string | null;
|
|
310
310
|
}
|
|
311
|
+
export interface ModifierGroup {
|
|
312
|
+
/**
|
|
313
|
+
* Modifier group id.
|
|
314
|
+
* @minLength 1
|
|
315
|
+
* @maxLength 36
|
|
316
|
+
*/
|
|
317
|
+
id?: string;
|
|
318
|
+
/** Modifier group name. */
|
|
319
|
+
name?: TranslatableString;
|
|
320
|
+
/**
|
|
321
|
+
* List of modifiers in this group.
|
|
322
|
+
* @minSize 1
|
|
323
|
+
* @maxSize 10
|
|
324
|
+
*/
|
|
325
|
+
modifiers?: ItemModifier[];
|
|
326
|
+
}
|
|
327
|
+
export interface TranslatableString {
|
|
328
|
+
/**
|
|
329
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
330
|
+
*
|
|
331
|
+
* Min: 1 character.
|
|
332
|
+
* Max: 200 characters.
|
|
333
|
+
* @minLength 1
|
|
334
|
+
* @maxLength 200
|
|
335
|
+
*/
|
|
336
|
+
original?: string;
|
|
337
|
+
/**
|
|
338
|
+
* String translated into the buyer's language.
|
|
339
|
+
*
|
|
340
|
+
* Min: 1 character.
|
|
341
|
+
* Max: 400 characters.
|
|
342
|
+
* Default: Same as `original`.
|
|
343
|
+
* @minLength 1
|
|
344
|
+
* @maxLength 400
|
|
345
|
+
*/
|
|
346
|
+
translated?: string | null;
|
|
347
|
+
}
|
|
348
|
+
export interface ItemModifier {
|
|
349
|
+
/**
|
|
350
|
+
* Modifier ID.
|
|
351
|
+
* @minLength 1
|
|
352
|
+
* @maxLength 36
|
|
353
|
+
*/
|
|
354
|
+
id?: string;
|
|
355
|
+
/**
|
|
356
|
+
* The quantity of this modifier.
|
|
357
|
+
* @min 1
|
|
358
|
+
* @max 100000
|
|
359
|
+
*/
|
|
360
|
+
quantity?: number | null;
|
|
361
|
+
/** Primary display label for the modifier. */
|
|
362
|
+
label?: TranslatableString;
|
|
363
|
+
/** Optional additional details or clarification for the modifier. */
|
|
364
|
+
details?: TranslatableString;
|
|
365
|
+
/**
|
|
366
|
+
* The price of the modifier.
|
|
367
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
368
|
+
*/
|
|
369
|
+
price?: string | null;
|
|
370
|
+
}
|
|
311
371
|
/** Physical address */
|
|
312
372
|
export interface Address {
|
|
313
373
|
/**
|
|
@@ -815,22 +875,30 @@ export interface CalculatedLineItem {
|
|
|
815
875
|
paymentOption?: PaymentOptionType;
|
|
816
876
|
}
|
|
817
877
|
export interface LineItemPricesData {
|
|
818
|
-
/** Total price after discounts and
|
|
878
|
+
/** Total price after discounts, tax, and modifiers. */
|
|
819
879
|
totalPriceAfterTax?: MultiCurrencyPrice;
|
|
820
|
-
/** Total price after discounts, and before tax. */
|
|
880
|
+
/** Total price after discounts and modifiers, and before tax. */
|
|
821
881
|
totalPriceBeforeTax?: MultiCurrencyPrice;
|
|
822
882
|
/** Tax details. */
|
|
823
883
|
taxDetails?: ItemTaxFullDetails;
|
|
824
884
|
/** Total discount applied for the line item. */
|
|
825
885
|
totalDiscount?: MultiCurrencyPrice;
|
|
826
|
-
/** Catalog price
|
|
886
|
+
/** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */
|
|
827
887
|
price?: MultiCurrencyPrice;
|
|
828
|
-
/**
|
|
888
|
+
/**
|
|
889
|
+
* Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.
|
|
890
|
+
* Defaults to `price` when not provided.
|
|
891
|
+
*/
|
|
829
892
|
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
830
|
-
/** Total price
|
|
893
|
+
/** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
|
|
831
894
|
lineItemPrice?: MultiCurrencyPrice;
|
|
832
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* Item price before all discounts and modifiers.
|
|
897
|
+
* Defaults to `price` when not provided.
|
|
898
|
+
*/
|
|
833
899
|
fullPrice?: MultiCurrencyPrice;
|
|
900
|
+
/** Total price of all item modifiers. */
|
|
901
|
+
modifiers?: MultiCurrencyPrice;
|
|
834
902
|
}
|
|
835
903
|
export interface ItemTaxFullDetails {
|
|
836
904
|
/** Amount for which tax is calculated. */
|
|
@@ -1429,6 +1497,7 @@ interface LineItemPricesDataNonNullableFields {
|
|
|
1429
1497
|
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
1430
1498
|
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1431
1499
|
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1500
|
+
modifiers?: MultiCurrencyPriceNonNullableFields;
|
|
1432
1501
|
}
|
|
1433
1502
|
interface CalculatedLineItemNonNullableFields {
|
|
1434
1503
|
lineItemId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.types.ts"],"names":[],"mappings":"AAuNA,0CAA0C;AAC1C,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AAED,uDAAuD;AACvD,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CAAC,EAXW,iBAAiB,KAAjB,iBAAiB,QAW5B;AA+BD,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAaD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yEAAmD,CAAA;IACnD,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;
|
|
1
|
+
{"version":3,"file":"ecom-v1-totals-calculation-totals-calculator.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-totals-calculation-totals-calculator.types.ts"],"names":[],"mappings":"AAuNA,0CAA0C;AAC1C,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AAED,uDAAuD;AACvD,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAy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AAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,cAAc;IACd,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAyHD,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,sFAA+D,CAAA;IAC/D,uEAAuE;IACvE,wDAAiC,CAAA;IACjC,6FAA6F;IAC7F,oCAAa,CAAA;IACb,2DAA2D;IAC3D,wCAAiB,CAAA;AACnB,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B"}
|
|
@@ -104,7 +104,7 @@ export interface LineItem {
|
|
|
104
104
|
*/
|
|
105
105
|
productName?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Catalog price.
|
|
108
108
|
* @decimalValue options { gte:0 }
|
|
109
109
|
*/
|
|
110
110
|
price?: string;
|
|
@@ -308,6 +308,66 @@ export interface V1TaxDetails {
|
|
|
308
308
|
*/
|
|
309
309
|
taxGroupId?: string | null;
|
|
310
310
|
}
|
|
311
|
+
export interface ModifierGroup {
|
|
312
|
+
/**
|
|
313
|
+
* Modifier group id.
|
|
314
|
+
* @minLength 1
|
|
315
|
+
* @maxLength 36
|
|
316
|
+
*/
|
|
317
|
+
_id?: string;
|
|
318
|
+
/** Modifier group name. */
|
|
319
|
+
name?: TranslatableString;
|
|
320
|
+
/**
|
|
321
|
+
* List of modifiers in this group.
|
|
322
|
+
* @minSize 1
|
|
323
|
+
* @maxSize 10
|
|
324
|
+
*/
|
|
325
|
+
modifiers?: ItemModifier[];
|
|
326
|
+
}
|
|
327
|
+
export interface TranslatableString {
|
|
328
|
+
/**
|
|
329
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
330
|
+
*
|
|
331
|
+
* Min: 1 character.
|
|
332
|
+
* Max: 200 characters.
|
|
333
|
+
* @minLength 1
|
|
334
|
+
* @maxLength 200
|
|
335
|
+
*/
|
|
336
|
+
original?: string;
|
|
337
|
+
/**
|
|
338
|
+
* String translated into the buyer's language.
|
|
339
|
+
*
|
|
340
|
+
* Min: 1 character.
|
|
341
|
+
* Max: 400 characters.
|
|
342
|
+
* Default: Same as `original`.
|
|
343
|
+
* @minLength 1
|
|
344
|
+
* @maxLength 400
|
|
345
|
+
*/
|
|
346
|
+
translated?: string | null;
|
|
347
|
+
}
|
|
348
|
+
export interface ItemModifier {
|
|
349
|
+
/**
|
|
350
|
+
* Modifier ID.
|
|
351
|
+
* @minLength 1
|
|
352
|
+
* @maxLength 36
|
|
353
|
+
*/
|
|
354
|
+
_id?: string;
|
|
355
|
+
/**
|
|
356
|
+
* The quantity of this modifier.
|
|
357
|
+
* @min 1
|
|
358
|
+
* @max 100000
|
|
359
|
+
*/
|
|
360
|
+
quantity?: number | null;
|
|
361
|
+
/** Primary display label for the modifier. */
|
|
362
|
+
label?: TranslatableString;
|
|
363
|
+
/** Optional additional details or clarification for the modifier. */
|
|
364
|
+
details?: TranslatableString;
|
|
365
|
+
/**
|
|
366
|
+
* The price of the modifier.
|
|
367
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
368
|
+
*/
|
|
369
|
+
price?: string | null;
|
|
370
|
+
}
|
|
311
371
|
/** Physical address */
|
|
312
372
|
export interface Address {
|
|
313
373
|
/**
|
|
@@ -815,22 +875,30 @@ export interface CalculatedLineItem {
|
|
|
815
875
|
paymentOption?: PaymentOptionType;
|
|
816
876
|
}
|
|
817
877
|
export interface LineItemPricesData {
|
|
818
|
-
/** Total price after discounts and
|
|
878
|
+
/** Total price after discounts, tax, and modifiers. */
|
|
819
879
|
totalPriceAfterTax?: MultiCurrencyPrice;
|
|
820
|
-
/** Total price after discounts, and before tax. */
|
|
880
|
+
/** Total price after discounts and modifiers, and before tax. */
|
|
821
881
|
totalPriceBeforeTax?: MultiCurrencyPrice;
|
|
822
882
|
/** Tax details. */
|
|
823
883
|
taxDetails?: ItemTaxFullDetails;
|
|
824
884
|
/** Total discount applied for the line item. */
|
|
825
885
|
totalDiscount?: MultiCurrencyPrice;
|
|
826
|
-
/** Catalog price
|
|
886
|
+
/** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */
|
|
827
887
|
price?: MultiCurrencyPrice;
|
|
828
|
-
/**
|
|
888
|
+
/**
|
|
889
|
+
* Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.
|
|
890
|
+
* Defaults to `price` when not provided.
|
|
891
|
+
*/
|
|
829
892
|
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
830
|
-
/** Total price
|
|
893
|
+
/** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
|
|
831
894
|
lineItemPrice?: MultiCurrencyPrice;
|
|
832
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* Item price before all discounts and modifiers.
|
|
897
|
+
* Defaults to `price` when not provided.
|
|
898
|
+
*/
|
|
833
899
|
fullPrice?: MultiCurrencyPrice;
|
|
900
|
+
/** Total price of all item modifiers. */
|
|
901
|
+
modifiers?: MultiCurrencyPrice;
|
|
834
902
|
}
|
|
835
903
|
export interface ItemTaxFullDetails {
|
|
836
904
|
/** Amount for which tax is calculated. */
|
|
@@ -1429,6 +1497,7 @@ interface LineItemPricesDataNonNullableFields {
|
|
|
1429
1497
|
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
1430
1498
|
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1431
1499
|
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
1500
|
+
modifiers?: MultiCurrencyPriceNonNullableFields;
|
|
1432
1501
|
}
|
|
1433
1502
|
interface CalculatedLineItemNonNullableFields {
|
|
1434
1503
|
lineItemId: string;
|
|
@@ -1688,6 +1757,8 @@ export interface CalculateTotalsResponseNonNullableFields {
|
|
|
1688
1757
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1689
1758
|
* @permissionScope Manage eCommerce - all permissions
|
|
1690
1759
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1760
|
+
* @permissionScope Picasso private app mega scope
|
|
1761
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
1691
1762
|
* @applicableIdentity APP
|
|
1692
1763
|
* @applicableIdentity VISITOR
|
|
1693
1764
|
* @fqn com.wix.ecom.totals_calculator.v1.TotalsCalculator.CalculateTotals
|
|
@@ -163,6 +163,8 @@ export var AdditionalFeeSource;
|
|
|
163
163
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
164
164
|
* @permissionScope Manage eCommerce - all permissions
|
|
165
165
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
166
|
+
* @permissionScope Picasso private app mega scope
|
|
167
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
166
168
|
* @applicableIdentity APP
|
|
167
169
|
* @applicableIdentity VISITOR
|
|
168
170
|
* @fqn com.wix.ecom.totals_calculator.v1.TotalsCalculator.CalculateTotals
|