@dainamite/cpq-billing-connector 0.1.0 → 0.1.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/CHANGELOG.md +12 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# @dainamite/cpq-billing-connector
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f8210ac: Bump `@dainamite/billing` peer dependency to `^0.18.0` (prepaid billing,
|
|
8
|
+
SPEC-002 / XD-304). No connector code changes — the connector keeps emitting
|
|
9
|
+
the same command-bus calls; this only widens the supported billing range.
|
|
10
|
+
- Updated dependencies [f8210ac]
|
|
11
|
+
- @dainamite/billing@0.18.0
|
|
12
|
+
|
|
3
13
|
## 0.1.0 — Initial release (unreleased)
|
|
4
14
|
|
|
5
15
|
- 6 subscribers translating CPQ subscription lifecycle events to
|
|
6
16
|
`@dainamite/billing` command-bus calls:
|
|
7
|
-
- `cpq.subscription.activated`
|
|
17
|
+
- `cpq.subscription.activated` _(awaits CPQ upstream PR)_ → create
|
|
8
18
|
Billing Account if missing, bulk-create Billing Items per charge.
|
|
9
19
|
- `cpq.subscription.amended` → bulk-add new items (including the
|
|
10
20
|
proration `one_time` Item the connector computes here), set
|
|
@@ -19,7 +29,7 @@
|
|
|
19
29
|
item for the superseded subscription.
|
|
20
30
|
- Pure helpers:
|
|
21
31
|
- `lib/prorationHelper.ts` — `unitPrice × quantity × daysRemaining
|
|
22
|
-
|
|
32
|
+
/ daysInPeriod` with half-up 2dp rounding, matching the spec's
|
|
23
33
|
invoice-amount rounding policy. Proration math lives here (not
|
|
24
34
|
in CPQ) so CPQ stays neutral on billing calendar semantics.
|
|
25
35
|
- `lib/chargeMapper.ts` — CPQ charge → billing item create payload.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dainamite/cpq-billing-connector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Wires @dainamite/cpq subscription lifecycle events to @dainamite/billing API calls (activated / amended / renewed / cancelled / merged / superseded).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/modules/cpq_billing_connector/index.js",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@dainamite/billing": "^0.
|
|
96
|
+
"@dainamite/billing": "^0.18.0",
|
|
97
97
|
"@dainamite/cpq": "^0.3.0",
|
|
98
98
|
"@mikro-orm/core": "^7.0.0",
|
|
99
99
|
"@mikro-orm/decorators": "^7.0.0",
|