Skip to content

Commit 16d7ed9

Browse files
feat(api): api update
1 parent 0be0b27 commit 16d7ed9

3 files changed

Lines changed: 76 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

creditblock.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,17 @@ func (r *CreditBlockService) Delete(ctx context.Context, blockID string, opts ..
7979

8080
// This endpoint returns the credit block and its associated purchasing invoices.
8181
//
82-
// If a credit block was purchased (as opposed to being manually added or allocated
83-
// from a subscription), this endpoint returns the invoices that were created to
84-
// charge the customer for the credit block. For credit blocks with payment
85-
// schedules spanning multiple periods (e.g., monthly payments over 12 months),
86-
// multiple invoices will be returned.
82+
// If a credit block was purchased (as opposed to being manually added), this
83+
// endpoint returns the invoices that were created to charge the customer for the
84+
// credit block. For credit blocks with payment schedules spanning multiple periods
85+
// (e.g., monthly payments over 12 months), multiple invoices will be returned.
8786
//
88-
// If the credit block was not purchased (e.g., manual increment, allocation), an
89-
// empty invoices list is returned.
87+
// For credit blocks created by subscription allocation prices, this endpoint
88+
// returns the subscription invoice containing the allocation line item that
89+
// created the block.
90+
//
91+
// If the credit block was not purchased (e.g., manual increment), an empty
92+
// invoices list is returned.
9093
//
9194
// **Note: This endpoint is currently experimental and its interface may change in
9295
// future releases. Please contact support before building production integrations

0 commit comments

Comments
 (0)