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.5"
".": "0.1.0-alpha.6"
}
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-43a4d1d907fd25faa99fef58ba7afb3dd39fae36f955b29bfe27b4bfdaa0ee54.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2824cb456b8e3a7ce1ea34aa37a2c8e63d5b70425a5863502ffe1e1b1ef7efaf.yml
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.1.0-alpha.6 (2025-02-11)

Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

### Features

* **api:** api update ([#25](https://github.com/orbcorp/orb-ruby/issues/25)) ([5b9ccc0](https://github.com/orbcorp/orb-ruby/commit/5b9ccc0cdf609ccf737a5a34c33a401156c14aec))


### Chores

* **internal:** codegen related update ([#23](https://github.com/orbcorp/orb-ruby/issues/23)) ([bc60b57](https://github.com/orbcorp/orb-ruby/commit/bc60b57689b51660c5b740acec4555acb2f045d8))
* **internal:** codegen related update ([#24](https://github.com/orbcorp/orb-ruby/issues/24)) ([6e8da47](https://github.com/orbcorp/orb-ruby/commit/6e8da47d5be16544f8656f1dc3998b7b9deb32fe))
* **internal:** version bump ([#21](https://github.com/orbcorp/orb-ruby/issues/21)) ([a85c7c7](https://github.com/orbcorp/orb-ruby/commit/a85c7c76d45acf6060bbc15097d6b535e36ab6da))

## 0.1.0-alpha.5 (2025-02-07)

Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
Expand Down
8 changes: 4 additions & 4 deletions 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.4)
orb (0.1.0.pre.alpha.5)
connection_pool

GEM
Expand Down Expand Up @@ -80,9 +80,9 @@ GEM
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
sorbet (0.5.11810)
sorbet-static (= 0.5.11810)
sorbet-static (0.5.11810-x86_64-linux)
sorbet (0.5.11813)
sorbet-static (= 0.5.11813)
sorbet-static (0.5.11813-x86_64-linux)
steep (1.9.4)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class Action < Orb::Enum
CREDIT_NOTE_APPLIED = :credit_note_applied
CREDIT_NOTE_VOIDED = :credit_note_voided
OVERPAYMENT_REFUND = :overpayment_refund
EXTERNAL_PAYMENT = :external_payment

finalize!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class Action < Orb::Enum
CREDIT_NOTE_APPLIED = :credit_note_applied
CREDIT_NOTE_VOIDED = :credit_note_voided
OVERPAYMENT_REFUND = :overpayment_refund
EXTERNAL_PAYMENT = :external_payment

finalize!

Expand Down
1 change: 1 addition & 0 deletions lib/orb/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ class Action < Orb::Enum
CREDIT_NOTE_APPLIED = :credit_note_applied
CREDIT_NOTE_VOIDED = :credit_note_voided
OVERPAYMENT_REFUND = :overpayment_refund
EXTERNAL_PAYMENT = :external_payment

finalize!

Expand Down
1 change: 1 addition & 0 deletions lib/orb/models/invoice_fetch_upcoming_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ class Action < Orb::Enum
CREDIT_NOTE_APPLIED = :credit_note_applied
CREDIT_NOTE_VOIDED = :credit_note_voided
OVERPAYMENT_REFUND = :overpayment_refund
EXTERNAL_PAYMENT = :external_payment

finalize!

Expand Down
200 changes: 198 additions & 2 deletions lib/orb/models/subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -657,15 +657,23 @@ class NewMaximum < Orb::BaseModel
# @example
# ```ruby
# add_price => {
# allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice,
# discounts: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Discount] === _1 },
# end_date: Time,
# external_price_id: String,
# maximum_amount: String,
# minimum_amount: String,
# **_
# }
# ```
class AddPrice < Orb::BaseModel
# @!attribute allocation_price
# The definition of a new allocation price to create and add to the subscription.
#
# @return [Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, nil]
optional :allocation_price,
-> { Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice },
nil?: true

# @!attribute discounts
# [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this
# price.
Expand Down Expand Up @@ -730,6 +738,7 @@ class AddPrice < Orb::BaseModel
optional :start_date, Time, nil?: true

# @!parse
# # @param allocation_price [Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, nil]
# # @param discounts [Array<Orb::Models::SubscriptionCreateParams::AddPrice::Discount>, nil]
# # @param end_date [Time, nil]
# # @param external_price_id [String, nil]
Expand All @@ -741,6 +750,7 @@ class AddPrice < Orb::BaseModel
# # @param start_date [Time, nil]
# #
# def initialize(
# allocation_price: nil,
# discounts: nil,
# end_date: nil,
# external_price_id: nil,
Expand All @@ -757,6 +767,95 @@ class AddPrice < Orb::BaseModel

# def initialize: (Hash | Orb::BaseModel) -> void

# @example
# ```ruby
# allocation_price => {
# amount: String,
# cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence,
# currency: String,
# expires_at_end_of_cadence: Orb::BooleanModel
# }
# ```
class AllocationPrice < Orb::BaseModel
# @!attribute amount
# An amount of the currency to allocate to the customer at the specified cadence.
#
# @return [String]
required :amount, String

# @!attribute cadence
# The cadence at which to allocate the amount to the customer.
#
# @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence]
required :cadence,
enum: -> {
Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence
}

# @!attribute currency
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
# this price.
#
# @return [String]
required :currency, String

# @!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.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::BooleanModel

# @!parse
# # The definition of a new allocation price to create and add to the subscription.
# #
# # @param amount [String]
# # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence]
# # @param currency [String]
# # @param expires_at_end_of_cadence [Boolean]
# #
# def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:, **) = super

# def initialize: (Hash | Orb::BaseModel) -> void

# @abstract
#
# The cadence at which to allocate the amount to the customer.
#
# @example
# ```ruby
# case cadence
# in :one_time
# # ...
# in :monthly
# # ...
# in :quarterly
# # ...
# in :semi_annual
# # ...
# in :annual
# # ...
# in ...
# #...
# end
# ```
class Cadence < Orb::Enum
ONE_TIME = :one_time
MONTHLY = :monthly
QUARTERLY = :quarterly
SEMI_ANNUAL = :semi_annual
ANNUAL = :annual
CUSTOM = :custom

finalize!

# @!parse
# # @return [Array<Symbol>]
# #
# def self.values; end
end
end

# @example
# ```ruby
# discount => {
Expand Down Expand Up @@ -7727,10 +7826,10 @@ class NewMaximum < Orb::BaseModel
# ```ruby
# replace_price => {
# replaces_price_id: String,
# allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice,
# discounts: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount] === _1 },
# external_price_id: String,
# fixed_price_quantity: Float,
# maximum_amount: String,
# **_
# }
# ```
Expand All @@ -7741,6 +7840,14 @@ class ReplacePrice < Orb::BaseModel
# @return [String]
required :replaces_price_id, String

# @!attribute allocation_price
# The definition of a new allocation price to create and add to the subscription.
#
# @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil]
optional :allocation_price,
-> { Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice },
nil?: true

# @!attribute discounts
# [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the
# replacement price.
Expand Down Expand Up @@ -7790,6 +7897,7 @@ class ReplacePrice < Orb::BaseModel

# @!parse
# # @param replaces_price_id [String]
# # @param allocation_price [Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil]
# # @param discounts [Array<Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount>, nil]
# # @param external_price_id [String, nil]
# # @param fixed_price_quantity [Float, nil]
Expand All @@ -7800,6 +7908,7 @@ class ReplacePrice < Orb::BaseModel
# #
# def initialize(
# replaces_price_id:,
# allocation_price: nil,
# discounts: nil,
# external_price_id: nil,
# fixed_price_quantity: nil,
Expand All @@ -7814,6 +7923,93 @@ class ReplacePrice < Orb::BaseModel

# def initialize: (Hash | Orb::BaseModel) -> void

# @example
# ```ruby
# allocation_price => {
# amount: String,
# cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence,
# currency: String,
# expires_at_end_of_cadence: Orb::BooleanModel
# }
# ```
class AllocationPrice < Orb::BaseModel
# @!attribute amount
# An amount of the currency to allocate to the customer at the specified cadence.
#
# @return [String]
required :amount, String

# @!attribute cadence
# The cadence at which to allocate the amount to the customer.
#
# @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence]
required :cadence,
enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence }

# @!attribute currency
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
# this price.
#
# @return [String]
required :currency, String

# @!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.
#
# @return [Boolean]
required :expires_at_end_of_cadence, Orb::BooleanModel

# @!parse
# # The definition of a new allocation price to create and add to the subscription.
# #
# # @param amount [String]
# # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence]
# # @param currency [String]
# # @param expires_at_end_of_cadence [Boolean]
# #
# def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:, **) = super

# def initialize: (Hash | Orb::BaseModel) -> void

# @abstract
#
# The cadence at which to allocate the amount to the customer.
#
# @example
# ```ruby
# case cadence
# in :one_time
# # ...
# in :monthly
# # ...
# in :quarterly
# # ...
# in :semi_annual
# # ...
# in :annual
# # ...
# in ...
# #...
# end
# ```
class Cadence < Orb::Enum
ONE_TIME = :one_time
MONTHLY = :monthly
QUARTERLY = :quarterly
SEMI_ANNUAL = :semi_annual
ANNUAL = :annual
CUSTOM = :custom

finalize!

# @!parse
# # @return [Array<Symbol>]
# #
# def self.values; end
end
end

# @example
# ```ruby
# discount => {
Expand Down
Loading
Loading