Skip to content

Commit 1d97f15

Browse files
feat(api): api update
1 parent 0d16f9f commit 1d97f15

7 files changed

Lines changed: 20 additions & 5 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d7b617958673f6e5b94781a63ed79caed27014e5ca8bbf7e5e31b8f4d135aecb.yml
3-
openapi_spec_hash: 66e9c2cd22385eed3ed507ee60aed4f5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d631cebb768659e659427b08c22243b7993936c24214eb1fc837e172c11012c2.yml
3+
openapi_spec_hash: e025faa481e0ca183949cd81548197bf
44
config_hash: 3c3524be9607afb24d2139ce26ce5389

lib/orb/models/invoice.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ class LineItem < Orb::Internal::Type::BaseModel
722722
required :credits_applied, String
723723

724724
# @!attribute discount
725+
# @deprecated
726+
#
727+
# This field is deprecated in favor of `adjustments`
725728
#
726729
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
727730
required :discount, union: -> { Orb::Discount }, nil?: true
@@ -860,7 +863,7 @@ class LineItem < Orb::Internal::Type::BaseModel
860863
#
861864
# @param credits_applied [String] The number of prepaid credits applied.
862865
#
863-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
866+
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
864867
#
865868
# @param end_date [Time] The end date of the range of time applied for this line item's price.
866869
#

lib/orb/models/invoice_fetch_upcoming_response.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,9 @@ class LineItem < Orb::Internal::Type::BaseModel
723723
required :credits_applied, String
724724

725725
# @!attribute discount
726+
# @deprecated
727+
#
728+
# This field is deprecated in favor of `adjustments`
726729
#
727730
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
728731
required :discount, union: -> { Orb::Discount }, nil?: true
@@ -859,7 +862,7 @@ class LineItem < Orb::Internal::Type::BaseModel
859862
#
860863
# @param credits_applied [String] The number of prepaid credits applied.
861864
#
862-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
865+
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
863866
#
864867
# @param end_date [Time] The end date of the range of time applied for this line item's price.
865868
#

lib/orb/models/invoice_line_item_create_response.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
4040
required :credits_applied, String
4141

4242
# @!attribute discount
43+
# @deprecated
44+
#
45+
# This field is deprecated in favor of `adjustments`
4346
#
4447
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
4548
required :discount, union: -> { Orb::Discount }, nil?: true
@@ -176,7 +179,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
176179
#
177180
# @param credits_applied [String] The number of prepaid credits applied.
178181
#
179-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
182+
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
180183
#
181184
# @param end_date [Time] The end date of the range of time applied for this line item's price.
182185
#

rbi/orb/models/invoice.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ module Orb
10201020
sig { returns(String) }
10211021
attr_accessor :credits_applied
10221022

1023+
# This field is deprecated in favor of `adjustments`
10231024
sig { returns(T.nilable(Orb::Discount::Variants)) }
10241025
attr_accessor :discount
10251026

@@ -1201,6 +1202,7 @@ module Orb
12011202
amount:,
12021203
# The number of prepaid credits applied.
12031204
credits_applied:,
1205+
# This field is deprecated in favor of `adjustments`
12041206
discount:,
12051207
# The end date of the range of time applied for this line item's price.
12061208
end_date:,

rbi/orb/models/invoice_fetch_upcoming_response.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ module Orb
11171117
sig { returns(String) }
11181118
attr_accessor :credits_applied
11191119

1120+
# This field is deprecated in favor of `adjustments`
11201121
sig { returns(T.nilable(Orb::Discount::Variants)) }
11211122
attr_accessor :discount
11221123

@@ -1304,6 +1305,7 @@ module Orb
13041305
amount:,
13051306
# The number of prepaid credits applied.
13061307
credits_applied:,
1308+
# This field is deprecated in favor of `adjustments`
13071309
discount:,
13081310
# The end date of the range of time applied for this line item's price.
13091311
end_date:,

rbi/orb/models/invoice_line_item_create_response.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module Orb
4141
sig { returns(String) }
4242
attr_accessor :credits_applied
4343

44+
# This field is deprecated in favor of `adjustments`
4445
sig { returns(T.nilable(Orb::Discount::Variants)) }
4546
attr_accessor :discount
4647

@@ -228,6 +229,7 @@ module Orb
228229
amount:,
229230
# The number of prepaid credits applied.
230231
credits_applied:,
232+
# This field is deprecated in favor of `adjustments`
231233
discount:,
232234
# The end date of the range of time applied for this line item's price.
233235
end_date:,

0 commit comments

Comments
 (0)