increase 1.361.0 → 1.363.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/client.rb +0 -16
- 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.rb +38 -23
- data/lib/increase/models/ach_transfer_create_params.rb +73 -42
- data/lib/increase/models/check_transfer.rb +58 -44
- data/lib/increase/models/check_transfer_create_params.rb +35 -21
- data/lib/increase/models/export.rb +12 -1
- data/lib/increase/models/export_create_params.rb +26 -4
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
- data/lib/increase/models/real_time_payments_transfer.rb +21 -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/transaction.rb +3 -3
- data/lib/increase/models/wire_drawdown_request.rb +78 -1
- data/lib/increase/models.rb +3 -20
- data/lib/increase/resources/ach_transfers.rb +43 -22
- data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
- data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -14
- data/rbi/increase/client.rbi +0 -12
- data/rbi/increase/internal/util.rbi +3 -1
- data/rbi/increase/models/ach_transfer.rbi +35 -23
- data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
- data/rbi/increase/models/check_transfer.rbi +72 -54
- data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
- data/rbi/increase/models/export.rbi +15 -3
- data/rbi/increase/models/export_create_params.rbi +27 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
- data/rbi/increase/models/real_time_payments_transfer.rbi +18 -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/transaction.rbi +3 -3
- data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
- data/rbi/increase/models.rbi +3 -22
- data/rbi/increase/resources/ach_transfers.rbi +42 -22
- data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
- data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
- data/sig/increase/client.rbs +0 -8
- data/sig/increase/internal/util.rbs +1 -1
- data/sig/increase/models/ach_transfer.rbs +4 -4
- data/sig/increase/models/check_transfer.rbs +59 -49
- data/sig/increase/models/check_transfer_create_params.rbs +20 -12
- data/sig/increase/models/export.rbs +13 -3
- data/sig/increase/models/export_create_params.rbs +7 -0
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
- data/sig/increase/models/real_time_payments_transfer.rbs +10 -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/transaction.rbs +4 -4
- data/sig/increase/models/wire_drawdown_request.rbs +64 -0
- data/sig/increase/models.rbs +2 -20
- data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
- data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
- metadata +20 -45
- data/lib/increase/models/group.rb +0 -57
- data/lib/increase/models/group_retrieve_params.rb +0 -14
- data/lib/increase/models/oauth_application.rb +0 -111
- data/lib/increase/models/oauth_application_list_params.rb +0 -129
- data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_connection.rb +0 -107
- data/lib/increase/models/oauth_connection_list_params.rb +0 -88
- data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_token.rb +0 -76
- data/lib/increase/models/oauth_token_create_params.rb +0 -85
- data/lib/increase/resources/groups.rb +0 -32
- data/lib/increase/resources/oauth_applications.rb +0 -68
- data/lib/increase/resources/oauth_connections.rb +0 -70
- data/lib/increase/resources/oauth_tokens.rb +0 -54
- data/rbi/increase/models/group.rbi +0 -74
- data/rbi/increase/models/group_retrieve_params.rbi +0 -27
- data/rbi/increase/models/oauth_application.rbi +0 -146
- data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
- data/rbi/increase/models/oauth_application_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_connection.rbi +0 -142
- data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
- data/rbi/increase/models/oauth_connection_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_token.rbi +0 -106
- data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
- data/rbi/increase/resources/groups.rbi +0 -21
- data/rbi/increase/resources/oauth_applications.rbi +0 -50
- data/rbi/increase/resources/oauth_connections.rbi +0 -52
- data/rbi/increase/resources/oauth_tokens.rbi +0 -44
- data/sig/increase/models/group.rbs +0 -36
- data/sig/increase/models/group_retrieve_params.rbs +0 -15
- data/sig/increase/models/oauth_application.rbs +0 -74
- data/sig/increase/models/oauth_application_list_params.rbs +0 -123
- data/sig/increase/models/oauth_application_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_connection.rbs +0 -74
- data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
- data/sig/increase/models/oauth_connection_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_token.rbs +0 -55
- data/sig/increase/models/oauth_token_create_params.rbs +0 -68
- data/sig/increase/resources/groups.rbs +0 -11
- data/sig/increase/resources/oauth_applications.rbs +0 -20
- data/sig/increase/resources/oauth_connections.rbs +0 -20
- data/sig/increase/resources/oauth_tokens.rbs +0 -16
|
@@ -903,23 +903,35 @@ module Increase
|
|
|
903
903
|
end
|
|
904
904
|
attr_writer :created_at
|
|
905
905
|
|
|
906
|
+
# Filter fees by the UTC start date of their fee statement's period, such as
|
|
907
|
+
# `2026-08-01`.
|
|
908
|
+
sig { returns(T.nilable(Date)) }
|
|
909
|
+
attr_accessor :fee_statement_period_start
|
|
910
|
+
|
|
906
911
|
# Details of the fee CSV export. This field will be present when the `category` is
|
|
907
912
|
# equal to `fee_csv`.
|
|
908
913
|
sig do
|
|
909
914
|
params(
|
|
910
|
-
created_at: T.nilable(Increase::Export::FeeCsv::CreatedAt::OrHash)
|
|
915
|
+
created_at: T.nilable(Increase::Export::FeeCsv::CreatedAt::OrHash),
|
|
916
|
+
fee_statement_period_start: T.nilable(Date)
|
|
911
917
|
).returns(T.attached_class)
|
|
912
918
|
end
|
|
913
919
|
def self.new(
|
|
914
920
|
# Filter fees by their created date. The time range must not include any fees on
|
|
915
921
|
# an open fee statement.
|
|
916
|
-
created_at
|
|
922
|
+
created_at:,
|
|
923
|
+
# Filter fees by the UTC start date of their fee statement's period, such as
|
|
924
|
+
# `2026-08-01`.
|
|
925
|
+
fee_statement_period_start:
|
|
917
926
|
)
|
|
918
927
|
end
|
|
919
928
|
|
|
920
929
|
sig do
|
|
921
930
|
override.returns(
|
|
922
|
-
{
|
|
931
|
+
{
|
|
932
|
+
created_at: T.nilable(Increase::Export::FeeCsv::CreatedAt),
|
|
933
|
+
fee_statement_period_start: T.nilable(Date)
|
|
934
|
+
}
|
|
923
935
|
)
|
|
924
936
|
end
|
|
925
937
|
def to_hash
|
|
@@ -709,7 +709,10 @@ module Increase
|
|
|
709
709
|
)
|
|
710
710
|
end
|
|
711
711
|
|
|
712
|
-
# Filter
|
|
712
|
+
# Filter exported Fees by the time they were created. This suits historical
|
|
713
|
+
# exports across many fee statements. To get all of the Fees for a given fee
|
|
714
|
+
# statement period, we recommend using `fee_statement_period_start` instead. The
|
|
715
|
+
# time range must not include any Fees on an open fee statement.
|
|
713
716
|
sig do
|
|
714
717
|
returns(T.nilable(Increase::ExportCreateParams::FeeCsv::CreatedAt))
|
|
715
718
|
end
|
|
@@ -722,6 +725,15 @@ module Increase
|
|
|
722
725
|
end
|
|
723
726
|
attr_writer :created_at
|
|
724
727
|
|
|
728
|
+
# Filter exported Fees to the fee statements whose period starts on this UTC date,
|
|
729
|
+
# such as `2026-08-01`. Use this filter to export all of the Fees on a fee
|
|
730
|
+
# statement. The matching fee statements must be closed.
|
|
731
|
+
sig { returns(T.nilable(Date)) }
|
|
732
|
+
attr_reader :fee_statement_period_start
|
|
733
|
+
|
|
734
|
+
sig { params(fee_statement_period_start: Date).void }
|
|
735
|
+
attr_writer :fee_statement_period_start
|
|
736
|
+
|
|
725
737
|
# Filter exported Fees to the specified Program.
|
|
726
738
|
sig { returns(T.nilable(String)) }
|
|
727
739
|
attr_reader :program_id
|
|
@@ -733,12 +745,20 @@ module Increase
|
|
|
733
745
|
sig do
|
|
734
746
|
params(
|
|
735
747
|
created_at: Increase::ExportCreateParams::FeeCsv::CreatedAt::OrHash,
|
|
748
|
+
fee_statement_period_start: Date,
|
|
736
749
|
program_id: String
|
|
737
750
|
).returns(T.attached_class)
|
|
738
751
|
end
|
|
739
752
|
def self.new(
|
|
740
|
-
# Filter
|
|
753
|
+
# Filter exported Fees by the time they were created. This suits historical
|
|
754
|
+
# exports across many fee statements. To get all of the Fees for a given fee
|
|
755
|
+
# statement period, we recommend using `fee_statement_period_start` instead. The
|
|
756
|
+
# time range must not include any Fees on an open fee statement.
|
|
741
757
|
created_at: nil,
|
|
758
|
+
# Filter exported Fees to the fee statements whose period starts on this UTC date,
|
|
759
|
+
# such as `2026-08-01`. Use this filter to export all of the Fees on a fee
|
|
760
|
+
# statement. The matching fee statements must be closed.
|
|
761
|
+
fee_statement_period_start: nil,
|
|
742
762
|
# Filter exported Fees to the specified Program.
|
|
743
763
|
program_id: nil
|
|
744
764
|
)
|
|
@@ -748,6 +768,7 @@ module Increase
|
|
|
748
768
|
override.returns(
|
|
749
769
|
{
|
|
750
770
|
created_at: Increase::ExportCreateParams::FeeCsv::CreatedAt,
|
|
771
|
+
fee_statement_period_start: Date,
|
|
751
772
|
program_id: String
|
|
752
773
|
}
|
|
753
774
|
)
|
|
@@ -796,7 +817,10 @@ module Increase
|
|
|
796
817
|
sig { params(on_or_before: Time).void }
|
|
797
818
|
attr_writer :on_or_before
|
|
798
819
|
|
|
799
|
-
# Filter
|
|
820
|
+
# Filter exported Fees by the time they were created. This suits historical
|
|
821
|
+
# exports across many fee statements. To get all of the Fees for a given fee
|
|
822
|
+
# statement period, we recommend using `fee_statement_period_start` instead. The
|
|
823
|
+
# time range must not include any Fees on an open fee statement.
|
|
800
824
|
sig do
|
|
801
825
|
params(
|
|
802
826
|
after: Time,
|
|
@@ -95,6 +95,10 @@ module Increase
|
|
|
95
95
|
sig { returns(T.nilable(String)) }
|
|
96
96
|
attr_accessor :end_to_end_identification
|
|
97
97
|
|
|
98
|
+
# The identifier of the Real-Time Payments Transfer this transfer returns, if any.
|
|
99
|
+
sig { returns(T.nilable(String)) }
|
|
100
|
+
attr_accessor :return_of_real_time_payments_transfer_id
|
|
101
|
+
|
|
98
102
|
# The lifecycle status of the transfer.
|
|
99
103
|
sig do
|
|
100
104
|
returns(Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol)
|
|
@@ -140,6 +144,7 @@ module Increase
|
|
|
140
144
|
Increase::InboundRealTimePaymentsTransfer::Decline::OrHash
|
|
141
145
|
),
|
|
142
146
|
end_to_end_identification: T.nilable(String),
|
|
147
|
+
return_of_real_time_payments_transfer_id: T.nilable(String),
|
|
143
148
|
status: Increase::InboundRealTimePaymentsTransfer::Status::OrSymbol,
|
|
144
149
|
transaction_identification: String,
|
|
145
150
|
type: Increase::InboundRealTimePaymentsTransfer::Type::OrSymbol,
|
|
@@ -175,6 +180,8 @@ module Increase
|
|
|
175
180
|
decline:,
|
|
176
181
|
# A free-form reference string set by the sender, to help identify the transfer.
|
|
177
182
|
end_to_end_identification:,
|
|
183
|
+
# The identifier of the Real-Time Payments Transfer this transfer returns, if any.
|
|
184
|
+
return_of_real_time_payments_transfer_id:,
|
|
178
185
|
# The lifecycle status of the transfer.
|
|
179
186
|
status:,
|
|
180
187
|
# The Real-Time Payments network identification of the transfer.
|
|
@@ -208,6 +215,7 @@ module Increase
|
|
|
208
215
|
decline:
|
|
209
216
|
T.nilable(Increase::InboundRealTimePaymentsTransfer::Decline),
|
|
210
217
|
end_to_end_identification: T.nilable(String),
|
|
218
|
+
return_of_real_time_payments_transfer_id: T.nilable(String),
|
|
211
219
|
status:
|
|
212
220
|
Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol,
|
|
213
221
|
transaction_identification: String,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class InboundRealTimePaymentsTransferReturnParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::InboundRealTimePaymentsTransferReturnParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Inbound Real-Time Payments Transfer to return to its
|
|
18
|
+
# sender.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :inbound_real_time_payments_transfer_id
|
|
21
|
+
|
|
22
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
23
|
+
# Real-Time Payments Transfer, and can't be higher than it.
|
|
24
|
+
sig { returns(T.nilable(Integer)) }
|
|
25
|
+
attr_reader :amount
|
|
26
|
+
|
|
27
|
+
sig { params(amount: Integer).void }
|
|
28
|
+
attr_writer :amount
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
inbound_real_time_payments_transfer_id: String,
|
|
33
|
+
amount: Integer,
|
|
34
|
+
request_options: Increase::RequestOptions::OrHash
|
|
35
|
+
).returns(T.attached_class)
|
|
36
|
+
end
|
|
37
|
+
def self.new(
|
|
38
|
+
# The identifier of the Inbound Real-Time Payments Transfer to return to its
|
|
39
|
+
# sender.
|
|
40
|
+
inbound_real_time_payments_transfer_id:,
|
|
41
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
42
|
+
# Real-Time Payments Transfer, and can't be higher than it.
|
|
43
|
+
amount: nil,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
sig do
|
|
49
|
+
override.returns(
|
|
50
|
+
{
|
|
51
|
+
inbound_real_time_payments_transfer_id: String,
|
|
52
|
+
amount: Integer,
|
|
53
|
+
request_options: Increase::RequestOptions
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def to_hash
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -103,6 +103,10 @@ module Increase
|
|
|
103
103
|
sig { returns(T.nilable(String)) }
|
|
104
104
|
attr_accessor :debtor_name
|
|
105
105
|
|
|
106
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
107
|
+
sig { returns(T.nilable(String)) }
|
|
108
|
+
attr_accessor :end_to_end_identification
|
|
109
|
+
|
|
106
110
|
# The identifier of the External Account the transfer was made to, if any.
|
|
107
111
|
sig { returns(T.nilable(String)) }
|
|
108
112
|
attr_accessor :external_account_id
|
|
@@ -138,6 +142,11 @@ module Increase
|
|
|
138
142
|
end
|
|
139
143
|
attr_writer :rejection
|
|
140
144
|
|
|
145
|
+
# The identifier of the Inbound Real-Time Payments Transfer this transfer returns,
|
|
146
|
+
# if any.
|
|
147
|
+
sig { returns(T.nilable(String)) }
|
|
148
|
+
attr_accessor :return_of_inbound_real_time_payments_transfer_id
|
|
149
|
+
|
|
141
150
|
# The destination American Bankers' Association (ABA) Routing Transit Number
|
|
142
151
|
# (RTN).
|
|
143
152
|
sig { returns(String) }
|
|
@@ -209,12 +218,14 @@ module Increase
|
|
|
209
218
|
creditor_name: String,
|
|
210
219
|
currency: Increase::RealTimePaymentsTransfer::Currency::OrSymbol,
|
|
211
220
|
debtor_name: T.nilable(String),
|
|
221
|
+
end_to_end_identification: T.nilable(String),
|
|
212
222
|
external_account_id: T.nilable(String),
|
|
213
223
|
idempotency_key: T.nilable(String),
|
|
214
224
|
inbound_real_time_payments_request_for_payment_id: T.nilable(String),
|
|
215
225
|
pending_transaction_id: T.nilable(String),
|
|
216
226
|
rejection:
|
|
217
227
|
T.nilable(Increase::RealTimePaymentsTransfer::Rejection::OrHash),
|
|
228
|
+
return_of_inbound_real_time_payments_transfer_id: T.nilable(String),
|
|
218
229
|
routing_number: String,
|
|
219
230
|
source_account_number_id: String,
|
|
220
231
|
status: Increase::RealTimePaymentsTransfer::Status::OrSymbol,
|
|
@@ -259,6 +270,8 @@ module Increase
|
|
|
259
270
|
# The name of the transfer's sender. If not provided, defaults to the name of the
|
|
260
271
|
# account's entity.
|
|
261
272
|
debtor_name:,
|
|
273
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
274
|
+
end_to_end_identification:,
|
|
262
275
|
# The identifier of the External Account the transfer was made to, if any.
|
|
263
276
|
external_account_id:,
|
|
264
277
|
# The idempotency key you chose for this object. This value is unique across
|
|
@@ -276,6 +289,9 @@ module Increase
|
|
|
276
289
|
# If the transfer is rejected by Real-Time Payments or the destination financial
|
|
277
290
|
# institution, this will contain supplemental details.
|
|
278
291
|
rejection:,
|
|
292
|
+
# The identifier of the Inbound Real-Time Payments Transfer this transfer returns,
|
|
293
|
+
# if any.
|
|
294
|
+
return_of_inbound_real_time_payments_transfer_id:,
|
|
279
295
|
# The destination American Bankers' Association (ABA) Routing Transit Number
|
|
280
296
|
# (RTN).
|
|
281
297
|
routing_number:,
|
|
@@ -321,12 +337,14 @@ module Increase
|
|
|
321
337
|
currency:
|
|
322
338
|
Increase::RealTimePaymentsTransfer::Currency::TaggedSymbol,
|
|
323
339
|
debtor_name: T.nilable(String),
|
|
340
|
+
end_to_end_identification: T.nilable(String),
|
|
324
341
|
external_account_id: T.nilable(String),
|
|
325
342
|
idempotency_key: T.nilable(String),
|
|
326
343
|
inbound_real_time_payments_request_for_payment_id:
|
|
327
344
|
T.nilable(String),
|
|
328
345
|
pending_transaction_id: T.nilable(String),
|
|
329
346
|
rejection: T.nilable(Increase::RealTimePaymentsTransfer::Rejection),
|
|
347
|
+
return_of_inbound_real_time_payments_transfer_id: T.nilable(String),
|
|
330
348
|
routing_number: String,
|
|
331
349
|
source_account_number_id: String,
|
|
332
350
|
status: Increase::RealTimePaymentsTransfer::Status::TaggedSymbol,
|
|
@@ -149,6 +149,25 @@ module Increase
|
|
|
149
149
|
end
|
|
150
150
|
attr_writer :accept_chargeback
|
|
151
151
|
|
|
152
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
153
|
+
# `action` is `accept_user_prearbitration`.
|
|
154
|
+
sig do
|
|
155
|
+
returns(
|
|
156
|
+
T.nilable(
|
|
157
|
+
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration
|
|
158
|
+
)
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
attr_reader :accept_user_prearbitration
|
|
162
|
+
|
|
163
|
+
sig do
|
|
164
|
+
params(
|
|
165
|
+
accept_user_prearbitration:
|
|
166
|
+
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration::OrHash
|
|
167
|
+
).void
|
|
168
|
+
end
|
|
169
|
+
attr_writer :accept_user_prearbitration
|
|
170
|
+
|
|
152
171
|
# The parameters for accepting the user submission. Required if and only if
|
|
153
172
|
# `action` is `accept_user_submission`.
|
|
154
173
|
sig do
|
|
@@ -347,6 +366,8 @@ module Increase
|
|
|
347
366
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::OrSymbol,
|
|
348
367
|
accept_chargeback:
|
|
349
368
|
Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback::OrHash,
|
|
369
|
+
accept_user_prearbitration:
|
|
370
|
+
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration::OrHash,
|
|
350
371
|
accept_user_submission:
|
|
351
372
|
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission::OrHash,
|
|
352
373
|
decline_user_prearbitration:
|
|
@@ -376,6 +397,9 @@ module Increase
|
|
|
376
397
|
# The parameters for accepting the chargeback. Required if and only if `action` is
|
|
377
398
|
# `accept_chargeback`.
|
|
378
399
|
accept_chargeback: nil,
|
|
400
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
401
|
+
# `action` is `accept_user_prearbitration`.
|
|
402
|
+
accept_user_prearbitration: nil,
|
|
379
403
|
# The parameters for accepting the user submission. Required if and only if
|
|
380
404
|
# `action` is `accept_user_submission`.
|
|
381
405
|
accept_user_submission: nil,
|
|
@@ -416,6 +440,8 @@ module Increase
|
|
|
416
440
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::OrSymbol,
|
|
417
441
|
accept_chargeback:
|
|
418
442
|
Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback,
|
|
443
|
+
accept_user_prearbitration:
|
|
444
|
+
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration,
|
|
419
445
|
accept_user_submission:
|
|
420
446
|
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission,
|
|
421
447
|
decline_user_prearbitration:
|
|
@@ -463,6 +489,13 @@ module Increase
|
|
|
463
489
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::TaggedSymbol
|
|
464
490
|
)
|
|
465
491
|
|
|
492
|
+
# Simulate the merchant accepting the user's pre-arbitration. This will move the dispute to a `won` state.
|
|
493
|
+
ACCEPT_USER_PREARBITRATION =
|
|
494
|
+
T.let(
|
|
495
|
+
:accept_user_prearbitration,
|
|
496
|
+
Increase::Simulations::CardDisputeActionParams::Visa::Action::TaggedSymbol
|
|
497
|
+
)
|
|
498
|
+
|
|
466
499
|
# Accept the user's submission and transmit it to the network. This will move the dispute to a `pending_response` state.
|
|
467
500
|
ACCEPT_USER_SUBMISSION =
|
|
468
501
|
T.let(
|
|
@@ -477,7 +510,7 @@ module Increase
|
|
|
477
510
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::TaggedSymbol
|
|
478
511
|
)
|
|
479
512
|
|
|
480
|
-
# Simulate the merchant issuing pre-arbitration. This will move the dispute to a `user_submission_required` state.
|
|
513
|
+
# 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.
|
|
481
514
|
RECEIVE_MERCHANT_PREARBITRATION =
|
|
482
515
|
T.let(
|
|
483
516
|
:receive_merchant_prearbitration,
|
|
@@ -491,7 +524,7 @@ module Increase
|
|
|
491
524
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::TaggedSymbol
|
|
492
525
|
)
|
|
493
526
|
|
|
494
|
-
# Simulate the merchant re-presenting the dispute. This will move the dispute to a `user_submission_required` state.
|
|
527
|
+
# 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.
|
|
495
528
|
REPRESENT =
|
|
496
529
|
T.let(
|
|
497
530
|
:represent,
|
|
@@ -526,7 +559,7 @@ module Increase
|
|
|
526
559
|
Increase::Simulations::CardDisputeActionParams::Visa::Action::TaggedSymbol
|
|
527
560
|
)
|
|
528
561
|
|
|
529
|
-
# Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `
|
|
562
|
+
# Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `won` state.
|
|
530
563
|
TIME_OUT_USER_PREARBITRATION =
|
|
531
564
|
T.let(
|
|
532
565
|
:time_out_user_prearbitration,
|
|
@@ -564,6 +597,26 @@ module Increase
|
|
|
564
597
|
end
|
|
565
598
|
end
|
|
566
599
|
|
|
600
|
+
class AcceptUserPrearbitration < Increase::Internal::Type::BaseModel
|
|
601
|
+
OrHash =
|
|
602
|
+
T.type_alias do
|
|
603
|
+
T.any(
|
|
604
|
+
Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration,
|
|
605
|
+
Increase::Internal::AnyHash
|
|
606
|
+
)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# The parameters for accepting the user prearbitration. Required if and only if
|
|
610
|
+
# `action` is `accept_user_prearbitration`.
|
|
611
|
+
sig { returns(T.attached_class) }
|
|
612
|
+
def self.new
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
sig { override.returns({}) }
|
|
616
|
+
def to_hash
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
567
620
|
class AcceptUserSubmission < Increase::Internal::Type::BaseModel
|
|
568
621
|
OrHash =
|
|
569
622
|
T.type_alias do
|
|
@@ -19,15 +19,51 @@ module Increase
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :wire_drawdown_request_id
|
|
21
21
|
|
|
22
|
+
# Additional information about the refusal that the simulated refusal will have.
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :refusal_reason_additional_information
|
|
25
|
+
|
|
26
|
+
sig { params(refusal_reason_additional_information: String).void }
|
|
27
|
+
attr_writer :refusal_reason_additional_information
|
|
28
|
+
|
|
29
|
+
# The reason code that the simulated refusal will have.
|
|
30
|
+
#
|
|
31
|
+
# Defaults to `other`.
|
|
32
|
+
sig do
|
|
33
|
+
returns(
|
|
34
|
+
T.nilable(
|
|
35
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::OrSymbol
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
attr_reader :refusal_reason_code
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
refusal_reason_code:
|
|
44
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::OrSymbol
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :refusal_reason_code
|
|
48
|
+
|
|
22
49
|
sig do
|
|
23
50
|
params(
|
|
24
51
|
wire_drawdown_request_id: String,
|
|
52
|
+
refusal_reason_additional_information: String,
|
|
53
|
+
refusal_reason_code:
|
|
54
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::OrSymbol,
|
|
25
55
|
request_options: Increase::RequestOptions::OrHash
|
|
26
56
|
).returns(T.attached_class)
|
|
27
57
|
end
|
|
28
58
|
def self.new(
|
|
29
59
|
# The identifier of the Wire Drawdown Request you wish to refuse.
|
|
30
60
|
wire_drawdown_request_id:,
|
|
61
|
+
# Additional information about the refusal that the simulated refusal will have.
|
|
62
|
+
refusal_reason_additional_information: nil,
|
|
63
|
+
# The reason code that the simulated refusal will have.
|
|
64
|
+
#
|
|
65
|
+
# Defaults to `other`.
|
|
66
|
+
refusal_reason_code: nil,
|
|
31
67
|
request_options: {}
|
|
32
68
|
)
|
|
33
69
|
end
|
|
@@ -36,12 +72,83 @@ module Increase
|
|
|
36
72
|
override.returns(
|
|
37
73
|
{
|
|
38
74
|
wire_drawdown_request_id: String,
|
|
75
|
+
refusal_reason_additional_information: String,
|
|
76
|
+
refusal_reason_code:
|
|
77
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::OrSymbol,
|
|
39
78
|
request_options: Increase::RequestOptions
|
|
40
79
|
}
|
|
41
80
|
)
|
|
42
81
|
end
|
|
43
82
|
def to_hash
|
|
44
83
|
end
|
|
84
|
+
|
|
85
|
+
# The reason code that the simulated refusal will have.
|
|
86
|
+
#
|
|
87
|
+
# Defaults to `other`.
|
|
88
|
+
module RefusalReasonCode
|
|
89
|
+
extend Increase::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
TaggedSymbol =
|
|
92
|
+
T.type_alias do
|
|
93
|
+
T.all(
|
|
94
|
+
Symbol,
|
|
95
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
99
|
+
|
|
100
|
+
# The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
|
|
101
|
+
INVALID_DEBTOR_ACCOUNT_NUMBER =
|
|
102
|
+
T.let(
|
|
103
|
+
:invalid_debtor_account_number,
|
|
104
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
# The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
|
|
108
|
+
TRANSACTION_FORBIDDEN =
|
|
109
|
+
T.let(
|
|
110
|
+
:transaction_forbidden,
|
|
111
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
# The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
|
|
115
|
+
UNSUCCESSFUL_DIRECT_DEBIT =
|
|
116
|
+
T.let(
|
|
117
|
+
:unsuccessful_direct_debit,
|
|
118
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
# The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
|
|
122
|
+
INCONSISTENT_WITH_END_CUSTOMER =
|
|
123
|
+
T.let(
|
|
124
|
+
:inconsistent_with_end_customer,
|
|
125
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
# The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
|
|
129
|
+
NARRATIVE =
|
|
130
|
+
T.let(
|
|
131
|
+
:narrative,
|
|
132
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
# Some other error or issue has occurred.
|
|
136
|
+
OTHER =
|
|
137
|
+
T.let(
|
|
138
|
+
:other,
|
|
139
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
override.returns(
|
|
144
|
+
T::Array[
|
|
145
|
+
Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::TaggedSymbol
|
|
146
|
+
]
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
def self.values
|
|
150
|
+
end
|
|
151
|
+
end
|
|
45
152
|
end
|
|
46
153
|
end
|
|
47
154
|
end
|
|
@@ -2010,7 +2010,7 @@ module Increase
|
|
|
2010
2010
|
attr_accessor :routing_number
|
|
2011
2011
|
|
|
2012
2012
|
# A description set when the ACH Transfer was created.
|
|
2013
|
-
sig { returns(String) }
|
|
2013
|
+
sig { returns(T.nilable(String)) }
|
|
2014
2014
|
attr_accessor :statement_descriptor
|
|
2015
2015
|
|
|
2016
2016
|
# The identifier of the ACH Transfer that led to this Transaction.
|
|
@@ -2026,7 +2026,7 @@ module Increase
|
|
|
2026
2026
|
account_number: String,
|
|
2027
2027
|
amount: Integer,
|
|
2028
2028
|
routing_number: String,
|
|
2029
|
-
statement_descriptor: String,
|
|
2029
|
+
statement_descriptor: T.nilable(String),
|
|
2030
2030
|
transfer_id: String
|
|
2031
2031
|
).returns(T.attached_class)
|
|
2032
2032
|
end
|
|
@@ -2052,7 +2052,7 @@ module Increase
|
|
|
2052
2052
|
account_number: String,
|
|
2053
2053
|
amount: Integer,
|
|
2054
2054
|
routing_number: String,
|
|
2055
|
-
statement_descriptor: String,
|
|
2055
|
+
statement_descriptor: T.nilable(String),
|
|
2056
2056
|
transfer_id: String
|
|
2057
2057
|
}
|
|
2058
2058
|
)
|