Skip to content

Commit 88e3262

Browse files
feat(api): api update
1 parent 4de7f17 commit 88e3262

14 files changed

+6
-527
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: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-145c6652d32a05c9305e4674643e2aa7d559073e48dc252d6c3c0fe802ce7ec6.yml
3-
openapi_spec_hash: 6bbbbe1687099b69faee47fda12bf82c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9e751a2aefff382af949380b5979a80cb02743eca1583cf5146325fb400ba87f.yml
3+
openapi_spec_hash: 219a1008f47d3293f64f1baebe2d6eb5
44
config_hash: e6db17547fe854b1c240407cf4c6dc9e

lib/orb/models/changed_subscription_resources.rb

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,6 @@ class LineItem < Orb::Internal::Type::BaseModel
807807
# @return [String]
808808
required :credits_applied, String
809809

810-
# @!attribute discount
811-
# @deprecated
812-
#
813-
# This field is deprecated in favor of `adjustments`
814-
#
815-
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
816-
required :discount, union: -> { Orb::Discount }, nil?: true
817-
818810
# @!attribute end_date
819811
# The end date of the range of time applied for this line item's price.
820812
#
@@ -835,38 +827,6 @@ class LineItem < Orb::Internal::Type::BaseModel
835827
# @return [String, nil]
836828
required :grouping, String, nil?: true
837829

838-
# @!attribute maximum
839-
# @deprecated
840-
#
841-
# This field is deprecated in favor of `adjustments`.
842-
#
843-
# @return [Orb::Models::Maximum, nil]
844-
required :maximum, -> { Orb::Maximum }, nil?: true
845-
846-
# @!attribute maximum_amount
847-
# @deprecated
848-
#
849-
# This field is deprecated in favor of `adjustments`.
850-
#
851-
# @return [String, nil]
852-
required :maximum_amount, String, nil?: true
853-
854-
# @!attribute minimum
855-
# @deprecated
856-
#
857-
# This field is deprecated in favor of `adjustments`.
858-
#
859-
# @return [Orb::Models::Minimum, nil]
860-
required :minimum, -> { Orb::Minimum }, nil?: true
861-
862-
# @!attribute minimum_amount
863-
# @deprecated
864-
#
865-
# This field is deprecated in favor of `adjustments`.
866-
#
867-
# @return [String, nil]
868-
required :minimum_amount, String, nil?: true
869-
870830
# @!attribute name
871831
# The name of the price associated with this line item.
872832
#
@@ -933,7 +893,7 @@ class LineItem < Orb::Internal::Type::BaseModel
933893
# @return [Array<String>, nil]
934894
required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
935895

936-
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
896+
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, end_date:, filter:, grouping:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
937897
# Some parameter documentations has been truncated, see
938898
# {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem} for more
939899
# details.
@@ -948,22 +908,12 @@ class LineItem < Orb::Internal::Type::BaseModel
948908
#
949909
# @param credits_applied [String] The number of prepaid credits applied.
950910
#
951-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
952-
#
953911
# @param end_date [Time] The end date of the range of time applied for this line item's price.
954912
#
955913
# @param filter [String, nil] An additional filter that was used to calculate the usage for this line item.
956914
#
957915
# @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b
958916
#
959-
# @param maximum [Orb::Models::Maximum, nil] This field is deprecated in favor of `adjustments`.
960-
#
961-
# @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`.
962-
#
963-
# @param minimum [Orb::Models::Minimum, nil] This field is deprecated in favor of `adjustments`.
964-
#
965-
# @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`.
966-
#
967917
# @param name [String] The name of the price associated with this line item.
968918
#
969919
# @param partially_invoiced_amount [String] Any amount applied from a partial invoice

lib/orb/models/invoice.rb

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -761,14 +761,6 @@ class LineItem < Orb::Internal::Type::BaseModel
761761
# @return [String]
762762
required :credits_applied, String
763763

764-
# @!attribute discount
765-
# @deprecated
766-
#
767-
# This field is deprecated in favor of `adjustments`
768-
#
769-
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
770-
required :discount, union: -> { Orb::Discount }, nil?: true
771-
772764
# @!attribute end_date
773765
# The end date of the range of time applied for this line item's price.
774766
#
@@ -789,38 +781,6 @@ class LineItem < Orb::Internal::Type::BaseModel
789781
# @return [String, nil]
790782
required :grouping, String, nil?: true
791783

