Skip to content

Commit db5a16b

Browse files
feat(api): api update
1 parent 8363a10 commit db5a16b

4 files changed

Lines changed: 12 additions & 16 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-17c43dab26af75e1b9f7e61ac8da1219cea65c7d0666d98686b71a60183e458d.yml
3-
openapi_spec_hash: 7d7f4d41ccb2023153327ca685dcf942
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1ca41c4b1d872cf2a198c8cf5edeeeddac012259a7cf211b102bf137c05b8240.yml
3+
openapi_spec_hash: 955066d4865fc42440cd81e40f5f79cd
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

coupon.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ func (r *CouponService) New(ctx context.Context, body CouponNewParams, opts ...o
6767
//
6868
// The list of coupons is ordered starting from the most recently created coupon.
6969
// The response also includes `pagination_metadata`, which lets the caller retrieve
70-
// the next page of results if they exist. More information about pagination can be
71-
// found in the Pagination-metadata schema.
70+
// the next page of results if they exist.
7271
func (r *CouponService) List(ctx context.Context, query CouponListParams, opts ...option.RequestOption) (res *pagination.Page[Coupon], err error) {
7372
var raw *http.Response
7473
opts = slices.Concat(r.Options, opts)
@@ -90,8 +89,7 @@ func (r *CouponService) List(ctx context.Context, query CouponListParams, opts .
9089
//
9190
// The list of coupons is ordered starting from the most recently created coupon.
9291
// The response also includes `pagination_metadata`, which lets the caller retrieve
93-
// the next page of results if they exist. More information about pagination can be
94-
// found in the Pagination-metadata schema.
92+
// the next page of results if they exist.
9593
func (r *CouponService) ListAutoPaging(ctx context.Context, query CouponListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Coupon] {
9694
return pagination.NewPageAutoPager(r.List(ctx, query, opts...))
9795
}

eventbackfill.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func NewEventBackfillService(opts ...option.RequestOption) (r *EventBackfillServ
4747
// 3 steps:
4848
//
4949
// 1. Create the backfill, specifying its parameters.
50-
// 2. [Ingest](ingest) usage events, referencing the backfill (query parameter
51-
// `backfill_id`).
50+
// 2. [Ingest](/api-reference/event/ingest-events) usage events, referencing the
51+
// backfill (query parameter `backfill_id`).
5252
// 3. [Close](close-backfill) the backfill, propagating the update in past usage
5353
// throughout Orb.
5454
//
@@ -94,8 +94,7 @@ func (r *EventBackfillService) New(ctx context.Context, body EventBackfillNewPar
9494
// The list of backfills is ordered starting from the most recently created
9595
// backfill. The response also includes
9696
// [`pagination_metadata`](/api-reference/pagination), which lets the caller
97-
// retrieve the next page of results if they exist. More information about
98-
// pagination can be found in the [Pagination-metadata schema](pagination).
97+
// retrieve the next page of results if they exist.
9998
func (r *EventBackfillService) List(ctx context.Context, query EventBackfillListParams, opts ...option.RequestOption) (res *pagination.Page[EventBackfillListResponse], err error) {
10099
var raw *http.Response
101100
opts = slices.Concat(r.Options, opts)
@@ -118,8 +117,7 @@ func (r *EventBackfillService) List(ctx context.Context, query EventBackfillList
118117
// The list of backfills is ordered starting from the most recently created
119118
// backfill. The response also includes
120119
// [`pagination_metadata`](/api-reference/pagination), which lets the caller
121-
// retrieve the next page of results if they exist. More information about
122-
// pagination can be found in the [Pagination-metadata schema](pagination).
120+
// retrieve the next page of results if they exist.
123121
func (r *EventBackfillService) ListAutoPaging(ctx context.Context, query EventBackfillListParams, opts ...option.RequestOption) *pagination.PageAutoPager[EventBackfillListResponse] {
124122
return pagination.NewPageAutoPager(r.List(ctx, query, opts...))
125123
}

subscription.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,10 @@ func (r *SubscriptionService) Fetch(ctx context.Context, subscriptionID string,
466466
// metric, in usage units rather than a currency).
467467
//
468468
// The semantics of this endpoint exactly mirror those of
469-
// [fetching a customer's costs](fetch-customer-costs). Use this endpoint to limit
470-
// your analysis of costs to a specific subscription for the customer (e.g. to
471-
// de-aggregate costs when a customer's subscription has started and stopped on the
472-
// same day).
469+
// [fetching a customer's costs](/api-reference/customer/fetch-customer-costs). Use
470+
// this endpoint to limit your analysis of costs to a specific subscription for the
471+
// customer (e.g. to de-aggregate costs when a customer's subscription has started
472+
// and stopped on the same day).
473473
func (r *SubscriptionService) FetchCosts(ctx context.Context, subscriptionID string, query SubscriptionFetchCostsParams, opts ...option.RequestOption) (res *SubscriptionFetchCostsResponse, err error) {
474474
opts = slices.Concat(r.Options, opts)
475475
if subscriptionID == "" {

0 commit comments

Comments
 (0)