increase 1.113.0 → 1.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +8 -0
  5. data/lib/increase/models/fednow_transfer.rb +516 -0
  6. data/lib/increase/models/fednow_transfer_approve_params.rb +14 -0
  7. data/lib/increase/models/fednow_transfer_cancel_params.rb +14 -0
  8. data/lib/increase/models/fednow_transfer_create_params.rb +188 -0
  9. data/lib/increase/models/fednow_transfer_list_params.rb +170 -0
  10. data/lib/increase/models/fednow_transfer_retrieve_params.rb +14 -0
  11. data/lib/increase/models/inbound_fednow_transfer.rb +278 -0
  12. data/lib/increase/models/inbound_fednow_transfer_list_params.rb +100 -0
  13. data/lib/increase/models/inbound_fednow_transfer_retrieve_params.rb +14 -0
  14. data/lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb +64 -0
  15. data/lib/increase/models.rb +18 -0
  16. data/lib/increase/resources/fednow_transfers.rb +159 -0
  17. data/lib/increase/resources/inbound_fednow_transfers.rb +68 -0
  18. data/lib/increase/resources/simulations/inbound_fednow_transfers.rb +49 -0
  19. data/lib/increase/resources/simulations.rb +4 -0
  20. data/lib/increase/version.rb +1 -1
  21. data/lib/increase.rb +13 -0
  22. data/rbi/increase/client.rbi +6 -0
  23. data/rbi/increase/models/fednow_transfer.rbi +877 -0
  24. data/rbi/increase/models/fednow_transfer_approve_params.rbi +30 -0
  25. data/rbi/increase/models/fednow_transfer_cancel_params.rbi +30 -0
  26. data/rbi/increase/models/fednow_transfer_create_params.rbi +289 -0
  27. data/rbi/increase/models/fednow_transfer_list_params.rbi +334 -0
  28. data/rbi/increase/models/fednow_transfer_retrieve_params.rbi +30 -0
  29. data/rbi/increase/models/inbound_fednow_transfer.rbi +444 -0
  30. data/rbi/increase/models/inbound_fednow_transfer_list_params.rbi +177 -0
  31. data/rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi +30 -0
  32. data/rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi +100 -0
  33. data/rbi/increase/models.rbi +20 -0
  34. data/rbi/increase/resources/fednow_transfers.rbi +138 -0
  35. data/rbi/increase/resources/inbound_fednow_transfers.rbi +54 -0
  36. data/rbi/increase/resources/simulations/inbound_fednow_transfers.rbi +44 -0
  37. data/rbi/increase/resources/simulations.rbi +3 -0
  38. data/sig/increase/client.rbs +4 -0
  39. data/sig/increase/models/fednow_transfer.rbs +404 -0
  40. data/sig/increase/models/fednow_transfer_approve_params.rbs +15 -0
  41. data/sig/increase/models/fednow_transfer_cancel_params.rbs +15 -0
  42. data/sig/increase/models/fednow_transfer_create_params.rbs +155 -0
  43. data/sig/increase/models/fednow_transfer_list_params.rbs +174 -0
  44. data/sig/increase/models/fednow_transfer_retrieve_params.rbs +15 -0
  45. data/sig/increase/models/inbound_fednow_transfer.rbs +223 -0
  46. data/sig/increase/models/inbound_fednow_transfer_list_params.rbs +93 -0
  47. data/sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs +15 -0
  48. data/sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs +61 -0
  49. data/sig/increase/models.rbs +18 -0
  50. data/sig/increase/resources/fednow_transfers.rbs +49 -0
  51. data/sig/increase/resources/inbound_fednow_transfers.rbs +21 -0
  52. data/sig/increase/resources/simulations/inbound_fednow_transfers.rbs +19 -0
  53. data/sig/increase/resources/simulations.rbs +2 -0
  54. metadata +41 -2
