Skip to content
Closed
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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 238
openapi_spec_hash: 244db0c7a39ae8fff699dccda50b79bd
openapi_spec_hash: 8c5c450ddcb19e4c6c8937d36f337c8b
config_hash: 2ae0d8aaecf01b38cbf9f9e112822c23
8 changes: 8 additions & 0 deletions lib/increase/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ module Category
# Occurs whenever an Inbound Mail Item is updated.
INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
:"inbound_real_time_payments_request_for_payment.created"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
:"inbound_real_time_payments_request_for_payment.updated"

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created"

Expand Down
8 changes: 8 additions & 0 deletions lib/increase/models/event_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ module In
# Occurs whenever an Inbound Mail Item is updated.
INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
:"inbound_real_time_payments_request_for_payment.created"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
:"inbound_real_time_payments_request_for_payment.updated"

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created"

Expand Down
8 changes: 8 additions & 0 deletions lib/increase/models/event_subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ module EventCategory
# Occurs whenever an Inbound Mail Item is updated.
INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
:"inbound_real_time_payments_request_for_payment.created"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
:"inbound_real_time_payments_request_for_payment.updated"

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created"

Expand Down
8 changes: 8 additions & 0 deletions lib/increase/models/event_subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ module EventCategory
# Occurs whenever an Inbound Mail Item is updated.
INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
:"inbound_real_time_payments_request_for_payment.created"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
:"inbound_real_time_payments_request_for_payment.updated"

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created"

Expand Down
3 changes: 0 additions & 3 deletions lib/increase/models/simulations/program_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ module Bank
# Grasshopper Bank
GRASSHOPPER_BANK = :grasshopper_bank

# Twin City Bank
TWIN_CITY_BANK = :twin_city_bank

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
13 changes: 12 additions & 1 deletion lib/increase/models/swift_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ class SwiftTransfer < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::SwiftTransfer::InstructedCurrency]
required :instructed_currency, enum: -> { Increase::SwiftTransfer::InstructedCurrency }

# @!attribute intermediary_bank_identification_code
# The bank identification code (BIC) of the intermediary bank, if the transfer is
# routed through one.
#
# @return [String, nil]
required :intermediary_bank_identification_code, String, nil?: true

# @!attribute pending_transaction_id
# The ID for the pending transaction representing the transfer.
#
Expand Down Expand Up @@ -146,7 +153,7 @@ class SwiftTransfer < Increase::Internal::Type::BaseModel
# @return [String]
required :unstructured_remittance_information, String

# @!method initialize(id:, account_id:, account_number:, amount:, bank_identification_code:, created_at:, created_by:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, idempotency_key:, instructed_amount:, instructed_currency:, pending_transaction_id:, routing_number:, source_account_number_id:, status:, transaction_id:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
# @!method initialize(id:, account_id:, account_number:, amount:, bank_identification_code:, created_at:, created_by:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, idempotency_key:, instructed_amount:, instructed_currency:, intermediary_bank_identification_code:, pending_transaction_id:, routing_number:, source_account_number_id:, status:, transaction_id:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
# Swift Transfers send funds internationally.
#
# @param id [String] The Swift transfer's identifier.
Expand Down Expand Up @@ -187,6 +194,10 @@ class SwiftTransfer < Increase::Internal::Type::BaseModel
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
# instructed amount.
#
# @param intermediary_bank_identification_code [String, nil]
# The bank identification code (BIC) of the intermediary bank, if the transfer is
# routed through one.
#
# @param pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer.
#
# @param routing_number [String, nil]
Expand Down
13 changes: 12 additions & 1 deletion lib/increase/models/swift_transfer_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class SwiftTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String]
required :unstructured_remittance_information, String

# @!attribute intermediary_bank_identification_code
# The bank identification code (BIC) of the intermediary bank, if the transfer
# should be routed through one.
#
# @return [String, nil]
optional :intermediary_bank_identification_code, String

# @!attribute require_approval
# Whether the transfer requires explicit approval via the dashboard or API.
#
Expand All @@ -89,7 +96,7 @@ class SwiftTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :routing_number, String

# @!method initialize(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, require_approval: nil, routing_number: nil, request_options: {})
# @!method initialize(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, intermediary_bank_identification_code: nil, require_approval: nil, routing_number: nil, request_options: {})
# @param account_id [String] The identifier for the account that will send the transfer.
#
# @param account_number [String] The creditor's account number.
Expand Down Expand Up @@ -121,6 +128,10 @@ class SwiftTransferCreateParams < Increase::Internal::Type::BaseModel
# @param unstructured_remittance_information [String]
# Unstructured remittance information to include in the transfer.
#
# @param intermediary_bank_identification_code [String]
# The bank identification code (BIC) of the intermediary bank, if the transfer
# should be routed through one.
#
# @param require_approval [Boolean]
# Whether the transfer requires explicit approval via the dashboard or API.
#
Expand Down
8 changes: 8 additions & 0 deletions lib/increase/models/unwrap_webhook_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ module Category
# Occurs whenever an Inbound Mail Item is updated.
INBOUND_MAIL_ITEM_UPDATED = :"inbound_mail_item.updated"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
:"inbound_real_time_payments_request_for_payment.created"

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
:"inbound_real_time_payments_request_for_payment.updated"

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED = :"inbound_real_time_payments_transfer.created"

