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: e95ac51d0818ef7b5b5b9f7606d5891b
config_hash: 1ca082e374ef7000e2a5971e8da740e0
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
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
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
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
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions sig/increase/models/inbound_fednow_transfer.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ module Increase
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline?,
end_to_end_identification: String?,
status: Increase::Models::InboundFednowTransfer::status,
transaction_id: String?,
transaction_identification: String?,
type: Increase::Models::InboundFednowTransfer::type_,
unique_end_to_end_transaction_reference: String?,
unstructured_remittance_information: String?
Expand Down Expand Up @@ -46,10 +48,14 @@ module Increase

attr_accessor decline: Increase::InboundFednowTransfer::Decline?

attr_accessor end_to_end_identification: String?

attr_accessor status: Increase::Models::InboundFednowTransfer::status

attr_accessor transaction_id: String?

attr_accessor transaction_identification: String?

attr_accessor type: Increase::Models::InboundFednowTransfer::type_

attr_accessor unique_end_to_end_transaction_reference: String?
Expand All @@ -69,8 +75,10 @@ module Increase
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline?,
end_to_end_identification: String?,
status: Increase::Models::InboundFednowTransfer::status,
transaction_id: String?,
transaction_identification: String?,
type: Increase::Models::InboundFednowTransfer::type_,
unique_end_to_end_transaction_reference: String?,
unstructured_remittance_information: String?
Expand All @@ -89,8 +97,10 @@ module Increase
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline?,
end_to_end_identification: String?,
status: Increase::Models::InboundFednowTransfer::status,
transaction_id: String?,
transaction_identification: String?,
type: Increase::Models::InboundFednowTransfer::type_,
unique_end_to_end_transaction_reference: String?,
unstructured_remittance_information: String?
Expand Down
4 changes: 4 additions & 0 deletions test/increase/resources/inbound_fednow_transfers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def test_retrieve
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline | nil,
end_to_end_identification: String | nil,
status: Increase::InboundFednowTransfer::Status,
transaction_id: String | nil,
transaction_identification: String | nil,
type: Increase::InboundFednowTransfer::Type,
unique_end_to_end_transaction_reference: String | nil,
unstructured_remittance_information: String | nil
Expand Down Expand Up @@ -61,8 +63,10 @@ def test_list
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline | nil,
end_to_end_identification: String | nil,
status: Increase::InboundFednowTransfer::Status,
transaction_id: String | nil,
transaction_identification: String | nil,
type: Increase::InboundFednowTransfer::Type,
unique_end_to_end_transaction_reference: String | nil,
unstructured_remittance_information: String | nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def test_create_required_params
debtor_name: String,
debtor_routing_number: String,
decline: Increase::InboundFednowTransfer::Decline | nil,
end_to_end_identification: String | nil,
status: Increase::InboundFednowTransfer::Status,
transaction_id: String | nil,
transaction_identification: String | nil,
type: Increase::InboundFednowTransfer::Type,
unique_end_to_end_transaction_reference: String | nil,
unstructured_remittance_information: String | nil
Expand Down