owostack 0.3.1 → 0.3.2
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.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -378,7 +378,8 @@ function plan(slug, config) {
|
|
|
378
378
|
return {
|
|
379
379
|
_type: "plan",
|
|
380
380
|
slug,
|
|
381
|
-
...config
|
|
381
|
+
...config,
|
|
382
|
+
billingType: config.billingType ?? "recurring"
|
|
382
383
|
};
|
|
383
384
|
}
|
|
384
385
|
function creditPack(slug, config) {
|
|
@@ -438,6 +439,7 @@ function buildSyncPayload(catalog, defaultProvider) {
|
|
|
438
439
|
price: p.price,
|
|
439
440
|
currency: p.currency,
|
|
440
441
|
interval: p.interval,
|
|
442
|
+
billingType: p.billingType,
|
|
441
443
|
planGroup: p.planGroup ?? void 0,
|
|
442
444
|
trialDays: p.trialDays ?? void 0,
|
|
443
445
|
provider: p.provider ?? void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owostack",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Core SDK for Owostack billing infrastructure",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"payments"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@owostack/types": "0.3.
|
|
33
|
+
"@owostack/types": "0.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.3.6",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
45
45
|
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
46
46
|
"test": "vitest",
|
|
47
|
-
"lint": "
|
|
47
|
+
"lint": "tsc --noEmit -p tsconfig.json"
|
|
48
48
|
}
|
|
49
49
|
}
|