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.89.0"
".": "1.90.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: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e0a19c46b65842ff370613aac24ba8777d7b961bd46a20e936e878386e048852.yml
openapi_spec_hash: 0f635610cedd9a0aacc6d5b347c3cccf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3e092c1a52f33e962b8415bfa24a244fdb66783aa093e027501124cb8658881b.yml
openapi_spec_hash: 677f23c2d65201b72074b3effb7d9ad4
config_hash: a143293c5450ae8f52acad08f3102575
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.90.0 (2025-09-24)

Full Changelog: [v1.89.0...v1.90.0](https://github.com/Increase/increase-ruby/compare/v1.89.0...v1.90.0)

### Features

* **api:** api update ([1d66673](https://github.com/Increase/increase-ruby/commit/1d666739b4d2b06f94ee367cb34c6254b55ab137))

## 1.89.0 (2025-09-24)

Full Changelog: [v1.88.0...v1.89.0](https://github.com/Increase/increase-ruby/compare/v1.88.0...v1.89.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:
increase (1.89.0)
increase (1.90.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 "increase", "~> 1.89.0"
gem "increase", "~> 1.90.0"
```

<!-- x-release-please-end -->
Expand Down
24 changes: 23 additions & 1 deletion lib/increase/models/event_subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :shared_secret, String

# @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {})
# @!attribute status
# The status of the event subscription. Defaults to `active` if not specified.
#
# @return [Symbol, Increase::Models::EventSubscriptionCreateParams::Status, nil]
optional :status, enum: -> { Increase::EventSubscriptionCreateParams::Status }

# @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::EventSubscriptionCreateParams} for more details.
#
Expand All @@ -47,6 +53,8 @@ class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel
#
# @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
#
# @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# If specified, this subscription will only receive webhooks for Events with the
Expand Down Expand Up @@ -371,6 +379,20 @@ module SelectedEventCategory
# @!method self.values
# @return [Array<Symbol>]
end

# The status of the event subscription. Defaults to `active` if not specified.
module Status
extend Increase::Internal::Type::Enum

# The subscription is active and Events will be delivered normally.
ACTIVE = :active

# The subscription is temporarily disabled and Events will not be delivered.
DISABLED = :disabled

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
4 changes: 3 additions & 1 deletion lib/increase/resources/event_subscriptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class EventSubscriptions
#
# Create an Event Subscription
#
# @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {})
# @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
#
# @param url [String] The URL you'd like us to send webhooks to.
#
Expand All @@ -18,6 +18,8 @@ class EventSubscriptions
#
# @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
#
# @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::EventSubscription]
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.89.0"
VERSION = "1.90.0"
end
54 changes: 54 additions & 0 deletions rbi/increase/models/event_subscription_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,29 @@ module Increase
sig { params(shared_secret: String).void }
attr_writer :shared_secret

# The status of the event subscription. Defaults to `active` if not specified.
sig do
returns(
T.nilable(Increase::EventSubscriptionCreateParams::Status::OrSymbol)
)
end
attr_reader :status

sig do
params(
status: Increase::EventSubscriptionCreateParams::Status::OrSymbol
).void
end
attr_writer :status

sig do
params(
url: String,
oauth_connection_id: String,
selected_event_category:
Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
shared_secret: String,
status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
Expand All @@ -75,6 +91,8 @@ module Increase
# The key that will be used to sign webhooks. If no value is passed, a random
# string will be used as default.
shared_secret: nil,
# The status of the event subscription. Defaults to `active` if not specified.
status: nil,
request_options: {}
)
end
Expand All @@ -87,6 +105,7 @@ module Increase
selected_event_category:
Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
shared_secret: String,
status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
request_options: Increase::RequestOptions
}
)
Expand Down Expand Up @@ -846,6 +865,41 @@ module Increase
def self.values
end
end

# The status of the event subscription. Defaults to `active` if not specified.
module Status
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(Symbol, Increase::EventSubscriptionCreateParams::Status)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# The subscription is active and Events will be delivered normally.
ACTIVE =
T.let(
:active,
Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
)

# The subscription is temporarily disabled and Events will not be delivered.
DISABLED =
T.let(
:disabled,
Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
]
)
end
def self.values
end
end
end
end
end
3 changes: 3 additions & 0 deletions rbi/increase/resources/event_subscriptions.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Increase
selected_event_category:
Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
shared_secret: String,
status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::EventSubscription)
end
Expand All @@ -26,6 +27,8 @@ module Increase
# The key that will be used to sign webhooks. If no value is passed, a random
# string will be used as default.
shared_secret: nil,
# The status of the event subscription. Defaults to `active` if not specified.
status: nil,
request_options: {}
)
end
Expand Down
25 changes: 24 additions & 1 deletion sig/increase/models/event_subscription_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module Increase
url: String,
oauth_connection_id: String,
selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
shared_secret: String
shared_secret: String,
status: Increase::Models::EventSubscriptionCreateParams::status
}
& Increase::Internal::Type::request_parameters

Expand All @@ -29,11 +30,18 @@ module Increase

def shared_secret=: (String) -> String

attr_reader status: Increase::Models::EventSubscriptionCreateParams::status?

def status=: (
Increase::Models::EventSubscriptionCreateParams::status
) -> Increase::Models::EventSubscriptionCreateParams::status

def initialize: (
url: String,
?oauth_connection_id: String,
?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
?shared_secret: String,
?status: Increase::Models::EventSubscriptionCreateParams::status,
?request_options: Increase::request_opts
) -> void

Expand All @@ -42,6 +50,7 @@ module Increase
oauth_connection_id: String,
selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
shared_secret: String,
status: Increase::Models::EventSubscriptionCreateParams::status,
request_options: Increase::RequestOptions
}

Expand Down Expand Up @@ -468,6 +477,20 @@ module Increase

def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::selected_event_category]
end

type status = :active | :disabled

module Status
extend Increase::Internal::Type::Enum

# The subscription is active and Events will be delivered normally.
ACTIVE: :active

# The subscription is temporarily disabled and Events will not be delivered.
DISABLED: :disabled

def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::status]
end
end
end
end
1 change: 1 addition & 0 deletions sig/increase/resources/event_subscriptions.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Increase
?oauth_connection_id: String,
?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
?shared_secret: String,
?status: Increase::Models::EventSubscriptionCreateParams::status,
?request_options: Increase::request_opts
) -> Increase::EventSubscription

Expand Down