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: 239
openapi_spec_hash: 85e424bee4fe449466ceada88117613e
openapi_spec_hash: b548aecc31ddcee17c83c754a8cdf4be
config_hash: 1ca082e374ef7000e2a5971e8da740e0
7 changes: 5 additions & 2 deletions lib/increase/models/inbound_check_deposit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ class Adjustment < Increase::Internal::Type::BaseModel
required :adjusted_at, Time

# @!attribute amount
# The amount of the adjustment.
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
#
# @return [Integer]
required :amount, Integer
Expand All @@ -251,7 +252,9 @@ class Adjustment < Increase::Internal::Type::BaseModel
# @!method initialize(adjusted_at:, amount:, reason:, transaction_id:)
# @param adjusted_at [Time] The time at which the return adjustment was received.
#
# @param amount [Integer] The amount of the adjustment.
# @param amount [Integer]
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
#
# @param reason [Symbol, Increase::Models::InboundCheckDeposit::Adjustment::Reason]
# The reason for the adjustment.
Expand Down
19 changes: 18 additions & 1 deletion lib/increase/models/inbound_fednow_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class InboundFednowTransfer < Increase::Internal::Type::BaseModel
# @return [Increase::Models::InboundFednowTransfer::Decline, nil]
required :decline, -> { Increase::InboundFednowTransfer::Decline }, nil?: true

# @!attribute end_to_end_identification
# A free-form reference string set by the sender, to help identify the transfer.
#
# @return [String, nil]
required :end_to_end_identification, String, nil?: true

# @!attribute status
# The lifecycle status of the transfer.
#
Expand All @@ -91,6 +97,12 @@ class InboundFednowTransfer < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :transaction_id, String, nil?: true

# @!attribute transaction_identification
# The FedNow network identification of the transfer.
#
# @return [String, nil]
required :transaction_identification, String, nil?: true

# @!attribute type
# A constant representing the object's type. For this resource it will always be
# `inbound_fednow_transfer`.
Expand All @@ -112,7 +124,7 @@ class InboundFednowTransfer < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :unstructured_remittance_information, String, nil?: true

# @!method initialize(id:, account_id:, account_number_id:, amount:, confirmation:, created_at:, creditor_name:, currency:, debtor_account_number:, debtor_name:, debtor_routing_number:, decline:, status:, transaction_id:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
# @!method initialize(id:, account_id:, account_number_id:, amount:, confirmation:, created_at:, creditor_name:, currency:, debtor_account_number:, debtor_name:, debtor_routing_number:, decline:, end_to_end_identification:, status:, transaction_id:, transaction_identification:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
# An Inbound FedNow Transfer is a FedNow transfer initiated outside of Increase to
# your account.
#
Expand Down Expand Up @@ -147,13 +159,18 @@ class InboundFednowTransfer < Increase::Internal::Type::BaseModel
# @param decline [Increase::Models::InboundFednowTransfer::Decline, nil]
# If your transfer is declined, this will contain details of the decline.
#
# @param end_to_end_identification [String, nil]
# A free-form reference string set by the sender, to help identify the transfer.
#
# @param status [Symbol, Increase::Models::InboundFednowTransfer::Status]
# The lifecycle status of the transfer.
#
# @param transaction_id [String, nil]
# The identifier of the Transaction object created when the transfer was
# confirmed.
#
# @param transaction_identification [String, nil] The FedNow network identification of the transfer.
#
# @param type [Symbol, Increase::Models::InboundFednowTransfer::Type]
# A constant representing the object's type. For this resource it will always be
# `inbound_fednow_transfer`.
Expand Down
9 changes: 6 additions & 3 deletions lib/increase/models/physical_card_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel
required :card_id, String

# @!attribute cardholder
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
#
# @return [Increase::Models::PhysicalCardCreateParams::Cardholder]
required :cardholder, -> { Increase::PhysicalCardCreateParams::Cardholder }
Expand All @@ -36,7 +37,8 @@ class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel
# @param card_id [String] The underlying card representing this physical card.
#
# @param cardholder [Increase::Models::PhysicalCardCreateParams::Cardholder]
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
#
# @param shipment [Increase::Models::PhysicalCardCreateParams::Shipment]
# The details used to ship this physical card.
Expand All @@ -61,7 +63,8 @@ class Cardholder < Increase::Internal::Type::BaseModel
required :last_name, String

