From 2716e5520c441409cc52ee168796741d9d8e3fb2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 20:05:37 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models.rb | 1 - lib/increase/models/unwrap_webhook_event.rb | 397 ++++++++- lib/increase/resources/events.rb | 2 +- rbi/increase/models.rbi | 6 +- rbi/increase/models/unwrap_webhook_event.rbi | 839 ++++++++++++++++++- rbi/increase/resources/events.rbi | 2 +- sig/increase/models.rbs | 2 +- sig/increase/models/unwrap_webhook_event.rbs | 472 ++++++++++- sig/increase/resources/events.rbs | 2 +- 10 files changed, 1711 insertions(+), 16 deletions(-) diff --git a/.stats.yml b/.stats.yml index 123549fc..aad7cba8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-df015666c8d57cf91d4239bffeb549736581af5653e0ec2cd94357c434975e31.yml -openapi_spec_hash: fceca44f4bd5f5f8fdbbaa6c80fc0410 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a3093fde00ba57a88035a89fca1627e3343e5c6cba2854ee6ebf8bac9640489.yml +openapi_spec_hash: 547e0e84b0d09880a8305ddac57cc44a config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/lib/increase/models.rb b/lib/increase/models.rb index 963d4863..21f70d0a 100644 --- a/lib/increase/models.rb +++ b/lib/increase/models.rb @@ -529,7 +529,6 @@ module Increase TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams - # @type [Increase::Internal::Type::Converter] UnwrapWebhookEvent = Increase::Models::UnwrapWebhookEvent WireDrawdownRequest = Increase::Models::WireDrawdownRequest diff --git a/lib/increase/models/unwrap_webhook_event.rb b/lib/increase/models/unwrap_webhook_event.rb index 85b9e3f0..d1bd51f9 100644 --- a/lib/increase/models/unwrap_webhook_event.rb +++ b/lib/increase/models/unwrap_webhook_event.rb @@ -2,7 +2,400 @@ module Increase module Models - # @type [Increase::Internal::Type::Converter] - UnwrapWebhookEvent = Increase::Internal::Type::Unknown + class UnwrapWebhookEvent < Increase::Internal::Type::BaseModel + # @!attribute id + # The Event identifier. + # + # @return [String] + required :id, String + + # @!attribute associated_object_id + # The identifier of the object that generated this Event. + # + # @return [String] + required :associated_object_id, String + + # @!attribute associated_object_type + # The type of the object that generated this Event. + # + # @return [String] + required :associated_object_type, String + + # @!attribute category + # The category of the Event. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @return [Symbol, Increase::Models::UnwrapWebhookEvent::Category] + required :category, enum: -> { Increase::UnwrapWebhookEvent::Category } + + # @!attribute created_at + # The time the Event was created. + # + # @return [Time] + required :created_at, Time + + # @!attribute type + # A constant representing the object's type. For this resource it will always be + # `event`. + # + # @return [Symbol, Increase::Models::UnwrapWebhookEvent::Type] + required :type, enum: -> { Increase::UnwrapWebhookEvent::Type } + + # @!method initialize(id:, associated_object_id:, associated_object_type:, category:, created_at:, type:) + # Some parameter documentations has been truncated, see + # {Increase::Models::UnwrapWebhookEvent} for more details. + # + # Events are records of things that happened to objects at Increase. Events are + # accessible via the List Events endpoint and can be delivered to your application + # via webhooks. For more information, see our + # [webhooks guide](https://increase.com/documentation/webhooks). + # + # @param id [String] The Event identifier. + # + # @param associated_object_id [String] The identifier of the object that generated this Event. + # + # @param associated_object_type [String] The type of the object that generated this Event. + # + # @param category [Symbol, Increase::Models::UnwrapWebhookEvent::Category] The category of the Event. We may add additional possible values for this enum o + # + # @param created_at [Time] The time the Event was created. + # + # @param type [Symbol, Increase::Models::UnwrapWebhookEvent::Type] A constant representing the object's type. For this resource it will always be ` + + # The category of the Event. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @see Increase::Models::UnwrapWebhookEvent#category + module Category + extend Increase::Internal::Type::Enum + + # Occurs whenever an Account is created. + ACCOUNT_CREATED = :"account.created" + + # Occurs whenever an Account is updated. + ACCOUNT_UPDATED = :"account.updated" + + # Occurs whenever an Account Number is created. + ACCOUNT_NUMBER_CREATED = :"account_number.created" + + # Occurs whenever an Account Number is updated. + ACCOUNT_NUMBER_UPDATED = :"account_number.updated" + + # Occurs whenever an Account Statement is created. + ACCOUNT_STATEMENT_CREATED = :"account_statement.created" + + # Occurs whenever an Account Transfer is created. + ACCOUNT_TRANSFER_CREATED = :"account_transfer.created" + + # Occurs whenever an Account Transfer is updated. + ACCOUNT_TRANSFER_UPDATED = :"account_transfer.updated" + + # Occurs whenever an ACH Prenotification is created. + ACH_PRENOTIFICATION_CREATED = :"ach_prenotification.created" + + # Occurs whenever an ACH Prenotification is updated. + ACH_PRENOTIFICATION_UPDATED = :"ach_prenotification.updated" + + # Occurs whenever an ACH Transfer is created. + ACH_TRANSFER_CREATED = :"ach_transfer.created" + + # Occurs whenever an ACH Transfer is updated. + ACH_TRANSFER_UPDATED = :"ach_transfer.updated" + + # Occurs whenever a Bookkeeping Account is created. + BOOKKEEPING_ACCOUNT_CREATED = :"bookkeeping_account.created" + + # Occurs whenever a Bookkeeping Account is updated. + BOOKKEEPING_ACCOUNT_UPDATED = :"bookkeeping_account.updated" + + # Occurs whenever a Bookkeeping Entry Set is created. + BOOKKEEPING_ENTRY_SET_UPDATED = :"bookkeeping_entry_set.updated" + + # Occurs whenever a Card is created. + CARD_CREATED = :"card.created" + + # Occurs whenever a Card is updated. + CARD_UPDATED = :"card.updated" + + # Occurs whenever a Card Payment is created. + CARD_PAYMENT_CREATED = :"card_payment.created" + + # Occurs whenever a Card Payment is updated. + CARD_PAYMENT_UPDATED = :"card_payment.updated" + + # Occurs whenever a Card Profile is created. + CARD_PROFILE_CREATED = :"card_profile.created" + + # Occurs whenever a Card Profile is updated. + CARD_PROFILE_UPDATED = :"card_profile.updated" + + # Occurs whenever a Card Dispute is created. + CARD_DISPUTE_CREATED = :"card_dispute.created" + + # Occurs whenever a Card Dispute is updated. + CARD_DISPUTE_UPDATED = :"card_dispute.updated" + + # Occurs whenever a Check Deposit is created. + CHECK_DEPOSIT_CREATED = :"check_deposit.created" + + # Occurs whenever a Check Deposit is updated. + CHECK_DEPOSIT_UPDATED = :"check_deposit.updated" + + # Occurs whenever a Check Transfer is created. + CHECK_TRANSFER_CREATED = :"check_transfer.created" + + # Occurs whenever a Check Transfer is updated. + CHECK_TRANSFER_UPDATED = :"check_transfer.updated" + + # Occurs whenever a Declined Transaction is created. + DECLINED_TRANSACTION_CREATED = :"declined_transaction.created" + + # Occurs whenever a Digital Card Profile is created. + DIGITAL_CARD_PROFILE_CREATED = :"digital_card_profile.created" + + # Occurs whenever a Digital Card Profile is updated. + DIGITAL_CARD_PROFILE_UPDATED = :"digital_card_profile.updated" + + # Occurs whenever a Digital Wallet Token is created. + DIGITAL_WALLET_TOKEN_CREATED = :"digital_wallet_token.created" + + # Occurs whenever a Digital Wallet Token is updated. + DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated" + + # Occurs whenever a Document is created. + DOCUMENT_CREATED = :"document.created" + + # Occurs whenever an Entity is created. + ENTITY_CREATED = :"entity.created" + + # Occurs whenever an Entity is updated. + ENTITY_UPDATED = :"entity.updated" + + # Occurs whenever an Event Subscription is created. + EVENT_SUBSCRIPTION_CREATED = :"event_subscription.created" + + # Occurs whenever an Event Subscription is updated. + EVENT_SUBSCRIPTION_UPDATED = :"event_subscription.updated" + + # Occurs whenever an Export is created. + EXPORT_CREATED = :"export.created" + + # Occurs whenever an Export is updated. + EXPORT_UPDATED = :"export.updated" + + # Occurs whenever an External Account is created. + EXTERNAL_ACCOUNT_CREATED = :"external_account.created" + + # Occurs whenever an External Account is updated. + EXTERNAL_ACCOUNT_UPDATED = :"external_account.updated" + + # Occurs whenever a FedNow Transfer is created. + FEDNOW_TRANSFER_CREATED = :"fednow_transfer.created" + + # Occurs whenever a FedNow Transfer is updated. + FEDNOW_TRANSFER_UPDATED = :"fednow_transfer.updated" + + # Occurs whenever a File is created. + FILE_CREATED = :"file.created" + + # Occurs whenever a Group is updated. + GROUP_UPDATED = :"group.updated" + + # Increase may send webhooks with this category to see if a webhook endpoint is working properly. + GROUP_HEARTBEAT = :"group.heartbeat" + + # Occurs whenever an Inbound ACH Transfer is created. + INBOUND_ACH_TRANSFER_CREATED = :"inbound_ach_transfer.created" + + # Occurs whenever an Inbound ACH Transfer is updated. + INBOUND_ACH_TRANSFER_UPDATED = :"inbound_ach_transfer.updated" + + # Occurs whenever an Inbound ACH Transfer Return is created. + INBOUND_ACH_TRANSFER_RETURN_CREATED = :"inbound_ach_transfer_return.created" + + # Occurs whenever an Inbound ACH Transfer Return is updated. + INBOUND_ACH_TRANSFER_RETURN_UPDATED = :"inbound_ach_transfer_return.updated" + + # Occurs whenever an Inbound Check Deposit is created. + INBOUND_CHECK_DEPOSIT_CREATED = :"inbound_check_deposit.created" + + # Occurs whenever an Inbound Check Deposit is updated. + INBOUND_CHECK_DEPOSIT_UPDATED = :"inbound_check_deposit.updated" + + # Occurs whenever an Inbound FedNow Transfer is created. + INBOUND_FEDNOW_TRANSFER_CREATED = :"inbound_fednow_transfer.created" + + # Occurs whenever an Inbound FedNow Transfer is updated. + INBOUND_FEDNOW_TRANSFER_UPDATED = :"inbound_fednow_transfer.updated" + + # Occurs whenever an Inbound Mail Item is created. + INBOUND_MAIL_ITEM_CREATED = :"inbound_mail_item.created" + + # Occurs whenever an Inbound Mail Item is updated. + INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated" + + # Occurs whenever an Inbound Real-Time Payments Transfer is created. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created" + + # Occurs whenever an Inbound Real-Time Payments Transfer is updated. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_UPDATED = :"inbound_real_time_payments_transfer.updated" + + # Occurs whenever an Inbound Wire Drawdown Request is created. + INBOUND_WIRE_DRAWDOWN_REQUEST_CREATED = :"inbound_wire_drawdown_request.created" + + # Occurs whenever an Inbound Wire Transfer is created. + INBOUND_WIRE_TRANSFER_CREATED = :"inbound_wire_transfer.created" + + # Occurs whenever an Inbound Wire Transfer is updated. + INBOUND_WIRE_TRANSFER_UPDATED = :"inbound_wire_transfer.updated" + + # Occurs whenever an IntraFi Account Enrollment is created. + INTRAFI_ACCOUNT_ENROLLMENT_CREATED = :"intrafi_account_enrollment.created" + + # Occurs whenever an IntraFi Account Enrollment is updated. + INTRAFI_ACCOUNT_ENROLLMENT_UPDATED = :"intrafi_account_enrollment.updated" + + # Occurs whenever an IntraFi Exclusion is created. + INTRAFI_EXCLUSION_CREATED = :"intrafi_exclusion.created" + + # Occurs whenever an IntraFi Exclusion is updated. + INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated" + + # Occurs whenever a Legacy Card Dispute is created. + LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created" + + # Occurs whenever a Legacy Card Dispute is updated. + LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated" + + # Occurs whenever a Lockbox is created. + LOCKBOX_CREATED = :"lockbox.created" + + # Occurs whenever a Lockbox is updated. + LOCKBOX_UPDATED = :"lockbox.updated" + + # Occurs whenever an OAuth Connection is created. + OAUTH_CONNECTION_CREATED = :"oauth_connection.created" + + # Occurs whenever an OAuth Connection is deactivated. + OAUTH_CONNECTION_DEACTIVATED = :"oauth_connection.deactivated" + + # Occurs whenever a Card Push Transfer is created. + CARD_PUSH_TRANSFER_CREATED = :"card_push_transfer.created" + + # Occurs whenever a Card Push Transfer is updated. + CARD_PUSH_TRANSFER_UPDATED = :"card_push_transfer.updated" + + # Occurs whenever a Card Validation is created. + CARD_VALIDATION_CREATED = :"card_validation.created" + + # Occurs whenever a Card Validation is updated. + CARD_VALIDATION_UPDATED = :"card_validation.updated" + + # Occurs whenever a Pending Transaction is created. + PENDING_TRANSACTION_CREATED = :"pending_transaction.created" + + # Occurs whenever a Pending Transaction is updated. + PENDING_TRANSACTION_UPDATED = :"pending_transaction.updated" + + # Occurs whenever a Physical Card is created. + PHYSICAL_CARD_CREATED = :"physical_card.created" + + # Occurs whenever a Physical Card is updated. + PHYSICAL_CARD_UPDATED = :"physical_card.updated" + + # Occurs whenever a Physical Card Profile is created. + PHYSICAL_CARD_PROFILE_CREATED = :"physical_card_profile.created" + + # Occurs whenever a Physical Card Profile is updated. + PHYSICAL_CARD_PROFILE_UPDATED = :"physical_card_profile.updated" + + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = :"physical_check.updated" + + # Occurs whenever a Program is created. + PROGRAM_CREATED = :"program.created" + + # Occurs whenever a Program is updated. + PROGRAM_UPDATED = :"program.updated" + + # Occurs whenever a Proof of Authorization Request is created. + PROOF_OF_AUTHORIZATION_REQUEST_CREATED = :"proof_of_authorization_request.created" + + # Occurs whenever a Proof of Authorization Request is updated. + PROOF_OF_AUTHORIZATION_REQUEST_UPDATED = :"proof_of_authorization_request.updated" + + # Occurs whenever a Real-Time Decision is created in response to a card authorization. + REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = :"real_time_decision.card_authorization_requested" + + # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry. + REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = :"real_time_decision.card_balance_inquiry_requested" + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt. + REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = :"real_time_decision.digital_wallet_token_requested" + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet requiring two-factor authentication. + REAL_TIME_DECISION_DIGITAL_WALLET_AUTHENTICATION_REQUESTED = + :"real_time_decision.digital_wallet_authentication_requested" + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication. + REAL_TIME_DECISION_CARD_AUTHENTICATION_REQUESTED = :"real_time_decision.card_authentication_requested" + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication challenges. + REAL_TIME_DECISION_CARD_AUTHENTICATION_CHALLENGE_REQUESTED = + :"real_time_decision.card_authentication_challenge_requested" + + # Occurs whenever a Real-Time Payments Transfer is created. + REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"real_time_payments_transfer.created" + + # Occurs whenever a Real-Time Payments Transfer is updated. + REAL_TIME_PAYMENTS_TRANSFER_UPDATED = :"real_time_payments_transfer.updated" + + # Occurs whenever a Real-Time Payments Request for Payment is created. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED = :"real_time_payments_request_for_payment.created" + + # Occurs whenever a Real-Time Payments Request for Payment is updated. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED = :"real_time_payments_request_for_payment.updated" + + # Occurs whenever a Swift Transfer is created. + SWIFT_TRANSFER_CREATED = :"swift_transfer.created" + + # Occurs whenever a Swift Transfer is updated. + SWIFT_TRANSFER_UPDATED = :"swift_transfer.updated" + + # Occurs whenever a Transaction is created. + TRANSACTION_CREATED = :"transaction.created" + + # Occurs whenever a Wire Drawdown Request is created. + WIRE_DRAWDOWN_REQUEST_CREATED = :"wire_drawdown_request.created" + + # Occurs whenever a Wire Drawdown Request is updated. + WIRE_DRAWDOWN_REQUEST_UPDATED = :"wire_drawdown_request.updated" + + # Occurs whenever a Wire Transfer is created. + WIRE_TRANSFER_CREATED = :"wire_transfer.created" + + # Occurs whenever a Wire Transfer is updated. + WIRE_TRANSFER_UPDATED = :"wire_transfer.updated" + + # @!method self.values + # @return [Array] + end + + # A constant representing the object's type. For this resource it will always be + # `event`. + # + # @see Increase::Models::UnwrapWebhookEvent#type + module Type + extend Increase::Internal::Type::Enum + + EVENT = :event + + # @!method self.values + # @return [Array] + end + end end end diff --git a/lib/increase/resources/events.rb b/lib/increase/resources/events.rb index d7d7ba4c..09a572ac 100644 --- a/lib/increase/resources/events.rb +++ b/lib/increase/resources/events.rb @@ -59,7 +59,7 @@ def list(params = {}) # @param payload [String] The raw webhook payload as a string # - # @return [Object] + # @return [Increase::Models::UnwrapWebhookEvent] def unwrap(payload) parsed = JSON.parse(payload, symbolize_names: true) Increase::Internal::Type::Converter.coerce(Increase::Models::UnwrapWebhookEvent, parsed) diff --git a/rbi/increase/models.rbi b/rbi/increase/models.rbi index 8725050e..9b547ef3 100644 --- a/rbi/increase/models.rbi +++ b/rbi/increase/models.rbi @@ -566,11 +566,7 @@ module Increase TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams - UnwrapWebhookEvent = - T.let( - Increase::Models::UnwrapWebhookEvent, - Increase::Internal::Type::Converter - ) + UnwrapWebhookEvent = Increase::Models::UnwrapWebhookEvent WireDrawdownRequest = Increase::Models::WireDrawdownRequest diff --git a/rbi/increase/models/unwrap_webhook_event.rbi b/rbi/increase/models/unwrap_webhook_event.rbi index a7dd4c43..c59f1e43 100644 --- a/rbi/increase/models/unwrap_webhook_event.rbi +++ b/rbi/increase/models/unwrap_webhook_event.rbi @@ -2,6 +2,843 @@ module Increase module Models - UnwrapWebhookEvent = T.let(T.anything, Increase::Internal::Type::Converter) + class UnwrapWebhookEvent < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Increase::UnwrapWebhookEvent, Increase::Internal::AnyHash) + end + + # The Event identifier. + sig { returns(String) } + attr_accessor :id + + # The identifier of the object that generated this Event. + sig { returns(String) } + attr_accessor :associated_object_id + + # The type of the object that generated this Event. + sig { returns(String) } + attr_accessor :associated_object_type + + # The category of the Event. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + sig { returns(Increase::UnwrapWebhookEvent::Category::TaggedSymbol) } + attr_accessor :category + + # The time the Event was created. + sig { returns(Time) } + attr_accessor :created_at + + # A constant representing the object's type. For this resource it will always be + # `event`. + sig { returns(Increase::UnwrapWebhookEvent::Type::TaggedSymbol) } + attr_accessor :type + + # Events are records of things that happened to objects at Increase. Events are + # accessible via the List Events endpoint and can be delivered to your application + # via webhooks. For more information, see our + # [webhooks guide](https://increase.com/documentation/webhooks). + sig do + params( + id: String, + associated_object_id: String, + associated_object_type: String, + category: Increase::UnwrapWebhookEvent::Category::OrSymbol, + created_at: Time, + type: Increase::UnwrapWebhookEvent::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The Event identifier. + id:, + # The identifier of the object that generated this Event. + associated_object_id:, + # The type of the object that generated this Event. + associated_object_type:, + # The category of the Event. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + category:, + # The time the Event was created. + created_at:, + # A constant representing the object's type. For this resource it will always be + # `event`. + type: + ) + end + + sig do + override.returns( + { + id: String, + associated_object_id: String, + associated_object_type: String, + category: Increase::UnwrapWebhookEvent::Category::TaggedSymbol, + created_at: Time, + type: Increase::UnwrapWebhookEvent::Type::TaggedSymbol + } + ) + end + def to_hash + end + + # The category of the Event. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Increase::UnwrapWebhookEvent::Category) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Occurs whenever an Account is created. + ACCOUNT_CREATED = + T.let( + :"account.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account is updated. + ACCOUNT_UPDATED = + T.let( + :"account.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account Number is created. + ACCOUNT_NUMBER_CREATED = + T.let( + :"account_number.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account Number is updated. + ACCOUNT_NUMBER_UPDATED = + T.let( + :"account_number.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account Statement is created. + ACCOUNT_STATEMENT_CREATED = + T.let( + :"account_statement.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account Transfer is created. + ACCOUNT_TRANSFER_CREATED = + T.let( + :"account_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Account Transfer is updated. + ACCOUNT_TRANSFER_UPDATED = + T.let( + :"account_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an ACH Prenotification is created. + ACH_PRENOTIFICATION_CREATED = + T.let( + :"ach_prenotification.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an ACH Prenotification is updated. + ACH_PRENOTIFICATION_UPDATED = + T.let( + :"ach_prenotification.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an ACH Transfer is created. + ACH_TRANSFER_CREATED = + T.let( + :"ach_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an ACH Transfer is updated. + ACH_TRANSFER_UPDATED = + T.let( + :"ach_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Bookkeeping Account is created. + BOOKKEEPING_ACCOUNT_CREATED = + T.let( + :"bookkeeping_account.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Bookkeeping Account is updated. + BOOKKEEPING_ACCOUNT_UPDATED = + T.let( + :"bookkeeping_account.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Bookkeeping Entry Set is created. + BOOKKEEPING_ENTRY_SET_UPDATED = + T.let( + :"bookkeeping_entry_set.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card is created. + CARD_CREATED = + T.let( + :"card.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card is updated. + CARD_UPDATED = + T.let( + :"card.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Payment is created. + CARD_PAYMENT_CREATED = + T.let( + :"card_payment.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Payment is updated. + CARD_PAYMENT_UPDATED = + T.let( + :"card_payment.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Profile is created. + CARD_PROFILE_CREATED = + T.let( + :"card_profile.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Profile is updated. + CARD_PROFILE_UPDATED = + T.let( + :"card_profile.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Dispute is created. + CARD_DISPUTE_CREATED = + T.let( + :"card_dispute.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Dispute is updated. + CARD_DISPUTE_UPDATED = + T.let( + :"card_dispute.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Check Deposit is created. + CHECK_DEPOSIT_CREATED = + T.let( + :"check_deposit.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Check Deposit is updated. + CHECK_DEPOSIT_UPDATED = + T.let( + :"check_deposit.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Check Transfer is created. + CHECK_TRANSFER_CREATED = + T.let( + :"check_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Check Transfer is updated. + CHECK_TRANSFER_UPDATED = + T.let( + :"check_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Declined Transaction is created. + DECLINED_TRANSACTION_CREATED = + T.let( + :"declined_transaction.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Digital Card Profile is created. + DIGITAL_CARD_PROFILE_CREATED = + T.let( + :"digital_card_profile.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Digital Card Profile is updated. + DIGITAL_CARD_PROFILE_UPDATED = + T.let( + :"digital_card_profile.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Digital Wallet Token is created. + DIGITAL_WALLET_TOKEN_CREATED = + T.let( + :"digital_wallet_token.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Digital Wallet Token is updated. + DIGITAL_WALLET_TOKEN_UPDATED = + T.let( + :"digital_wallet_token.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Document is created. + DOCUMENT_CREATED = + T.let( + :"document.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Entity is created. + ENTITY_CREATED = + T.let( + :"entity.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Entity is updated. + ENTITY_UPDATED = + T.let( + :"entity.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Event Subscription is created. + EVENT_SUBSCRIPTION_CREATED = + T.let( + :"event_subscription.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Event Subscription is updated. + EVENT_SUBSCRIPTION_UPDATED = + T.let( + :"event_subscription.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Export is created. + EXPORT_CREATED = + T.let( + :"export.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Export is updated. + EXPORT_UPDATED = + T.let( + :"export.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an External Account is created. + EXTERNAL_ACCOUNT_CREATED = + T.let( + :"external_account.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an External Account is updated. + EXTERNAL_ACCOUNT_UPDATED = + T.let( + :"external_account.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a FedNow Transfer is created. + FEDNOW_TRANSFER_CREATED = + T.let( + :"fednow_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a FedNow Transfer is updated. + FEDNOW_TRANSFER_UPDATED = + T.let( + :"fednow_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a File is created. + FILE_CREATED = + T.let( + :"file.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Group is updated. + GROUP_UPDATED = + T.let( + :"group.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Increase may send webhooks with this category to see if a webhook endpoint is working properly. + GROUP_HEARTBEAT = + T.let( + :"group.heartbeat", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound ACH Transfer is created. + INBOUND_ACH_TRANSFER_CREATED = + T.let( + :"inbound_ach_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound ACH Transfer is updated. + INBOUND_ACH_TRANSFER_UPDATED = + T.let( + :"inbound_ach_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound ACH Transfer Return is created. + INBOUND_ACH_TRANSFER_RETURN_CREATED = + T.let( + :"inbound_ach_transfer_return.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound ACH Transfer Return is updated. + INBOUND_ACH_TRANSFER_RETURN_UPDATED = + T.let( + :"inbound_ach_transfer_return.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Check Deposit is created. + INBOUND_CHECK_DEPOSIT_CREATED = + T.let( + :"inbound_check_deposit.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Check Deposit is updated. + INBOUND_CHECK_DEPOSIT_UPDATED = + T.let( + :"inbound_check_deposit.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound FedNow Transfer is created. + INBOUND_FEDNOW_TRANSFER_CREATED = + T.let( + :"inbound_fednow_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound FedNow Transfer is updated. + INBOUND_FEDNOW_TRANSFER_UPDATED = + T.let( + :"inbound_fednow_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Mail Item is created. + INBOUND_MAIL_ITEM_CREATED = + T.let( + :"inbound_mail_item.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Mail Item is updated. + INBOUND_MAIL_ITEM_UPDATED = + T.let( + :"inbound_mail_item.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Real-Time Payments Transfer is created. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = + T.let( + :"inbound_real_time_payments_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Real-Time Payments Transfer is updated. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_UPDATED = + T.let( + :"inbound_real_time_payments_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Wire Drawdown Request is created. + INBOUND_WIRE_DRAWDOWN_REQUEST_CREATED = + T.let( + :"inbound_wire_drawdown_request.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Wire Transfer is created. + INBOUND_WIRE_TRANSFER_CREATED = + T.let( + :"inbound_wire_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an Inbound Wire Transfer is updated. + INBOUND_WIRE_TRANSFER_UPDATED = + T.let( + :"inbound_wire_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an IntraFi Account Enrollment is created. + INTRAFI_ACCOUNT_ENROLLMENT_CREATED = + T.let( + :"intrafi_account_enrollment.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an IntraFi Account Enrollment is updated. + INTRAFI_ACCOUNT_ENROLLMENT_UPDATED = + T.let( + :"intrafi_account_enrollment.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an IntraFi Exclusion is created. + INTRAFI_EXCLUSION_CREATED = + T.let( + :"intrafi_exclusion.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an IntraFi Exclusion is updated. + INTRAFI_EXCLUSION_UPDATED = + T.let( + :"intrafi_exclusion.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Legacy Card Dispute is created. + LEGACY_CARD_DISPUTE_CREATED = + T.let( + :"legacy_card_dispute.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Legacy Card Dispute is updated. + LEGACY_CARD_DISPUTE_UPDATED = + T.let( + :"legacy_card_dispute.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Lockbox is created. + LOCKBOX_CREATED = + T.let( + :"lockbox.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Lockbox is updated. + LOCKBOX_UPDATED = + T.let( + :"lockbox.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an OAuth Connection is created. + OAUTH_CONNECTION_CREATED = + T.let( + :"oauth_connection.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever an OAuth Connection is deactivated. + OAUTH_CONNECTION_DEACTIVATED = + T.let( + :"oauth_connection.deactivated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Push Transfer is created. + CARD_PUSH_TRANSFER_CREATED = + T.let( + :"card_push_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Push Transfer is updated. + CARD_PUSH_TRANSFER_UPDATED = + T.let( + :"card_push_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Validation is created. + CARD_VALIDATION_CREATED = + T.let( + :"card_validation.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Card Validation is updated. + CARD_VALIDATION_UPDATED = + T.let( + :"card_validation.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Pending Transaction is created. + PENDING_TRANSACTION_CREATED = + T.let( + :"pending_transaction.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Pending Transaction is updated. + PENDING_TRANSACTION_UPDATED = + T.let( + :"pending_transaction.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Card is created. + PHYSICAL_CARD_CREATED = + T.let( + :"physical_card.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Card is updated. + PHYSICAL_CARD_UPDATED = + T.let( + :"physical_card.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Card Profile is created. + PHYSICAL_CARD_PROFILE_CREATED = + T.let( + :"physical_card_profile.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Card Profile is updated. + PHYSICAL_CARD_PROFILE_UPDATED = + T.let( + :"physical_card_profile.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = + T.let( + :"physical_check.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = + T.let( + :"physical_check.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Program is created. + PROGRAM_CREATED = + T.let( + :"program.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Program is updated. + PROGRAM_UPDATED = + T.let( + :"program.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Proof of Authorization Request is created. + PROOF_OF_AUTHORIZATION_REQUEST_CREATED = + T.let( + :"proof_of_authorization_request.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Proof of Authorization Request is updated. + PROOF_OF_AUTHORIZATION_REQUEST_UPDATED = + T.let( + :"proof_of_authorization_request.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to a card authorization. + REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = + T.let( + :"real_time_decision.card_authorization_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry. + REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = + T.let( + :"real_time_decision.card_balance_inquiry_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt. + REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = + T.let( + :"real_time_decision.digital_wallet_token_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet requiring two-factor authentication. + REAL_TIME_DECISION_DIGITAL_WALLET_AUTHENTICATION_REQUESTED = + T.let( + :"real_time_decision.digital_wallet_authentication_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication. + REAL_TIME_DECISION_CARD_AUTHENTICATION_REQUESTED = + T.let( + :"real_time_decision.card_authentication_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication challenges. + REAL_TIME_DECISION_CARD_AUTHENTICATION_CHALLENGE_REQUESTED = + T.let( + :"real_time_decision.card_authentication_challenge_requested", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Payments Transfer is created. + REAL_TIME_PAYMENTS_TRANSFER_CREATED = + T.let( + :"real_time_payments_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Payments Transfer is updated. + REAL_TIME_PAYMENTS_TRANSFER_UPDATED = + T.let( + :"real_time_payments_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Payments Request for Payment is created. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED = + T.let( + :"real_time_payments_request_for_payment.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Real-Time Payments Request for Payment is updated. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED = + T.let( + :"real_time_payments_request_for_payment.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Swift Transfer is created. + SWIFT_TRANSFER_CREATED = + T.let( + :"swift_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Swift Transfer is updated. + SWIFT_TRANSFER_UPDATED = + T.let( + :"swift_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Transaction is created. + TRANSACTION_CREATED = + T.let( + :"transaction.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Wire Drawdown Request is created. + WIRE_DRAWDOWN_REQUEST_CREATED = + T.let( + :"wire_drawdown_request.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Wire Drawdown Request is updated. + WIRE_DRAWDOWN_REQUEST_UPDATED = + T.let( + :"wire_drawdown_request.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Wire Transfer is created. + WIRE_TRANSFER_CREATED = + T.let( + :"wire_transfer.created", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + # Occurs whenever a Wire Transfer is updated. + WIRE_TRANSFER_UPDATED = + T.let( + :"wire_transfer.updated", + Increase::UnwrapWebhookEvent::Category::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Increase::UnwrapWebhookEvent::Category::TaggedSymbol] + ) + end + def self.values + end + end + + # A constant representing the object's type. For this resource it will always be + # `event`. + module Type + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Increase::UnwrapWebhookEvent::Type) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EVENT = T.let(:event, Increase::UnwrapWebhookEvent::Type::TaggedSymbol) + + sig do + override.returns( + T::Array[Increase::UnwrapWebhookEvent::Type::TaggedSymbol] + ) + end + def self.values + end + end + end end end diff --git a/rbi/increase/resources/events.rbi b/rbi/increase/resources/events.rbi index 20fbce04..faa4d43f 100644 --- a/rbi/increase/resources/events.rbi +++ b/rbi/increase/resources/events.rbi @@ -42,7 +42,7 @@ module Increase ) end - sig { params(payload: String).returns(T.anything) } + sig { params(payload: String).returns(Increase::UnwrapWebhookEvent) } def unwrap( # The raw webhook payload as a string payload diff --git a/sig/increase/models.rbs b/sig/increase/models.rbs index 89ff7259..55e880aa 100644 --- a/sig/increase/models.rbs +++ b/sig/increase/models.rbs @@ -487,7 +487,7 @@ module Increase class TransactionRetrieveParams = Increase::Models::TransactionRetrieveParams - UnwrapWebhookEvent: Increase::Internal::Type::Converter + class UnwrapWebhookEvent = Increase::Models::UnwrapWebhookEvent class WireDrawdownRequest = Increase::Models::WireDrawdownRequest diff --git a/sig/increase/models/unwrap_webhook_event.rbs b/sig/increase/models/unwrap_webhook_event.rbs index 89c8cb2e..b5318995 100644 --- a/sig/increase/models/unwrap_webhook_event.rbs +++ b/sig/increase/models/unwrap_webhook_event.rbs @@ -1,5 +1,475 @@ module Increase module Models - UnwrapWebhookEvent: Increase::Internal::Type::Converter + type unwrap_webhook_event = + { + id: String, + associated_object_id: String, + associated_object_type: String, + category: Increase::Models::UnwrapWebhookEvent::category, + created_at: Time, + type: Increase::Models::UnwrapWebhookEvent::type_ + } + + class UnwrapWebhookEvent < Increase::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor associated_object_id: String + + attr_accessor associated_object_type: String + + attr_accessor category: Increase::Models::UnwrapWebhookEvent::category + + attr_accessor created_at: Time + + attr_accessor type: Increase::Models::UnwrapWebhookEvent::type_ + + def initialize: ( + id: String, + associated_object_id: String, + associated_object_type: String, + category: Increase::Models::UnwrapWebhookEvent::category, + created_at: Time, + type: Increase::Models::UnwrapWebhookEvent::type_ + ) -> void + + def to_hash: -> { + id: String, + associated_object_id: String, + associated_object_type: String, + category: Increase::Models::UnwrapWebhookEvent::category, + created_at: Time, + type: Increase::Models::UnwrapWebhookEvent::type_ + } + + type category = + :"account.created" + | :"account.updated" + | :"account_number.created" + | :"account_number.updated" + | :"account_statement.created" + | :"account_transfer.created" + | :"account_transfer.updated" + | :"ach_prenotification.created" + | :"ach_prenotification.updated" + | :"ach_transfer.created" + | :"ach_transfer.updated" + | :"bookkeeping_account.created" + | :"bookkeeping_account.updated" + | :"bookkeeping_entry_set.updated" + | :"card.created" + | :"card.updated" + | :"card_payment.created" + | :"card_payment.updated" + | :"card_profile.created" + | :"card_profile.updated" + | :"card_dispute.created" + | :"card_dispute.updated" + | :"check_deposit.created" + | :"check_deposit.updated" + | :"check_transfer.created" + | :"check_transfer.updated" + | :"declined_transaction.created" + | :"digital_card_profile.created" + | :"digital_card_profile.updated" + | :"digital_wallet_token.created" + | :"digital_wallet_token.updated" + | :"document.created" + | :"entity.created" + | :"entity.updated" + | :"event_subscription.created" + | :"event_subscription.updated" + | :"export.created" + | :"export.updated" + | :"external_account.created" + | :"external_account.updated" + | :"fednow_transfer.created" + | :"fednow_transfer.updated" + | :"file.created" + | :"group.updated" + | :"group.heartbeat" + | :"inbound_ach_transfer.created" + | :"inbound_ach_transfer.updated" + | :"inbound_ach_transfer_return.created" + | :"inbound_ach_transfer_return.updated" + | :"inbound_check_deposit.created" + | :"inbound_check_deposit.updated" + | :"inbound_fednow_transfer.created" + | :"inbound_fednow_transfer.updated" + | :"inbound_mail_item.created" + | :"inbound_mail_item.updated" + | :"inbound_real_time_payments_transfer.created" + | :"inbound_real_time_payments_transfer.updated" + | :"inbound_wire_drawdown_request.created" + | :"inbound_wire_transfer.created" + | :"inbound_wire_transfer.updated" + | :"intrafi_account_enrollment.created" + | :"intrafi_account_enrollment.updated" + | :"intrafi_exclusion.created" + | :"intrafi_exclusion.updated" + | :"legacy_card_dispute.created" + | :"legacy_card_dispute.updated" + | :"lockbox.created" + | :"lockbox.updated" + | :"oauth_connection.created" + | :"oauth_connection.deactivated" + | :"card_push_transfer.created" + | :"card_push_transfer.updated" + | :"card_validation.created" + | :"card_validation.updated" + | :"pending_transaction.created" + | :"pending_transaction.updated" + | :"physical_card.created" + | :"physical_card.updated" + | :"physical_card_profile.created" + | :"physical_card_profile.updated" + | :"physical_check.created" + | :"physical_check.updated" + | :"program.created" + | :"program.updated" + | :"proof_of_authorization_request.created" + | :"proof_of_authorization_request.updated" + | :"real_time_decision.card_authorization_requested" + | :"real_time_decision.card_balance_inquiry_requested" + | :"real_time_decision.digital_wallet_token_requested" + | :"real_time_decision.digital_wallet_authentication_requested" + | :"real_time_decision.card_authentication_requested" + | :"real_time_decision.card_authentication_challenge_requested" + | :"real_time_payments_transfer.created" + | :"real_time_payments_transfer.updated" + | :"real_time_payments_request_for_payment.created" + | :"real_time_payments_request_for_payment.updated" + | :"swift_transfer.created" + | :"swift_transfer.updated" + | :"transaction.created" + | :"wire_drawdown_request.created" + | :"wire_drawdown_request.updated" + | :"wire_transfer.created" + | :"wire_transfer.updated" + + module Category + extend Increase::Internal::Type::Enum + + # Occurs whenever an Account is created. + ACCOUNT_CREATED: :"account.created" + + # Occurs whenever an Account is updated. + ACCOUNT_UPDATED: :"account.updated" + + # Occurs whenever an Account Number is created. + ACCOUNT_NUMBER_CREATED: :"account_number.created" + + # Occurs whenever an Account Number is updated. + ACCOUNT_NUMBER_UPDATED: :"account_number.updated" + + # Occurs whenever an Account Statement is created. + ACCOUNT_STATEMENT_CREATED: :"account_statement.created" + + # Occurs whenever an Account Transfer is created. + ACCOUNT_TRANSFER_CREATED: :"account_transfer.created" + + # Occurs whenever an Account Transfer is updated. + ACCOUNT_TRANSFER_UPDATED: :"account_transfer.updated" + + # Occurs whenever an ACH Prenotification is created. + ACH_PRENOTIFICATION_CREATED: :"ach_prenotification.created" + + # Occurs whenever an ACH Prenotification is updated. + ACH_PRENOTIFICATION_UPDATED: :"ach_prenotification.updated" + + # Occurs whenever an ACH Transfer is created. + ACH_TRANSFER_CREATED: :"ach_transfer.created" + + # Occurs whenever an ACH Transfer is updated. + ACH_TRANSFER_UPDATED: :"ach_transfer.updated" + + # Occurs whenever a Bookkeeping Account is created. + BOOKKEEPING_ACCOUNT_CREATED: :"bookkeeping_account.created" + + # Occurs whenever a Bookkeeping Account is updated. + BOOKKEEPING_ACCOUNT_UPDATED: :"bookkeeping_account.updated" + + # Occurs whenever a Bookkeeping Entry Set is created. + BOOKKEEPING_ENTRY_SET_UPDATED: :"bookkeeping_entry_set.updated" + + # Occurs whenever a Card is created. + CARD_CREATED: :"card.created" + + # Occurs whenever a Card is updated. + CARD_UPDATED: :"card.updated" + + # Occurs whenever a Card Payment is created. + CARD_PAYMENT_CREATED: :"card_payment.created" + + # Occurs whenever a Card Payment is updated. + CARD_PAYMENT_UPDATED: :"card_payment.updated" + + # Occurs whenever a Card Profile is created. + CARD_PROFILE_CREATED: :"card_profile.created" + + # Occurs whenever a Card Profile is updated. + CARD_PROFILE_UPDATED: :"card_profile.updated" + + # Occurs whenever a Card Dispute is created. + CARD_DISPUTE_CREATED: :"card_dispute.created" + + # Occurs whenever a Card Dispute is updated. + CARD_DISPUTE_UPDATED: :"card_dispute.updated" + + # Occurs whenever a Check Deposit is created. + CHECK_DEPOSIT_CREATED: :"check_deposit.created" + + # Occurs whenever a Check Deposit is updated. + CHECK_DEPOSIT_UPDATED: :"check_deposit.updated" + + # Occurs whenever a Check Transfer is created. + CHECK_TRANSFER_CREATED: :"check_transfer.created" + + # Occurs whenever a Check Transfer is updated. + CHECK_TRANSFER_UPDATED: :"check_transfer.updated" + + # Occurs whenever a Declined Transaction is created. + DECLINED_TRANSACTION_CREATED: :"declined_transaction.created" + + # Occurs whenever a Digital Card Profile is created. + DIGITAL_CARD_PROFILE_CREATED: :"digital_card_profile.created" + + # Occurs whenever a Digital Card Profile is updated. + DIGITAL_CARD_PROFILE_UPDATED: :"digital_card_profile.updated" + + # Occurs whenever a Digital Wallet Token is created. + DIGITAL_WALLET_TOKEN_CREATED: :"digital_wallet_token.created" + + # Occurs whenever a Digital Wallet Token is updated. + DIGITAL_WALLET_TOKEN_UPDATED: :"digital_wallet_token.updated" + + # Occurs whenever a Document is created. + DOCUMENT_CREATED: :"document.created" + + # Occurs whenever an Entity is created. + ENTITY_CREATED: :"entity.created" + + # Occurs whenever an Entity is updated. + ENTITY_UPDATED: :"entity.updated" + + # Occurs whenever an Event Subscription is created. + EVENT_SUBSCRIPTION_CREATED: :"event_subscription.created" + + # Occurs whenever an Event Subscription is updated. + EVENT_SUBSCRIPTION_UPDATED: :"event_subscription.updated" + + # Occurs whenever an Export is created. + EXPORT_CREATED: :"export.created" + + # Occurs whenever an Export is updated. + EXPORT_UPDATED: :"export.updated" + + # Occurs whenever an External Account is created. + EXTERNAL_ACCOUNT_CREATED: :"external_account.created" + + # Occurs whenever an External Account is updated. + EXTERNAL_ACCOUNT_UPDATED: :"external_account.updated" + + # Occurs whenever a FedNow Transfer is created. + FEDNOW_TRANSFER_CREATED: :"fednow_transfer.created" + + # Occurs whenever a FedNow Transfer is updated. + FEDNOW_TRANSFER_UPDATED: :"fednow_transfer.updated" + + # Occurs whenever a File is created. + FILE_CREATED: :"file.created" + + # Occurs whenever a Group is updated. + GROUP_UPDATED: :"group.updated" + + # Increase may send webhooks with this category to see if a webhook endpoint is working properly. + GROUP_HEARTBEAT: :"group.heartbeat" + + # Occurs whenever an Inbound ACH Transfer is created. + INBOUND_ACH_TRANSFER_CREATED: :"inbound_ach_transfer.created" + + # Occurs whenever an Inbound ACH Transfer is updated. + INBOUND_ACH_TRANSFER_UPDATED: :"inbound_ach_transfer.updated" + + # Occurs whenever an Inbound ACH Transfer Return is created. + INBOUND_ACH_TRANSFER_RETURN_CREATED: :"inbound_ach_transfer_return.created" + + # Occurs whenever an Inbound ACH Transfer Return is updated. + INBOUND_ACH_TRANSFER_RETURN_UPDATED: :"inbound_ach_transfer_return.updated" + + # Occurs whenever an Inbound Check Deposit is created. + INBOUND_CHECK_DEPOSIT_CREATED: :"inbound_check_deposit.created" + + # Occurs whenever an Inbound Check Deposit is updated. + INBOUND_CHECK_DEPOSIT_UPDATED: :"inbound_check_deposit.updated" + + # Occurs whenever an Inbound FedNow Transfer is created. + INBOUND_FEDNOW_TRANSFER_CREATED: :"inbound_fednow_transfer.created" + + # Occurs whenever an Inbound FedNow Transfer is updated. + INBOUND_FEDNOW_TRANSFER_UPDATED: :"inbound_fednow_transfer.updated" + + # Occurs whenever an Inbound Mail Item is created. + INBOUND_MAIL_ITEM_CREATED: :"inbound_mail_item.created" + + # Occurs whenever an Inbound Mail Item is updated. + INBOUND_MAIL_ITEM_UPDATED: :"inbound_mail_item.updated" + + # Occurs whenever an Inbound Real-Time Payments Transfer is created. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED: :"inbound_real_time_payments_transfer.created" + + # Occurs whenever an Inbound Real-Time Payments Transfer is updated. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_UPDATED: :"inbound_real_time_payments_transfer.updated" + + # Occurs whenever an Inbound Wire Drawdown Request is created. + INBOUND_WIRE_DRAWDOWN_REQUEST_CREATED: :"inbound_wire_drawdown_request.created" + + # Occurs whenever an Inbound Wire Transfer is created. + INBOUND_WIRE_TRANSFER_CREATED: :"inbound_wire_transfer.created" + + # Occurs whenever an Inbound Wire Transfer is updated. + INBOUND_WIRE_TRANSFER_UPDATED: :"inbound_wire_transfer.updated" + + # Occurs whenever an IntraFi Account Enrollment is created. + INTRAFI_ACCOUNT_ENROLLMENT_CREATED: :"intrafi_account_enrollment.created" + + # Occurs whenever an IntraFi Account Enrollment is updated. + INTRAFI_ACCOUNT_ENROLLMENT_UPDATED: :"intrafi_account_enrollment.updated" + + # Occurs whenever an IntraFi Exclusion is created. + INTRAFI_EXCLUSION_CREATED: :"intrafi_exclusion.created" + + # Occurs whenever an IntraFi Exclusion is updated. + INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated" + + # Occurs whenever a Legacy Card Dispute is created. + LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created" + + # Occurs whenever a Legacy Card Dispute is updated. + LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated" + + # Occurs whenever a Lockbox is created. + LOCKBOX_CREATED: :"lockbox.created" + + # Occurs whenever a Lockbox is updated. + LOCKBOX_UPDATED: :"lockbox.updated" + + # Occurs whenever an OAuth Connection is created. + OAUTH_CONNECTION_CREATED: :"oauth_connection.created" + + # Occurs whenever an OAuth Connection is deactivated. + OAUTH_CONNECTION_DEACTIVATED: :"oauth_connection.deactivated" + + # Occurs whenever a Card Push Transfer is created. + CARD_PUSH_TRANSFER_CREATED: :"card_push_transfer.created" + + # Occurs whenever a Card Push Transfer is updated. + CARD_PUSH_TRANSFER_UPDATED: :"card_push_transfer.updated" + + # Occurs whenever a Card Validation is created. + CARD_VALIDATION_CREATED: :"card_validation.created" + + # Occurs whenever a Card Validation is updated. + CARD_VALIDATION_UPDATED: :"card_validation.updated" + + # Occurs whenever a Pending Transaction is created. + PENDING_TRANSACTION_CREATED: :"pending_transaction.created" + + # Occurs whenever a Pending Transaction is updated. + PENDING_TRANSACTION_UPDATED: :"pending_transaction.updated" + + # Occurs whenever a Physical Card is created. + PHYSICAL_CARD_CREATED: :"physical_card.created" + + # Occurs whenever a Physical Card is updated. + PHYSICAL_CARD_UPDATED: :"physical_card.updated" + + # Occurs whenever a Physical Card Profile is created. + PHYSICAL_CARD_PROFILE_CREATED: :"physical_card_profile.created" + + # Occurs whenever a Physical Card Profile is updated. + PHYSICAL_CARD_PROFILE_UPDATED: :"physical_card_profile.updated" + + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED: :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED: :"physical_check.updated" + + # Occurs whenever a Program is created. + PROGRAM_CREATED: :"program.created" + + # Occurs whenever a Program is updated. + PROGRAM_UPDATED: :"program.updated" + + # Occurs whenever a Proof of Authorization Request is created. + PROOF_OF_AUTHORIZATION_REQUEST_CREATED: :"proof_of_authorization_request.created" + + # Occurs whenever a Proof of Authorization Request is updated. + PROOF_OF_AUTHORIZATION_REQUEST_UPDATED: :"proof_of_authorization_request.updated" + + # Occurs whenever a Real-Time Decision is created in response to a card authorization. + REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED: :"real_time_decision.card_authorization_requested" + + # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry. + REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED: :"real_time_decision.card_balance_inquiry_requested" + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt. + REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED: :"real_time_decision.digital_wallet_token_requested" + + # Occurs whenever a Real-Time Decision is created in response to a digital wallet requiring two-factor authentication. + REAL_TIME_DECISION_DIGITAL_WALLET_AUTHENTICATION_REQUESTED: :"real_time_decision.digital_wallet_authentication_requested" + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication. + REAL_TIME_DECISION_CARD_AUTHENTICATION_REQUESTED: :"real_time_decision.card_authentication_requested" + + # Occurs whenever a Real-Time Decision is created in response to 3DS authentication challenges. + REAL_TIME_DECISION_CARD_AUTHENTICATION_CHALLENGE_REQUESTED: :"real_time_decision.card_authentication_challenge_requested" + + # Occurs whenever a Real-Time Payments Transfer is created. + REAL_TIME_PAYMENTS_TRANSFER_CREATED: :"real_time_payments_transfer.created" + + # Occurs whenever a Real-Time Payments Transfer is updated. + REAL_TIME_PAYMENTS_TRANSFER_UPDATED: :"real_time_payments_transfer.updated" + + # Occurs whenever a Real-Time Payments Request for Payment is created. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED: :"real_time_payments_request_for_payment.created" + + # Occurs whenever a Real-Time Payments Request for Payment is updated. + REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED: :"real_time_payments_request_for_payment.updated" + + # Occurs whenever a Swift Transfer is created. + SWIFT_TRANSFER_CREATED: :"swift_transfer.created" + + # Occurs whenever a Swift Transfer is updated. + SWIFT_TRANSFER_UPDATED: :"swift_transfer.updated" + + # Occurs whenever a Transaction is created. + TRANSACTION_CREATED: :"transaction.created" + + # Occurs whenever a Wire Drawdown Request is created. + WIRE_DRAWDOWN_REQUEST_CREATED: :"wire_drawdown_request.created" + + # Occurs whenever a Wire Drawdown Request is updated. + WIRE_DRAWDOWN_REQUEST_UPDATED: :"wire_drawdown_request.updated" + + # Occurs whenever a Wire Transfer is created. + WIRE_TRANSFER_CREATED: :"wire_transfer.created" + + # Occurs whenever a Wire Transfer is updated. + WIRE_TRANSFER_UPDATED: :"wire_transfer.updated" + + def self?.values: -> ::Array[Increase::Models::UnwrapWebhookEvent::category] + end + + type type_ = :event + + module Type + extend Increase::Internal::Type::Enum + + EVENT: :event + + def self?.values: -> ::Array[Increase::Models::UnwrapWebhookEvent::type_] + end + end end end diff --git a/sig/increase/resources/events.rbs b/sig/increase/resources/events.rbs index 52f605a5..e48c1541 100644 --- a/sig/increase/resources/events.rbs +++ b/sig/increase/resources/events.rbs @@ -15,7 +15,7 @@ module Increase ?request_options: Increase::request_opts ) -> Increase::Internal::Page[Increase::Event] - def unwrap: (String payload) -> top + def unwrap: (String payload) -> Increase::UnwrapWebhookEvent def initialize: (client: Increase::Client) -> void end From bd2e3b06c0d41a5fb472bfb271ea1b0b4a0d6212 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 20:06:02 +0000 Subject: [PATCH 2/2] release: 1.182.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 56457029..2f21d63f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.181.0" + ".": "1.182.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index dbe49c80..f0bc8901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.182.0 (2026-01-23) + +Full Changelog: [v1.181.0...v1.182.0](https://github.com/Increase/increase-ruby/compare/v1.181.0...v1.182.0) + +### Features + +* **api:** api update ([2716e55](https://github.com/Increase/increase-ruby/commit/2716e5520c441409cc52ee168796741d9d8e3fb2)) + ## 1.181.0 (2026-01-23) Full Changelog: [v1.180.0...v1.181.0](https://github.com/Increase/increase-ruby/compare/v1.180.0...v1.181.0) diff --git a/Gemfile.lock b/Gemfile.lock index 2ebb91eb..d7697ab4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.181.0) + increase (1.182.0) cgi connection_pool diff --git a/README.md b/README.md index b52fa7ca..202af1dc 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.181.0" +gem "increase", "~> 1.182.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 83e86e4b..37ac61be 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.181.0" + VERSION = "1.182.0" end