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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +0 -16
  4. data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
  5. data/lib/increase/internal/util.rb +22 -17
  6. data/lib/increase/models/ach_transfer.rb +38 -23
  7. data/lib/increase/models/ach_transfer_create_params.rb +73 -42
  8. data/lib/increase/models/check_transfer.rb +58 -44
  9. data/lib/increase/models/check_transfer_create_params.rb +35 -21
  10. data/lib/increase/models/export.rb +12 -1
  11. data/lib/increase/models/export_create_params.rb +26 -4
  12. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  13. data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
  14. data/lib/increase/models/real_time_payments_transfer.rb +21 -1
  15. data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
  16. data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
  17. data/lib/increase/models/transaction.rb +3 -3
  18. data/lib/increase/models/wire_drawdown_request.rb +78 -1
  19. data/lib/increase/models.rb +3 -20
  20. data/lib/increase/resources/ach_transfers.rb +43 -22
  21. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
  22. data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
  23. data/lib/increase/version.rb +1 -1
  24. data/lib/increase.rb +1 -14
  25. data/rbi/increase/client.rbi +0 -12
  26. data/rbi/increase/internal/util.rbi +3 -1
  27. data/rbi/increase/models/ach_transfer.rbi +35 -23
  28. data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
  29. data/rbi/increase/models/check_transfer.rbi +72 -54
  30. data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
  31. data/rbi/increase/models/export.rbi +15 -3
  32. data/rbi/increase/models/export_create_params.rbi +27 -3
  33. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  34. data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
  35. data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
  36. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
  37. data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
  38. data/rbi/increase/models/transaction.rbi +3 -3
  39. data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
  40. data/rbi/increase/models.rbi +3 -22
  41. data/rbi/increase/resources/ach_transfers.rbi +42 -22
  42. data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
  43. data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
  44. data/sig/increase/client.rbs +0 -8
  45. data/sig/increase/internal/util.rbs +1 -1
  46. data/sig/increase/models/ach_transfer.rbs +4 -4
  47. data/sig/increase/models/check_transfer.rbs +59 -49
  48. data/sig/increase/models/check_transfer_create_params.rbs +20 -12
  49. data/sig/increase/models/export.rbs +13 -3
  50. data/sig/increase/models/export_create_params.rbs +7 -0
  51. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  52. data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
  53. data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
  54. data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
  55. data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
  56. data/sig/increase/models/transaction.rbs +4 -4
  57. data/sig/increase/models/wire_drawdown_request.rbs +64 -0
  58. data/sig/increase/models.rbs +2 -20
  59. data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
  60. data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
  61. metadata +20 -45
  62. data/lib/increase/models/group.rb +0 -57
  63. data/lib/increase/models/group_retrieve_params.rb +0 -14
  64. data/lib/increase/models/oauth_application.rb +0 -111
  65. data/lib/increase/models/oauth_application_list_params.rb +0 -129
  66. data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
  67. data/lib/increase/models/oauth_connection.rb +0 -107
  68. data/lib/increase/models/oauth_connection_list_params.rb +0 -88
  69. data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
  70. data/lib/increase/models/oauth_token.rb +0 -76
  71. data/lib/increase/models/oauth_token_create_params.rb +0 -85
  72. data/lib/increase/resources/groups.rb +0 -32
  73. data/lib/increase/resources/oauth_applications.rb +0 -68
  74. data/lib/increase/resources/oauth_connections.rb +0 -70
  75. data/lib/increase/resources/oauth_tokens.rb +0 -54
  76. data/rbi/increase/models/group.rbi +0 -74
  77. data/rbi/increase/models/group_retrieve_params.rbi +0 -27
  78. data/rbi/increase/models/oauth_application.rbi +0 -146
  79. data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
  80. data/rbi/increase/models/oauth_application_retrieve_params.rbi +0 -46
  81. data/rbi/increase/models/oauth_connection.rbi +0 -142
  82. data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
  83. data/rbi/increase/models/oauth_connection_retrieve_params.rbi +0 -46
  84. data/rbi/increase/models/oauth_token.rbi +0 -106
  85. data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
  86. data/rbi/increase/resources/groups.rbi +0 -21
  87. data/rbi/increase/resources/oauth_applications.rbi +0 -50
  88. data/rbi/increase/resources/oauth_connections.rbi +0 -52
  89. data/rbi/increase/resources/oauth_tokens.rbi +0 -44
  90. data/sig/increase/models/group.rbs +0 -36
  91. data/sig/increase/models/group_retrieve_params.rbs +0 -15
  92. data/sig/increase/models/oauth_application.rbs +0 -74
  93. data/sig/increase/models/oauth_application_list_params.rbs +0 -123
  94. data/sig/increase/models/oauth_application_retrieve_params.rbs +0 -24
  95. data/sig/increase/models/oauth_connection.rbs +0 -74
  96. data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
  97. data/sig/increase/models/oauth_connection_retrieve_params.rbs +0 -24
  98. data/sig/increase/models/oauth_token.rbs +0 -55
  99. data/sig/increase/models/oauth_token_create_params.rbs +0 -68
  100. data/sig/increase/resources/groups.rbs +0 -11
  101. data/sig/increase/resources/oauth_applications.rbs +0 -20
  102. data/sig/increase/resources/oauth_connections.rbs +0 -20
  103. data/sig/increase/resources/oauth_tokens.rbs +0 -16