@@ -0,0 +1,188 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::FednowTransfers#create
6
+ class FednowTransferCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_id
11
+ # The identifier for the account that will send the transfer.
12
+ #
13
+ # @return [String]
14
+ required :account_id, String
15
+
16
+ # @!attribute amount
17
+ # The amount, in minor units, to send to the creditor.
18
+ #
19
+ # @return [Integer]
20
+ required :amount, Integer
21
+
22
+ # @!attribute creditor_name
23
+ # The creditor's name.
24
+ #
25
+ # @return [String]
26
+ required :creditor_name, String
27
+
28
+ # @!attribute debtor_name
29
+ # The debtor's name.
30
+ #
31
+ # @return [String]
32
+ required :debtor_name, String
33
+
34
+ # @!attribute source_account_number_id
35
+ # The Account Number to include in the transfer as the debtor's account number.
36
+ #
37
+ # @return [String]
38
+ required :source_account_number_id, String
39
+
40
+ # @!attribute unstructured_remittance_information
41
+ # Unstructured remittance information to include in the transfer.
42
+ #
43
+ # @return [String]
44
+ required :unstructured_remittance_information, String
45
+
46
+ # @!attribute account_number
47
+ # The creditor's account number.
48
+ #
49
+ # @return [String, nil]
50
+ optional :account_number, String
51
+
52
+ # @!attribute creditor_address
53
+ # The creditor's address.
54
+ #
55
+ # @return [Increase::Models::FednowTransferCreateParams::CreditorAddress, nil]
56
+ optional :creditor_address, -> { Increase::FednowTransferCreateParams::CreditorAddress }
57
+
58
+ # @!attribute debtor_address
59
+ # The debtor's address.
60
+ #
61
+ # @return [Increase::Models::FednowTransferCreateParams::DebtorAddress, nil]
62
+ optional :debtor_address, -> { Increase::FednowTransferCreateParams::DebtorAddress }
63
+
64
+ # @!attribute external_account_id
65
+ # The ID of an External Account to initiate a transfer to. If this parameter is
66
+ # provided, `account_number` and `routing_number` must be absent.
67
+ #
68
+ # @return [String, nil]
69
+ optional :external_account_id, String
70
+
71
+ # @!attribute require_approval
72
+ # Whether the transfer requires explicit approval via the dashboard or API.
73
+ #
74
+ # @return [Boolean, nil]
75
+ optional :require_approval, Increase::Internal::Type::Boolean
76
+
77
+ # @!attribute routing_number
78
+ # The creditor's bank account routing number.
79
+ #
80
+ # @return [String, nil]
81
+ optional :routing_number, String
82
+
83
+ # @!method initialize(account_id:, amount:, creditor_name:, debtor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, creditor_address: nil, debtor_address: nil, external_account_id: nil, require_approval: nil, routing_number: nil, request_options: {})
84
+ # Some parameter documentations has been truncated, see
85
+ # {Increase::Models::FednowTransferCreateParams} for more details.
86
+ #
87
+ # @param account_id [String] The identifier for the account that will send the transfer.
88
+ #
89
+ # @param amount [Integer] The amount, in minor units, to send to the creditor.
90
+ #
91
+ # @param creditor_name [String] The creditor's name.
92
+ #
93
+ # @param debtor_name [String] The debtor's name.
94
+ #
95
+ # @param source_account_number_id [String] The Account Number to include in the transfer as the debtor's account number.
96
+ #
97
+ # @param unstructured_remittance_information [String] Unstructured remittance information to include in the transfer.
98
+ #
99
+ # @param account_number [String] The creditor's account number.
100
+ #
101
+ # @param creditor_address [Increase::Models::FednowTransferCreateParams::CreditorAddress] The creditor's address.
102
+ #
103
+ # @param debtor_address [Increase::Models::FednowTransferCreateParams::DebtorAddress] The debtor's address.
104
+ #
105
+ # @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr
106
+ #
107
+ # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
108
+ #
109
+ # @param routing_number [String] The creditor's bank account routing number.
110
+ #
111
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
112
+
113
+ class CreditorAddress < Increase::Internal::Type::BaseModel
114
+ # @!attribute city
115
+ # The city, district, town, or village of the address.
116
+ #
117
+ # @return [String]
118
+ required :city, String
119
+
120
+ # @!attribute postal_code
121
+ # The postal code component of the address.
122
+ #
123
+ # @return [String]
124
+ required :postal_code, String
125
+
126
+ # @!attribute state
127
+ # The US state component of the address.
128
+ #
129
+ # @return [String]
130
+ required :state, String
131
+
132
+ # @!attribute line1
133
+ # The first line of the address. This is usually the street number and street.
134
+ #
135
+ # @return [String, nil]
136
+ optional :line1, String
137
+
138
+ # @!method initialize(city:, postal_code:, state:, line1: nil)
139
+ # The creditor's address.
140
+ #
141
+ # @param city [String] The city, district, town, or village of the address.
142
+ #
143
+ # @param postal_code [String] The postal code component of the address.
144
+ #
145
+ # @param state [String] The US state component of the address.
146
+ #
147
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
148
+ end
149
+
150
+ class DebtorAddress < Increase::Internal::Type::BaseModel
151
+ # @!attribute city
152
+ # The city, district, town, or village of the address.
153
+ #
154
+ # @return [String]
155
+ required :city, String
156
+
157
+ # @!attribute postal_code
158
+ # The postal code component of the address.
159
+ #
160
+ # @return [String]
161
+ required :postal_code, String
162
+
163
+ # @!attribute state
164
+ # The US state component of the address.
165
+ #
166
+ # @return [String]
167
+ required :state, String
168
+
169
+ # @!attribute line1
170
+ # The first line of the address. This is usually the street number and street.
171
+ #
172
+ # @return [String, nil]
173
+ optional :line1, String
174
+
175
+ # @!method initialize(city:, postal_code:, state:, line1: nil)
176
+ # The debtor's address.
177
+ #
178
+ # @param city [String] The city, district, town, or village of the address.
179
+ #
180
+ # @param postal_code [String] The postal code component of the address.
181
+ #
182
+ # @param state [String] The US state component of the address.
183
+ #
184
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
185
+ end
186
+ end
187
+ end
188
+ end
@@ -0,0 +1,170 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::FednowTransfers#list
6
+ class FednowTransferListParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_id
11
+ # Filter FedNow Transfers to those that originated from the specified Account.
12
+ #
13
+ # @return [String, nil]
14
+ optional :account_id, String
15
+
16
+ # @!attribute created_at
17
+ #
18
+ # @return [Increase::Models::FednowTransferListParams::CreatedAt, nil]
19
+ optional :created_at, -> { Increase::FednowTransferListParams::CreatedAt }
20
+
21
+ # @!attribute cursor
22
+ # Return the page of entries after this one.
23
+ #
24
+ # @return [String, nil]
25
+ optional :cursor, String
26
+
27
+ # @!attribute external_account_id
28
+ # Filter FedNow Transfers to those made to the specified External Account.
29
+ #
30
+ # @return [String, nil]
31
+ optional :external_account_id, String
32
+
33
+ # @!attribute idempotency_key
34
+ # Filter records to the one with the specified `idempotency_key` you chose for
35
+ # that object. This value is unique across Increase and is used to ensure that a
36
+ # request is only processed once. Learn more about
37
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
38
+ #
39
+ # @return [String, nil]
40
+ optional :idempotency_key, String
41
+
42
+ # @!attribute limit
43
+ # Limit the size of the list that is returned. The default (and maximum) is 100
44
+ # objects.
45
+ #
46
+ # @return [Integer, nil]
47
+ optional :limit, Integer
48
+
49
+ # @!attribute status
50
+ #
51
+ # @return [Increase::Models::FednowTransferListParams::Status, nil]
52
+ optional :status, -> { Increase::FednowTransferListParams::Status }
53
+
54
+ # @!method initialize(account_id: nil, created_at: nil, cursor: nil, external_account_id: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
55
+ # Some parameter documentations has been truncated, see
56
+ # {Increase::Models::FednowTransferListParams} for more details.
57
+ #
58
+ # @param account_id [String] Filter FedNow Transfers to those that originated from the specified Account.
59
+ #
60
+ # @param created_at [Increase::Models::FednowTransferListParams::CreatedAt]
61
+ #
62
+ # @param cursor [String] Return the page of entries after this one.
63
+ #
64
+ # @param external_account_id [String] Filter FedNow Transfers to those made to the specified External Account.
65
+ #
66
+ # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
67
+ #
68
+ # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
69
+ #
70
+ # @param status [Increase::Models::FednowTransferListParams::Status]
71
+ #
72
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
73
+
74
+ class CreatedAt < Increase::Internal::Type::BaseModel
75
+ # @!attribute after
76
+ # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
77
+ # timestamp.
78
+ #
79
+ # @return [Time, nil]
80
+ optional :after, Time
81
+
82
+ # @!attribute before
83
+ # Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
84
+ # timestamp.
85
+ #
86
+ # @return [Time, nil]
87
+ optional :before, Time
88
+
89
+ # @!attribute on_or_after
90
+ # Return results on or after this
91
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
92
+ #
93
+ # @return [Time, nil]
94
+ optional :on_or_after, Time
95
+
96
+ # @!attribute on_or_before
97
+ # Return results on or before this
98
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
99
+ #
100
+ # @return [Time, nil]
101
+ optional :on_or_before, Time
102
+
103
+ # @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
104
+ # Some parameter documentations has been truncated, see
105
+ # {Increase::Models::FednowTransferListParams::CreatedAt} for more details.
106
+ #
107
+ # @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
108
+ #
109
+ # @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
110
+ #
111
+ # @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
112
+ #
113
+ # @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
114
+ end
115
+
116
+ class Status < Increase::Internal::Type::BaseModel
117
+ # @!attribute in_
118
+ # Return results whose value is in the provided list. For GET requests, this
119
+ # should be encoded as a comma-delimited string, such as `?in=one,two,three`.
120
+ #
121
+ # @return [Array<Symbol, Increase::Models::FednowTransferListParams::Status::In>, nil]
122
+ optional :in_,
123
+ -> {
124
+ Increase::Internal::Type::ArrayOf[enum: Increase::FednowTransferListParams::Status::In]
125
+ },
126
+ api_name: :in
127
+
128
+ # @!method initialize(in_: nil)
129
+ # Some parameter documentations has been truncated, see
130
+ # {Increase::Models::FednowTransferListParams::Status} for more details.
131
+ #
132
+ # @param in_ [Array<Symbol, Increase::Models::FednowTransferListParams::Status::In>] Return results whose value is in the provided list. For GET requests, this shoul
133
+
134
+ module In
135
+ extend Increase::Internal::Type::Enum
136
+
137
+ # The transfer is pending review by Increase.
138
+ PENDING_REVIEWING = :pending_reviewing
139
+
140
+ # The transfer has been canceled.
141
+ CANCELED = :canceled
142
+
143
+ # The transfer has been rejected by Increase.
144
+ REVIEWING_REJECTED = :reviewing_rejected
145
+
146
+ # The transfer requires attention from an Increase operator.
147
+ REQUIRES_ATTENTION = :requires_attention
148
+
149
+ # The transfer is pending approval.
150
+ PENDING_APPROVAL = :pending_approval
151
+
152
+ # The transfer is queued to be submitted to FedNow.
153
+ PENDING_SUBMITTING = :pending_submitting
154
+
155
+ # The transfer has been submitted and is pending a response from FedNow.
156
+ PENDING_RESPONSE = :pending_response
157
+
158
+ # The transfer has been sent successfully and is complete.
159
+ COMPLETE = :complete
160
+
161
+ # The transfer was rejected by the network or the recipient's bank.
162
+ REJECTED = :rejected
163
+
164
+ # @!method self.values
165
+ # @return [Array<Symbol>]
166
+ end
167
+ end
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::FednowTransfers#retrieve
6
+ class FednowTransferRetrieveParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,278 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::InboundFednowTransfers#retrieve
6
+ class InboundFednowTransfer < Increase::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The inbound FedNow transfer's identifier.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute account_id
14
+ # The Account to which the transfer was sent.
15
+ #
16
+ # @return [String]
17
+ required :account_id, String
18
+
19
+ # @!attribute account_number_id
20
+ # The identifier of the Account Number to which this transfer was sent.
21
+ #
22
+ # @return [String]
23
+ required :account_number_id, String
24
+
25
+ # @!attribute amount
26
+ # The amount in USD cents.
27
+ #
28
+ # @return [Integer]
29
+ required :amount, Integer
30
+
31
+ # @!attribute confirmation
32
+ # If your transfer is confirmed, this will contain details of the confirmation.
33
+ #
34
+ # @return [Increase::Models::InboundFednowTransfer::Confirmation, nil]
35
+ required :confirmation, -> { Increase::InboundFednowTransfer::Confirmation }, nil?: true
36
+
37
+ # @!attribute created_at
38
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
39
+ # the transfer was created.
40
+ #
41
+ # @return [Time]
42
+ required :created_at, Time
43
+
44
+ # @!attribute creditor_name
45
+ # The name the sender of the transfer specified as the recipient of the transfer.
46
+ #
47
+ # @return [String]
48
+ required :creditor_name, String
49
+
50
+ # @!attribute currency
51
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
52
+ # currency. This will always be "USD" for a FedNow transfer.
53
+ #
54
+ # @return [Symbol, Increase::Models::InboundFednowTransfer::Currency]
55
+ required :currency, enum: -> { Increase::InboundFednowTransfer::Currency }
56
+
57
+ # @!attribute debtor_account_number
58
+ # The account number of the account that sent the transfer.
59
+ #
60
+ # @return [String]
61
+ required :debtor_account_number, String
62
+
63
+ # @!attribute debtor_name
64
+ # The name provided by the sender of the transfer.
65
+ #
66
+ # @return [String]
67
+ required :debtor_name, String
68
+
69
+ # @!attribute debtor_routing_number
70
+ # The routing number of the account that sent the transfer.
71
+ #
72
+ # @return [String]
73
+ required :debtor_routing_number, String
74
+
75
+ # @!attribute decline
76
+ # If your transfer is declined, this will contain details of the decline.
77
+ #
78
+ # @return [Increase::Models::InboundFednowTransfer::Decline, nil]
79
+ required :decline, -> { Increase::InboundFednowTransfer::Decline }, nil?: true
80
+
81
+ # @!attribute status
82
+ # The lifecycle status of the transfer.
83
+ #
84
+ # @return [Symbol, Increase::Models::InboundFednowTransfer::Status]
85
+ required :status, enum: -> { Increase::InboundFednowTransfer::Status }
86
+
87
+ # @!attribute transaction_id
88
+ # The identifier of the Transaction object created when the transfer was
89
+ # confirmed.
90
+ #
91
+ # @return [String, nil]
92
+ required :transaction_id, String, nil?: true
93
+
94
+ # @!attribute type
95
+ # A constant representing the object's type. For this resource it will always be
96
+ # `inbound_fednow_transfer`.
97
+ #
98
+ # @return [Symbol, Increase::Models::InboundFednowTransfer::Type]
99
+ required :type, enum: -> { Increase::InboundFednowTransfer::Type }
100
+
101
+ # @!attribute unstructured_remittance_information
102
+ # Additional information included with the transfer.
103
+ #
104
+ # @return [String, nil]
105
+ required :unstructured_remittance_information, String, nil?: true
106
+
107
+ # @!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:, unstructured_remittance_information:)
108
+ # Some parameter documentations has been truncated, see
109
+ # {Increase::Models::InboundFednowTransfer} for more details.
110
+ #
111
+ # An Inbound FedNow Transfer is a FedNow transfer initiated outside of Increase to
112
+ # your account.
113
+ #
114
+ # @param id [String] The inbound FedNow transfer's identifier.
115
+ #
116
+ # @param account_id [String] The Account to which the transfer was sent.
117
+ #
118
+ # @param account_number_id [String] The identifier of the Account Number to which this transfer was sent.
119
+ #
120
+ # @param amount [Integer] The amount in USD cents.
121
+ #
122
+ # @param confirmation [Increase::Models::InboundFednowTransfer::Confirmation, nil] If your transfer is confirmed, this will contain details of the confirmation.
123
+ #
124
+ # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
125
+ #
126
+ # @param creditor_name [String] The name the sender of the transfer specified as the recipient of the transfer.
127
+ #
128
+ # @param currency [Symbol, Increase::Models::InboundFednowTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's cu
129
+ #
130
+ # @param debtor_account_number [String] The account number of the account that sent the transfer.
131
+ #
132
+ # @param debtor_name [String] The name provided by the sender of the transfer.
133
+ #
134
+ # @param debtor_routing_number [String] The routing number of the account that sent the transfer.
135
+ #
136
+ # @param decline [Increase::Models::InboundFednowTransfer::Decline, nil] If your transfer is declined, this will contain details of the decline.
137
+ #
138
+ # @param status [Symbol, Increase::Models::InboundFednowTransfer::Status] The lifecycle status of the transfer.
139
+ #
140
+ # @param transaction_id [String, nil] The identifier of the Transaction object created when the transfer was confirmed
141
+ #
142
+ # @param type [Symbol, Increase::Models::InboundFednowTransfer::Type] A constant representing the object's type. For this resource it will always be `
143
+ #
144
+ # @param unstructured_remittance_information [String, nil] Additional information included with the transfer.
145
+
146
+ # @see Increase::Models::InboundFednowTransfer#confirmation
147
+ class Confirmation < Increase::Internal::Type::BaseModel
148
+ # @!attribute transfer_id
149
+ # The identifier of the FedNow Transfer that led to this Transaction.
150
+ #
151
+ # @return [String]
152
+ required :transfer_id, String
153
+
154
+ # @!method initialize(transfer_id:)
155
+ # If your transfer is confirmed, this will contain details of the confirmation.
156
+ #
157
+ # @param transfer_id [String] The identifier of the FedNow Transfer that led to this Transaction.
158
+ end
159
+
160
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
161
+ # currency. This will always be "USD" for a FedNow transfer.
162
+ #
163
+ # @see Increase::Models::InboundFednowTransfer#currency
164
+ module Currency
165
+ extend Increase::Internal::Type::Enum
166
+
167
+ # Canadian Dollar (CAD)
168
+ CAD = :CAD
169
+
170
+ # Swiss Franc (CHF)
171
+ CHF = :CHF
172
+
173
+ # Euro (EUR)
174
+ EUR = :EUR
175
+
176
+ # British Pound (GBP)
177
+ GBP = :GBP
178
+
179
+ # Japanese Yen (JPY)
180
+ JPY = :JPY
181
+
182
+ # US Dollar (USD)
183
+ USD = :USD
184
+
185
+ # @!method self.values
186
+ # @return [Array<Symbol>]
187
+ end
188
+
189
+ # @see Increase::Models::InboundFednowTransfer#decline
190
+ class Decline < Increase::Internal::Type::BaseModel
191
+ # @!attribute reason
192
+ # Why the transfer was declined.
193
+ #
194
+ # @return [Symbol, Increase::Models::InboundFednowTransfer::Decline::Reason]
195
+ required :reason, enum: -> { Increase::InboundFednowTransfer::Decline::Reason }
196
+
197
+ # @!attribute transfer_id
198
+ # The identifier of the FedNow Transfer that led to this declined transaction.
199
+ #
200
+ # @return [String]
201
+ required :transfer_id, String
202
+
203
+ # @!method initialize(reason:, transfer_id:)
204
+ # If your transfer is declined, this will contain details of the decline.
205
+ #
206
+ # @param reason [Symbol, Increase::Models::InboundFednowTransfer::Decline::Reason] Why the transfer was declined.
207
+ #
208
+ # @param transfer_id [String] The identifier of the FedNow Transfer that led to this declined transaction.
209
+
210
+ # Why the transfer was declined.
211
+ #
212
+ # @see Increase::Models::InboundFednowTransfer::Decline#reason
213
+ module Reason
214
+ extend Increase::Internal::Type::Enum
215
+
216
+ # The account number is canceled.
217
+ ACCOUNT_NUMBER_CANCELED = :account_number_canceled
218
+
219
+ # The account number is disabled.
220
+ ACCOUNT_NUMBER_DISABLED = :account_number_disabled
221
+
222
+ # Your account is restricted.
223
+ ACCOUNT_RESTRICTED = :account_restricted
224
+
225
+ # Your account is inactive.
226
+ GROUP_LOCKED = :group_locked
227
+
228
+ # The account's entity is not active.
229
+ ENTITY_NOT_ACTIVE = :entity_not_active
230
+
231
+ # Your account is not enabled to receive FedNow transfers.
232
+ FEDNOW_NOT_ENABLED = :fednow_not_enabled
233
+
234
+ # @!method self.values
235
+ # @return [Array<Symbol>]
236
+ end
237
+ end
238
+
239
+ # The lifecycle status of the transfer.
240
+ #
241
+ # @see Increase::Models::InboundFednowTransfer#status
242
+ module Status
243
+ extend Increase::Internal::Type::Enum
244
+
245
+ # The transfer is pending confirmation.
246
+ PENDING_CONFIRMING = :pending_confirming
247
+
248
+ # The transfer was not responded to in time.
249
+ TIMED_OUT = :timed_out
250
+
251
+ # The transfer has been received successfully and is confirmed.
252
+ CONFIRMED = :confirmed
253
+
254
+ # The transfer has been declined.
255
+ DECLINED = :declined
256
+
257
+ # The transfer requires attention from an Increase operator.
258
+ REQUIRES_ATTENTION = :requires_attention
259
+
260
+ # @!method self.values
261
+ # @return [Array<Symbol>]
262
+ end
263
+
264
+ # A constant representing the object's type. For this resource it will always be
265
+ # `inbound_fednow_transfer`.
266
+ #
267
+ # @see Increase::Models::InboundFednowTransfer#type
268
+ module Type
269
+ extend Increase::Internal::Type::Enum
270
+
271
+ INBOUND_FEDNOW_TRANSFER = :inbound_fednow_transfer
272
+
273
+ # @!method self.values
274
+ # @return [Array<Symbol>]
275
+ end
276
+ end
277
+ end
278
+ end