@drawbridge/drawbridge-stripe 0.1.6 → 0.1.7
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -443,6 +443,7 @@ var require_subscription = __commonJS({
|
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
create: async ({
|
|
446
|
+
billingCycleAnchor,
|
|
446
447
|
customer,
|
|
447
448
|
discounts = [],
|
|
448
449
|
metadata,
|
|
@@ -473,7 +474,10 @@ var require_subscription = __commonJS({
|
|
|
473
474
|
price: actions.price
|
|
474
475
|
}
|
|
475
476
|
],
|
|
476
|
-
metadata
|
|
477
|
+
metadata,
|
|
478
|
+
...billingCycleAnchor && {
|
|
479
|
+
billing_cycle_anchor: billingCycleAnchor
|
|
480
|
+
}
|
|
477
481
|
});
|
|
478
482
|
const { product } = await stripe2.prices.retrieve(to == null ? void 0 : to.stripePriceId);
|
|
479
483
|
const plan = await stripe2.subscriptionItems.create({
|
package/dist/index.mjs
CHANGED
|
@@ -449,6 +449,7 @@ var require_subscription = __commonJS({
|
|
|
449
449
|
}
|
|
450
450
|
},
|
|
451
451
|
create: async ({
|
|
452
|
+
billingCycleAnchor,
|
|
452
453
|
customer,
|
|
453
454
|
discounts = [],
|
|
454
455
|
metadata,
|
|
@@ -479,7 +480,10 @@ var require_subscription = __commonJS({
|
|
|
479
480
|
price: actions.price
|
|
480
481
|
}
|
|
481
482
|
],
|
|
482
|
-
metadata
|
|
483
|
+
metadata,
|
|
484
|
+
...billingCycleAnchor && {
|
|
485
|
+
billing_cycle_anchor: billingCycleAnchor
|
|
486
|
+
}
|
|
483
487
|
});
|
|
484
488
|
const { product } = await stripe.prices.retrieve(to == null ? void 0 : to.stripePriceId);
|
|
485
489
|
const plan = await stripe.subscriptionItems.create({
|
package/package.json
CHANGED