Skip to content

Commit 2745374

Browse files
feat(api): api update
1 parent 7df8be5 commit 2745374

3 files changed

Lines changed: 74 additions & 9 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1ca41c4b1d872cf2a198c8cf5edeeeddac012259a7cf211b102bf137c05b8240.yml
3-
openapi_spec_hash: 955066d4865fc42440cd81e40f5f79cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2b77f13a159cf689a3bba6ac5ff03b6c0df62b772e2da04aff52be86710ca4d4.yml
3+
openapi_spec_hash: 28a3f685403d98ddd68b427d92ed28fb
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

src/resources/credit-blocks.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,17 @@ export class CreditBlocks extends APIResource {
4242
/**
4343
* This endpoint returns the credit block and its associated purchasing invoices.
4444
*
45-
* If a credit block was purchased (as opposed to being manually added or allocated
46-
* from a subscription), this endpoint returns the invoices that were created to
47-
* charge the customer for the credit block. For credit blocks with payment
48-
* schedules spanning multiple periods (e.g., monthly payments over 12 months),
49-
* multiple invoices will be returned.
45+
* If a credit block was purchased (as opposed to being manually added), this
46+
* endpoint returns the invoices that were created to charge the customer for the
47+
* credit block. For credit blocks with payment schedules spanning multiple periods
48+
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
5049
*
51-
* If the credit block was not purchased (e.g., manual increment, allocation), an
52-
* empty invoices list is returned.
50+
* For credit blocks created by subscription allocation prices, this endpoint
51+
* returns the subscription invoice containing the allocation line item that
52+
* created the block.
53+
*
54+
* If the credit block was not purchased (e.g., manual increment), an empty
55+
* invoices list is returned.
5356
*
5457
* **Note: This endpoint is currently experimental and its interface may change in
5558
* future releases. Please contact support before building production integrations

src/resources/shared.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10127,6 +10127,8 @@ export namespace Price {
1012710127

1012810128
fixed_price_quantity: number | null;
1012910129

10130+
invoice_grouping_key: string | null;
10131+
1013010132
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1013110133

1013210134
/**
@@ -10269,6 +10271,8 @@ export namespace Price {
1026910271

1027010272
fixed_price_quantity: number | null;
1027110273

10274+
invoice_grouping_key: string | null;
10275+
1027210276
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1027310277

1027410278
/**
@@ -10416,6 +10420,8 @@ export namespace Price {
1041610420

1041710421
fixed_price_quantity: number | null;
1041810422

10423+
invoice_grouping_key: string | null;
10424+
1041910425
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1042010426

1042110427
/**
@@ -10558,6 +10564,8 @@ export namespace Price {
1055810564

1055910565
fixed_price_quantity: number | null;
1056010566

10567+
invoice_grouping_key: string | null;
10568+
1056110569
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1056210570

1056310571
/**
@@ -10742,6 +10750,8 @@ export namespace Price {
1074210750

1074310751
fixed_price_quantity: number | null;
1074410752

10753+
invoice_grouping_key: string | null;
10754+
1074510755
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1074610756

1074710757
/**
@@ -10884,6 +10894,8 @@ export namespace Price {
1088410894

1088510895
fixed_price_quantity: number | null;
1088610896

10897+
invoice_grouping_key: string | null;
10898+
1088710899
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1088810900

1088910901
/**
@@ -11026,6 +11038,8 @@ export namespace Price {
1102611038

1102711039
fixed_price_quantity: number | null;
1102811040

11041+
invoice_grouping_key: string | null;
11042+
1102911043
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1103011044

1103111045
/**
@@ -11198,6 +11212,8 @@ export namespace Price {
1119811212

1119911213
fixed_price_quantity: number | null;
1120011214

11215+
invoice_grouping_key: string | null;
11216+
1120111217
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1120211218

1120311219
/**
@@ -11369,6 +11385,8 @@ export namespace Price {
1136911385

1137011386
fixed_price_quantity: number | null;
1137111387

11388+
invoice_grouping_key: string | null;
11389+
1137211390
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1137311391

1137411392
/**
@@ -11553,6 +11571,8 @@ export namespace Price {
1155311571
*/
1155411572
grouped_tiered_config: GroupedTieredPrice.GroupedTieredConfig;
1155511573

11574+
invoice_grouping_key: string | null;
11575+
1155611576
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1155711577

1155811578
/**
@@ -11720,6 +11740,8 @@ export namespace Price {
1172011740

1172111741
fixed_price_quantity: number | null;
1172211742

11743+
invoice_grouping_key: string | null;
11744+
1172311745
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1172411746

1172511747
/**
@@ -11888,6 +11910,8 @@ export namespace Price {
1188811910

1188911911
fixed_price_quantity: number | null;
1189011912

11913+
invoice_grouping_key: string | null;
11914+
1189111915
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1189211916

1189311917
/**
@@ -12041,6 +12065,8 @@ export namespace Price {
1204112065

1204212066
fixed_price_quantity: number | null;
1204312067

12068+
invoice_grouping_key: string | null;
12069+
1204412070
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1204512071

1204612072
/**
@@ -12198,6 +12224,8 @@ export namespace Price {
1219812224

1219912225
fixed_price_quantity: number | null;
1220012226

12227+
invoice_grouping_key: string | null;
12228+
1220112229
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1220212230

1220312231
/**
@@ -12340,6 +12368,8 @@ export namespace Price {
1234012368

1234112369
fixed_price_quantity: number | null;
1234212370

12371+
invoice_grouping_key: string | null;
12372+
1234312373
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1234412374

1234512375
/**
@@ -12510,6 +12540,8 @@ export namespace Price {
1251012540

1251112541
fixed_price_quantity: number | null;
1251212542

12543+
invoice_grouping_key: string | null;
12544+
1251312545
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1251412546

1251512547
/**
@@ -12667,6 +12699,8 @@ export namespace Price {
1266712699
*/
1266812700
grouped_allocation_config: GroupedAllocationPrice.GroupedAllocationConfig;
1266912701

12702+
invoice_grouping_key: string | null;
12703+
1267012704
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1267112705

1267212706
/**
@@ -12829,6 +12863,8 @@ export namespace Price {
1282912863

1283012864
fixed_price_quantity: number | null;
1283112865

12866+
invoice_grouping_key: string | null;
12867+
1283212868
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1283312869

1283412870
/**
@@ -12998,6 +13034,8 @@ export namespace Price {
1299813034
*/
1299913035
grouped_with_prorated_minimum_config: GroupedWithProratedMinimumPrice.GroupedWithProratedMinimumConfig;
1300013036

13037+
invoice_grouping_key: string | null;
13038+
1300113039
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1300213040

1300313041
/**
@@ -13160,6 +13198,8 @@ export namespace Price {
1316013198
*/
1316113199
grouped_with_metered_minimum_config: GroupedWithMeteredMinimumPrice.GroupedWithMeteredMinimumConfig;
1316213200

13201+
invoice_grouping_key: string | null;
13202+
1316313203
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1316413204

1316513205
/**
@@ -13362,6 +13402,8 @@ export namespace Price {
1336213402
*/
1336313403
grouped_with_min_max_thresholds_config: GroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
1336413404

13405+
invoice_grouping_key: string | null;
13406+
1336513407
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1336613408

1336713409
/**
@@ -13524,6 +13566,8 @@ export namespace Price {
1352413566

1352513567
fixed_price_quantity: number | null;
1352613568

13569+
invoice_grouping_key: string | null;
13570+
1352713571
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1352813572

1352913573
/**
@@ -13708,6 +13752,8 @@ export namespace Price {
1370813752
*/
1370913753
grouped_tiered_package_config: GroupedTieredPackagePrice.GroupedTieredPackageConfig;
1371013754

13755+
invoice_grouping_key: string | null;
13756+
1371113757
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1371213758

1371313759
/**
@@ -13877,6 +13923,8 @@ export namespace Price {
1387713923

1387813924
fixed_price_quantity: number | null;
1387913925

13926+
invoice_grouping_key: string | null;
13927+
1388013928
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1388113929

1388213930
/**
@@ -14050,6 +14098,8 @@ export namespace Price {
1405014098

1405114099
fixed_price_quantity: number | null;
1405214100

14101+
invoice_grouping_key: string | null;
14102+
1405314103
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1405414104

1405514105
/**
@@ -14240,6 +14290,8 @@ export namespace Price {
1424014290

1424114291
fixed_price_quantity: number | null;
1424214292

14293+
invoice_grouping_key: string | null;
14294+
1424314295
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1424414296

1424514297
/**
@@ -14431,6 +14483,8 @@ export namespace Price {
1443114483

1443214484
fixed_price_quantity: number | null;
1443314485

14486+
invoice_grouping_key: string | null;
14487+
1443414488
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1443514489

1443614490
/**
@@ -14607,6 +14661,8 @@ export namespace Price {
1460714661

1460814662
fixed_price_quantity: number | null;
1460914663

14664+
invoice_grouping_key: string | null;
14665+
1461014666
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1461114667

1461214668
/**
@@ -14769,6 +14825,8 @@ export namespace Price {
1476914825

1477014826
fixed_price_quantity: number | null;
1477114827

14828+
invoice_grouping_key: string | null;
14829+
1477214830
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1477314831

1477414832
/**
@@ -14926,6 +14984,8 @@ export namespace Price {
1492614984

1492714985
fixed_price_quantity: number | null;
1492814986

14987+
invoice_grouping_key: string | null;
14988+
1492914989
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1493014990

1493114991
/**
@@ -15083,6 +15143,8 @@ export namespace Price {
1508315143

1508415144
fixed_price_quantity: number | null;
1508515145

15146+
invoice_grouping_key: string | null;
15147+
1508615148
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
1508715149

1508815150
/**

0 commit comments

Comments
 (0)