792-
# @!attribute maximum
793-
# @deprecated
794-
#
795-
# This field is deprecated in favor of `adjustments`.
796-
#
797-
# @return [Orb::Models::Maximum, nil]
798-
required :maximum, -> { Orb::Maximum }, nil?: true
799-
800-
# @!attribute maximum_amount
801-
# @deprecated
802-
#
803-
# This field is deprecated in favor of `adjustments`.
804-
#
805-
# @return [String, nil]
806-
required :maximum_amount, String, nil?: true
807-
808-
# @!attribute minimum
809-
# @deprecated
810-
#
811-
# This field is deprecated in favor of `adjustments`.
812-
#
813-
# @return [Orb::Models::Minimum, nil]
814-
required :minimum, -> { Orb::Minimum }, nil?: true
815-
816-
# @!attribute minimum_amount
817-
# @deprecated
818-
#
819-
# This field is deprecated in favor of `adjustments`.
820-
#
821-
# @return [String, nil]
822-
required :minimum_amount, String, nil?: true
823-
824784
# @!attribute name
825785
# The name of the price associated with this line item.
826786
#
@@ -886,7 +846,7 @@ class LineItem < Orb::Internal::Type::BaseModel
886846
# @return [Array<String>, nil]
887847
required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
888848

889-
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
849+
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, end_date:, filter:, grouping:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
890850
# Some parameter documentations has been truncated, see
891851
# {Orb::Models::Invoice::LineItem} for more details.
892852
#
@@ -900,22 +860,12 @@ class LineItem < Orb::Internal::Type::BaseModel
900860
#
901861
# @param credits_applied [String] The number of prepaid credits applied.
902862
#
903-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
904-
#
905863
# @param end_date [Time] The end date of the range of time applied for this line item's price.
906864
#
907865
# @param filter [String, nil] An additional filter that was used to calculate the usage for this line item.
908866
#
909867
# @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b
910868
#
911-
# @param maximum [Orb::Models::Maximum, nil] This field is deprecated in favor of `adjustments`.
912-
#
913-
# @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`.
914-
#
915-
# @param minimum [Orb::Models::Minimum, nil] This field is deprecated in favor of `adjustments`.
916-
#
917-
# @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`.
918-
#
919869
# @param name [String] The name of the price associated with this line item.
920870
#
921871
# @param partially_invoiced_amount [String] Any amount applied from a partial invoice

lib/orb/models/invoice_fetch_upcoming_response.rb

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -762,14 +762,6 @@ class LineItem < Orb::Internal::Type::BaseModel
762762
# @return [String]
763763
required :credits_applied, String
764764

765-
# @!attribute discount
766-
# @deprecated
767-
#
768-
# This field is deprecated in favor of `adjustments`
769-
#
770-
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
771-
required :discount, union: -> { Orb::Discount }, nil?: true
772-
773765
# @!attribute end_date
774766
# The end date of the range of time applied for this line item's price.
775767
#
@@ -790,38 +782,6 @@ class LineItem < Orb::Internal::Type::BaseModel
790782
# @return [String, nil]
791783
required :grouping, String, nil?: true
792784

793-
# @!attribute maximum
794-
# @deprecated
795-
#
796-
# This field is deprecated in favor of `adjustments`.
797-
#
798-
# @return [Orb::Models::Maximum, nil]
799-
required :maximum, -> { Orb::Maximum }, nil?: true
800-
801-
# @!attribute maximum_amount
802-
# @deprecated
803-
#
804-
# This field is deprecated in favor of `adjustments`.
805-
#
806-
# @return [String, nil]
807-
required :maximum_amount, String, nil?: true
808-
809-
# @!attribute minimum
810-
# @deprecated
811-
#
812-
# This field is deprecated in favor of `adjustments`.
813-
#
814-
# @return [Orb::Models::Minimum, nil]
815-
required :minimum, -> { Orb::Minimum }, nil?: true
816-
817-
# @!attribute minimum_amount
818-
# @deprecated
819-
#
820-
# This field is deprecated in favor of `adjustments`.
821-
#
822-
# @return [String, nil]
823-
required :minimum_amount, String, nil?: true
824-
825785
# @!attribute name
826786
# The name of the price associated with this line item.
827787
#
@@ -888,7 +848,7 @@ class LineItem < Orb::Internal::Type::BaseModel
888848
# @return [Array<String>, nil]
889849
required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
890850

