Skip to content

Commit 2df4e9d

Browse files
authored
Merge pull request #177 from flowglad/release-please--branches--main--changes--next--components--node
release: 0.29.0
2 parents 15a1a86 + d88db7f commit 2df4e9d

15 files changed

Lines changed: 160 additions & 34 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ github.repository == 'stainless-sdks/flowglad-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2020
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323

2424
- name: Set up Node
2525
uses: actions/setup-node@v4
@@ -41,7 +41,7 @@ jobs:
4141
contents: read
4242
id-token: write
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545

4646
- name: Set up Node
4747
uses: actions/setup-node@v4
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ${{ github.repository == 'stainless-sdks/flowglad-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7575
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v6
7878

7979
- name: Set up Node
8080
uses: actions/setup-node@v4

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Set up Node
2020
uses: actions/setup-node@v3

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'flowglad/flowglad-node' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616

1717
- name: Check release environment
1818
run: |

.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.28.0"
2+
".": "0.29.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 54
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-dd9d7ebc5860d1fade0d9de0ea7316bd68c83a1986655da301f6efd1e7de6b51.yml
3-
openapi_spec_hash: 2b42b1fb2b1c1691554482362db7b37a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-06c4dd78e137fdf8d3acd39424e5d6158e0a719903996d933af8832eee705d9c.yml
3+
openapi_spec_hash: fd5d4fe4838681b6dc19595f6ad24923
44
config_hash: 7194205a326772d1af6151798bc4172e

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
# Changelog
2+
## 0.29.0 (2026-01-18)
3+
4+
Full Changelog: [v0.28.0...v0.29.0](https://github.com/flowglad/flowglad-node/compare/v0.28.0...v0.29.0)
5+
6+
### Features
7+
8+
* **api:** manual updates ([72f67e6](https://github.com/flowglad/flowglad-node/commit/72f67e6f50b9d4b3e9ea73cef084145d8319172c))
9+
10+
11+
### Chores
12+
13+
* **internal:** update `actions/checkout` version ([eff5d28](https://github.com/flowglad/flowglad-node/commit/eff5d28d4f55686d613abafaa37e70431cc5e1ac))
14+
215
## 0.28.0 (2026-01-15)
316

417
Full Changelog: [v0.27.0...v0.28.0](https://github.com/flowglad/flowglad-node/compare/v0.27.0...v0.28.0)

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.28.0",
3+
"version": "0.29.0",
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export namespace CheckoutSessionCreateParams {
445445

446446
/**
447447
* The quantity of the purchase or subscription created when this checkout session
448-
* succeeds. Ignored if the checkout session is of type `invoice`. If not provided, defaults to 1.
448+
* succeeds. Must be a positive integer. Defaults to 1 if not provided.
449449
*/
450450
quantity?: number;
451451
}
@@ -499,7 +499,7 @@ export namespace CheckoutSessionCreateParams {
499499

500500
/**
501501
* The quantity of the purchase or subscription created when this checkout session
502-
* succeeds. Ignored if the checkout session is of type `invoice`.
502+
* succeeds. Must be a positive integer. Defaults to 1 if not provided.
503503
*/
504504
quantity?: number;
505505
}

src/resources/discounts.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export interface DefaultDiscountClientSelectSchema {
7373

7474
organizationId: string;
7575

76+
pricingModelId: string;
77+
7678
/**
7779
* Epoch milliseconds.
7880
*/
@@ -111,6 +113,8 @@ export interface ForeverDiscountClientSelectSchema {
111113

112114
organizationId: string;
113115

116+
pricingModelId: string;
117+
114118
/**
115119
* Epoch milliseconds.
116120
*/
@@ -154,6 +158,8 @@ export interface NumberOfPaymentsDiscountClientSelectSchema {
154158

155159
organizationId: string;
156160

161+
pricingModelId: string;
162+
157163
/**
158164
* Epoch milliseconds.
159165
*/
@@ -274,6 +280,8 @@ export namespace DiscountCreateParams {
274280
active?: boolean;
275281

276282
numberOfPayments?: null;
283+
284+
pricingModelId?: string;
277285
}
278286

279287
export interface NumberOfPaymentsDiscountClientInsertSchema {
@@ -299,6 +307,8 @@ export namespace DiscountCreateParams {
299307
numberOfPayments: number;
300308

301309
active?: boolean;
310+
311+
pricingModelId?: string;
302312
}
303313

304314
export interface ForeverDiscountClientInsertSchema {
@@ -321,6 +331,8 @@ export namespace DiscountCreateParams {
321331
active?: boolean;
322332

323333
numberOfPayments?: null;
334+
335+
pricingModelId?: string;
324336
}
325337
}
326338

src/resources/prices.ts

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ export interface SinglePaymentPriceClientSelectSchema {
181181
| 'ZMW';
182182

183183
/**
184-
* Whether or not this price is the default price for the product.
184+
* Whether or not this price is the default price. For product prices, this
185+
* indicates the default price for that product. For usage prices, this indicates
186+
* the default price for that usage meter.
185187
*/
186188
isDefault: boolean;
187189

@@ -191,6 +193,9 @@ export interface SinglePaymentPriceClientSelectSchema {
191193

192194
pricingModelId: string;
193195

196+
/**
197+
* The product this price belongs to. Required for single payment prices.
198+
*/
194199
productId: string;
195200

196201
slug: string | null;
@@ -392,7 +397,9 @@ export interface SubscriptionPriceClientSelectSchema {
392397
intervalUnit: 'day' | 'week' | 'month' | 'year';
393398

394399
/**
395-
* Whether or not this price is the default price for the product.
400+
* Whether or not this price is the default price. For product prices, this
401+
* indicates the default price for that product. For usage prices, this indicates
402+
* the default price for that usage meter.
396403
*/
397404
isDefault: boolean;
398405

@@ -402,6 +409,9 @@ export interface SubscriptionPriceClientSelectSchema {
402409

403410
pricingModelId: string;
404411

412+
/**
413+
* The product this price belongs to. Required for subscription prices.
414+
*/
405415
productId: string;
406416

407417
slug: string | null;
@@ -594,7 +604,9 @@ export interface UsagePriceClientSelectSchema {
594604
intervalUnit: 'day' | 'week' | 'month' | 'year';
595605

596606
/**
597-
* Whether or not this price is the default price for the product.
607+
* Whether or not this price is the default price. For product prices, this
608+
* indicates the default price for that product. For usage prices, this indicates
609+
* the default price for that usage meter.
598610
*/
599611
isDefault: boolean;
600612

@@ -604,7 +616,7 @@ export interface UsagePriceClientSelectSchema {
604616

605617
pricingModelId: string;
606618

607-
productId: string;
619+
productId: null;
608620

609621
slug: string | null;
610622

@@ -685,10 +697,15 @@ export namespace PriceCreateParams {
685697
intervalUnit: 'day' | 'week' | 'month' | 'year';
686698

687699
/**
688-
* Whether or not this price is the default price for the product.
700+
* Whether or not this price is the default price. For product prices, this
701+
* indicates the default price for that product. For usage prices, this indicates
702+
* the default price for that usage meter.
689703
*/
690704
isDefault: boolean;
691705

706+
/**
707+
* The product this price belongs to. Required for subscription prices.
708+
*/
692709
productId: string;
693710

694711
type: 'subscription';
@@ -725,10 +742,15 @@ export namespace PriceCreateParams {
725742

726743
export interface SinglePaymentPriceClientInsertSchema {
727744
/**
728-
* Whether or not this price is the default price for the product.
745+
* Whether or not this price is the default price. For product prices, this
746+
* indicates the default price for that product. For usage prices, this indicates
747+
* the default price for that usage meter.
729748
*/
730749
isDefault: boolean;
731750

751+
/**
752+
* The product this price belongs to. Required for single payment prices.
753+
*/
732754
productId: string;
733755

734756
type: 'single_payment';
@@ -781,12 +803,12 @@ export namespace PriceCreateParams {
781803
intervalUnit: 'day' | 'week' | 'month' | 'year';
782804

783805
/**
784-
* Whether or not this price is the default price for the product.
806+
* Whether or not this price is the default price. For product prices, this
807+
* indicates the default price for that product. For usage prices, this indicates
808+
* the default price for that usage meter.
785809
*/
786810
isDefault: boolean;
787811

788-
productId: string;
789-
790812
type: 'usage';
791813

792814
/**
@@ -812,6 +834,11 @@ export namespace PriceCreateParams {
812834

813835
name?: string | null;
814836

837+
/**
838+
* Omitted.
839+
*/
840+
productId?: null;
841+
815842
slug?: string | null;
816843

817844
/**
@@ -833,7 +860,9 @@ export namespace PriceUpdateParams {
833860
id: string;
834861

835862
/**
836-
* Whether or not this price is the default price for the product.
863+
* Whether or not this price is the default price. For product prices, this
864+
* indicates the default price for that product. For usage prices, this indicates
865+
* the default price for that usage meter.
837866
*/
838867
isDefault: boolean;
839868

@@ -850,7 +879,9 @@ export namespace PriceUpdateParams {
850879
id: string;
851880

852881
/**
853-
* Whether or not this price is the default price for the product.
882+
* Whether or not this price is the default price. For product prices, this
883+
* indicates the default price for that product. For usage prices, this indicates
884+
* the default price for that usage meter.
854885
*/
855886
isDefault: boolean;
856887

@@ -867,7 +898,9 @@ export namespace PriceUpdateParams {
867898
id: string;
868899

869900
/**
870-
* Whether or not this price is the default price for the product.
901+
* Whether or not this price is the default price. For product prices, this
902+
* indicates the default price for that product. For usage prices, this indicates
903+
* the default price for that usage meter.
871904
*/
872905
isDefault: boolean;
873906

0 commit comments

Comments
 (0)