@drawbridge/drawbridge-stripe 0.1.2 → 0.1.3
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.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158,6 +158,10 @@ var require_billing = __commonJS({
|
|
|
158
158
|
title: customer + ".credit_balance_depleted"
|
|
159
159
|
});
|
|
160
160
|
const stripePricingPlanSubscriptionId = (_d = (_c = (_b = (_a = actions == null ? void 0 : actions.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.pricing_plan_subscription_details) == null ? void 0 : _d.pricing_plan_subscription;
|
|
161
|
+
if (!stripePricingPlanSubscriptionId) {
|
|
162
|
+
throw new Error("Stripe billing intent did not return a pricing plan subscription ID for customer: " + customer);
|
|
163
|
+
}
|
|
164
|
+
;
|
|
161
165
|
return {
|
|
162
166
|
stripeAlerts: {
|
|
163
167
|
ai: {
|
package/dist/index.mjs
CHANGED
|
@@ -164,6 +164,10 @@ var require_billing = __commonJS({
|
|
|
164
164
|
title: customer + ".credit_balance_depleted"
|
|
165
165
|
});
|
|
166
166
|
const stripePricingPlanSubscriptionId = (_d = (_c = (_b = (_a = actions == null ? void 0 : actions.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.pricing_plan_subscription_details) == null ? void 0 : _d.pricing_plan_subscription;
|
|
167
|
+
if (!stripePricingPlanSubscriptionId) {
|
|
168
|
+
throw new Error("Stripe billing intent did not return a pricing plan subscription ID for customer: " + customer);
|
|
169
|
+
}
|
|
170
|
+
;
|
|
167
171
|
return {
|
|
168
172
|
stripeAlerts: {
|
|
169
173
|
ai: {
|
package/package.json
CHANGED