@bunnyapp/components 1.0.47 → 1.0.48
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/cjs/index.js +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22043,11 +22043,11 @@ var QuantityInput = function (_a) {
|
|
|
22043
22043
|
var quote = (_a = subscriptionUpdateData === null || subscriptionUpdateData === void 0 ? void 0 : subscriptionUpdateData.quoteSubscriptionUpdate) === null || _a === void 0 ? void 0 : _a.quote;
|
|
22044
22044
|
var quoteChange = quote.quoteChanges.find(function (quoteChange) { return quoteChange.priceList.id === (editedSubscription === null || editedSubscription === void 0 ? void 0 : editedSubscription.subscription.priceList.id); });
|
|
22045
22045
|
var subscriptionCharge = (_b = quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.subscription) === null || _b === void 0 ? void 0 : _b.charges.find(function (charge) { var _a; return ((_a = charge === null || charge === void 0 ? void 0 : charge.priceListCharge) === null || _a === void 0 ? void 0 : _a.id) === (editedSubscription === null || editedSubscription === void 0 ? void 0 : editedSubscription.chargeId); });
|
|
22046
|
-
if (subscriptionCharge && quoteChange) {
|
|
22046
|
+
if (subscriptionCharge && quoteChange && editedSubscription) {
|
|
22047
22047
|
createCharge({
|
|
22048
22048
|
apiHost: apiHost,
|
|
22049
22049
|
endDate: subscriptionCharge.endDate,
|
|
22050
|
-
quantity:
|
|
22050
|
+
quantity: editedSubscription.quantity,
|
|
22051
22051
|
quoteChangeId: quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.id,
|
|
22052
22052
|
startDate: subscriptionCharge.startDate,
|
|
22053
22053
|
subscriptionChargeId: subscriptionCharge.id,
|
package/dist/esm/index.js
CHANGED
|
@@ -22014,11 +22014,11 @@ var QuantityInput = function (_a) {
|
|
|
22014
22014
|
var quote = (_a = subscriptionUpdateData === null || subscriptionUpdateData === void 0 ? void 0 : subscriptionUpdateData.quoteSubscriptionUpdate) === null || _a === void 0 ? void 0 : _a.quote;
|
|
22015
22015
|
var quoteChange = quote.quoteChanges.find(function (quoteChange) { return quoteChange.priceList.id === (editedSubscription === null || editedSubscription === void 0 ? void 0 : editedSubscription.subscription.priceList.id); });
|
|
22016
22016
|
var subscriptionCharge = (_b = quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.subscription) === null || _b === void 0 ? void 0 : _b.charges.find(function (charge) { var _a; return ((_a = charge === null || charge === void 0 ? void 0 : charge.priceListCharge) === null || _a === void 0 ? void 0 : _a.id) === (editedSubscription === null || editedSubscription === void 0 ? void 0 : editedSubscription.chargeId); });
|
|
22017
|
-
if (subscriptionCharge && quoteChange) {
|
|
22017
|
+
if (subscriptionCharge && quoteChange && editedSubscription) {
|
|
22018
22018
|
createCharge({
|
|
22019
22019
|
apiHost: apiHost,
|
|
22020
22020
|
endDate: subscriptionCharge.endDate,
|
|
22021
|
-
quantity:
|
|
22021
|
+
quantity: editedSubscription.quantity,
|
|
22022
22022
|
quoteChangeId: quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.id,
|
|
22023
22023
|
startDate: subscriptionCharge.startDate,
|
|
22024
22024
|
subscriptionChargeId: subscriptionCharge.id,
|
package/package.json
CHANGED