Skip to content

Commit 011d28e

Browse files
feat(api): api update
1 parent 7e37115 commit 011d28e

File tree

8 files changed

+1158
-207
lines changed

8 files changed

+1158
-207
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 114
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faced218bf2dee89c8449bdb209e7090452d26c0646f0b998f84fe5bd3c4b7cb.yml
3-
openapi_spec_hash: b3a957e9c012fad5093545f65614ea42
4-
config_hash: e63f2d098e5d12f63ae4cd8270aa5c3c
1+
configured_endpoints: 115
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d513be954ba2cb57489bd048f93790cabb13849f0f04d328a5a15694c99550df.yml
3+
openapi_spec_hash: 0d42694f412abf65defc3f88646a809c
4+
config_hash: 1e2186b09e57d7d27b6ab5c8e6410b31

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ Types:
319319
- <code><a href="./src/resources/subscriptions.ts">SubscriptionFetchCostsResponse</a></code>
320320
- <code><a href="./src/resources/subscriptions.ts">SubscriptionFetchScheduleResponse</a></code>
321321
- <code><a href="./src/resources/subscriptions.ts">SubscriptionPriceIntervalsResponse</a></code>
322+
- <code><a href="./src/resources/subscriptions.ts">SubscriptionRedeemCouponResponse</a></code>
322323
- <code><a href="./src/resources/subscriptions.ts">SubscriptionSchedulePlanChangeResponse</a></code>
323324
- <code><a href="./src/resources/subscriptions.ts">SubscriptionTriggerPhaseResponse</a></code>
324325
- <code><a href="./src/resources/subscriptions.ts">SubscriptionUnscheduleCancellationResponse</a></code>
@@ -338,6 +339,7 @@ Methods:
338339
- <code title="get /subscriptions/{subscription_id}/schedule">client.subscriptions.<a href="./src/resources/subscriptions.ts">fetchSchedule</a>(subscriptionId, { ...params }) -> SubscriptionFetchScheduleResponsesPage</code>
339340
- <code title="get /subscriptions/{subscription_id}/usage">client.subscriptions.<a href="./src/resources/subscriptions.ts">fetchUsage</a>(subscriptionId, { ...params }) -> SubscriptionUsage</code>
340341
- <code title="post /subscriptions/{subscription_id}/price_intervals">client.subscriptions.<a href="./src/resources/subscriptions.ts">priceIntervals</a>(subscriptionId, { ...params }) -> SubscriptionPriceIntervalsResponse</code>
342+
- <code title="post /subscriptions/{subscription_id}/redeem_coupon">client.subscriptions.<a href="./src/resources/subscriptions.ts">redeemCoupon</a>(subscriptionId, { ...params }) -> SubscriptionRedeemCouponResponse</code>
341343
- <code title="post /subscriptions/{subscription_id}/schedule_plan_change">client.subscriptions.<a href="./src/resources/subscriptions.ts">schedulePlanChange</a>(subscriptionId, { ...params }) -> SubscriptionSchedulePlanChangeResponse</code>
342344
- <code title="post /subscriptions/{subscription_id}/trigger_phase">client.subscriptions.<a href="./src/resources/subscriptions.ts">triggerPhase</a>(subscriptionId, { ...params }) -> SubscriptionTriggerPhaseResponse</code>
343345
- <code title="post /subscriptions/{subscription_id}/unschedule_cancellation">client.subscriptions.<a href="./src/resources/subscriptions.ts">unscheduleCancellation</a>(subscriptionId) -> SubscriptionUnscheduleCancellationResponse</code>

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ import {
8282
SubscriptionListParams,
8383
SubscriptionPriceIntervalsParams,
8484
SubscriptionPriceIntervalsResponse,
85+
SubscriptionRedeemCouponParams,
86+
SubscriptionRedeemCouponResponse,
8587
SubscriptionSchedulePlanChangeParams,
8688
SubscriptionSchedulePlanChangeResponse,
8789
SubscriptionTriggerPhaseParams,
@@ -504,6 +506,7 @@ export declare namespace Orb {
504506
type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse,
505507
type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse,
506508
type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse,
509+
type SubscriptionRedeemCouponResponse as SubscriptionRedeemCouponResponse,
507510
type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse,
508511
type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse,
509512
type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse,
@@ -521,6 +524,7 @@ export declare namespace Orb {
521524
type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams,
522525
type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams,
523526
type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams,
527+
type SubscriptionRedeemCouponParams as SubscriptionRedeemCouponParams,
524528
type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams,
525529
type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams,
526530
type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,

src/resources/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export {
132132
type SubscriptionFetchCostsResponse,
133133
type SubscriptionFetchScheduleResponse,
134134
type SubscriptionPriceIntervalsResponse,
135+
type SubscriptionRedeemCouponResponse,
135136
type SubscriptionSchedulePlanChangeResponse,
136137
type SubscriptionTriggerPhaseResponse,
137138
type SubscriptionUnscheduleCancellationResponse,
@@ -147,6 +148,7 @@ export {
147148
type SubscriptionFetchScheduleParams,
148149
type SubscriptionFetchUsageParams,
149150
type SubscriptionPriceIntervalsParams,
151+
type SubscriptionRedeemCouponParams,
150152
type SubscriptionSchedulePlanChangeParams,
151153
type SubscriptionTriggerPhaseParams,
152154
type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,

src/resources/invoice-line-items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export interface InvoiceLineItemCreateResponse {
115115
* For more on the types of prices, see
116116
* [the core concepts documentation](/core-concepts#plan-and-price)
117117
*/
118-
price: PricesAPI.Price | null;
118+
price: PricesAPI.Price;
119119

120120
/**
121121
* Either the fixed fee quantity or the usage during the service period.

src/resources/invoices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ export namespace Invoice {
942942
* For more on the types of prices, see
943943
* [the core concepts documentation](/core-concepts#plan-and-price)
944944
*/
945-
price: PricesAPI.Price | null;
945+
price: PricesAPI.Price;
946946

947947
/**
948948
* Either the fixed fee quantity or the usage during the service period.
@@ -2381,7 +2381,7 @@ export namespace InvoiceFetchUpcomingResponse {
23812381
* For more on the types of prices, see
23822382
* [the core concepts documentation](/core-concepts#plan-and-price)
23832383
*/
2384-
price: PricesAPI.Price | null;
2384+
price: PricesAPI.Price;
23852385

23862386
/**
23872387
* Either the fixed fee quantity or the usage during the service period.

0 commit comments

Comments
 (0)