@fusebase/fusebase-gate-sdk 2.2.2-sdk.29 → 2.2.2-sdk.30
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Domain: billing
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { orgIdInPathRequired, StripeCheckoutLinkRequestContract, StripeCheckoutLinkResponseContract, StripeOauthLookupRequestContract, StripeOauthLookupResponseContract, StripePaymentStateRequestContract, StripePaymentStateResponseContract, StripeProductCreateRequestContract, StripeProductDeleteRequestContract, StripeProductDeleteResponseContract, StripeProductFindRequestContract, StripeProductLookupResponseContract, StripeProductMutationResponseContract } from "../types";
|
|
8
|
+
import type { orgIdInPathRequired, StripeCheckoutLinkRequestContract, StripeCheckoutLinkResponseContract, StripeModeMutationResponseContract, StripeModeUpdateRequestContract, StripeOauthLookupRequestContract, StripeOauthLookupResponseContract, StripePaymentStateRequestContract, StripePaymentStateResponseContract, StripeProductCreateRequestContract, StripeProductDeleteRequestContract, StripeProductDeleteResponseContract, StripeProductFindRequestContract, StripeProductLookupResponseContract, StripeProductMutationResponseContract } from "../types";
|
|
9
9
|
export declare class BillingApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -75,6 +75,17 @@ export declare class BillingApi {
|
|
|
75
75
|
headers?: Record<string, string>;
|
|
76
76
|
body: StripePaymentStateRequestContract;
|
|
77
77
|
}): Promise<StripePaymentStateResponseContract>;
|
|
78
|
+
/**
|
|
79
|
+
* Update Stripe mode
|
|
80
|
+
* Switches the connected Stripe account between test and live mode without copying Stripe products or prices.
|
|
81
|
+
*/
|
|
82
|
+
updateStripeMode(params: {
|
|
83
|
+
path: {
|
|
84
|
+
orgId: orgIdInPathRequired;
|
|
85
|
+
};
|
|
86
|
+
headers?: Record<string, string>;
|
|
87
|
+
body: StripeModeUpdateRequestContract;
|
|
88
|
+
}): Promise<StripeModeMutationResponseContract>;
|
|
78
89
|
/**
|
|
79
90
|
* Update Stripe product
|
|
80
91
|
* Replaces a Stripe product by marking the existing record deleted for the same kind and kindId, then creating a new one.
|
package/dist/apis/BillingApi.js
CHANGED
|
@@ -101,6 +101,21 @@ class BillingApi {
|
|
|
101
101
|
expectedContentType: "application/json",
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Update Stripe mode
|
|
106
|
+
* Switches the connected Stripe account between test and live mode without copying Stripe products or prices.
|
|
107
|
+
*/
|
|
108
|
+
async updateStripeMode(params) {
|
|
109
|
+
return this.client.request({
|
|
110
|
+
method: "PUT",
|
|
111
|
+
path: "/:orgId/billing/stripe/mode",
|
|
112
|
+
pathParams: params.path,
|
|
113
|
+
headers: params.headers,
|
|
114
|
+
body: params.body,
|
|
115
|
+
opId: "updateStripeMode",
|
|
116
|
+
expectedContentType: "application/json",
|
|
117
|
+
});
|
|
118
|
+
}
|
|
104
119
|
/**
|
|
105
120
|
* Update Stripe product
|
|
106
121
|
* Replaces a Stripe product by marking the existing record deleted for the same kind and kindId, then creating a new one.
|
|
@@ -7,10 +7,18 @@ export interface StripeOauthContract {
|
|
|
7
7
|
orgId?: string;
|
|
8
8
|
userId?: number;
|
|
9
9
|
stripeAccountId?: string;
|
|
10
|
+
liveMode?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface StripeOauthLookupResponseContract {
|
|
12
13
|
oauth: StripeOauthContract | null;
|
|
13
14
|
}
|
|
15
|
+
export interface StripeModeUpdateRequestContract {
|
|
16
|
+
stripeAccountId: string;
|
|
17
|
+
liveMode: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface StripeModeMutationResponseContract {
|
|
20
|
+
oauth: StripeOauthContract;
|
|
21
|
+
}
|
|
14
22
|
export interface StripeProductContract {
|
|
15
23
|
id?: number;
|
|
16
24
|
orgId?: string;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.2-sdk.
|
|
1
|
+
# Release Notes 2.2.2-sdk.30
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.2-sdk.
|
|
5
|
-
- Generated at: 2026-04-
|
|
4
|
+
- Previous tag: `v2.2.2-sdk.30`
|
|
5
|
+
- Generated at: 2026-04-06T09:32:22.763Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|