Skip to content

Commit 2f89bbe

Browse files
feat(api): api update
1 parent aff6ad8 commit 2f89bbe

File tree

8 files changed

+798
-48
lines changed

8 files changed

+798
-48
lines changed

.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

lib/orb/models/price.rb

Lines changed: 248 additions & 31 deletions
Large diffs are not rendered by default.

lib/orb/resources/credit_blocks.rb

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ def delete(block_id, params = {})
5959

6060
# This endpoint returns the credit block and its associated purchasing invoices.
6161
#
62-
# If a credit block was purchased (as opposed to being manually added or allocated
63-
# from a subscription), this endpoint returns the invoices that were created to
64-
# charge the customer for the credit block. For credit blocks with payment
65-
# schedules spanning multiple periods (e.g., monthly payments over 12 months),
66-
# multiple invoices will be returned.
67-
#
68-
# If the credit block was not purchased (e.g., manual increment, allocation), an
69-
# empty invoices list is returned.
62+
# If a credit block was purchased (as opposed to being manually added), this
63+
# endpoint returns the invoices that were created to charge the customer for the
64+
# credit block. For credit blocks with payment schedules spanning multiple periods
65+
# (e.g., monthly payments over 12 months), multiple invoices will be returned.
66+
#
67+
# For credit blocks created by subscription allocation prices, this endpoint
68+
# returns the subscription invoice containing the allocation line item that
69+
# created the block.
70+
#
71+
# If the credit block was not purchased (e.g., manual increment), an empty
72+
# invoices list is returned.
7073
#
7174
# **Note: This endpoint is currently experimental and its interface may change in
7275
# future releases. Please contact support before building production integrations

0 commit comments

Comments
 (0)