@forklaunch/interfaces-billing 0.5.7 → 0.6.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.
@@ -6,13 +6,15 @@ export interface BillingPortalService<
6
6
  // for generating external links
7
7
  // store in cache, for permissions
8
8
  createBillingPortalSession: (
9
- billingPortalDto: Params['CreateBillingPortalDto']
9
+ billingPortalDto: Params['CreateBillingPortalDto'],
10
+ ...args: unknown[]
10
11
  ) => Promise<Params['BillingPortalDto']>;
11
12
  getBillingPortalSession: (
12
13
  idDto: Params['IdDto']
13
14
  ) => Promise<Params['BillingPortalDto']>;
14
15
  updateBillingPortalSession: (
15
- billingPortalDto: Params['UpdateBillingPortalDto']
16
+ billingPortalDto: Params['UpdateBillingPortalDto'],
17
+ ...args: unknown[]
16
18
  ) => Promise<Params['BillingPortalDto']>;
17
19
  expireBillingPortalSession: (idDto: Params['IdDto']) => Promise<void>;
18
20
  }
@@ -9,6 +9,7 @@ export type CreateCheckoutSessionDto<
9
9
  paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
10
10
  currency: CurrencyEnum[keyof CurrencyEnum];
11
11
  successRedirectUri?: string;
12
+ uri?: string;
12
13
  cancelRedirectUri?: string;
13
14
  expiresAt: Date;
14
15
  status: StatusEnum[keyof StatusEnum];
@@ -12,13 +12,15 @@ interface BillingPortalService<
12
12
  Params extends BillingPortalServiceParameters = BillingPortalServiceParameters
13
13
  > {
14
14
  createBillingPortalSession: (
15
- billingPortalDto: Params['CreateBillingPortalDto']
15
+ billingPortalDto: Params['CreateBillingPortalDto'],
16
+ ...args: unknown[]
16
17
  ) => Promise<Params['BillingPortalDto']>;
17
18
  getBillingPortalSession: (
18
19
  idDto: Params['IdDto']
19
20
  ) => Promise<Params['BillingPortalDto']>;
20
21
  updateBillingPortalSession: (
21
- billingPortalDto: Params['UpdateBillingPortalDto']
22
+ billingPortalDto: Params['UpdateBillingPortalDto'],
23
+ ...args: unknown[]
22
24
  ) => Promise<Params['BillingPortalDto']>;
23
25
  expireBillingPortalSession: (idDto: Params['IdDto']) => Promise<void>;
24
26
  }
@@ -12,13 +12,15 @@ interface BillingPortalService<
12
12
  Params extends BillingPortalServiceParameters = BillingPortalServiceParameters
13
13
  > {
14
14
  createBillingPortalSession: (
15
- billingPortalDto: Params['CreateBillingPortalDto']
15
+ billingPortalDto: Params['CreateBillingPortalDto'],
16
+ ...args: unknown[]
16
17
  ) => Promise<Params['BillingPortalDto']>;
17
18
  getBillingPortalSession: (
18
19
  idDto: Params['IdDto']
19
20
  ) => Promise<Params['BillingPortalDto']>;
20
21
  updateBillingPortalSession: (
21
- billingPortalDto: Params['UpdateBillingPortalDto']
22
+ billingPortalDto: Params['UpdateBillingPortalDto'],
23
+ ...args: unknown[]
22
24
  ) => Promise<Params['BillingPortalDto']>;
23
25
  expireBillingPortalSession: (idDto: Params['IdDto']) => Promise<void>;
24
26
  }
@@ -23,6 +23,7 @@ type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
23
23
  paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
24
24
  currency: CurrencyEnum[keyof CurrencyEnum];
25
25
  successRedirectUri?: string;
26
+ uri?: string;
26
27
  cancelRedirectUri?: string;
27
28
  expiresAt: Date;
28
29
  status: StatusEnum[keyof StatusEnum];
@@ -23,6 +23,7 @@ type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
23
23
  paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
24
24
  currency: CurrencyEnum[keyof CurrencyEnum];
25
25
  successRedirectUri?: string;
26
+ uri?: string;
26
27
  cancelRedirectUri?: string;
27
28
  expiresAt: Date;
28
29
  status: StatusEnum[keyof StatusEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/interfaces-billing",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "description": "Billing interfaces for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -31,11 +31,11 @@
31
31
  "lib/**"
32
32
  ],
33
33
  "dependencies": {
34
- "@forklaunch/common": "^0.5.7",
35
- "@mikro-orm/core": "^6.4.16"
34
+ "@forklaunch/common": "^0.6.3",
35
+ "@mikro-orm/core": "^6.5.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@typescript/native-preview": "7.0.0-dev.20250825.1",
38
+ "@typescript/native-preview": "7.0.0-dev.20250828.1",
39
39
  "depcheck": "^1.4.7",
40
40
  "prettier": "^3.6.2",
41
41
  "typedoc": "^0.28.11"