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.7.0"
".": "0.8.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: 114
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c697450a215fdbd1a854d26381ce137b222726c3e6669a93afb1c0c5669906ca.yml
openapi_spec_hash: b8b5388292baa73b5f2c686d4904ae45
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6d2a5b5d2cfb485e1a548aa15e1e36844e1f14f42553033822e1c570c8aa0825.yml
openapi_spec_hash: 0266a5aaced5e768bcf6a70924d69799
config_hash: e63f2d098e5d12f63ae4cd8270aa5c3c
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.8.0 (2025-05-29)

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

### Features

* **api:** api update ([a2e8bcf](https://github.com/orbcorp/orb-ruby/commit/a2e8bcf1773986a845af2abcf055036a043b06bd))


### Chores

* **internal:** version bump ([2e01a85](https://github.com/orbcorp/orb-ruby/commit/2e01a85a81d448e5ee4f15effb9edb5580634417))

## 0.7.0 (2025-05-28)

Full Changelog: [v0.6.0...v0.7.0](https://github.com/orbcorp/orb-ruby/compare/v0.6.0...v0.7.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 (0.6.0)
orb-billing (0.7.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", "~> 0.7.0"
gem "orb-billing", "~> 0.8.0"
```

<!-- x-release-please-end -->
Expand Down
110 changes: 100 additions & 10 deletions lib/orb/models/beta/external_plan_id_create_plan_version_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,24 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
# @return [String]
required :currency, String

# @!attribute custom_expiration
# The custom expiration for the allocation.
#
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil]
optional :custom_expiration,
-> {
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
},
nil?: true

# @!attribute expires_at_end_of_cadence
# Whether the allocated amount should expire at the end of the cadence or roll
# over to the next period.
# over to the next period. Set to null if using custom_expiration.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean
# @return [Boolean, nil]
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true

# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
# Some parameter documentations has been truncated, see
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice}
# for more details.
Expand All @@ -428,7 +438,9 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
#
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
#
# @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove
# @param custom_expiration [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
#
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove

# The cadence at which to allocate the amount to the customer.
#
Expand All @@ -446,6 +458,39 @@ module Cadence
# @!method self.values
# @return [Array<Symbol>]
end

# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice#custom_expiration
class CustomExpiration < Orb::Internal::Type::BaseModel
# @!attribute duration
#
# @return [Integer]
required :duration, Integer

# @!attribute duration_unit
#
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
required :duration_unit,
enum: -> {
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
}

# @!method initialize(duration:, duration_unit:)
# The custom expiration for the allocation.
#
# @param duration [Integer]
# @param duration_unit [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]

# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration#duration_unit
module DurationUnit
extend Orb::Internal::Type::Enum

DAY = :day
MONTH = :month

# @!method self.values
# @return [Array<Symbol>]
end
end
end

# The price to add to the plan
Expand Down Expand Up @@ -9349,14 +9394,24 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
# @return [String]
required :currency, String

# @!attribute custom_expiration
# The custom expiration for the allocation.
#
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil]
optional :custom_expiration,
-> {
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
},
nil?: true

# @!attribute expires_at_end_of_cadence
# Whether the allocated amount should expire at the end of the cadence or roll
# over to the next period.
# over to the next period. Set to null if using custom_expiration.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean
# @return [Boolean, nil]
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true

# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
# Some parameter documentations has been truncated, see
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice}
# for more details.
Expand All @@ -9369,7 +9424,9 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
#
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
#
# @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove
# @param custom_expiration [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
#
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove

# The cadence at which to allocate the amount to the customer.
#
Expand All @@ -9387,6 +9444,39 @@ module Cadence
# @!method self.values
# @return [Array<Symbol>]
end

# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice#custom_expiration
class CustomExpiration < Orb::Internal::Type::BaseModel
# @!attribute duration
#
# @return [Integer]
required :duration, Integer

# @!attribute duration_unit
#
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
required :duration_unit,
enum: -> {
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
}

# @!method initialize(duration:, duration_unit:)
# The custom expiration for the allocation.
#
# @param duration [Integer]
# @param duration_unit [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]

# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration#duration_unit
module DurationUnit
extend Orb::Internal::Type::Enum

DAY = :day
MONTH = :month

# @!method self.values
# @return [Array<Symbol>]
end
end
end

# The price to add to the plan
Expand Down
106 changes: 96 additions & 10 deletions lib/orb/models/beta_create_plan_version_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,22 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
# @return [String]
required :currency, String

# @!attribute custom_expiration
# The custom expiration for the allocation.
#
# @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil]
optional :custom_expiration,
-> { Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration },
nil?: true

# @!attribute expires_at_end_of_cadence
# Whether the allocated amount should expire at the end of the cadence or roll
# over to the next period.
# over to the next period. Set to null if using custom_expiration.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean
# @return [Boolean, nil]
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true

# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
# Some parameter documentations has been truncated, see
# {Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice} for more
# details.
Expand All @@ -401,7 +409,9 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
#
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
#
# @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove
# @param custom_expiration [Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
#
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove

# The cadence at which to allocate the amount to the customer.
#
Expand All @@ -419,6 +429,39 @@ module Cadence
# @!method self.values
# @return [Array<Symbol>]
end

# @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice#custom_expiration
class CustomExpiration < Orb::Internal::Type::BaseModel
# @!attribute duration
#
# @return [Integer]
required :duration, Integer

# @!attribute duration_unit
#
# @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
required :duration_unit,
enum: -> {
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
}

# @!method initialize(duration:, duration_unit:)
# The custom expiration for the allocation.
#
# @param duration [Integer]
# @param duration_unit [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]

# @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration#duration_unit
module DurationUnit
extend Orb::Internal::Type::Enum

DAY = :day
MONTH = :month

# @!method self.values
# @return [Array<Symbol>]
end
end
end

# The price to add to the plan
Expand Down Expand Up @@ -9235,14 +9278,22 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
# @return [String]
required :currency, String

# @!attribute custom_expiration
# The custom expiration for the allocation.
#
# @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil]
optional :custom_expiration,
-> { Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration },
nil?: true

# @!attribute expires_at_end_of_cadence
# Whether the allocated amount should expire at the end of the cadence or roll
# over to the next period.
# over to the next period. Set to null if using custom_expiration.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean
# @return [Boolean, nil]
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true

# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
# Some parameter documentations has been truncated, see
# {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice} for
# more details.
Expand All @@ -9255,7 +9306,9 @@ class AllocationPrice < Orb::Internal::Type::BaseModel
#
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
#
# @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove
# @param custom_expiration [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
#
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove

# The cadence at which to allocate the amount to the customer.
#
Expand All @@ -9273,6 +9326,39 @@ module Cadence
# @!method self.values
# @return [Array<Symbol>]
end

# @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice#custom_expiration
class CustomExpiration < Orb::Internal::Type::BaseModel
# @!attribute duration
#
# @return [Integer]
required :duration, Integer

# @!attribute duration_unit
#
# @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
required :duration_unit,
enum: -> {
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
}

# @!method initialize(duration:, duration_unit:)
# The custom expiration for the allocation.
#
# @param duration [Integer]
# @param duration_unit [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]

# @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration#duration_unit
module DurationUnit
extend Orb::Internal::Type::Enum

DAY = :day
MONTH = :month

# @!method self.values
# @return [Array<Symbol>]
end
end
end

# The price to add to the plan
Expand Down
Loading