@retaila/shared-types 2.0.14 → 2.0.17
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/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1093,12 +1093,6 @@ var ChargeStatus = /* @__PURE__ */ ((ChargeStatus2) => {
|
|
|
1093
1093
|
})(ChargeStatus || {});
|
|
1094
1094
|
|
|
1095
1095
|
// src/serviceBilling/billingSchedule.ts
|
|
1096
|
-
var SERVICE_BILLING_FREE_DAYS_VALUES = [0, 7, 15, 30, 60];
|
|
1097
|
-
function normalizeServiceBillingFreeDays(value) {
|
|
1098
|
-
const n = value == null || value === "" ? 0 : Number(value);
|
|
1099
|
-
if (!Number.isFinite(n)) return 0;
|
|
1100
|
-
return SERVICE_BILLING_FREE_DAYS_VALUES.includes(n) ? n : 0;
|
|
1101
|
-
}
|
|
1102
1096
|
function contractTermMonths(contract) {
|
|
1103
1097
|
switch (contract) {
|
|
1104
1098
|
case "MONTHLY" /* MONTHLY */:
|
|
@@ -1248,7 +1242,6 @@ export {
|
|
|
1248
1242
|
PubSubTopics,
|
|
1249
1243
|
RoundingMethod,
|
|
1250
1244
|
RoundingRule,
|
|
1251
|
-
SERVICE_BILLING_FREE_DAYS_VALUES,
|
|
1252
1245
|
SUPPORTED_COUNTRIES,
|
|
1253
1246
|
StandardCategoryStatus,
|
|
1254
1247
|
StoreBannerStatus,
|
|
@@ -1280,7 +1273,6 @@ export {
|
|
|
1280
1273
|
isLegacyLayout,
|
|
1281
1274
|
isSupportedCountry,
|
|
1282
1275
|
isZonedLayout,
|
|
1283
|
-
normalizeServiceBillingFreeDays,
|
|
1284
1276
|
parsePriceFormatPattern,
|
|
1285
1277
|
paymentFrequencyMonths,
|
|
1286
1278
|
resolveEffectivePaymentFrequency,
|