891-
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
851+
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, end_date:, filter:, grouping:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
892852
# Some parameter documentations has been truncated, see
893853
# {Orb::Models::InvoiceFetchUpcomingResponse::LineItem} for more details.
894854
#
@@ -902,22 +862,12 @@ class LineItem < Orb::Internal::Type::BaseModel
902862
#
903863
# @param credits_applied [String] The number of prepaid credits applied.
904864
#
905-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
906-
#
907865
# @param end_date [Time] The end date of the range of time applied for this line item's price.
908866
#
909867
# @param filter [String, nil] An additional filter that was used to calculate the usage for this line item.
910868
#
911869
# @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b
912870
#
913-
# @param maximum [Orb::Models::Maximum, nil] This field is deprecated in favor of `adjustments`.
914-
#
915-
# @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`.
916-
#
917-
# @param minimum [Orb::Models::Minimum, nil] This field is deprecated in favor of `adjustments`.
918-
#
919-
# @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`.
920-
#
921871
# @param name [String] The name of the price associated with this line item.
922872
#
923873
# @param partially_invoiced_amount [String] Any amount applied from a partial invoice

lib/orb/models/invoice_line_item_create_response.rb

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
3939
# @return [String]
4040
required :credits_applied, String
4141

42-
# @!attribute discount
43-
# @deprecated
44-
#
45-
# This field is deprecated in favor of `adjustments`
46-
#
47-
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
48-
required :discount, union: -> { Orb::Discount }, nil?: true
49-
5042
# @!attribute end_date
5143
# The end date of the range of time applied for this line item's price.
5244
#
@@ -67,38 +59,6 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
6759
# @return [String, nil]
6860
required :grouping, String, nil?: true
6961

70-
# @!attribute maximum
71-
# @deprecated
72-
#
73-
# This field is deprecated in favor of `adjustments`.
74-
#
75-
# @return [Orb::Models::Maximum, nil]
76-
required :maximum, -> { Orb::Maximum }, nil?: true
77-
78-
# @!attribute maximum_amount
79-
# @deprecated
80-
#
81-
# This field is deprecated in favor of `adjustments`.
82-
#
83-
# @return [String, nil]
84-
required :maximum_amount, String, nil?: true
85-
86-
# @!attribute minimum
87-
# @deprecated
88-
#
89-
# This field is deprecated in favor of `adjustments`.
90-
#
91-
# @return [Orb::Models::Minimum, nil]
92-
required :minimum, -> { Orb::Minimum }, nil?: true
93-
94-
# @!attribute minimum_amount
95-
# @deprecated
96-
#
97-
# This field is deprecated in favor of `adjustments`.
98-
#
99-
# @return [String, nil]
100-
required :minimum_amount, String, nil?: true
101-
10262
# @!attribute name
10363
# The name of the price associated with this line item.
10464
#
@@ -165,7 +125,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
165125
# @return [Array<String>, nil]
166126
required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
167127

168-
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
128+
# @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, end_date:, filter:, grouping:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:)
169129
# Some parameter documentations has been truncated, see
170130
# {Orb::Models::InvoiceLineItemCreateResponse} for more details.
171131
#
@@ -179,22 +139,12 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel
179139
#
180140
# @param credits_applied [String] The number of prepaid credits applied.
181141
#
182-
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments`
183-
#
184142
# @param end_date [Time] The end date of the range of time applied for this line item's price.
185143
#
186144
# @param filter [String, nil] An additional filter that was used to calculate the usage for this line item.
187145
#
188146
# @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b
189147
#
190-
# @param maximum [Orb::Models::Maximum, nil] This field is deprecated in favor of `adjustments`.
191-
#
192-
# @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`.
193-
#
194-
# @param minimum [Orb::Models::Minimum, nil] This field is deprecated in favor of `adjustments`.
195-
#
196-
# @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`.
197-
#
198148
# @param name [String] The name of the price associated with this line item.
199149
#
200150
# @param partially_invoiced_amount [String] Any amount applied from a partial invoice

0 commit comments

Comments
 (0)