# @!method initialize(first_name:, last_name:)
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
#
# @param first_name [String] The cardholder's first name.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
required :inbound_check_deposit_id, String

# @!attribute amount
# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
#
# @return [Integer, nil]
Expand All @@ -31,7 +34,10 @@ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
# @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
#
# @param amount [Integer]
# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
#
# @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason]
Expand Down
7 changes: 5 additions & 2 deletions lib/increase/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7231,7 +7231,8 @@ class InboundCheckAdjustment < Increase::Internal::Type::BaseModel
required :adjusted_transaction_id, String

# @!attribute amount
# The amount of the check adjustment.
# The amount of the check adjustment in USD cents. A positive amount is a credit
# to your account and a negative amount is a debit.
#
# @return [Integer]
required :amount, Integer
Expand All @@ -7250,7 +7251,9 @@ class InboundCheckAdjustment < Increase::Internal::Type::BaseModel
#
# @param adjusted_transaction_id [String] The ID of the transaction that was adjusted.
#
# @param amount [Integer] The amount of the check adjustment.
# @param amount [Integer]
# The amount of the check adjustment in USD cents. A positive amount is a credit
# to your account and a negative amount is a debit.
#
# @param reason [Symbol, Increase::Models::Transaction::Source::InboundCheckAdjustment::Reason]
# The reason for the adjustment.
Expand Down
3 changes: 2 additions & 1 deletion lib/increase/resources/physical_cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class PhysicalCards
# @param card_id [String] The underlying card representing this physical card.
#
# @param cardholder [Increase::Models::PhysicalCardCreateParams::Cardholder]
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
#
# @param shipment [Increase::Models::PhysicalCardCreateParams::Shipment]
# The details used to ship this physical card.
Expand Down
5 changes: 4 additions & 1 deletion lib/increase/resources/simulations/inbound_check_deposits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def create(params)
# @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
#
# @param amount [Integer]
# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
#
# @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason]
Expand Down
6 changes: 4 additions & 2 deletions rbi/increase/models/inbound_check_deposit.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ module Increase
sig { returns(Time) }
attr_accessor :adjusted_at

# The amount of the adjustment.
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
sig { returns(Integer) }
attr_accessor :amount

