@wix/auto_sdk_ecom_totals-calculator 1.0.133 → 1.0.134
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/index.d.ts +1 -1
- package/build/cjs/index.js +93 -27
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +166 -1
- package/build/cjs/index.typings.js +93 -27
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +166 -1
- package/build/cjs/meta.js +93 -27
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +89 -27
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +166 -1
- package/build/es/index.typings.mjs +89 -27
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +166 -1
- package/build/es/meta.mjs +89 -27
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +237 -1
- package/build/internal/cjs/meta.d.ts +237 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +237 -1
- package/build/internal/es/meta.d.mts +237 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { CalculateTotalsOptions, CalculateTotalsResponse } from './index.typings.js';
|
|
3
|
-
export { AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, Benefit, BenefitQuotaOneOf, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationMode, CalculationModeWithLiterals, CalculationSettings, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, ChargeTypeWithLiterals, ConvertAndCalculateTotalsApplicationErrors, ConvertAndCalculateTotalsOptions, ConvertAndCalculateTotalsRequest, ConvertAndCalculateTotalsResponse, Coupon, CouponDiscountValueOneOf, CoveredLineItem, DataFetchType, DataFetchTypeWithLiterals, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountRulesCalculationSettings, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, ExistingMembership, ExistingMembershipSelection, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FutureMembershipSelection, GiftCard, GiftCardCalculationError, GiftCardInput, Group, InvalidMembership, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemCoverage, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSelection, MerchantDiscount, ModifierGroup, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, PriceSummary, PurchasablePlan, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, Region, RuleType, RuleTypeWithLiterals, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, TotalsCalculationEntity, TranslatableString, V1AdditionalFee, V1Membership, V1TaxDetails, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AggregatedTaxBreakdown, ApiV1AdditionalFee, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseRateSource, BaseRateSourceWithLiterals, Benefit, BenefitQuotaOneOf, CalculateTotalsOptionsCouponOneOf, CalculateTotalsOptionsGiftCardOneOf, CalculateTotalsRequest, CalculateTotalsRequestCouponOneOf, CalculateTotalsRequestGiftCardOneOf, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationMode, CalculationModeWithLiterals, CalculationSettings, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CarrierShippingOption, CatalogReference, ChargeType, ChargeTypeWithLiterals, ConvertAndCalculateTotalsApplicationErrors, ConvertAndCalculateTotalsOptions, ConvertAndCalculateTotalsRequest, ConvertAndCalculateTotalsResponse, Coupon, CouponDiscountValueOneOf, CoveredLineItem, CrossBorderNotApplicableReason, CrossBorderNotApplicableReasonWithLiterals, CrossBorderPriceAdjustment, CrossBorderRepricingMode, CrossBorderRepricingModeWithLiterals, CrossBorderRepricingResult, DataFetchType, DataFetchTypeWithLiterals, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountRulesCalculationSettings, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, ExistingMembership, ExistingMembershipSelection, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FutureMembershipSelection, GiftCard, GiftCardCalculationError, GiftCardInput, Group, InvalidMembership, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemCoverage, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSelection, MerchantDiscount, ModifierGroup, MultiCurrencyPrice, OtherCharge, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, PriceSummary, PurchasablePlan, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, Region, RepriceStatus, RepriceStatusWithLiterals, RuleType, RuleTypeWithLiterals, Scope, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionSettings, SystemError, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, TotalsCalculationEntity, TranslatableString, V1AdditionalFee, V1Membership, V1TaxDetails, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function calculateTotals$1(httpClient: HttpClient): CalculateTotalsSignature;
|
|
6
6
|
interface CalculateTotalsSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -22,8 +22,11 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AdditionalFeeSource: () => AdditionalFeeSource,
|
|
24
24
|
BalanceType: () => BalanceType,
|
|
25
|
+
BaseRateSource: () => BaseRateSource,
|
|
25
26
|
CalculationMode: () => CalculationMode,
|
|
26
27
|
ChargeType: () => ChargeType,
|
|
28
|
+
CrossBorderNotApplicableReason: () => CrossBorderNotApplicableReason,
|
|
29
|
+
CrossBorderRepricingMode: () => CrossBorderRepricingMode,
|
|
27
30
|
DataFetchType: () => DataFetchType,
|
|
28
31
|
DimensionsUnit: () => DimensionsUnit,
|
|
29
32
|
DiscountType: () => DiscountType,
|
|
@@ -38,6 +41,7 @@ __export(index_exports, {
|
|
|
38
41
|
PlatformFeeChargeType: () => PlatformFeeChargeType,
|
|
39
42
|
QuotaType: () => QuotaType,
|
|
40
43
|
RateType: () => RateType,
|
|
44
|
+
RepriceStatus: () => RepriceStatus,
|
|
41
45
|
RuleType: () => RuleType,
|
|
42
46
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
43
47
|
TaxableAddressType: () => TaxableAddressType,
|
|
@@ -80,25 +84,19 @@ var TRANSFORM_PATHS_1 = [
|
|
|
80
84
|
];
|
|
81
85
|
var TRANSFORM_PATHS_2 = [
|
|
82
86
|
{
|
|
83
|
-
path: "
|
|
87
|
+
path: "calculatedLineItems.pricesBreakdown.crossBorderAdjustment.baseRateCapturedDate"
|
|
84
88
|
},
|
|
85
89
|
{
|
|
86
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.
|
|
90
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
87
91
|
},
|
|
88
92
|
{
|
|
89
|
-
path: "shippingInfo.
|
|
93
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
90
94
|
},
|
|
91
95
|
{
|
|
92
|
-
path: "shippingInfo.
|
|
96
|
+
path: "shippingInfo.selectedCarrierServiceOption.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
93
97
|
},
|
|
94
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
95
|
-
];
|
|
96
|
-
var TRANSFORM_PATHS_3 = [
|
|
97
98
|
{
|
|
98
|
-
path: "shippingInfo.selectedCarrierServiceOption.
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
99
|
+
path: "shippingInfo.selectedCarrierServiceOption.otherCharges.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
102
100
|
},
|
|
103
101
|
{
|
|
104
102
|
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
@@ -110,7 +108,23 @@ var TRANSFORM_PATHS_3 = [
|
|
|
110
108
|
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
111
109
|
{
|
|
112
110
|
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
113
|
-
}
|
|
111
|
+
},
|
|
112
|
+
{ path: "additionalFees.crossBorderAdjustment.baseRateCapturedDate" }
|
|
113
|
+
];
|
|
114
|
+
var TRANSFORM_PATHS_3 = [
|
|
115
|
+
{
|
|
116
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
126
|
+
},
|
|
127
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
114
128
|
];
|
|
115
129
|
var TRANSFORM_PATHS_4 = [
|
|
116
130
|
{ path: "calculationRequest.lineItems.physicalProperties.weight" },
|
|
@@ -138,25 +152,19 @@ var TRANSFORM_PATHS_5 = [
|
|
|
138
152
|
];
|
|
139
153
|
var TRANSFORM_PATHS_6 = [
|
|
140
154
|
{
|
|
141
|
-
path: "calculationResult.
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
155
|
+
path: "calculationResult.calculatedLineItems.pricesBreakdown.crossBorderAdjustment.baseRateCapturedDate"
|
|
145
156
|
},
|
|
146
157
|
{
|
|
147
|
-
path: "calculationResult.shippingInfo.
|
|
158
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
148
159
|
},
|
|
149
160
|
{
|
|
150
|
-
path: "calculationResult.shippingInfo.
|
|
161
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
151
162
|
},
|
|
152
|
-
{ path: "calculationResult.appliedDiscounts.merchantDiscount.percentage" }
|
|
153
|
-
];
|
|
154
|
-
var TRANSFORM_PATHS_7 = [
|
|
155
163
|
{
|
|
156
|
-
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.
|
|
164
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
157
165
|
},
|
|
158
166
|
{
|
|
159
|
-
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.
|
|
167
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.otherCharges.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
160
168
|
},
|
|
161
169
|
{
|
|
162
170
|
path: "calculationResult.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
@@ -172,8 +180,26 @@ var TRANSFORM_PATHS_7 = [
|
|
|
172
180
|
},
|
|
173
181
|
{
|
|
174
182
|
path: "calculationResult.membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
path: "calculationResult.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
175
186
|
}
|
|
176
187
|
];
|
|
188
|
+
var TRANSFORM_PATHS_7 = [
|
|
189
|
+
{
|
|
190
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
path: "calculationResult.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "calculationResult.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
path: "calculationResult.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
200
|
+
},
|
|
201
|
+
{ path: "calculationResult.appliedDiscounts.merchantDiscount.percentage" }
|
|
202
|
+
];
|
|
177
203
|
function resolveComWixEcomTotalsCalculatorV1TotalsCalculatorUrl(opts) {
|
|
178
204
|
const domainToMappings = {
|
|
179
205
|
"bo._base_domain_": [
|
|
@@ -244,11 +270,11 @@ function calculateTotals(payload) {
|
|
|
244
270
|
data: serializedData,
|
|
245
271
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
246
272
|
{
|
|
247
|
-
transformFn:
|
|
273
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
248
274
|
paths: TRANSFORM_PATHS_2
|
|
249
275
|
},
|
|
250
276
|
{
|
|
251
|
-
transformFn:
|
|
277
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
252
278
|
paths: TRANSFORM_PATHS_3
|
|
253
279
|
}
|
|
254
280
|
])
|
|
@@ -285,11 +311,11 @@ function convertAndCalculateTotals(payload) {
|
|
|
285
311
|
data: serializedData,
|
|
286
312
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
287
313
|
{
|
|
288
|
-
transformFn:
|
|
314
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
289
315
|
paths: TRANSFORM_PATHS_6
|
|
290
316
|
},
|
|
291
317
|
{
|
|
292
|
-
transformFn:
|
|
318
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
293
319
|
paths: TRANSFORM_PATHS_7
|
|
294
320
|
}
|
|
295
321
|
])
|
|
@@ -412,6 +438,12 @@ var CalculationMode = /* @__PURE__ */ ((CalculationMode2) => {
|
|
|
412
438
|
CalculationMode2["SKIP"] = "SKIP";
|
|
413
439
|
return CalculationMode2;
|
|
414
440
|
})(CalculationMode || {});
|
|
441
|
+
var CrossBorderRepricingMode = /* @__PURE__ */ ((CrossBorderRepricingMode2) => {
|
|
442
|
+
CrossBorderRepricingMode2["DISABLED"] = "DISABLED";
|
|
443
|
+
CrossBorderRepricingMode2["STRIP_ONLY"] = "STRIP_ONLY";
|
|
444
|
+
CrossBorderRepricingMode2["FULL"] = "FULL";
|
|
445
|
+
return CrossBorderRepricingMode2;
|
|
446
|
+
})(CrossBorderRepricingMode || {});
|
|
415
447
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
416
448
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
417
449
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -421,6 +453,23 @@ var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
|
421
453
|
JurisdictionType2["SPECIAL"] = "SPECIAL";
|
|
422
454
|
return JurisdictionType2;
|
|
423
455
|
})(JurisdictionType || {});
|
|
456
|
+
var RepriceStatus = /* @__PURE__ */ ((RepriceStatus2) => {
|
|
457
|
+
RepriceStatus2["APPLIED"] = "APPLIED";
|
|
458
|
+
RepriceStatus2["KEPT"] = "KEPT";
|
|
459
|
+
RepriceStatus2["STRIP_ONLY"] = "STRIP_ONLY";
|
|
460
|
+
RepriceStatus2["SAME_REGION"] = "SAME_REGION";
|
|
461
|
+
RepriceStatus2["SAME_COUNTRY"] = "SAME_COUNTRY";
|
|
462
|
+
RepriceStatus2["NO_DESTINATION_REGION"] = "NO_DESTINATION_REGION";
|
|
463
|
+
RepriceStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
464
|
+
RepriceStatus2["NOT_APPLICABLE_MODIFIERS"] = "NOT_APPLICABLE_MODIFIERS";
|
|
465
|
+
RepriceStatus2["CONVERTED_CURRENCY_SUBSCRIPTION"] = "CONVERTED_CURRENCY_SUBSCRIPTION";
|
|
466
|
+
return RepriceStatus2;
|
|
467
|
+
})(RepriceStatus || {});
|
|
468
|
+
var BaseRateSource = /* @__PURE__ */ ((BaseRateSource2) => {
|
|
469
|
+
BaseRateSource2["MANUAL_SPI"] = "MANUAL_SPI";
|
|
470
|
+
BaseRateSource2["AVALARA_PROBE"] = "AVALARA_PROBE";
|
|
471
|
+
return BaseRateSource2;
|
|
472
|
+
})(BaseRateSource || {});
|
|
424
473
|
var RateType = /* @__PURE__ */ ((RateType2) => {
|
|
425
474
|
RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
|
|
426
475
|
RateType2["MANUAL_RATE"] = "MANUAL_RATE";
|
|
@@ -492,6 +541,19 @@ var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
|
492
541
|
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
493
542
|
return AdditionalFeeSource2;
|
|
494
543
|
})(AdditionalFeeSource || {});
|
|
544
|
+
var CrossBorderNotApplicableReason = /* @__PURE__ */ ((CrossBorderNotApplicableReason2) => {
|
|
545
|
+
CrossBorderNotApplicableReason2["FEATURE_DISABLED"] = "FEATURE_DISABLED";
|
|
546
|
+
CrossBorderNotApplicableReason2["NOT_OPTED_IN"] = "NOT_OPTED_IN";
|
|
547
|
+
CrossBorderNotApplicableReason2["TAX_INCLUSIVE_PRICING_OFF"] = "TAX_INCLUSIVE_PRICING_OFF";
|
|
548
|
+
CrossBorderNotApplicableReason2["BASE_TAX_REGION_NOT_FOUND"] = "BASE_TAX_REGION_NOT_FOUND";
|
|
549
|
+
CrossBorderNotApplicableReason2["BASE_REGION_HAS_NO_MANUAL_MAPPING"] = "BASE_REGION_HAS_NO_MANUAL_MAPPING";
|
|
550
|
+
CrossBorderNotApplicableReason2["EMBEDDED_RATE_MISSING"] = "EMBEDDED_RATE_MISSING";
|
|
551
|
+
CrossBorderNotApplicableReason2["CROSS_BORDER_REPRICING_FAILED"] = "CROSS_BORDER_REPRICING_FAILED";
|
|
552
|
+
CrossBorderNotApplicableReason2["SHIPPING_REPRICING_FAILED"] = "SHIPPING_REPRICING_FAILED";
|
|
553
|
+
CrossBorderNotApplicableReason2["FEES_REPRICING_FAILED"] = "FEES_REPRICING_FAILED";
|
|
554
|
+
CrossBorderNotApplicableReason2["SETTINGS_UNAVAILABLE"] = "SETTINGS_UNAVAILABLE";
|
|
555
|
+
return CrossBorderNotApplicableReason2;
|
|
556
|
+
})(CrossBorderNotApplicableReason || {});
|
|
495
557
|
async function calculateTotals2(options) {
|
|
496
558
|
const { httpClient, sideEffects } = arguments[1];
|
|
497
559
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -650,8 +712,11 @@ var convertAndCalculateTotals4 = /* @__PURE__ */ (0, import_rest_modules2.create
|
|
|
650
712
|
0 && (module.exports = {
|
|
651
713
|
AdditionalFeeSource,
|
|
652
714
|
BalanceType,
|
|
715
|
+
BaseRateSource,
|
|
653
716
|
CalculationMode,
|
|
654
717
|
ChargeType,
|
|
718
|
+
CrossBorderNotApplicableReason,
|
|
719
|
+
CrossBorderRepricingMode,
|
|
655
720
|
DataFetchType,
|
|
656
721
|
DimensionsUnit,
|
|
657
722
|
DiscountType,
|
|
@@ -666,6 +731,7 @@ var convertAndCalculateTotals4 = /* @__PURE__ */ (0, import_rest_modules2.create
|
|
|
666
731
|
PlatformFeeChargeType,
|
|
667
732
|
QuotaType,
|
|
668
733
|
RateType,
|
|
734
|
+
RepriceStatus,
|
|
669
735
|
RuleType,
|
|
670
736
|
SubscriptionFrequency,
|
|
671
737
|
TaxableAddressType,
|