Expand Down
6 changes: 5 additions & 1 deletion lib/increase/resources/swift_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Resources
class SwiftTransfers
# Create a Swift Transfer
#
# @overload create(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, require_approval: nil, routing_number: nil, request_options: {})
# @overload create(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, intermediary_bank_identification_code: nil, require_approval: nil, routing_number: nil, request_options: {})
#
# @param account_id [String] The identifier for the account that will send the transfer.
#
Expand Down Expand Up @@ -38,6 +38,10 @@ class SwiftTransfers
# @param unstructured_remittance_information [String]
# Unstructured remittance information to include in the transfer.
#
# @param intermediary_bank_identification_code [String]
# The bank identification code (BIC) of the intermediary bank, if the transfer
# should be routed through one.
#
# @param require_approval [Boolean]
# Whether the transfer requires explicit approval via the dashboard or API.
#
Expand Down
14 changes: 14 additions & 0 deletions rbi/increase/models/event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,20 @@ module Increase
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
T.let(
:"inbound_real_time_payments_request_for_payment.created",
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
T.let(
:"inbound_real_time_payments_request_for_payment.updated",
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
T.let(
Expand Down
14 changes: 14 additions & 0 deletions rbi/increase/models/event_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,20 @@ module Increase
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
T.let(
:"inbound_real_time_payments_request_for_payment.created",
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
T.let(
:"inbound_real_time_payments_request_for_payment.updated",
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
T.let(
Expand Down
14 changes: 14 additions & 0 deletions rbi/increase/models/event_subscription.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,20 @@ module Increase
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
T.let(
:"inbound_real_time_payments_request_for_payment.created",
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
T.let(
:"inbound_real_time_payments_request_for_payment.updated",
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
T.let(
Expand Down
14 changes: 14 additions & 0 deletions rbi/increase/models/event_subscription_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,20 @@ module Increase
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
T.let(
:"inbound_real_time_payments_request_for_payment.created",
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
T.let(
:"inbound_real_time_payments_request_for_payment.updated",
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
T.let(
Expand Down
7 changes: 0 additions & 7 deletions rbi/increase/models/simulations/program_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ module Increase
Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
)

# Twin City Bank
TWIN_CITY_BANK =
T.let(
:twin_city_bank,
Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
10 changes: 10 additions & 0 deletions rbi/increase/models/swift_transfer.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ module Increase
sig { returns(Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol) }
attr_accessor :instructed_currency

# The bank identification code (BIC) of the intermediary bank, if the transfer is
# routed through one.
sig { returns(T.nilable(String)) }
attr_accessor :intermediary_bank_identification_code

# The ID for the pending transaction representing the transfer.
sig { returns(T.nilable(String)) }
attr_accessor :pending_transaction_id
Expand Down Expand Up @@ -143,6 +148,7 @@ module Increase
instructed_amount: Integer,
instructed_currency:
Increase::SwiftTransfer::InstructedCurrency::OrSymbol,
intermediary_bank_identification_code: T.nilable(String),
pending_transaction_id: T.nilable(String),
routing_number: T.nilable(String),
source_account_number_id: String,
Expand Down Expand Up @@ -187,6 +193,9 @@ module Increase
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
# instructed amount.
instructed_currency:,
# The bank identification code (BIC) of the intermediary bank, if the transfer is
# routed through one.
intermediary_bank_identification_code:,
# The ID for the pending transaction representing the transfer.
pending_transaction_id:,
# The creditor's bank account routing or transit number. Required in certain
Expand Down Expand Up @@ -229,6 +238,7 @@ module Increase
instructed_amount: Integer,
instructed_currency:
Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol,
intermediary_bank_identification_code: T.nilable(String),
pending_transaction_id: T.nilable(String),
routing_number: T.nilable(String),
source_account_number_id: String,
Expand Down
13 changes: 13 additions & 0 deletions rbi/increase/models/swift_transfer_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ module Increase
sig { returns(String) }
attr_accessor :unstructured_remittance_information

# The bank identification code (BIC) of the intermediary bank, if the transfer
# should be routed through one.
sig { returns(T.nilable(String)) }
attr_reader :intermediary_bank_identification_code

sig { params(intermediary_bank_identification_code: String).void }
attr_writer :intermediary_bank_identification_code

# Whether the transfer requires explicit approval via the dashboard or API.
sig { returns(T.nilable(T::Boolean)) }
attr_reader :require_approval
Expand Down Expand Up @@ -112,6 +120,7 @@ module Increase
Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol,
source_account_number_id: String,
unstructured_remittance_information: String,
intermediary_bank_identification_code: String,
require_approval: T::Boolean,
routing_number: String,
request_options: Increase::RequestOptions::OrHash
Expand Down Expand Up @@ -143,6 +152,9 @@ module Increase
source_account_number_id:,
# Unstructured remittance information to include in the transfer.
unstructured_remittance_information:,
# The bank identification code (BIC) of the intermediary bank, if the transfer
# should be routed through one.
intermediary_bank_identification_code: nil,
# Whether the transfer requires explicit approval via the dashboard or API.
require_approval: nil,
# The creditor's bank account routing or transit number. Required in certain
Expand All @@ -168,6 +180,7 @@ module Increase
Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol,
source_account_number_id: String,
unstructured_remittance_information: String,
intermediary_bank_identification_code: String,
require_approval: T::Boolean,
routing_number: String,
request_options: Increase::RequestOptions
Expand Down
14 changes: 14 additions & 0 deletions rbi/increase/models/unwrap_webhook_event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,20 @@ module Increase
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is created.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
T.let(
:"inbound_real_time_payments_request_for_payment.created",
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Request for Payment is updated.
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
T.let(
:"inbound_real_time_payments_request_for_payment.updated",
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever an Inbound Real-Time Payments Transfer is created.
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
T.let(
Expand Down
Loading