increase 1.360.0 → 1.362.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
- data/lib/increase/internal/util.rb +22 -17
- data/lib/increase/models/ach_transfer_create_params.rb +73 -42
- data/lib/increase/models/digital_card_profile.rb +63 -1
- data/lib/increase/models/digital_card_profile_clone_params.rb +65 -1
- data/lib/increase/models/digital_card_profile_create_params.rb +62 -1
- data/lib/increase/models/event.rb +5 -2
- data/lib/increase/models/event_list_params.rb +5 -2
- data/lib/increase/models/event_subscription.rb +5 -2
- data/lib/increase/models/event_subscription_create_params.rb +5 -2
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
- data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
- data/lib/increase/models/unwrap_webhook_event.rb +5 -2
- data/lib/increase/models/wire_drawdown_request.rb +78 -1
- data/lib/increase/resources/ach_transfers.rb +43 -22
- data/lib/increase/resources/digital_card_profiles.rb +9 -2
- data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/internal/util.rbi +3 -1
- data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
- data/rbi/increase/models/digital_card_profile.rbi +137 -0
- data/rbi/increase/models/digital_card_profile_clone_params.rbi +166 -0
- data/rbi/increase/models/digital_card_profile_create_params.rbi +163 -0
- data/rbi/increase/models/event.rbi +10 -3
- data/rbi/increase/models/event_list_params.rbi +10 -3
- data/rbi/increase/models/event_subscription.rbi +10 -3
- data/rbi/increase/models/event_subscription_create_params.rbi +10 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
- data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +10 -3
- data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
- data/rbi/increase/resources/ach_transfers.rbi +42 -22
- data/rbi/increase/resources/digital_card_profiles.rbi +7 -0
- data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
- data/sig/increase/internal/util.rbs +1 -1
- data/sig/increase/models/digital_card_profile.rbs +47 -0
- data/sig/increase/models/digital_card_profile_clone_params.rbs +59 -0
- data/sig/increase/models/digital_card_profile_create_params.rbs +59 -0
- data/sig/increase/models/event.rbs +7 -3
- data/sig/increase/models/event_list_params.rbs +7 -3
- data/sig/increase/models/event_subscription.rbs +7 -3
- data/sig/increase/models/event_subscription_create_params.rbs +7 -3
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
- data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
- data/sig/increase/models/unwrap_webhook_event.rbs +7 -3
- data/sig/increase/models/wire_drawdown_request.rbs +64 -0
- data/sig/increase/resources/digital_card_profiles.rbs +2 -0
- data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
- metadata +16 -2
|
@@ -78,6 +78,12 @@ module Increase
|
|
|
78
78
|
# @return [Increase::Models::InboundRealTimePaymentsTransfer::Decline, nil]
|
|
79
79
|
required :decline, -> { Increase::InboundRealTimePaymentsTransfer::Decline }, nil?: true
|
|
80
80
|
|
|
81
|
+
# @!attribute end_to_end_identification
|
|
82
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
83
|
+
#
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
required :end_to_end_identification, String, nil?: true
|
|
86
|
+
|
|
81
87
|
# @!attribute status
|
|
82
88
|
# The lifecycle status of the transfer.
|
|
83
89
|
#
|
|
@@ -103,7 +109,7 @@ module Increase
|
|
|
103
109
|
# @return [String, nil]
|
|
104
110
|
required :unstructured_remittance_information, String, nil?: true
|
|
105
111
|
|
|
106
|
-
# @!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_identification:, type:, unstructured_remittance_information:)
|
|
112
|
+
# @!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_identification:, type:, unstructured_remittance_information:)
|
|
107
113
|
# An Inbound Real-Time Payments Transfer is a Real-Time Payments transfer
|
|
108
114
|
# initiated outside of Increase to your account.
|
|
109
115
|
#
|
|
@@ -138,6 +144,9 @@ module Increase
|
|
|
138
144
|
# @param decline [Increase::Models::InboundRealTimePaymentsTransfer::Decline, nil]
|
|
139
145
|
# If your transfer is declined, this will contain details of the decline.
|
|
140
146
|
#
|
|
147
|
+
# @param end_to_end_identification [String, nil]
|
|
148
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
149
|
+
#
|
|
141
150
|
# @param status [Symbol, Increase::Models::InboundRealTimePaymentsTransfer::Status]
|
|
142
151
|
# The lifecycle status of the transfer.
|
|
143
152
|
#
|
|
@@ -68,6 +68,14 @@ module Increase
|
|
|
68
68
|
# @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptChargeback, nil]
|
|
69
69
|
optional :accept_chargeback, -> { Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback }
|
|
70
70
|
|
|
71
|
+
# @!attribute accept_user_prearbitration
|
|
72
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
73
|
+
# `action` is `accept_user_prearbitration`.
|
|
74
|
+
#
|
|
75
|
+
# @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration, nil]
|
|
76
|
+
optional :accept_user_prearbitration,
|
|
77
|
+
-> { Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration }
|
|
78
|
+
|
|
71
79
|
# @!attribute accept_user_submission
|
|
72
80
|
# The parameters for accepting the user submission. Required if and only if
|
|
73
81
|
# `action` is `accept_user_submission`.
|
|
@@ -146,7 +154,7 @@ module Increase
|
|
|
146
154
|
optional :time_out_user_prearbitration,
|
|
147
155
|
-> { Increase::Simulations::CardDisputeActionParams::Visa::TimeOutUserPrearbitration }
|
|
148
156
|
|
|
149
|
-
# @!method initialize(action:, accept_chargeback: nil, accept_user_submission: nil, decline_user_prearbitration: nil, receive_merchant_prearbitration: nil, reject: nil, represent: nil, request_further_information: nil, time_out_chargeback: nil, time_out_merchant_prearbitration: nil, time_out_representment: nil, time_out_user_prearbitration: nil)
|
|
157
|
+
# @!method initialize(action:, accept_chargeback: nil, accept_user_prearbitration: nil, accept_user_submission: nil, decline_user_prearbitration: nil, receive_merchant_prearbitration: nil, reject: nil, represent: nil, request_further_information: nil, time_out_chargeback: nil, time_out_merchant_prearbitration: nil, time_out_representment: nil, time_out_user_prearbitration: nil)
|
|
150
158
|
# The Visa-specific parameters for taking action on the dispute. Required if and
|
|
151
159
|
# only if `network` is `visa`.
|
|
152
160
|
#
|
|
@@ -158,6 +166,10 @@ module Increase
|
|
|
158
166
|
# The parameters for accepting the chargeback. Required if and only if `action` is
|
|
159
167
|
# `accept_chargeback`.
|
|
160
168
|
#
|
|
169
|
+
# @param accept_user_prearbitration [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration]
|
|
170
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
171
|
+
# `action` is `accept_user_prearbitration`.
|
|
172
|
+
#
|
|
161
173
|
# @param accept_user_submission [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission]
|
|
162
174
|
# The parameters for accepting the user submission. Required if and only if
|
|
163
175
|
# `action` is `accept_user_submission`.
|
|
@@ -208,19 +220,22 @@ module Increase
|
|
|
208
220
|
# Simulate the merchant accepting the chargeback. This will move the dispute to a `won` state.
|
|
209
221
|
ACCEPT_CHARGEBACK = :accept_chargeback
|
|
210
222
|
|
|
223
|
+
# Simulate the merchant accepting the user's pre-arbitration. This will move the dispute to a `won` state.
|
|
224
|
+
ACCEPT_USER_PREARBITRATION = :accept_user_prearbitration
|
|
225
|
+
|
|
211
226
|
# Accept the user's submission and transmit it to the network. This will move the dispute to a `pending_response` state.
|
|
212
227
|
ACCEPT_USER_SUBMISSION = :accept_user_submission
|
|
213
228
|
|
|
214
229
|
# Simulate the merchant declining the user's pre-arbitration. This will move the dispute to a `lost` state.
|
|
215
230
|
DECLINE_USER_PREARBITRATION = :decline_user_prearbitration
|
|
216
231
|
|
|
217
|
-
# Simulate the merchant issuing pre-arbitration. This will move the dispute to a `user_submission_required` state.
|
|
232
|
+
# Simulate the merchant issuing pre-arbitration. Only available for disputes in the fraud or authorization category. This will move the dispute to a `user_submission_required` state.
|
|
218
233
|
RECEIVE_MERCHANT_PREARBITRATION = :receive_merchant_prearbitration
|
|
219
234
|
|
|
220
235
|
# Simulate the dispute being rejected before it is submitted to the network. This will move the dispute to a `rejected` state.
|
|
221
236
|
REJECT = :reject
|
|
222
237
|
|
|
223
|
-
# Simulate the merchant re-presenting the dispute. This will move the dispute to a `user_submission_required` state.
|
|
238
|
+
# Simulate the merchant re-presenting the dispute. Only available for disputes in a consumer or processing error category. This will move the dispute to a `user_submission_required` state.
|
|
224
239
|
REPRESENT = :represent
|
|
225
240
|
|
|
226
241
|
# Simulate further information being requested from the user. This will move the dispute to a `user_submission_required` state.
|
|
@@ -235,7 +250,7 @@ module Increase
|
|
|
235
250
|
# Simulate the user timing out responding to a merchant re-presentment. This will move the dispute to a `lost` state.
|
|
236
251
|
TIME_OUT_REPRESENTMENT = :time_out_representment
|
|
237
252
|
|
|
238
|
-
# Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `
|
|
253
|
+
# Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `won` state.
|
|
239
254
|
TIME_OUT_USER_PREARBITRATION = :time_out_user_prearbitration
|
|
240
255
|
|
|
241
256
|
# @!method self.values
|
|
@@ -249,6 +264,13 @@ module Increase
|
|
|
249
264
|
# `accept_chargeback`.
|
|
250
265
|
end
|
|
251
266
|
|
|
267
|
+
# @see Increase::Models::Simulations::CardDisputeActionParams::Visa#accept_user_prearbitration
|
|
268
|
+
class AcceptUserPrearbitration < Increase::Internal::Type::BaseModel
|
|
269
|
+
# @!method initialize
|
|
270
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
271
|
+
# `action` is `accept_user_prearbitration`.
|
|
272
|
+
end
|
|
273
|
+
|
|
252
274
|
# @see Increase::Models::Simulations::CardDisputeActionParams::Visa#accept_user_submission
|
|
253
275
|
class AcceptUserSubmission < Increase::Internal::Type::BaseModel
|
|
254
276
|
# @!method initialize
|
|
@@ -14,10 +14,61 @@ module Increase
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :wire_drawdown_request_id, String
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute refusal_reason_additional_information
|
|
18
|
+
# Additional information about the refusal that the simulated refusal will have.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :refusal_reason_additional_information, String
|
|
22
|
+
|
|
23
|
+
# @!attribute refusal_reason_code
|
|
24
|
+
# The reason code that the simulated refusal will have.
|
|
25
|
+
#
|
|
26
|
+
# Defaults to `other`.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Increase::Models::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode, nil]
|
|
29
|
+
optional :refusal_reason_code,
|
|
30
|
+
enum: -> { Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode }
|
|
31
|
+
|
|
32
|
+
# @!method initialize(wire_drawdown_request_id:, refusal_reason_additional_information: nil, refusal_reason_code: nil, request_options: {})
|
|
18
33
|
# @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to refuse.
|
|
19
34
|
#
|
|
35
|
+
# @param refusal_reason_additional_information [String]
|
|
36
|
+
# Additional information about the refusal that the simulated refusal will have.
|
|
37
|
+
#
|
|
38
|
+
# @param refusal_reason_code [Symbol, Increase::Models::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode]
|
|
39
|
+
# The reason code that the simulated refusal will have.
|
|
40
|
+
#
|
|
41
|
+
# Defaults to `other`.
|
|
42
|
+
#
|
|
20
43
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
44
|
+
|
|
45
|
+
# The reason code that the simulated refusal will have.
|
|
46
|
+
#
|
|
47
|
+
# Defaults to `other`.
|
|
48
|
+
module RefusalReasonCode
|
|
49
|
+
extend Increase::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
# The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
|
|
52
|
+
INVALID_DEBTOR_ACCOUNT_NUMBER = :invalid_debtor_account_number
|
|
53
|
+
|
|
54
|
+
# The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
|
|
55
|
+
TRANSACTION_FORBIDDEN = :transaction_forbidden
|
|
56
|
+
|
|
57
|
+
# The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
|
|
58
|
+
UNSUCCESSFUL_DIRECT_DEBIT = :unsuccessful_direct_debit
|
|
59
|
+
|
|
60
|
+
# The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
|
|
61
|
+
INCONSISTENT_WITH_END_CUSTOMER = :inconsistent_with_end_customer
|
|
62
|
+
|
|
63
|
+
# The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
|
|
64
|
+
NARRATIVE = :narrative
|
|
65
|
+
|
|
66
|
+
# Some other error or issue has occurred.
|
|
67
|
+
OTHER = :other
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
21
72
|
end
|
|
22
73
|
end
|
|
23
74
|
end
|
|
@@ -315,8 +315,11 @@ module Increase
|
|
|
315
315
|
# Occurs whenever a Loan Offer is updated.
|
|
316
316
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
317
317
|
|
|
318
|
-
# Occurs whenever a Loan Purchase is created.
|
|
319
|
-
|
|
318
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
319
|
+
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
320
|
+
|
|
321
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
322
|
+
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
320
323
|
|
|
321
324
|
# Occurs whenever a Lockbox is created.
|
|
322
325
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
@@ -108,6 +108,13 @@ module Increase
|
|
|
108
108
|
# @return [String, nil]
|
|
109
109
|
required :idempotency_key, String, nil?: true
|
|
110
110
|
|
|
111
|
+
# @!attribute refusal
|
|
112
|
+
# If the debtor refuses the drawdown request, this will contain supplemental
|
|
113
|
+
# details.
|
|
114
|
+
#
|
|
115
|
+
# @return [Increase::Models::WireDrawdownRequest::Refusal, nil]
|
|
116
|
+
required :refusal, -> { Increase::WireDrawdownRequest::Refusal }, nil?: true
|
|
117
|
+
|
|
111
118
|
# @!attribute status
|
|
112
119
|
# The lifecycle status of the drawdown request.
|
|
113
120
|
#
|
|
@@ -142,7 +149,7 @@ module Increase
|
|
|
142
149
|
# @return [String]
|
|
143
150
|
required :unstructured_remittance_information, String
|
|
144
151
|
|
|
145
|
-
# @!method initialize(id:, account_id:, account_number_id:, amount:, created_at:, creditor_address:, creditor_name:, currency:, debtor_account_number:, debtor_address:, debtor_external_account_id:, debtor_name:, debtor_routing_number:, end_to_end_identification:, fulfillment_inbound_wire_transfer_id:, idempotency_key:, status:, submission:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
|
|
152
|
+
# @!method initialize(id:, account_id:, account_number_id:, amount:, created_at:, creditor_address:, creditor_name:, currency:, debtor_account_number:, debtor_address:, debtor_external_account_id:, debtor_name:, debtor_routing_number:, end_to_end_identification:, fulfillment_inbound_wire_transfer_id:, idempotency_key:, refusal:, status:, submission:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
|
|
146
153
|
# Wire drawdown requests enable you to request that someone else send you a wire.
|
|
147
154
|
# Because there is nuance to making sure your counterparty's bank processes these
|
|
148
155
|
# correctly, we ask that you reach out to
|
|
@@ -197,6 +204,10 @@ module Increase
|
|
|
197
204
|
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
198
205
|
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
199
206
|
#
|
|
207
|
+
# @param refusal [Increase::Models::WireDrawdownRequest::Refusal, nil]
|
|
208
|
+
# If the debtor refuses the drawdown request, this will contain supplemental
|
|
209
|
+
# details.
|
|
210
|
+
#
|
|
200
211
|
# @param status [Symbol, Increase::Models::WireDrawdownRequest::Status]
|
|
201
212
|
# The lifecycle status of the drawdown request.
|
|
202
213
|
#
|
|
@@ -334,6 +345,72 @@ module Increase
|
|
|
334
345
|
# @param state [String, nil] The address state.
|
|
335
346
|
end
|
|
336
347
|
|
|
348
|
+
# @see Increase::Models::WireDrawdownRequest#refusal
|
|
349
|
+
class Refusal < Increase::Internal::Type::BaseModel
|
|
350
|
+
# @!attribute refusal_reason_additional_information
|
|
351
|
+
# Additional information about the refusal provided by the debtor bank. This is
|
|
352
|
+
# typically present when the `refusal_reason_code` is `narrative`.
|
|
353
|
+
#
|
|
354
|
+
# @return [String, nil]
|
|
355
|
+
required :refusal_reason_additional_information, String, nil?: true
|
|
356
|
+
|
|
357
|
+
# @!attribute refusal_reason_code
|
|
358
|
+
# The reason the wire drawdown request was refused as provided by the debtor bank.
|
|
359
|
+
#
|
|
360
|
+
# @return [Symbol, Increase::Models::WireDrawdownRequest::Refusal::RefusalReasonCode]
|
|
361
|
+
required :refusal_reason_code, enum: -> { Increase::WireDrawdownRequest::Refusal::RefusalReasonCode }
|
|
362
|
+
|
|
363
|
+
# @!attribute refused_at
|
|
364
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
365
|
+
# the wire drawdown request was refused.
|
|
366
|
+
#
|
|
367
|
+
# @return [Time]
|
|
368
|
+
required :refused_at, Time
|
|
369
|
+
|
|
370
|
+
# @!method initialize(refusal_reason_additional_information:, refusal_reason_code:, refused_at:)
|
|
371
|
+
# If the debtor refuses the drawdown request, this will contain supplemental
|
|
372
|
+
# details.
|
|
373
|
+
#
|
|
374
|
+
# @param refusal_reason_additional_information [String, nil]
|
|
375
|
+
# Additional information about the refusal provided by the debtor bank. This is
|
|
376
|
+
# typically present when the `refusal_reason_code` is `narrative`.
|
|
377
|
+
#
|
|
378
|
+
# @param refusal_reason_code [Symbol, Increase::Models::WireDrawdownRequest::Refusal::RefusalReasonCode]
|
|
379
|
+
# The reason the wire drawdown request was refused as provided by the debtor bank.
|
|
380
|
+
#
|
|
381
|
+
# @param refused_at [Time]
|
|
382
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
383
|
+
# the wire drawdown request was refused.
|
|
384
|
+
|
|
385
|
+
# The reason the wire drawdown request was refused as provided by the debtor bank.
|
|
386
|
+
#
|
|
387
|
+
# @see Increase::Models::WireDrawdownRequest::Refusal#refusal_reason_code
|
|
388
|
+
module RefusalReasonCode
|
|
389
|
+
extend Increase::Internal::Type::Enum
|
|
390
|
+
|
|
391
|
+
# The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
|
|
392
|
+
INVALID_DEBTOR_ACCOUNT_NUMBER = :invalid_debtor_account_number
|
|
393
|
+
|
|
394
|
+
# The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
|
|
395
|
+
TRANSACTION_FORBIDDEN = :transaction_forbidden
|
|
396
|
+
|
|
397
|
+
# The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
|
|
398
|
+
UNSUCCESSFUL_DIRECT_DEBIT = :unsuccessful_direct_debit
|
|
399
|
+
|
|
400
|
+
# The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
|
|
401
|
+
INCONSISTENT_WITH_END_CUSTOMER = :inconsistent_with_end_customer
|
|
402
|
+
|
|
403
|
+
# The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
|
|
404
|
+
NARRATIVE = :narrative
|
|
405
|
+
|
|
406
|
+
# Some other error or issue has occurred.
|
|
407
|
+
OTHER = :other
|
|
408
|
+
|
|
409
|
+
# @!method self.values
|
|
410
|
+
# @return [Array<Symbol>]
|
|
411
|
+
end
|
|
412
|
+
end
|
|
413
|
+
|
|
337
414
|
# The lifecycle status of the drawdown request.
|
|
338
415
|
#
|
|
339
416
|
# @see Increase::Models::WireDrawdownRequest#status
|
|
@@ -3,16 +3,27 @@
|
|
|
3
3
|
module Increase
|
|
4
4
|
module Resources
|
|
5
5
|
class ACHTransfers
|
|
6
|
-
#
|
|
6
|
+
# An ACH Transfer has two primary descriptive fields:
|
|
7
|
+
# [`company_name`](/documentation/api/ach-transfers#create-an-ach-transfer.company_name)
|
|
8
|
+
# and
|
|
9
|
+
# [`individual_name`](/documentation/api/ach-transfers#create-an-ach-transfer.individual_name).
|
|
10
|
+
# You should set both of these, in addition to the required amount and account
|
|
11
|
+
# fields.
|
|
7
12
|
#
|
|
8
13
|
# @overload create(account_id:, amount:, statement_descriptor:, account_number: nil, addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_name: nil, destination_account_holder: nil, external_account_id: nil, funding: nil, individual_id: nil, individual_name: nil, preferred_effective_date: nil, require_approval: nil, routing_number: nil, standard_entry_class_code: nil, request_options: {})
|
|
9
14
|
#
|
|
10
|
-
# @param account_id [String]
|
|
15
|
+
# @param account_id [String]
|
|
16
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
17
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
18
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
19
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
11
20
|
#
|
|
12
21
|
# @param amount [Integer]
|
|
13
22
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
14
|
-
# pushing funds to the
|
|
15
|
-
# transfer pulling funds from the
|
|
23
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
24
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
25
|
+
# into Increase. Debit transfers
|
|
26
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
16
27
|
#
|
|
17
28
|
# @param statement_descriptor [String]
|
|
18
29
|
# A description you choose to give the transfer. This will be saved with the
|
|
@@ -23,9 +34,10 @@ module Increase
|
|
|
23
34
|
# `individual_name` and `company_name` instead of relying on this fallback.
|
|
24
35
|
#
|
|
25
36
|
# @param account_number [String]
|
|
26
|
-
# The receiver's account number. For credit transfers (
|
|
27
|
-
# the account that funds will be sent to. For debit transfers
|
|
28
|
-
# this is the account that funds will be
|
|
37
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
38
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
39
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
40
|
+
# pulled from.
|
|
29
41
|
#
|
|
30
42
|
# @param addenda [Increase::Models::ACHTransferCreateParams::Addenda]
|
|
31
43
|
# Additional information passed through to the receiving bank with the transfer.
|
|
@@ -39,21 +51,26 @@ module Increase
|
|
|
39
51
|
# settlement timing, or returns. Only set this if your recipient has asked for it.
|
|
40
52
|
#
|
|
41
53
|
# @param company_discretionary_data [String]
|
|
42
|
-
# Custom data sent in the company batch header
|
|
43
|
-
# does not affect funds movement,
|
|
44
|
-
#
|
|
54
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
55
|
+
# originator. This value is informational and does not affect funds movement,
|
|
56
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
57
|
+
# storing metadata in your own application instead.
|
|
45
58
|
#
|
|
46
59
|
# @param company_entry_description [String]
|
|
47
|
-
# A short description sent in the company batch header
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
60
|
+
# A short description sent in the company batch header, meant to provide the
|
|
61
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
62
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
63
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
64
|
+
# code and use case. For example, some use cases require constants like
|
|
65
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
52
66
|
#
|
|
53
67
|
# @param company_name [String]
|
|
54
|
-
# The name by which the recipient knows
|
|
55
|
-
#
|
|
56
|
-
#
|
|
68
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
69
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
70
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
71
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
72
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
73
|
+
# back to the `statement_descriptor`.
|
|
57
74
|
#
|
|
58
75
|
# @param destination_account_holder [Symbol, Increase::Models::ACHTransferCreateParams::DestinationAccountHolder]
|
|
59
76
|
# The type of entity that owns the receiver's account.
|
|
@@ -68,12 +85,16 @@ module Increase
|
|
|
68
85
|
# Defaults to `checking`.
|
|
69
86
|
#
|
|
70
87
|
# @param individual_id [String]
|
|
71
|
-
# Your internal identifier for the
|
|
72
|
-
#
|
|
88
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
89
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
90
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
91
|
+
# entry class code, this must include the name of the payer.
|
|
73
92
|
#
|
|
74
93
|
# @param individual_name [String]
|
|
75
|
-
# The name of the transfer recipient. This value is informational and
|
|
76
|
-
# by the recipient's bank.
|
|
94
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
95
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
96
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
97
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
77
98
|
#
|
|
78
99
|
# @param preferred_effective_date [Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate]
|
|
79
100
|
# Configuration for how the effective date of the transfer will be set. This
|
|
@@ -5,7 +5,7 @@ module Increase
|
|
|
5
5
|
class DigitalCardProfiles
|
|
6
6
|
# Create a Digital Card Profile
|
|
7
7
|
#
|
|
8
|
-
# @overload create(app_icon_file_id:, background_image_file_id:, card_description:, description:, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, text_color: nil, request_options: {})
|
|
8
|
+
# @overload create(app_icon_file_id:, background_image_file_id:, card_description:, description:, apple_pay: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, text_color: nil, request_options: {})
|
|
9
9
|
#
|
|
10
10
|
# @param app_icon_file_id [String] The identifier of the File containing the card's icon image.
|
|
11
11
|
#
|
|
@@ -15,6 +15,9 @@ module Increase
|
|
|
15
15
|
#
|
|
16
16
|
# @param description [String] A description you can use to identify the Card Profile.
|
|
17
17
|
#
|
|
18
|
+
# @param apple_pay [Increase::Models::DigitalCardProfileCreateParams::ApplePay]
|
|
19
|
+
# Apple Pay specific settings for the Card Profile.
|
|
20
|
+
#
|
|
18
21
|
# @param contact_email [String] An email address the user can contact to receive support for their card.
|
|
19
22
|
#
|
|
20
23
|
# @param contact_name [String]
|
|
@@ -124,12 +127,16 @@ module Increase
|
|
|
124
127
|
|
|
125
128
|
# Clone a Digital Card Profile
|
|
126
129
|
#
|
|
127
|
-
# @overload clone_(digital_card_profile_id, app_icon_file_id: nil, background_image_file_id: nil, card_description: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, description: nil, text_color: nil, request_options: {})
|
|
130
|
+
# @overload clone_(digital_card_profile_id, app_icon_file_id: nil, apple_pay: nil, background_image_file_id: nil, card_description: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, description: nil, text_color: nil, request_options: {})
|
|
128
131
|
#
|
|
129
132
|
# @param digital_card_profile_id [String] The identifier of the Digital Card Profile to clone.
|
|
130
133
|
#
|
|
131
134
|
# @param app_icon_file_id [String] The identifier of the File containing the card's icon image.
|
|
132
135
|
#
|
|
136
|
+
# @param apple_pay [Increase::Models::DigitalCardProfileCloneParams::ApplePay]
|
|
137
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
138
|
+
# copied from the original Card Profile.
|
|
139
|
+
#
|
|
133
140
|
# @param background_image_file_id [String] The identifier of the File containing the card's front image.
|
|
134
141
|
#
|
|
135
142
|
# @param card_description [String] A user-facing description for the card itself.
|
|
@@ -6,21 +6,31 @@ module Increase
|
|
|
6
6
|
class WireDrawdownRequests
|
|
7
7
|
# Simulates a Wire Drawdown Request being refused by the debtor.
|
|
8
8
|
#
|
|
9
|
-
# @overload refuse(wire_drawdown_request_id, request_options: {})
|
|
9
|
+
# @overload refuse(wire_drawdown_request_id, refusal_reason_additional_information: nil, refusal_reason_code: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to refuse.
|
|
12
12
|
#
|
|
13
|
+
# @param refusal_reason_additional_information [String]
|
|
14
|
+
# Additional information about the refusal that the simulated refusal will have.
|
|
15
|
+
#
|
|
16
|
+
# @param refusal_reason_code [Symbol, Increase::Models::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode]
|
|
17
|
+
# The reason code that the simulated refusal will have.
|
|
18
|
+
#
|
|
19
|
+
# Defaults to `other`.
|
|
20
|
+
#
|
|
13
21
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
22
|
#
|
|
15
23
|
# @return [Increase::Models::WireDrawdownRequest]
|
|
16
24
|
#
|
|
17
25
|
# @see Increase::Models::Simulations::WireDrawdownRequestRefuseParams
|
|
18
26
|
def refuse(wire_drawdown_request_id, params = {})
|
|
27
|
+
parsed, options = Increase::Simulations::WireDrawdownRequestRefuseParams.dump_request(params)
|
|
19
28
|
@client.request(
|
|
20
29
|
method: :post,
|
|
21
30
|
path: ["simulations/wire_drawdown_requests/%1$s/refuse", wire_drawdown_request_id],
|
|
31
|
+
body: parsed,
|
|
22
32
|
model: Increase::WireDrawdownRequest,
|
|
23
|
-
options:
|
|
33
|
+
options: options
|
|
24
34
|
)
|
|
25
35
|
end
|
|
26
36
|
|
data/lib/increase/version.rb
CHANGED
|
@@ -363,7 +363,9 @@ module Increase
|
|
|
363
363
|
#
|
|
364
364
|
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#special-considerations-for-multipart-content
|
|
365
365
|
sig do
|
|
366
|
-
params(body: T.anything).returns(
|
|
366
|
+
params(body: T.anything).returns(
|
|
367
|
+
[String, T.proc.returns(T::Enumerable[String])]
|
|
368
|
+
)
|
|
367
369
|
end
|
|
368
370
|
private def encode_multipart_streaming(body)
|
|
369
371
|
end
|