Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.16"
".": "0.1.0-alpha.17"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/orb/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
16 changes: 16 additions & 0 deletions lib/orb/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1302,6 +1308,12 @@ class LineItem < Orb::BaseModel
# @return [Array<Orb::Models::Invoice::LineItem::TaxAmount>]
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<String>, nil]
required :usage_customer_ids, Orb::ArrayOf[String], nil?: true

# @!parse
# # @param id [String]
# # @param adjusted_subtotal [String]
Expand All @@ -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]
Expand All @@ -1323,6 +1336,7 @@ class LineItem < Orb::BaseModel
# # @param sub_line_items [Array<Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem>]
# # @param subtotal [String]
# # @param tax_amounts [Array<Orb::Models::Invoice::LineItem::TaxAmount>]
# # @param usage_customer_ids [Array<String>, nil]
# #
# def initialize(
# id:,
Expand All @@ -1332,6 +1346,7 @@ class LineItem < Orb::BaseModel
# credits_applied:,
# discount:,
# end_date:,
# filter:,
# grouping:,
# maximum:,
# maximum_amount:,
Expand All @@ -1345,6 +1360,7 @@ class LineItem < Orb::BaseModel
# sub_line_items:,
# subtotal:,
# tax_amounts:,
# usage_customer_ids:,
# **
# )
# super
Expand Down
16 changes: 16 additions & 0 deletions lib/orb/models/invoice_fetch_upcoming_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1303,6 +1309,12 @@ class LineItem < Orb::BaseModel
# @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount>]
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<String>, nil]
required :usage_customer_ids, Orb::ArrayOf[String], nil?: true

# @!parse
# # @param id [String]
# # @param adjusted_subtotal [String]
Expand All @@ -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]
Expand All @@ -1324,6 +1337,7 @@ class LineItem < Orb::BaseModel
# # @param sub_line_items [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem>]
# # @param subtotal [String]
# # @param tax_amounts [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount>]
# # @param usage_customer_ids [Array<String>, nil]
# #
# def initialize(
# id:,
Expand All @@ -1333,6 +1347,7 @@ class LineItem < Orb::BaseModel
# credits_applied:,
# discount:,
# end_date:,
# filter:,
# grouping:,
# maximum:,
# maximum_amount:,
Expand All @@ -1346,6 +1361,7 @@ class LineItem < Orb::BaseModel
# sub_line_items:,
# subtotal:,
# tax_amounts:,
# usage_customer_ids:,
# **
# )
# super
Expand Down
16 changes: 16 additions & 0 deletions lib/orb/models/invoice_line_item_create_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -138,6 +144,12 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel
# @return [Array<Orb::Models::InvoiceLineItemCreateResponse::TaxAmount>]
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<String>, nil]
required :usage_customer_ids, Orb::ArrayOf[String], nil?: true

# @!parse
# # @param id [String]
# # @param adjusted_subtotal [String]
Expand All @@ -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]
Expand All @@ -159,6 +172,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel
# # @param sub_line_items [Array<Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem>]
# # @param subtotal [String]
# # @param tax_amounts [Array<Orb::Models::InvoiceLineItemCreateResponse::TaxAmount>]
# # @param usage_customer_ids [Array<String>, nil]
# #
# def initialize(
# id:,
Expand All @@ -168,6 +182,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel
# credits_applied:,
# discount:,
# end_date:,
# filter:,
# grouping:,
# maximum:,
# maximum_amount:,
Expand All @@ -181,6 +196,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel
# sub_line_items:,
# subtotal:,
# tax_amounts:,
# usage_customer_ids:,
# **
# )
# super
Expand Down
2 changes: 1 addition & 1 deletion lib/orb/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Orb
VERSION = "0.1.0-alpha.16"
VERSION = "0.1.0-alpha.17"
end
28 changes: 25 additions & 3 deletions rbi/lib/orb/models/invoice.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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),
Expand Down Expand Up @@ -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
Expand All @@ -1628,6 +1646,7 @@ module Orb
credits_applied:,
discount:,
end_date:,
filter:,
grouping:,
maximum:,
maximum_amount:,
Expand All @@ -1640,7 +1659,8 @@ module Orb
start_date:,
sub_line_items:,
subtotal:,
tax_amounts:
tax_amounts:,
usage_customer_ids:
)
end

Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down
28 changes: 25 additions & 3 deletions rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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),
Expand Down Expand Up @@ -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
Expand All @@ -1646,6 +1664,7 @@ module Orb
credits_applied:,
discount:,
end_date:,
filter:,
grouping:,
maximum:,
maximum_amount:,
Expand All @@ -1658,7 +1677,8 @@ module Orb
start_date:,
sub_line_items:,
subtotal:,
tax_amounts:
tax_amounts:,
usage_customer_ids:
)
end

Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down
Loading
Loading