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 @@
{
".": "1.6.0"
".": "1.7.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 116
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml
openapi_spec_hash: 1e04880dccbcc082ba451083e421a471
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml
openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e
config_hash: 3c3524be9607afb24d2139ce26ce5389
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.7.0 (2025-07-16)

Full Changelog: [v1.6.0...v1.7.0](https://github.com/orbcorp/orb-ruby/compare/v1.6.0...v1.7.0)

### Features

* **api:** api update ([78865a0](https://github.com/orbcorp/orb-ruby/commit/78865a03cdc7ca40dacad41ef18546f8bbee1593))


### Chores

* **internal:** version bump ([811d9b6](https://github.com/orbcorp/orb-ruby/commit/811d9b63cef236992ab6cef658877c4cec96f61a))

## 1.6.0 (2025-07-16)

Full Changelog: [v1.5.1...v1.6.0](https://github.com/orbcorp/orb-ruby/compare/v1.5.1...v1.6.0)
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-billing (1.5.1)
orb-billing (1.6.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "orb-billing", "~> 1.6.0"
gem "orb-billing", "~> 1.7.0"
```

<!-- x-release-please-end -->
Expand Down
43 changes: 21 additions & 22 deletions lib/orb/models/credit_note_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
required :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }

# @!attribute end_date
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period end date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
#
# @return [Date, nil]
optional :end_date, Date, nil?: true
Expand All @@ -34,10 +34,10 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
optional :memo, String, nil?: true

# @!attribute start_date
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period start date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
#
# @return [Date, nil]
optional :start_date, Date, nil?: true
Expand All @@ -50,11 +50,11 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
#
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
#
# @param end_date [Date, nil] An optional date string to specify the global credit note service period end dat
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
#
# @param memo [String, nil] An optional memo to attach to the credit note.
#
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
#
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]

Expand All @@ -72,21 +72,20 @@ class LineItem < Orb::Internal::Type::BaseModel
required :invoice_line_item_id, String

# @!attribute end_date
# An optional date string to specify this line item's credit note service period
# end date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global end_date if available,
# otherwise defaults to the original invoice line item's end date. This date is
# inclusive.
# A date string to specify this line item's credit note service period end date in
# the customer's timezone. If provided, this will be used for this specific line
# item. If not provided, will use the global end_date if available, otherwise
# defaults to the original invoice line item's end date. This date is inclusive.
#
# @return [Date, nil]
optional :end_date, Date, nil?: true

# @!attribute start_date
# An optional date string to specify this line item's credit note service period
# start date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global start_date if
# available, otherwise defaults to the original invoice line item's start date.
# This date is inclusive.
# A date string to specify this line item's credit note service period start date
# in the customer's timezone. If provided, this will be used for this specific
# line item. If not provided, will use the global start_date if available,
# otherwise defaults to the original invoice line item's start date. This date is
# inclusive.
#
# @return [Date, nil]
optional :start_date, Date, nil?: true
Expand All @@ -99,9 +98,9 @@ class LineItem < Orb::Internal::Type::BaseModel
#
# @param invoice_line_item_id [String] The ID of the line item to credit.
#
# @param end_date [Date, nil] An optional date string to specify this line item's credit note service period e
# @param end_date [Date, nil] A date string to specify this line item's credit note service period end date in
#
# @param start_date [Date, nil] An optional date string to specify this line item's credit note service period s
# @param start_date [Date, nil] A date string to specify this line item's credit note service period start date
end

# An optional reason for the credit note.
Expand Down
4 changes: 2 additions & 2 deletions lib/orb/resources/credit_notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class CreditNotes
#
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
#
# @param end_date [Date, nil] An optional date string to specify the global credit note service period end dat
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
#
# @param memo [String, nil] An optional memo to attach to the credit note.
#
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
#
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
#
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 = "1.6.0"
VERSION = "1.7.0"
end
70 changes: 34 additions & 36 deletions rbi/orb/models/credit_note_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ module Orb
sig { returns(Orb::CreditNoteCreateParams::Reason::OrSymbol) }
attr_accessor :reason

# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period end date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
sig { returns(T.nilable(Date)) }
attr_accessor :end_date

# An optional memo to attach to the credit note.
sig { returns(T.nilable(String)) }
attr_accessor :memo

# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period start date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
sig { returns(T.nilable(Date)) }
attr_accessor :start_date

Expand All @@ -50,17 +50,17 @@ module Orb
line_items:,
# An optional reason for the credit note.
reason:,
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period end date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
end_date: nil,
# An optional memo to attach to the credit note.
memo: nil,
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period start date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
start_date: nil,
request_options: {}
)
Expand Down Expand Up @@ -95,19 +95,18 @@ module Orb
sig { returns(String) }
attr_accessor :invoice_line_item_id

# An optional date string to specify this line item's credit note service period
# end date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global end_date if available,
# otherwise defaults to the original invoice line item's end date. This date is
# inclusive.
# A date string to specify this line item's credit note service period end date in
# the customer's timezone. If provided, this will be used for this specific line
# item. If not provided, will use the global end_date if available, otherwise
# defaults to the original invoice line item's end date. This date is inclusive.
sig { returns(T.nilable(Date)) }
attr_accessor :end_date

# An optional date string to specify this line item's credit note service period
# start date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global start_date if
# available, otherwise defaults to the original invoice line item's start date.
# This date is inclusive.
# A date string to specify this line item's credit note service period start date
# in the customer's timezone. If provided, this will be used for this specific
# line item. If not provided, will use the global start_date if available,
# otherwise defaults to the original invoice line item's start date. This date is
# inclusive.
sig { returns(T.nilable(Date)) }
attr_accessor :start_date

Expand All @@ -124,17 +123,16 @@ module Orb
amount:,
# The ID of the line item to credit.
invoice_line_item_id:,
# An optional date string to specify this line item's credit note service period
# end date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global end_date if available,
# otherwise defaults to the original invoice line item's end date. This date is
# inclusive.
# A date string to specify this line item's credit note service period end date in
# the customer's timezone. If provided, this will be used for this specific line
# item. If not provided, will use the global end_date if available, otherwise
# defaults to the original invoice line item's end date. This date is inclusive.
end_date: nil,
# An optional date string to specify this line item's credit note service period
# start date in the customer's timezone. If provided, this will be used for this
# specific line item. If not provided, will use the global start_date if
# available, otherwise defaults to the original invoice line item's start date.
# This date is inclusive.
# A date string to specify this line item's credit note service period start date
# in the customer's timezone. If provided, this will be used for this specific
# line item. If not provided, will use the global start_date if available,
# otherwise defaults to the original invoice line item's start date. This date is
# inclusive.
start_date: nil
)
end
Expand Down
16 changes: 8 additions & 8 deletions rbi/orb/resources/credit_notes.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ module Orb
line_items:,
# An optional reason for the credit note.
reason:,
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period end date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
end_date: nil,
# An optional memo to attach to the credit note.
memo: nil,
# An optional date string to specify the global credit note service period end
# date in the customer's timezone. This will be applied to all line items. If not
# provided, line items will use their original invoice line item service periods.
# This date is inclusive.
# A date string to specify the global credit note service period start date in the
# customer's timezone. This will be applied to all line items that don't have
# their own individual service periods specified. If not provided, line items will
# use their original invoice line item service periods. This date is inclusive.
start_date: nil,
request_options: {}
)
Expand Down