diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7e56fe29..e2f2c074 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.16" + ".": "0.1.0-alpha.17" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index da919d93..5776427f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d4f03b16daf0bae33be634c959dafb0e21b0bcb156beb162f8235394dca88e7c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c8fc7d0bf70bf7ed91a141f346a02929e4d25a6fac7b59f58b68136ed6ff024f.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 47fdc801..96521ae9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.1.0-alpha.17 (2025-03-01) + +Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.16...v0.1.0-alpha.17) + +### Features + +* **api:** api update ([#87](https://github.com/orbcorp/orb-ruby/issues/87)) ([6ff5a68](https://github.com/orbcorp/orb-ruby/commit/6ff5a682d25a1cbb2f6a304170470d9d3dd70d75)) + + +### Chores + +* be consistent and use lower case headers everywhere ([#86](https://github.com/orbcorp/orb-ruby/issues/86)) ([5685579](https://github.com/orbcorp/orb-ruby/commit/568557971e59178c9fbc1ff5c652bc877339f99a)) +* **internal:** version bump ([#84](https://github.com/orbcorp/orb-ruby/issues/84)) ([dde5ec6](https://github.com/orbcorp/orb-ruby/commit/dde5ec65592643398e1947680317208ebeb3bb8c)) + ## 0.1.0-alpha.16 (2025-02-28) Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.15...v0.1.0-alpha.16) diff --git a/Gemfile.lock b/Gemfile.lock index 62f8ddc9..22b3ea33 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.16) + orb (0.1.0.pre.alpha.17) connection_pool GEM diff --git a/lib/orb/client.rb b/lib/orb/client.rb index 1b263fc0..051d441e 100644 --- a/lib/orb/client.rb +++ b/lib/orb/client.rb @@ -67,7 +67,7 @@ class Client < Orb::BaseClient private def auth_headers return {} if @api_key.nil? - {"Authorization" => "Bearer #{@api_key}"} + {"authorization" => "Bearer #{@api_key}"} end # Creates and returns a new client for interacting with the API. diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 38a45434..00a45591 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -1211,6 +1211,12 @@ class LineItem < Orb::BaseModel # @return [Time] required :end_date, Time + # @!attribute filter + # An additional filter that was used to calculate the usage for this line item. + # + # @return [String, nil] + required :filter, String, nil?: true + # @!attribute grouping # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the @@ -1302,6 +1308,12 @@ class LineItem < Orb::BaseModel # @return [Array] required :tax_amounts, -> { Orb::ArrayOf[Orb::Models::Invoice::LineItem::TaxAmount] } + # @!attribute usage_customer_ids + # A list of customer ids that were used to calculate the usage for this line item. + # + # @return [Array, nil] + required :usage_customer_ids, Orb::ArrayOf[String], nil?: true + # @!parse # # @param id [String] # # @param adjusted_subtotal [String] @@ -1310,6 +1322,7 @@ class LineItem < Orb::BaseModel # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] # # @param end_date [Time] + # # @param filter [String, nil] # # @param grouping [String, nil] # # @param maximum [Orb::Models::Invoice::LineItem::Maximum, nil] # # @param maximum_amount [String, nil] @@ -1323,6 +1336,7 @@ class LineItem < Orb::BaseModel # # @param sub_line_items [Array] # # @param subtotal [String] # # @param tax_amounts [Array] + # # @param usage_customer_ids [Array, nil] # # # def initialize( # id:, @@ -1332,6 +1346,7 @@ class LineItem < Orb::BaseModel # credits_applied:, # discount:, # end_date:, + # filter:, # grouping:, # maximum:, # maximum_amount:, @@ -1345,6 +1360,7 @@ class LineItem < Orb::BaseModel # sub_line_items:, # subtotal:, # tax_amounts:, + # usage_customer_ids:, # ** # ) # super diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 098f4a66..a6d5548c 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -1211,6 +1211,12 @@ class LineItem < Orb::BaseModel # @return [Time] required :end_date, Time + # @!attribute filter + # An additional filter that was used to calculate the usage for this line item. + # + # @return [String, nil] + required :filter, String, nil?: true + # @!attribute grouping # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the @@ -1303,6 +1309,12 @@ class LineItem < Orb::BaseModel # @return [Array] required :tax_amounts, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] } + # @!attribute usage_customer_ids + # A list of customer ids that were used to calculate the usage for this line item. + # + # @return [Array, nil] + required :usage_customer_ids, Orb::ArrayOf[String], nil?: true + # @!parse # # @param id [String] # # @param adjusted_subtotal [String] @@ -1311,6 +1323,7 @@ class LineItem < Orb::BaseModel # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] # # @param end_date [Time] + # # @param filter [String, nil] # # @param grouping [String, nil] # # @param maximum [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, nil] # # @param maximum_amount [String, nil] @@ -1324,6 +1337,7 @@ class LineItem < Orb::BaseModel # # @param sub_line_items [Array] # # @param subtotal [String] # # @param tax_amounts [Array] + # # @param usage_customer_ids [Array, nil] # # # def initialize( # id:, @@ -1333,6 +1347,7 @@ class LineItem < Orb::BaseModel # credits_applied:, # discount:, # end_date:, + # filter:, # grouping:, # maximum:, # maximum_amount:, @@ -1346,6 +1361,7 @@ class LineItem < Orb::BaseModel # sub_line_items:, # subtotal:, # tax_amounts:, + # usage_customer_ids:, # ** # ) # super diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 8ac3bd8a..0878e321 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -46,6 +46,12 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # @return [Time] required :end_date, Time + # @!attribute filter + # An additional filter that was used to calculate the usage for this line item. + # + # @return [String, nil] + required :filter, String, nil?: true + # @!attribute grouping # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the @@ -138,6 +144,12 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # @return [Array] required :tax_amounts, -> { Orb::ArrayOf[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] } + # @!attribute usage_customer_ids + # A list of customer ids that were used to calculate the usage for this line item. + # + # @return [Array, nil] + required :usage_customer_ids, Orb::ArrayOf[String], nil?: true + # @!parse # # @param id [String] # # @param adjusted_subtotal [String] @@ -146,6 +158,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] # # @param end_date [Time] + # # @param filter [String, nil] # # @param grouping [String, nil] # # @param maximum [Orb::Models::InvoiceLineItemCreateResponse::Maximum, nil] # # @param maximum_amount [String, nil] @@ -159,6 +172,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # # @param sub_line_items [Array] # # @param subtotal [String] # # @param tax_amounts [Array] + # # @param usage_customer_ids [Array, nil] # # # def initialize( # id:, @@ -168,6 +182,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # credits_applied:, # discount:, # end_date:, + # filter:, # grouping:, # maximum:, # maximum_amount:, @@ -181,6 +196,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # sub_line_items:, # subtotal:, # tax_amounts:, + # usage_customer_ids:, # ** # ) # super diff --git a/lib/orb/version.rb b/lib/orb/version.rb index fb1a470b..3f2ab75d 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.1.0-alpha.16" + VERSION = "0.1.0-alpha.17" end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index 52d7fb98..90b16c14 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -1297,6 +1297,14 @@ module Orb def end_date=(_) end + sig { returns(T.nilable(String)) } + def filter + end + + sig { params(_: T.nilable(String)).returns(T.nilable(String)) } + def filter=(_) + end + sig { returns(T.nilable(String)) } def grouping end @@ -1543,6 +1551,14 @@ module Orb def tax_amounts=(_) end + sig { returns(T.nilable(T::Array[String])) } + def usage_customer_ids + end + + sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def usage_customer_ids=(_) + end + sig do params( id: String, @@ -1567,6 +1583,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), maximum_amount: T.nilable(String), @@ -1616,7 +1633,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) ) .void end @@ -1628,6 +1646,7 @@ module Orb credits_applied:, discount:, end_date:, + filter:, grouping:, maximum:, maximum_amount:, @@ -1640,7 +1659,8 @@ module Orb start_date:, sub_line_items:, subtotal:, - tax_amounts: + tax_amounts:, + usage_customer_ids: ) end @@ -1670,6 +1690,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), maximum_amount: T.nilable(String), @@ -1719,7 +1740,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) } ) end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index a07c9f22..625654aa 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -1315,6 +1315,14 @@ module Orb def end_date=(_) end + sig { returns(T.nilable(String)) } + def filter + end + + sig { params(_: T.nilable(String)).returns(T.nilable(String)) } + def filter=(_) + end + sig { returns(T.nilable(String)) } def grouping end @@ -1561,6 +1569,14 @@ module Orb def tax_amounts=(_) end + sig { returns(T.nilable(T::Array[String])) } + def usage_customer_ids + end + + sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def usage_customer_ids=(_) + end + sig do params( id: String, @@ -1585,6 +1601,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), maximum_amount: T.nilable(String), @@ -1634,7 +1651,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) ) .void end @@ -1646,6 +1664,7 @@ module Orb credits_applied:, discount:, end_date:, + filter:, grouping:, maximum:, maximum_amount:, @@ -1658,7 +1677,8 @@ module Orb start_date:, sub_line_items:, subtotal:, - tax_amounts: + tax_amounts:, + usage_customer_ids: ) end @@ -1688,6 +1708,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), maximum_amount: T.nilable(String), @@ -1737,7 +1758,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) } ) end diff --git a/rbi/lib/orb/models/invoice_line_item_create_response.rbi b/rbi/lib/orb/models/invoice_line_item_create_response.rbi index 67acabed..11fdabdf 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -126,6 +126,14 @@ module Orb def end_date=(_) end + sig { returns(T.nilable(String)) } + def filter + end + + sig { params(_: T.nilable(String)).returns(T.nilable(String)) } + def filter=(_) + end + sig { returns(T.nilable(String)) } def grouping end @@ -372,6 +380,14 @@ module Orb def tax_amounts=(_) end + sig { returns(T.nilable(T::Array[String])) } + def usage_customer_ids + end + + sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def usage_customer_ids=(_) + end + sig do params( id: String, @@ -396,6 +412,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), maximum_amount: T.nilable(String), @@ -445,7 +462,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) ) .void end @@ -457,6 +475,7 @@ module Orb credits_applied:, discount:, end_date:, + filter:, grouping:, maximum:, maximum_amount:, @@ -469,7 +488,8 @@ module Orb start_date:, sub_line_items:, subtotal:, - tax_amounts: + tax_amounts:, + usage_customer_ids: ) end @@ -499,6 +519,7 @@ module Orb ) ), end_date: Time, + filter: T.nilable(String), grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), maximum_amount: T.nilable(String), @@ -548,7 +569,8 @@ module Orb ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) } ) end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index c739ac47..07369958 100644 --- a/rbi/lib/orb/version.rbi +++ b/rbi/lib/orb/version.rbi @@ -1,5 +1,5 @@ # typed: strong module Orb - VERSION = "0.1.0-alpha.16" + VERSION = "0.1.0-alpha.17" end diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index b40d9e3a..3cff062c 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -779,6 +779,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::Invoice::LineItem::Maximum?, maximum_amount: String?, @@ -791,7 +792,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? } class LineItem < Orb::BaseModel @@ -809,6 +811,8 @@ module Orb attr_accessor end_date: Time + attr_accessor filter: String? + attr_accessor grouping: String? attr_accessor maximum: Orb::Models::Invoice::LineItem::Maximum? @@ -835,6 +839,8 @@ module Orb attr_accessor tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] + attr_accessor usage_customer_ids: ::Array[String]? + def initialize: ( id: String, @@ -844,6 +850,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::Invoice::LineItem::Maximum?, maximum_amount: String?, @@ -856,7 +863,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? ) -> void | (?Orb::Models::Invoice::line_item | Orb::BaseModel data) -> void diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index 45e8247c..83cf8f58 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -790,6 +790,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, maximum_amount: String?, @@ -802,7 +803,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? } class LineItem < Orb::BaseModel @@ -820,6 +822,8 @@ module Orb attr_accessor end_date: Time + attr_accessor filter: String? + attr_accessor grouping: String? attr_accessor maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum? @@ -846,6 +850,8 @@ module Orb attr_accessor tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + attr_accessor usage_customer_ids: ::Array[String]? + def initialize: ( id: String, @@ -855,6 +861,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, maximum_amount: String?, @@ -867,7 +874,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? ) -> void | ( ?Orb::Models::InvoiceFetchUpcomingResponse::line_item diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index 05481db3..1b29914c 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -9,6 +9,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, maximum_amount: String?, @@ -21,7 +22,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: ::Array[String]? } class InvoiceLineItemCreateResponse < Orb::BaseModel @@ -39,6 +41,8 @@ module Orb attr_accessor end_date: Time + attr_accessor filter: String? + attr_accessor grouping: String? attr_accessor maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum? @@ -65,6 +69,8 @@ module Orb attr_accessor tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + attr_accessor usage_customer_ids: ::Array[String]? + def initialize: ( id: String, @@ -74,6 +80,7 @@ module Orb credits_applied: String, discount: Orb::Models::discount?, end_date: Time, + filter: String?, grouping: String?, maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, maximum_amount: String?, @@ -86,7 +93,8 @@ module Orb start_date: Time, sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: ::Array[String]? ) -> void | ( ?Orb::Models::invoice_line_item_create_response | Orb::BaseModel data diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 031191a0..83d18e53 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.15" + VERSION: "0.1.0-alpha.16" end diff --git a/test/orb/resources/invoice_line_items_test.rb b/test/orb/resources/invoice_line_items_test.rb index b62c5052..6664a17f 100644 --- a/test/orb/resources/invoice_line_items_test.rb +++ b/test/orb/resources/invoice_line_items_test.rb @@ -26,6 +26,7 @@ def test_create_required_params credits_applied: String, discount: Orb::Models::Discount | nil, end_date: Time, + filter: String | nil, grouping: String | nil, maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum | nil, maximum_amount: String | nil, @@ -38,7 +39,8 @@ def test_create_required_params start_date: Time, sub_line_items: ^(Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem]), subtotal: String, - tax_amounts: ^(Orb::ArrayOf[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) + tax_amounts: ^(Orb::ArrayOf[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]), + usage_customer_ids: ^(Orb::ArrayOf[String]) | nil } end end