@@ -117,8 +117,8 @@ module Increase
117
117
  {
118
118
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
119
119
  memo: String,
120
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
120
121
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
121
- recipient_name: String,
122
122
  attachment_file_id: String,
123
123
  check_voucher_image_file_id: String,
124
124
  note: String,
@@ -134,9 +134,9 @@ module Increase
134
134
 
135
135
  attr_accessor memo: String
136
136
 
137
- attr_accessor payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
137
+ attr_accessor payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee]
138
138
 
139
- attr_accessor recipient_name: String
139
+ attr_accessor payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
140
140
 
141
141
  attr_reader attachment_file_id: String?
142
142
 
@@ -179,8 +179,8 @@ module Increase
179
179
  def initialize: (
180
180
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
181
181
  memo: String,
182
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
182
183
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
183
- recipient_name: String,
184
184
  ?attachment_file_id: String,
185
185
  ?check_voucher_image_file_id: String,
186
186
  ?note: String,
@@ -194,8 +194,8 @@ module Increase
194
194
  def to_hash: -> {
195
195
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
196
196
  memo: String,
197
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
197
198
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
198
- recipient_name: String,
199
199
  attachment_file_id: String,
200
200
  check_voucher_image_file_id: String,
201
201
  note: String,
@@ -210,10 +210,10 @@ module Increase
210
210
  {
211
211
  city: String,
212
212
  :line1 => String,
213
+ name: String,
213
214
  postal_code: String,
214
215
  state: String,
215
216
  :line2 => String,
216
- name: String,
217
217
  phone: String
218
218
  }
219
219
 
@@ -222,6 +222,8 @@ module Increase
222
222
 
223
223
  attr_accessor line1: String
224
224
 
225
+ attr_accessor name: String
226
+
225
227
  attr_accessor postal_code: String
226
228
 
227
229
  attr_accessor state: String
@@ -230,10 +232,6 @@ module Increase
230
232
 
231
233
  def line2=: (String) -> String
232
234
 
233
- attr_reader name: String?
234
-
235
- def name=: (String) -> String
236
-
237
235
  attr_reader phone: String?
238
236
 
239
237
  def phone=: (String) -> String
@@ -241,24 +239,34 @@ module Increase
241
239
  def initialize: (
242
240
  city: String,
243
241
  line1: String,
242
+ name: String,
244
243
  postal_code: String,
245
244
  state: String,
246
245
  ?line2: String,
247
- ?name: String,
248
246
  ?phone: String
249
247
  ) -> void
250
248
 
251
249
  def to_hash: -> {
252
250
  city: String,
253
251
  :line1 => String,
252
+ name: String,
254
253
  postal_code: String,
255
254
  state: String,
256
255
  :line2 => String,
257
- name: String,
258
256
  phone: String
259
257
  }
260
258
  end
261
259
 
260
+ type payee = { contents: String }
261
+
262
+ class Payee < Increase::Internal::Type::BaseModel
263
+ attr_accessor contents: String
264
+
265
+ def initialize: (contents: String) -> void
266
+
267
+ def to_hash: -> { contents: String }
268
+ end
269
+
262
270
  type payer = { contents: String }
263
271
 
264
272
  class Payer < Increase::Internal::Type::BaseModel
@@ -363,16 +363,26 @@ module Increase
363
363
  def to_hash: -> { }
364
364
  end
365
365
 
366
- type fee_csv = { created_at: Increase::Export::FeeCsv::CreatedAt? }
366
+ type fee_csv =
367
+ {
368
+ created_at: Increase::Export::FeeCsv::CreatedAt?,
369
+ fee_statement_period_start: Date?
370
+ }
367
371
 
368
372
  class FeeCsv < Increase::Internal::Type::BaseModel
369
373
  attr_accessor created_at: Increase::Export::FeeCsv::CreatedAt?
370
374
 
375
+ attr_accessor fee_statement_period_start: Date?
376
+
371
377
  def initialize: (
372
- created_at: Increase::Export::FeeCsv::CreatedAt?
378
+ created_at: Increase::Export::FeeCsv::CreatedAt?,
379
+ fee_statement_period_start: Date?
373
380
  ) -> void
374
381
 
375
- def to_hash: -> { created_at: Increase::Export::FeeCsv::CreatedAt? }
382
+ def to_hash: -> {
383
+ created_at: Increase::Export::FeeCsv::CreatedAt?,
384
+ fee_statement_period_start: Date?
385
+ }
376
386
 
377
387
  type created_at =
378
388
  {
@@ -336,6 +336,7 @@ module Increase
336
336
  type fee_csv =
337
337
  {
338
338
  created_at: Increase::ExportCreateParams::FeeCsv::CreatedAt,
339
+ fee_statement_period_start: Date,
339
340
  program_id: String
340
341
  }
341
342
 
@@ -346,17 +347,23 @@ module Increase
346
347
  Increase::ExportCreateParams::FeeCsv::CreatedAt
347
348
  ) -> Increase::ExportCreateParams::FeeCsv::CreatedAt
348
349
 
350
+ attr_reader fee_statement_period_start: Date?
351
+
352
+ def fee_statement_period_start=: (Date) -> Date
353
+
349
354
  attr_reader program_id: String?
350
355
 
351
356
  def program_id=: (String) -> String
352
357
 
353
358
  def initialize: (
354
359
  ?created_at: Increase::ExportCreateParams::FeeCsv::CreatedAt,
360
+ ?fee_statement_period_start: Date,
355
361
  ?program_id: String
356
362
  ) -> void
357
363
 
358
364
  def to_hash: -> {
359
365
  created_at: Increase::ExportCreateParams::FeeCsv::CreatedAt,
366
+ fee_statement_period_start: Date,
360
367
  program_id: String
361
368
  }
362
369
 
@@ -15,6 +15,7 @@ module Increase
15
15
  debtor_routing_number: String,
16
16
  decline: Increase::InboundRealTimePaymentsTransfer::Decline?,
17
17
  end_to_end_identification: String?,
18
+ return_of_real_time_payments_transfer_id: String?,
18
19
  status: Increase::Models::InboundRealTimePaymentsTransfer::status,
19
20
  transaction_identification: String,
20
21
  type: Increase::Models::InboundRealTimePaymentsTransfer::type_,
@@ -48,6 +49,8 @@ module Increase
48
49
 
49
50
  attr_accessor end_to_end_identification: String?
50
51
 
52
+ attr_accessor return_of_real_time_payments_transfer_id: String?
53
+
51
54
  attr_accessor status: Increase::Models::InboundRealTimePaymentsTransfer::status
52
55
 
53
56
  attr_accessor transaction_identification: String
@@ -70,6 +73,7 @@ module Increase
70
73
  debtor_routing_number: String,
71
74
  decline: Increase::InboundRealTimePaymentsTransfer::Decline?,
72
75
  end_to_end_identification: String?,
76
+ return_of_real_time_payments_transfer_id: String?,
73
77
  status: Increase::Models::InboundRealTimePaymentsTransfer::status,
74
78
  transaction_identification: String,
75
79
  type: Increase::Models::InboundRealTimePaymentsTransfer::type_,
@@ -90,6 +94,7 @@ module Increase
90
94
  debtor_routing_number: String,
91
95
  decline: Increase::InboundRealTimePaymentsTransfer::Decline?,
92
96
  end_to_end_identification: String?,
97
+ return_of_real_time_payments_transfer_id: String?,
93
98
  status: Increase::Models::InboundRealTimePaymentsTransfer::status,
94
99
  transaction_identification: String,
95
100
  type: Increase::Models::InboundRealTimePaymentsTransfer::type_,
@@ -0,0 +1,30 @@
1
+ module Increase
2
+ module Models
3
+ type inbound_real_time_payments_transfer_return_params =
4
+ { inbound_real_time_payments_transfer_id: String, amount: Integer }
5
+ & Increase::Internal::Type::request_parameters
6
+
7
+ class InboundRealTimePaymentsTransferReturnParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ attr_accessor inbound_real_time_payments_transfer_id: String
12
+
13
+ attr_reader amount: Integer?
14
+
15
+ def amount=: (Integer) -> Integer
16
+
17
+ def initialize: (
18
+ inbound_real_time_payments_transfer_id: String,
19
+ ?amount: Integer,
20
+ ?request_options: Increase::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ inbound_real_time_payments_transfer_id: String,
25
+ amount: Integer,
26
+ request_options: Increase::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
@@ -14,11 +14,13 @@ module Increase
14
14
  creditor_name: String,
15
15
  currency: Increase::Models::RealTimePaymentsTransfer::currency,
16
16
  debtor_name: String?,
17
+ end_to_end_identification: String?,
17
18
  external_account_id: String?,
18
19
  idempotency_key: String?,
19
20
  inbound_real_time_payments_request_for_payment_id: String?,
20
21
  pending_transaction_id: String?,
21
22
  rejection: Increase::RealTimePaymentsTransfer::Rejection?,
23
+ return_of_inbound_real_time_payments_transfer_id: String?,
22
24
  routing_number: String,
23
25
  source_account_number_id: String,
24
26
  status: Increase::Models::RealTimePaymentsTransfer::status,
@@ -55,6 +57,8 @@ module Increase
55
57
 
56
58
  attr_accessor debtor_name: String?
57
59
 
60
+ attr_accessor end_to_end_identification: String?
61
+
58
62
  attr_accessor external_account_id: String?
59
63
 
60
64
  attr_accessor idempotency_key: String?
@@ -65,6 +69,8 @@ module Increase
65
69
 
66
70
  attr_accessor rejection: Increase::RealTimePaymentsTransfer::Rejection?
67
71
 
72
+ attr_accessor return_of_inbound_real_time_payments_transfer_id: String?
73
+
68
74
  attr_accessor routing_number: String
69
75
 
70
76
  attr_accessor source_account_number_id: String
@@ -96,11 +102,13 @@ module Increase
96
102
  creditor_name: String,
97
103
  currency: Increase::Models::RealTimePaymentsTransfer::currency,
98
104
  debtor_name: String?,
105
+ end_to_end_identification: String?,
99
106
  external_account_id: String?,
100
107
  idempotency_key: String?,
101
108
  inbound_real_time_payments_request_for_payment_id: String?,
102
109
  pending_transaction_id: String?,
103
110
  rejection: Increase::RealTimePaymentsTransfer::Rejection?,
111
+ return_of_inbound_real_time_payments_transfer_id: String?,
104
112
  routing_number: String,
105
113
  source_account_number_id: String,
106
114
  status: Increase::Models::RealTimePaymentsTransfer::status,
@@ -125,11 +133,13 @@ module Increase
125
133
  creditor_name: String,
126
134
  currency: Increase::Models::RealTimePaymentsTransfer::currency,
127
135
  debtor_name: String?,
136
+ end_to_end_identification: String?,
128
137
  external_account_id: String?,
129
138
  idempotency_key: String?,
130
139
  inbound_real_time_payments_request_for_payment_id: String?,
131
140
  pending_transaction_id: String?,
132
141
  rejection: Increase::RealTimePaymentsTransfer::Rejection?,
142
+ return_of_inbound_real_time_payments_transfer_id: String?,
133
143
  routing_number: String,
134
144
  source_account_number_id: String,
135
145
  status: Increase::Models::RealTimePaymentsTransfer::status,
@@ -52,6 +52,7 @@ module Increase
52
52
  {
53
53
  action: Increase::Models::Simulations::CardDisputeActionParams::Visa::action,
54
54
  accept_chargeback: Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback,
55
+ accept_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration,
55
56
  accept_user_submission: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission,
56
57
  decline_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration,
57
58
  receive_merchant_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration,
@@ -73,6 +74,12 @@ module Increase
73
74
  Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback
74
75
  ) -> Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback
75
76
 
77
+ attr_reader accept_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration?
78
+
79
+ def accept_user_prearbitration=: (
80
+ Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration
81
+ ) -> Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration
82
+
76
83
  attr_reader accept_user_submission: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission?
77
84
 
78
85
  def accept_user_submission=: (
@@ -136,6 +143,7 @@ module Increase
136
143
  def initialize: (
137
144
  action: Increase::Models::Simulations::CardDisputeActionParams::Visa::action,
138
145
  ?accept_chargeback: Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback,
146
+ ?accept_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration,
139
147
  ?accept_user_submission: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission,
140
148
  ?decline_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration,
141
149
  ?receive_merchant_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration,
@@ -151,6 +159,7 @@ module Increase
151
159
  def to_hash: -> {
152
160
  action: Increase::Models::Simulations::CardDisputeActionParams::Visa::action,
153
161
  accept_chargeback: Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback,
162
+ accept_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserPrearbitration,
154
163
  accept_user_submission: Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission,
155
164
  decline_user_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration,
156
165
  receive_merchant_prearbitration: Increase::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration,
@@ -165,6 +174,7 @@ module Increase
165
174
 
166
175
  type action =
167
176
  :accept_chargeback
177
+ | :accept_user_prearbitration
168
178
  | :accept_user_submission
169
179
  | :decline_user_prearbitration
170
180
  | :receive_merchant_prearbitration
@@ -182,19 +192,22 @@ module Increase
182
192
  # Simulate the merchant accepting the chargeback. This will move the dispute to a `won` state.
183
193
  ACCEPT_CHARGEBACK: :accept_chargeback
184
194
 
195
+ # Simulate the merchant accepting the user's pre-arbitration. This will move the dispute to a `won` state.
196
+ ACCEPT_USER_PREARBITRATION: :accept_user_prearbitration
197
+
185
198
  # Accept the user's submission and transmit it to the network. This will move the dispute to a `pending_response` state.
186
199
  ACCEPT_USER_SUBMISSION: :accept_user_submission
187
200
 
188
201
  # Simulate the merchant declining the user's pre-arbitration. This will move the dispute to a `lost` state.
189
202
  DECLINE_USER_PREARBITRATION: :decline_user_prearbitration
190
203
 
191
- # Simulate the merchant issuing pre-arbitration. This will move the dispute to a `user_submission_required` state.
204
+ # 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.
192
205
  RECEIVE_MERCHANT_PREARBITRATION: :receive_merchant_prearbitration
193
206
 
194
207
  # Simulate the dispute being rejected before it is submitted to the network. This will move the dispute to a `rejected` state.
195
208
  REJECT: :reject
196
209
 
197
- # Simulate the merchant re-presenting the dispute. This will move the dispute to a `user_submission_required` state.
210
+ # 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.
198
211
  REPRESENT: :represent
199
212
 
200
213
  # Simulate further information being requested from the user. This will move the dispute to a `user_submission_required` state.
@@ -209,7 +222,7 @@ module Increase
209
222
  # Simulate the user timing out responding to a merchant re-presentment. This will move the dispute to a `lost` state.
210
223
  TIME_OUT_REPRESENTMENT: :time_out_representment
211
224
 
212
- # Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `win` state.
225
+ # Simulate the merchant timing out responding to a user pre-arbitration. This will move the dispute to a `won` state.
213
226
  TIME_OUT_USER_PREARBITRATION: :time_out_user_prearbitration
214
227
 
215
228
  def self?.values: -> ::Array[Increase::Models::Simulations::CardDisputeActionParams::Visa::action]
@@ -223,6 +236,14 @@ module Increase
223
236
  def to_hash: -> { }
224
237
  end
225
238
 
239
+ type accept_user_prearbitration = { }
240
+
241
+ class AcceptUserPrearbitration < Increase::Internal::Type::BaseModel
242
+ def initialize: -> void
243
+
244
+ def to_hash: -> { }
245
+ end
246
+
226
247
  type accept_user_submission = { }
227
248
 
228
249
  class AcceptUserSubmission < Increase::Internal::Type::BaseModel
@@ -2,7 +2,11 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type wire_drawdown_request_refuse_params =
5
- { wire_drawdown_request_id: String }
5
+ {
6
+ wire_drawdown_request_id: String,
7
+ refusal_reason_additional_information: String,
8
+ refusal_reason_code: Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code
9
+ }
6
10
  & Increase::Internal::Type::request_parameters
7
11
 
8
12
  class WireDrawdownRequestRefuseParams < Increase::Internal::Type::BaseModel
@@ -11,15 +15,61 @@ module Increase
11
15
 
12
16
  attr_accessor wire_drawdown_request_id: String
13
17
 
18
+ attr_reader refusal_reason_additional_information: String?
19
+
20
+ def refusal_reason_additional_information=: (String) -> String
21
+
22
+ attr_reader refusal_reason_code: Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code?
23
+
24
+ def refusal_reason_code=: (
25
+ Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code
26
+ ) -> Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code
27
+
14
28
  def initialize: (
15
29
  wire_drawdown_request_id: String,
30
+ ?refusal_reason_additional_information: String,
31
+ ?refusal_reason_code: Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code,
16
32
  ?request_options: Increase::request_opts
17
33
  ) -> void
18
34
 
19
35
  def to_hash: -> {
20
36
  wire_drawdown_request_id: String,
37
+ refusal_reason_additional_information: String,
38
+ refusal_reason_code: Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code,
21
39
  request_options: Increase::RequestOptions
22
40
  }
41
+
42
+ type refusal_reason_code =
43
+ :invalid_debtor_account_number
44
+ | :transaction_forbidden
45
+ | :unsuccessful_direct_debit
46
+ | :inconsistent_with_end_customer
47
+ | :narrative
48
+ | :other
49
+
50
+ module RefusalReasonCode
51
+ extend Increase::Internal::Type::Enum
52
+
53
+ # The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
54
+ INVALID_DEBTOR_ACCOUNT_NUMBER: :invalid_debtor_account_number
55
+
56
+ # The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
57
+ TRANSACTION_FORBIDDEN: :transaction_forbidden
58
+
59
+ # The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
60
+ UNSUCCESSFUL_DIRECT_DEBIT: :unsuccessful_direct_debit
61
+
62
+ # The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
63
+ INCONSISTENT_WITH_END_CUSTOMER: :inconsistent_with_end_customer
64
+
65
+ # The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
66
+ NARRATIVE: :narrative
67
+
68
+ # Some other error or issue has occurred.
69
+ OTHER: :other
70
+
71
+ def self?.values: -> ::Array[Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code]
72
+ end
23
73
  end
24
74
  end
25
75
  end
@@ -567,7 +567,7 @@ module Increase
567
567
  account_number: String,
568
568
  amount: Integer,
569
569
  routing_number: String,
570
- statement_descriptor: String,
570
+ statement_descriptor: String?,
571
571
  transfer_id: String
572
572
  }
573
573
 
@@ -578,7 +578,7 @@ module Increase
578
578
 
579
579
  attr_accessor routing_number: String
580
580
 
581
- attr_accessor statement_descriptor: String
581
+ attr_accessor statement_descriptor: String?
582
582
 
583
583
  attr_accessor transfer_id: String
584
584
 
@@ -586,7 +586,7 @@ module Increase
586
586
  account_number: String,
587
587
  amount: Integer,
588
588
  routing_number: String,
589
- statement_descriptor: String,
589
+ statement_descriptor: String?,
590
590
  transfer_id: String
591
591
  ) -> void
592
592
 
@@ -594,7 +594,7 @@ module Increase
594
594
  account_number: String,
595
595
  amount: Integer,
596
596
  routing_number: String,
597
- statement_descriptor: String,
597
+ statement_descriptor: String?,
598
598
  transfer_id: String
599
599
  }
600
600
  end
@@ -18,6 +18,7 @@ module Increase
18
18
  end_to_end_identification: String?,
19
19
  fulfillment_inbound_wire_transfer_id: String?,
20
20
  idempotency_key: String?,
21
+ refusal: Increase::WireDrawdownRequest::Refusal?,
21
22
  status: Increase::Models::WireDrawdownRequest::status,
22
23
  submission: Increase::WireDrawdownRequest::Submission?,
23
24
  type: Increase::Models::WireDrawdownRequest::type_,
@@ -58,6 +59,8 @@ module Increase
58
59
 
59
60
  attr_accessor idempotency_key: String?
60
61
 
62
+ attr_accessor refusal: Increase::WireDrawdownRequest::Refusal?
63
+
61
64
  attr_accessor status: Increase::Models::WireDrawdownRequest::status
62
65
 
63
66
  attr_accessor submission: Increase::WireDrawdownRequest::Submission?
@@ -85,6 +88,7 @@ module Increase
85
88
  end_to_end_identification: String?,
86
89
  fulfillment_inbound_wire_transfer_id: String?,
87
90
  idempotency_key: String?,
91
+ refusal: Increase::WireDrawdownRequest::Refusal?,
88
92
  status: Increase::Models::WireDrawdownRequest::status,
89
93
  submission: Increase::WireDrawdownRequest::Submission?,
90
94
  type: Increase::Models::WireDrawdownRequest::type_,
@@ -109,6 +113,7 @@ module Increase
109
113
  end_to_end_identification: String?,
110
114
  fulfillment_inbound_wire_transfer_id: String?,
111
115
  idempotency_key: String?,
116
+ refusal: Increase::WireDrawdownRequest::Refusal?,
112
117
  status: Increase::Models::WireDrawdownRequest::status,
113
118
  submission: Increase::WireDrawdownRequest::Submission?,
114
119
  type: Increase::Models::WireDrawdownRequest::type_,
@@ -200,6 +205,65 @@ module Increase
200
205
  }
201
206
  end
202
207
 
208
+ type refusal =
209
+ {
210
+ refusal_reason_additional_information: String?,
211
+ refusal_reason_code: Increase::Models::WireDrawdownRequest::Refusal::refusal_reason_code,
212
+ refused_at: Time
213
+ }
214
+
215
+ class Refusal < Increase::Internal::Type::BaseModel
216
+ attr_accessor refusal_reason_additional_information: String?
217
+
218
+ attr_accessor refusal_reason_code: Increase::Models::WireDrawdownRequest::Refusal::refusal_reason_code
219
+
220
+ attr_accessor refused_at: Time
221
+
222
+ def initialize: (
223
+ refusal_reason_additional_information: String?,
224
+ refusal_reason_code: Increase::Models::WireDrawdownRequest::Refusal::refusal_reason_code,
225
+ refused_at: Time
226
+ ) -> void
227
+
228
+ def to_hash: -> {
229
+ refusal_reason_additional_information: String?,
230
+ refusal_reason_code: Increase::Models::WireDrawdownRequest::Refusal::refusal_reason_code,
231
+ refused_at: Time
232
+ }
233
+
234
+ type refusal_reason_code =
235
+ :invalid_debtor_account_number
236
+ | :transaction_forbidden
237
+ | :unsuccessful_direct_debit
238
+ | :inconsistent_with_end_customer
239
+ | :narrative
240
+ | :other
241
+
242
+ module RefusalReasonCode
243
+ extend Increase::Internal::Type::Enum
244
+
245
+ # The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
246
+ INVALID_DEBTOR_ACCOUNT_NUMBER: :invalid_debtor_account_number
247
+
248
+ # The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
249
+ TRANSACTION_FORBIDDEN: :transaction_forbidden
250
+
251
+ # The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
252
+ UNSUCCESSFUL_DIRECT_DEBIT: :unsuccessful_direct_debit
253
+
254
+ # The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
255
+ INCONSISTENT_WITH_END_CUSTOMER: :inconsistent_with_end_customer
256
+
257
+ # The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
258
+ NARRATIVE: :narrative
259
+
260
+ # Some other error or issue has occurred.
261
+ OTHER: :other
262
+
263
+ def self?.values: -> ::Array[Increase::Models::WireDrawdownRequest::Refusal::refusal_reason_code]
264
+ end
265
+ end
266
+
203
267
  type status =
204
268
  :pending_submission | :pending_response | :fulfilled | :refused
205
269
 
@@ -295,10 +295,6 @@ module Increase
295
295
 
296
296
  class FileRetrieveParams = Increase::Models::FileRetrieveParams
297
297
 
298
- class Group = Increase::Models::Group
299
-
300
- class GroupRetrieveParams = Increase::Models::GroupRetrieveParams
301
-
302
298
  class InboundACHTransfer = Increase::Models::InboundACHTransfer
303
299
 
304
300
  class InboundACHTransferCreateNotificationOfChangeParams = Increase::Models::InboundACHTransferCreateNotificationOfChangeParams
@@ -347,6 +343,8 @@ module Increase
347
343
 
348
344
  class InboundRealTimePaymentsTransferRetrieveParams = Increase::Models::InboundRealTimePaymentsTransferRetrieveParams
349
345
 
346
+ class InboundRealTimePaymentsTransferReturnParams = Increase::Models::InboundRealTimePaymentsTransferReturnParams
347
+
350
348
  class InboundWireDrawdownRequest = Increase::Models::InboundWireDrawdownRequest
351
349
 
352
350
  class InboundWireDrawdownRequestListParams = Increase::Models::InboundWireDrawdownRequestListParams
@@ -405,22 +403,6 @@ module Increase
405
403
 
406
404
  class LockboxRecipientUpdateParams = Increase::Models::LockboxRecipientUpdateParams
407
405
 
408
- class OAuthApplication = Increase::Models::OAuthApplication
409
-
410
- class OAuthApplicationListParams = Increase::Models::OAuthApplicationListParams
411
-
412
- class OAuthApplicationRetrieveParams = Increase::Models::OAuthApplicationRetrieveParams
413
-
414
- class OAuthConnection = Increase::Models::OAuthConnection
415
-
416
- class OAuthConnectionListParams = Increase::Models::OAuthConnectionListParams
417
-
418
- class OAuthConnectionRetrieveParams = Increase::Models::OAuthConnectionRetrieveParams
419
-
420
- class OAuthToken = Increase::Models::OAuthToken
421
-
422
- class OAuthTokenCreateParams = Increase::Models::OAuthTokenCreateParams
423
-
424
406
  class PendingTransaction = Increase::Models::PendingTransaction
425
407
 
426
408
  class PendingTransactionCreateParams = Increase::Models::PendingTransactionCreateParams
@@ -15,6 +15,12 @@ module Increase
15
15
  ?request_options: Increase::request_opts
16
16
  ) -> Increase::Internal::Page[Increase::InboundRealTimePaymentsTransfer]
17
17
 
18
+ def return_: (
19
+ String inbound_real_time_payments_transfer_id,
20
+ ?amount: Integer,
21
+ ?request_options: Increase::request_opts
22
+ ) -> Increase::RealTimePaymentsTransfer
23
+
18
24
  def initialize: (client: Increase::Client) -> void
19
25
  end
20
26
  end
@@ -4,6 +4,8 @@ module Increase
4
4
  class WireDrawdownRequests
5
5
  def refuse: (
6
6
  String wire_drawdown_request_id,
7
+ ?refusal_reason_additional_information: String,
8
+ ?refusal_reason_code: Increase::Models::Simulations::WireDrawdownRequestRefuseParams::refusal_reason_code,
7
9
  ?request_options: Increase::request_opts
8
10
  ) -> Increase::WireDrawdownRequest
9
11