Expand All @@ -282,7 +283,8 @@ module Increase
def self.new(
# The time at which the return adjustment was received.
adjusted_at:,
# The amount of the adjustment.
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
amount:,
# The reason for the adjustment.
reason:,
Expand Down
16 changes: 16 additions & 0 deletions rbi/increase/models/inbound_fednow_transfer.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ module Increase
end
attr_writer :decline

# A free-form reference string set by the sender, to help identify the transfer.
sig { returns(T.nilable(String)) }
attr_accessor :end_to_end_identification

# The lifecycle status of the transfer.
sig { returns(Increase::InboundFednowTransfer::Status::TaggedSymbol) }
attr_accessor :status
Expand All @@ -82,6 +86,10 @@ module Increase
sig { returns(T.nilable(String)) }
attr_accessor :transaction_id

# The FedNow network identification of the transfer.
sig { returns(T.nilable(String)) }
attr_accessor :transaction_identification

# A constant representing the object's type. For this resource it will always be
# `inbound_fednow_transfer`.
sig { returns(Increase::InboundFednowTransfer::Type::TaggedSymbol) }
Expand Down Expand Up @@ -114,8 +122,10 @@ module Increase
debtor_name: String,
debtor_routing_number: String,
decline: T.nilable(Increase::InboundFednowTransfer::Decline::OrHash),
end_to_end_identification: T.nilable(String),
status: Increase::InboundFednowTransfer::Status::OrSymbol,
transaction_id: T.nilable(String),
transaction_identification: T.nilable(String),
type: Increase::InboundFednowTransfer::Type::OrSymbol,
unique_end_to_end_transaction_reference: T.nilable(String),
unstructured_remittance_information: T.nilable(String)
Expand Down Expand Up @@ -148,11 +158,15 @@ module Increase
debtor_routing_number:,
# If your transfer is declined, this will contain details of the decline.
decline:,
# A free-form reference string set by the sender, to help identify the transfer.
end_to_end_identification:,
# The lifecycle status of the transfer.
status:,
# The identifier of the Transaction object created when the transfer was
# confirmed.
transaction_id:,
# The FedNow network identification of the transfer.
transaction_identification:,
# A constant representing the object's type. For this resource it will always be
# `inbound_fednow_transfer`.
type:,
Expand Down Expand Up @@ -181,8 +195,10 @@ module Increase
debtor_name: String,
debtor_routing_number: String,
decline: T.nilable(Increase::InboundFednowTransfer::Decline),
end_to_end_identification: T.nilable(String),
status: Increase::InboundFednowTransfer::Status::TaggedSymbol,
transaction_id: T.nilable(String),
transaction_identification: T.nilable(String),
type: Increase::InboundFednowTransfer::Type::TaggedSymbol,
unique_end_to_end_transaction_reference: T.nilable(String),
unstructured_remittance_information: T.nilable(String)
Expand Down
9 changes: 6 additions & 3 deletions rbi/increase/models/physical_card_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module Increase
sig { returns(String) }
attr_accessor :card_id

# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
sig { returns(Increase::PhysicalCardCreateParams::Cardholder) }
attr_reader :cardholder

Expand Down Expand Up @@ -57,7 +58,8 @@ module Increase
def self.new(
# The underlying card representing this physical card.
card_id:,
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
cardholder:,
# The details used to ship this physical card.
shipment:,
Expand Down Expand Up @@ -99,7 +101,8 @@ module Increase
sig { returns(String) }
attr_accessor :last_name

# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
sig do
params(first_name: String, last_name: String).returns(
T.attached_class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ module Increase
sig { returns(String) }
attr_accessor :inbound_check_deposit_id

# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
sig { returns(T.nilable(Integer)) }
attr_reader :amount
Expand Down Expand Up @@ -57,7 +60,10 @@ module Increase
def self.new(
# The identifier of the Inbound Check Deposit to adjust.
inbound_check_deposit_id:,
# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
amount: nil,
# The reason for the adjustment. Defaults to `wrong_payee_credit`.
Expand Down
6 changes: 4 additions & 2 deletions rbi/increase/models/transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -12808,7 +12808,8 @@ module Increase
sig { returns(String) }
attr_accessor :adjusted_transaction_id

# The amount of the check adjustment.
# The amount of the check adjustment in USD cents. A positive amount is a credit
# to your account and a negative amount is a debit.
sig { returns(Integer) }
attr_accessor :amount

Expand All @@ -12835,7 +12836,8 @@ module Increase
def self.new(
# The ID of the transaction that was adjusted.
adjusted_transaction_id:,
# The amount of the check adjustment.
# The amount of the check adjustment in USD cents. A positive amount is a credit
# to your account and a negative amount is a debit.
amount:,
# The reason for the adjustment.
reason:
Expand Down
3 changes: 2 additions & 1 deletion rbi/increase/resources/physical_cards.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module Increase
def create(
# The underlying card representing this physical card.
card_id:,
# Details about the cardholder, as it will appear on the physical card.
# Details about the cardholder, as it will appear on the physical card. The
# combined first name and last name cannot exceed 25 characters.
cardholder:,
# The details used to ship this physical card.
shipment:,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ module Increase
def adjustment(
# The identifier of the Inbound Check Deposit to adjust.
inbound_check_deposit_id,
# The adjustment amount in cents. Defaults to the amount of the Inbound Check
# The adjustment amount in cents. A positive amount means that the funds are being
# returned to you by the other bank and is a credit to your account, as happens
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
# happens for a `late_return`. Defaults to the amount of the Inbound Check
# Deposit.
amount: nil,
# The reason for the adjustment. Defaults to `wrong_payee_credit`.
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Loading