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.176.0"
".": "1.177.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a559a6a1a1f3781fad8db5bcb96c40b69a78b952d659395840accce782098e0c.yml
openapi_spec_hash: 2ae62041468e5cf6fe653d65b1b7a58a
config_hash: 8a9bb9e2d5dd0ccc3e78ad59f924fd3c
config_hash: 3ccb2793be25ae0b15e05dc9ef5da09c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.177.0 (2026-01-16)

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

### Features

* **api:** api update ([54f5759](https://github.com/Increase/increase-ruby/commit/54f5759085d04059ec9a9162bcd0b40a4257e040))

## 1.176.0 (2026-01-14)

Full Changelog: [v1.175.0...v1.176.0](https://github.com/Increase/increase-ruby/compare/v1.175.0...v1.176.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.176.0)
increase (1.177.0)
cgi
connection_pool

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.176.0"
gem "increase", "~> 1.177.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
require_relative "increase/models/event_subscription_list_params"
require_relative "increase/models/event_subscription_retrieve_params"
require_relative "increase/models/event_subscription_update_params"
require_relative "increase/models/event_unwrap_params"
require_relative "increase/models/export"
require_relative "increase/models/export_create_params"
require_relative "increase/models/export_list_params"
Expand Down Expand Up @@ -338,6 +339,7 @@
require_relative "increase/models/transaction"
require_relative "increase/models/transaction_list_params"
require_relative "increase/models/transaction_retrieve_params"
require_relative "increase/models/unwrap_webhook_event"
require_relative "increase/models/wire_drawdown_request"
require_relative "increase/models/wire_drawdown_request_create_params"
require_relative "increase/models/wire_drawdown_request_list_params"
Expand Down
5 changes: 5 additions & 0 deletions lib/increase/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ module Increase

EventSubscriptionUpdateParams = Increase::Models::EventSubscriptionUpdateParams

EventUnwrapParams = Increase::Models::EventUnwrapParams

Export = Increase::Models::Export

ExportCreateParams = Increase::Models::ExportCreateParams
Expand Down Expand Up @@ -527,6 +529,9 @@ module Increase

TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams

# @type [Increase::Internal::Type::Converter]
UnwrapWebhookEvent = Increase::Models::UnwrapWebhookEvent

WireDrawdownRequest = Increase::Models::WireDrawdownRequest

WireDrawdownRequestCreateParams = Increase::Models::WireDrawdownRequestCreateParams
Expand Down
14 changes: 14 additions & 0 deletions lib/increase/models/event_unwrap_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::Events#unwrap
class EventUnwrapParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!method initialize(request_options: {})
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
end
end
end
8 changes: 8 additions & 0 deletions lib/increase/models/unwrap_webhook_event.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

module Increase
module Models
# @type [Increase::Internal::Type::Converter]
UnwrapWebhookEvent = Increase::Internal::Type::Unknown
end
end
8 changes: 8 additions & 0 deletions lib/increase/resources/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ def list(params = {})
)
end

# @param payload [String] The raw webhook payload as a string
#
# @return [Object]
def unwrap(payload)
parsed = JSON.parse(payload, symbolize_names: true)
Increase::Internal::Type::Converter.coerce(Increase::Models::UnwrapWebhookEvent, parsed)
end

# @api private
#
# @param client [Increase::Client]
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.176.0"
VERSION = "1.177.0"
end
8 changes: 8 additions & 0 deletions rbi/increase/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ module Increase
EventSubscriptionUpdateParams =
Increase::Models::EventSubscriptionUpdateParams

EventUnwrapParams = Increase::Models::EventUnwrapParams

Export = Increase::Models::Export

ExportCreateParams = Increase::Models::ExportCreateParams
Expand Down Expand Up @@ -564,6 +566,12 @@ module Increase

TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams

UnwrapWebhookEvent =
T.let(
Increase::Models::UnwrapWebhookEvent,
Increase::Internal::Type::Converter
)

WireDrawdownRequest = Increase::Models::WireDrawdownRequest

WireDrawdownRequestCreateParams =
Expand Down
27 changes: 27 additions & 0 deletions rbi/increase/models/event_unwrap_params.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# typed: strong

module Increase
module Models
class EventUnwrapParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

OrHash =
T.type_alias do
T.any(Increase::EventUnwrapParams, Increase::Internal::AnyHash)
end

sig do
params(request_options: Increase::RequestOptions::OrHash).returns(
T.attached_class
)
end
def self.new(request_options: {})
end

sig { override.returns({ request_options: Increase::RequestOptions }) }
def to_hash
end
end
end
end
7 changes: 7 additions & 0 deletions rbi/increase/models/unwrap_webhook_event.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typed: strong

module Increase
module Models
UnwrapWebhookEvent = T.let(T.anything, Increase::Internal::Type::Converter)
end
end
7 changes: 7 additions & 0 deletions rbi/increase/resources/events.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ module Increase
)
end

sig { params(payload: String).returns(T.anything) }
def unwrap(
# The raw webhook payload as a string
payload
)
end

# @api private
sig { params(client: Increase::Client).returns(T.attached_class) }
def self.new(client:)
Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ module Increase

class EventSubscriptionUpdateParams = Increase::Models::EventSubscriptionUpdateParams

class EventUnwrapParams = Increase::Models::EventUnwrapParams

class Export = Increase::Models::Export

class ExportCreateParams = Increase::Models::ExportCreateParams
Expand Down Expand Up @@ -485,6 +487,8 @@ module Increase

class TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams

UnwrapWebhookEvent: Increase::Internal::Type::Converter

class WireDrawdownRequest = Increase::Models::WireDrawdownRequest

class WireDrawdownRequestCreateParams = Increase::Models::WireDrawdownRequestCreateParams
Expand Down
15 changes: 15 additions & 0 deletions sig/increase/models/event_unwrap_params.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module Increase
module Models
type event_unwrap_params =
{ } & Increase::Internal::Type::request_parameters

class EventUnwrapParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

def initialize: (?request_options: Increase::request_opts) -> void

def to_hash: -> { request_options: Increase::RequestOptions }
end
end
end
5 changes: 5 additions & 0 deletions sig/increase/models/unwrap_webhook_event.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Increase
module Models
UnwrapWebhookEvent: Increase::Internal::Type::Converter
end
end
2 changes: 2 additions & 0 deletions sig/increase/resources/events.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module Increase
?request_options: Increase::request_opts
) -> Increase::Internal::Page[Increase::Event]

def unwrap: (String payload) -> top

def initialize: (client: Increase::Client) -> void
end
end
Expand Down