@dainamite/cpq-billing-connector 3.1.0 → 4.0.0
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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dainamite/cpq-billing-connector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
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,8 +93,8 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@dainamite/billing": "^0.
|
|
97
|
-
"@dainamite/cpq": "^0.
|
|
96
|
+
"@dainamite/billing": "^0.22.0",
|
|
97
|
+
"@dainamite/cpq": "^0.7.0",
|
|
98
98
|
"@mikro-orm/core": "^7.1.14",
|
|
99
99
|
"@mikro-orm/decorators": "^7.1.14",
|
|
100
100
|
"@mikro-orm/postgresql": "^7.1.14",
|
|
@@ -25,8 +25,12 @@ describe('buildAccountSeed', () => {
|
|
|
25
25
|
expect(buildAccountSeed(payload({ invoiceLanguage: ' PL ' })).invoiceLanguage).toBe('pl')
|
|
26
26
|
})
|
|
27
27
|
|
|
28
|
+
it.each(['en', 'es', 'de', 'pl'])('passes every billing invoice language through (%s)', (code) => {
|
|
29
|
+
expect(buildAccountSeed(payload({ invoiceLanguage: code.toUpperCase() })).invoiceLanguage).toBe(code)
|
|
30
|
+
})
|
|
31
|
+
|
|
28
32
|
it('falls back to the default language for unsupported or missing codes', () => {
|
|
29
|
-
expect(buildAccountSeed(payload({ invoiceLanguage: '
|
|
33
|
+
expect(buildAccountSeed(payload({ invoiceLanguage: 'fr' })).invoiceLanguage).toBe('en')
|
|
30
34
|
expect(buildAccountSeed(payload()).invoiceLanguage).toBe('en')
|
|
31
35
|
})
|
|
32
36
|
|