feeef 0.8.13 → 0.9.1
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/index.js +10 -1
- package/build/index.js.map +1 -1
- package/build/src/core/entities/order.d.ts +6 -0
- package/build/src/core/entities/shipping_price.d.ts +2 -2
- package/build/src/feeef/services/cart.d.ts +4 -4
- package/build/src/feeef/services/integrations.d.ts +2 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -339,6 +339,8 @@ var StoreInvitesRepository = class {
|
|
|
339
339
|
this.client = client;
|
|
340
340
|
this.resource = resource;
|
|
341
341
|
}
|
|
342
|
+
client;
|
|
343
|
+
resource;
|
|
342
344
|
/**
|
|
343
345
|
* Lists invites for a store.
|
|
344
346
|
* @param storeId - The store ID.
|
|
@@ -1177,6 +1179,7 @@ var PromoRepository = class {
|
|
|
1177
1179
|
constructor(client) {
|
|
1178
1180
|
this.client = client;
|
|
1179
1181
|
}
|
|
1182
|
+
client;
|
|
1180
1183
|
/**
|
|
1181
1184
|
* Lists promos with optional pagination and validNow filter.
|
|
1182
1185
|
*/
|
|
@@ -2278,10 +2281,14 @@ var ShippingPriceStatus = /* @__PURE__ */ ((ShippingPriceStatus2) => {
|
|
|
2278
2281
|
return ShippingPriceStatus2;
|
|
2279
2282
|
})(ShippingPriceStatus || {});
|
|
2280
2283
|
function getShippingPrice(prices, countryCode, stateCode, type) {
|
|
2284
|
+
console.log("0 [getShippingPrice]", { prices, countryCode, stateCode, type });
|
|
2281
2285
|
const countryRates = prices[countryCode];
|
|
2286
|
+
console.log("1 [getShippingPrice] countryRates", countryRates);
|
|
2282
2287
|
if (!countryRates) return null;
|
|
2283
2288
|
const stateRates = countryRates[stateCode];
|
|
2289
|
+
console.log("2 [getShippingPrice] stateRates", stateRates);
|
|
2284
2290
|
if (!stateRates) return null;
|
|
2291
|
+
console.log("3 [getShippingPrice] stateRates[type]", stateRates[type]);
|
|
2285
2292
|
return stateRates[type] ?? null;
|
|
2286
2293
|
}
|
|
2287
2294
|
function isShippingAvailable(prices, countryCode, stateCode) {
|
|
@@ -4178,6 +4185,8 @@ var FeeefTransmitHttpClient = class {
|
|
|
4178
4185
|
this.options = options;
|
|
4179
4186
|
this.getAuthorizationHeader = getAuthorizationHeader;
|
|
4180
4187
|
}
|
|
4188
|
+
options;
|
|
4189
|
+
getAuthorizationHeader;
|
|
4181
4190
|
send(request) {
|
|
4182
4191
|
return fetch(request);
|
|
4183
4192
|
}
|
|
@@ -4496,7 +4505,7 @@ var AiCalculator = class {
|
|
|
4496
4505
|
}
|
|
4497
4506
|
const outputResExtraDzd = supportsImageSize ? roundMoney(this.config.resolutionCosts[outputResKey] ?? 0) : 0;
|
|
4498
4507
|
let referenceResolutionExtraDzd = 0;
|
|
4499
|
-
if (
|
|
4508
|
+
if (resolution) {
|
|
4500
4509
|
const low = this.config.resolutionCosts.MEDIA_RESOLUTION_LOW ?? 0;
|
|
4501
4510
|
const tier = this.config.resolutionCosts[resolution] ?? 0;
|
|
4502
4511
|
referenceResolutionExtraDzd = roundMoney(Math.max(0, tier - low));
|