Skip to content

Commit 01be6e0

Browse files
authored
Merge pull request #151 from flowglad/release-please--branches--main--changes--next--components--node
release: 0.18.2
2 parents 0afbf69 + 958fec1 commit 01be6e0

File tree

7 files changed

+61
-47
lines changed

7 files changed

+61
-47
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.18.1"
2+
".": "0.18.2"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-eacdc537229747a8051fc73ae19a38a1b303cb94110e711ce8c404b0fba4dd7d.yml
3-
openapi_spec_hash: 0a82788b540013e2dd16a10afa397966
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-230d72f3d008c90d718567137b4d513610c9b681cdf7e5c7444f6dc8e04f4a51.yml
3+
openapi_spec_hash: b74afc8af3abeaac4c774600fd8badfd
44
config_hash: 6f063dec3fcd13dc4e319af6a6486f59

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Changelog
2+
## 0.18.2 (2025-04-04)
3+
4+
Full Changelog: [v0.18.1...v0.18.2](https://github.com/flowglad/flowglad-node/compare/v0.18.1...v0.18.2)
5+
6+
### Bug Fixes
7+
8+
* **api:** checkout session type ([#149](https://github.com/flowglad/flowglad-node/issues/149)) ([cf6ceb6](https://github.com/flowglad/flowglad-node/commit/cf6ceb6c4b2b4099550ffd630b0eebe827e1e7c7))
9+
210
## 0.18.1 (2025-04-04)
311

412
Full Changelog: [v0.18.0...v0.18.1](https://github.com/flowglad/flowglad-node/compare/v0.18.0...v0.18.1)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flowglad/node",
3-
"version": "0.18.1",
3+
"version": "0.18.2",
44
"description": "The official TypeScript library for the Flowglad API",
55
"author": "Flowglad <dev-feedback@flowglad.com>",
66
"types": "dist/index.d.ts",

src/resources/checkout-sessions.ts

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -835,43 +835,45 @@ export namespace CheckoutSessionListResponse {
835835
}
836836

837837
export interface CheckoutSessionCreateParams {
838-
/**
839-
* The URL to redirect to after the purchase is cancelled or fails
840-
*/
841-
cancelUrl: string;
838+
checkoutSession: {
839+
/**
840+
* The URL to redirect to after the purchase is cancelled or fails
841+
*/
842+
cancelUrl: string;
842843

843-
/**
844-
* The id of the Customer for this purchase session, as defined in your system
845-
*/
846-
customerExternalId: string;
844+
/**
845+
* The id of the Customer for this purchase session, as defined in your system
846+
*/
847+
customerExternalId: string;
847848

848-
/**
849-
* The ID of the price the customer shall purchase
850-
*/
851-
priceId: string;
849+
/**
850+
* The ID of the price the customer shall purchase
851+
*/
852+
priceId: string;
852853

853-
/**
854-
* The URL to redirect to after the purchase is successful
855-
*/
856-
successUrl: string;
854+
/**
855+
* The URL to redirect to after the purchase is successful
856+
*/
857+
successUrl: string;
857858

858-
/**
859-
* Metadata that will get added to the purchase or subscription created when this
860-
* checkout session succeeds. Ignored if the checkout session is of type `invoice`.
861-
*/
862-
outputMetadata?: Record<string, unknown>;
859+
/**
860+
* Metadata that will get added to the purchase or subscription created when this
861+
* checkout session succeeds. Ignored if the checkout session is of type `invoice`.
862+
*/
863+
outputMetadata?: Record<string, unknown>;
863864

864-
/**
865-
* The name of the purchase or subscription created when this checkout session
866-
* succeeds. Ignored if the checkout session is of type `invoice`.
867-
*/
868-
outputName?: string;
865+
/**
866+
* The name of the purchase or subscription created when this checkout session
867+
* succeeds. Ignored if the checkout session is of type `invoice`.
868+
*/
869+
outputName?: string;
869870

870-
/**
871-
* The quantity of the purchase or subscription created when this checkout session
872-
* succeeds. Ignored if the checkout session is of type `invoice`.
873-
*/
874-
quantity?: number;
871+
/**
872+
* The quantity of the purchase or subscription created when this checkout session
873+
* succeeds. Ignored if the checkout session is of type `invoice`.
874+
*/
875+
quantity?: number;
876+
};
875877
}
876878

877879
export interface CheckoutSessionListParams {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.18.1'; // x-release-please-version
1+
export const VERSION = '0.18.2'; // x-release-please-version

tests/api-resources/checkout-sessions.test.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ describe('resource checkoutSessions', () => {
1111
// skipped: tests are disabled for the time being
1212
test.skip('create: only required params', async () => {
1313
const responsePromise = client.checkoutSessions.create({
14-
cancelUrl: 'cancelUrl',
15-
customerExternalId: 'customerExternalId',
16-
priceId: 'priceId',
17-
successUrl: 'successUrl',
14+
checkoutSession: {
15+
cancelUrl: 'cancelUrl',
16+
customerExternalId: 'customerExternalId',
17+
priceId: 'priceId',
18+
successUrl: 'successUrl',
19+
},
1820
});
1921
const rawResponse = await responsePromise.asResponse();
2022
expect(rawResponse).toBeInstanceOf(Response);
@@ -28,13 +30,15 @@ describe('resource checkoutSessions', () => {
2830
// skipped: tests are disabled for the time being
2931
test.skip('create: required and optional params', async () => {
3032
const response = await client.checkoutSessions.create({
31-
cancelUrl: 'cancelUrl',
32-
customerExternalId: 'customerExternalId',
33-
priceId: 'priceId',
34-
successUrl: 'successUrl',
35-
outputMetadata: { foo: 'bar' },
36-
outputName: 'outputName',
37-
quantity: 0,
33+
checkoutSession: {
34+
cancelUrl: 'cancelUrl',
35+
customerExternalId: 'customerExternalId',
36+
priceId: 'priceId',
37+
successUrl: 'successUrl',
38+
outputMetadata: { foo: 'bar' },
39+
outputName: 'outputName',
40+
quantity: 0,
41+
},
3842
});
3943
});
4044

0 commit comments

Comments
 (0)