Skip to content

Commit 4c8231e

Browse files
feat(api): api update (#544)
1 parent 10d3e00 commit 4c8231e

File tree

4 files changed

+65
-48
lines changed

4 files changed

+65
-48
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml

src/resources/invoice-line-items.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export interface InvoiceLineItemCreateResponse {
3131
adjusted_subtotal: string;
3232

3333
/**
34-
* All adjustments (ie. maximums, minimums, discounts) applied to the line item.
34+
* All adjustments applied to the line item in the order they were applied based on
35+
* invoice calculations (ie. usage discounts -> amount discounts -> percentage
36+
* discounts -> minimums -> maximums).
3537
*/
3638
adjustments: Array<
3739
| InvoiceLineItemCreateResponse.MonetaryUsageDiscountAdjustment

src/resources/invoices.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,9 @@ export namespace Invoice {
858858
adjusted_subtotal: string;
859859

860860
/**
861-
* All adjustments (ie. maximums, minimums, discounts) applied to the line item.
861+
* All adjustments applied to the line item in the order they were applied based on
862+
* invoice calculations (ie. usage discounts -> amount discounts -> percentage
863+
* discounts -> minimums -> maximums).
862864
*/
863865
adjustments: Array<
864866
| LineItem.MonetaryUsageDiscountAdjustment
@@ -2079,7 +2081,9 @@ export namespace InvoiceFetchUpcomingResponse {
20792081
adjusted_subtotal: string;
20802082

20812083
/**
2082-
* All adjustments (ie. maximums, minimums, discounts) applied to the line item.
2084+
* All adjustments applied to the line item in the order they were applied based on
2085+
* invoice calculations (ie. usage discounts -> amount discounts -> percentage
2086+
* discounts -> minimums -> maximums).
20832087
*/
20842088
adjustments: Array<
20852089
| LineItem.MonetaryUsageDiscountAdjustment

0 commit comments

Comments
 (0)