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
|
@@ -30,6 +30,19 @@ module Increase
|
|
|
30
30
|
sig { returns(String) }
|
|
31
31
|
attr_accessor :description
|
|
32
32
|
|
|
33
|
+
# Apple Pay specific settings for the Card Profile.
|
|
34
|
+
sig do
|
|
35
|
+
returns(T.nilable(Increase::DigitalCardProfileCreateParams::ApplePay))
|
|
36
|
+
end
|
|
37
|
+
attr_reader :apple_pay
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay::OrHash
|
|
42
|
+
).void
|
|
43
|
+
end
|
|
44
|
+
attr_writer :apple_pay
|
|
45
|
+
|
|
33
46
|
# An email address the user can contact to receive support for their card.
|
|
34
47
|
sig { returns(T.nilable(String)) }
|
|
35
48
|
attr_reader :contact_email
|
|
@@ -79,6 +92,7 @@ module Increase
|
|
|
79
92
|
background_image_file_id: String,
|
|
80
93
|
card_description: String,
|
|
81
94
|
description: String,
|
|
95
|
+
apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay::OrHash,
|
|
82
96
|
contact_email: String,
|
|
83
97
|
contact_name: String,
|
|
84
98
|
contact_phone: String,
|
|
@@ -97,6 +111,8 @@ module Increase
|
|
|
97
111
|
card_description:,
|
|
98
112
|
# A description you can use to identify the Card Profile.
|
|
99
113
|
description:,
|
|
114
|
+
# Apple Pay specific settings for the Card Profile.
|
|
115
|
+
apple_pay: nil,
|
|
100
116
|
# An email address the user can contact to receive support for their card.
|
|
101
117
|
contact_email: nil,
|
|
102
118
|
# The name of your company or card program, shown to the user as who to contact
|
|
@@ -119,6 +135,7 @@ module Increase
|
|
|
119
135
|
background_image_file_id: String,
|
|
120
136
|
card_description: String,
|
|
121
137
|
description: String,
|
|
138
|
+
apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay,
|
|
122
139
|
contact_email: String,
|
|
123
140
|
contact_name: String,
|
|
124
141
|
contact_phone: String,
|
|
@@ -131,6 +148,152 @@ module Increase
|
|
|
131
148
|
def to_hash
|
|
132
149
|
end
|
|
133
150
|
|
|
151
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
152
|
+
OrHash =
|
|
153
|
+
T.type_alias do
|
|
154
|
+
T.any(
|
|
155
|
+
Increase::DigitalCardProfileCreateParams::ApplePay,
|
|
156
|
+
Increase::Internal::AnyHash
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# The applications to associate with cards using this Card Profile.
|
|
161
|
+
sig do
|
|
162
|
+
returns(
|
|
163
|
+
T.nilable(
|
|
164
|
+
T::Array[
|
|
165
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier
|
|
166
|
+
]
|
|
167
|
+
)
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
attr_reader :associated_application_identifiers
|
|
171
|
+
|
|
172
|
+
sig do
|
|
173
|
+
params(
|
|
174
|
+
associated_application_identifiers:
|
|
175
|
+
T::Array[
|
|
176
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier::OrHash
|
|
177
|
+
]
|
|
178
|
+
).void
|
|
179
|
+
end
|
|
180
|
+
attr_writer :associated_application_identifiers
|
|
181
|
+
|
|
182
|
+
# The App Store listings of the applications to associate with cards using this
|
|
183
|
+
# Card Profile.
|
|
184
|
+
sig do
|
|
185
|
+
returns(
|
|
186
|
+
T.nilable(
|
|
187
|
+
T::Array[
|
|
188
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier
|
|
189
|
+
]
|
|
190
|
+
)
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
attr_reader :associated_store_identifiers
|
|
194
|
+
|
|
195
|
+
sig do
|
|
196
|
+
params(
|
|
197
|
+
associated_store_identifiers:
|
|
198
|
+
T::Array[
|
|
199
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier::OrHash
|
|
200
|
+
]
|
|
201
|
+
).void
|
|
202
|
+
end
|
|
203
|
+
attr_writer :associated_store_identifiers
|
|
204
|
+
|
|
205
|
+
# Apple Pay specific settings for the Card Profile.
|
|
206
|
+
sig do
|
|
207
|
+
params(
|
|
208
|
+
associated_application_identifiers:
|
|
209
|
+
T::Array[
|
|
210
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier::OrHash
|
|
211
|
+
],
|
|
212
|
+
associated_store_identifiers:
|
|
213
|
+
T::Array[
|
|
214
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier::OrHash
|
|
215
|
+
]
|
|
216
|
+
).returns(T.attached_class)
|
|
217
|
+
end
|
|
218
|
+
def self.new(
|
|
219
|
+
# The applications to associate with cards using this Card Profile.
|
|
220
|
+
associated_application_identifiers: nil,
|
|
221
|
+
# The App Store listings of the applications to associate with cards using this
|
|
222
|
+
# Card Profile.
|
|
223
|
+
associated_store_identifiers: nil
|
|
224
|
+
)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
sig do
|
|
228
|
+
override.returns(
|
|
229
|
+
{
|
|
230
|
+
associated_application_identifiers:
|
|
231
|
+
T::Array[
|
|
232
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier
|
|
233
|
+
],
|
|
234
|
+
associated_store_identifiers:
|
|
235
|
+
T::Array[
|
|
236
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
def to_hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
245
|
+
OrHash =
|
|
246
|
+
T.type_alias do
|
|
247
|
+
T.any(
|
|
248
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier,
|
|
249
|
+
Increase::Internal::AnyHash
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
254
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
255
|
+
sig { returns(String) }
|
|
256
|
+
attr_accessor :identifier
|
|
257
|
+
|
|
258
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
259
|
+
def self.new(
|
|
260
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
261
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
262
|
+
identifier:
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
sig { override.returns({ identifier: String }) }
|
|
267
|
+
def to_hash
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
272
|
+
OrHash =
|
|
273
|
+
T.type_alias do
|
|
274
|
+
T.any(
|
|
275
|
+
Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier,
|
|
276
|
+
Increase::Internal::AnyHash
|
|
277
|
+
)
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# The numeric App Store identifier.
|
|
281
|
+
sig { returns(String) }
|
|
282
|
+
attr_accessor :identifier
|
|
283
|
+
|
|
284
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
285
|
+
def self.new(
|
|
286
|
+
# The numeric App Store identifier.
|
|
287
|
+
identifier:
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
sig { override.returns({ identifier: String }) }
|
|
292
|
+
def to_hash
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
134
297
|
class TextColor < Increase::Internal::Type::BaseModel
|
|
135
298
|
OrHash =
|
|
136
299
|
T.type_alias do
|
|
@@ -615,10 +615,17 @@ module Increase
|
|
|
615
615
|
LOAN_OFFER_UPDATED =
|
|
616
616
|
T.let(:"loan_offer.updated", Increase::Event::Category::TaggedSymbol)
|
|
617
617
|
|
|
618
|
-
# Occurs whenever a Loan Purchase is created.
|
|
619
|
-
|
|
618
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
619
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
620
620
|
T.let(
|
|
621
|
-
:"
|
|
621
|
+
:"loan_purchase_offer.created",
|
|
622
|
+
Increase::Event::Category::TaggedSymbol
|
|
623
|
+
)
|
|
624
|
+
|
|
625
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
626
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
627
|
+
T.let(
|
|
628
|
+
:"loan_purchase_offer.updated",
|
|
622
629
|
Increase::Event::Category::TaggedSymbol
|
|
623
630
|
)
|
|
624
631
|
|
|
@@ -724,10 +724,17 @@ module Increase
|
|
|
724
724
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
725
725
|
)
|
|
726
726
|
|
|
727
|
-
# Occurs whenever a Loan Purchase is created.
|
|
728
|
-
|
|
727
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
728
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
729
729
|
T.let(
|
|
730
|
-
:"
|
|
730
|
+
:"loan_purchase_offer.created",
|
|
731
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
732
|
+
)
|
|
733
|
+
|
|
734
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
735
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
736
|
+
T.let(
|
|
737
|
+
:"loan_purchase_offer.updated",
|
|
731
738
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
732
739
|
)
|
|
733
740
|
|
|
@@ -745,10 +745,17 @@ module Increase
|
|
|
745
745
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
746
746
|
)
|
|
747
747
|
|
|
748
|
-
# Occurs whenever a Loan Purchase is created.
|
|
749
|
-
|
|
748
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
749
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
750
750
|
T.let(
|
|
751
|
-
:"
|
|
751
|
+
:"loan_purchase_offer.created",
|
|
752
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
756
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
757
|
+
T.let(
|
|
758
|
+
:"loan_purchase_offer.updated",
|
|
752
759
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
753
760
|
)
|
|
754
761
|
|
|
@@ -743,10 +743,17 @@ module Increase
|
|
|
743
743
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
744
744
|
)
|
|
745
745
|
|
|
746
|
-
# Occurs whenever a Loan Purchase is created.
|
|
747
|
-
|
|
746
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
747
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
748
748
|
T.let(
|
|
749
|
-
:"
|
|
749
|
+
:"loan_purchase_offer.created",
|
|
750
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
754
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
755
|
+
T.let(
|
|
756
|
+
:"loan_purchase_offer.updated",
|
|
750
757
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
751
758
|
)
|
|
752
759
|
|
|
@@ -91,6 +91,10 @@ module Increase
|
|
|
91
91
|
end
|
|
92
92
|
attr_writer :decline
|
|
93
93
|
|
|
94
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
|
+
attr_accessor :end_to_end_identification
|
|
97
|
+
|
|
94
98
|
# The lifecycle status of the transfer.
|
|
95
99
|
sig do
|
|
96
100
|
returns(Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol)
|
|
@@ -135,6 +139,7 @@ module Increase
|
|
|
135
139
|
T.nilable(
|
|
136
140
|
Increase::InboundRealTimePaymentsTransfer::Decline::OrHash
|
|
137
141
|
),
|
|
142
|
+
end_to_end_identification: T.nilable(String),
|
|
138
143
|
status: Increase::InboundRealTimePaymentsTransfer::Status::OrSymbol,
|
|
139
144
|
transaction_identification: String,
|
|
140
145
|
type: Increase::InboundRealTimePaymentsTransfer::Type::OrSymbol,
|
|
@@ -168,6 +173,8 @@ module Increase
|
|
|
168
173
|
debtor_routing_number:,
|
|
169
174
|
# If your transfer is declined, this will contain details of the decline.
|
|
170
175
|
decline:,
|
|
176
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
177
|
+
end_to_end_identification:,
|
|
171
178
|
# The lifecycle status of the transfer.
|
|
172
179
|
status:,
|
|
173
180
|
# The Real-Time Payments network identification of the transfer.
|
|
@@ -200,6 +207,7 @@ module Increase
|
|
|
200
207
|
debtor_routing_number: String,
|
|
201
208
|
decline:
|
|
202
209
|
T.nilable(Increase::InboundRealTimePaymentsTransfer::Decline),
|
|
210
|
+
end_to_end_identification: T.nilable(String),
|
|
203
211
|
status:
|
|
204
212
|
Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol,
|
|
205
213
|
transaction_identification: String,
|
|
@@ -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
|
|
@@ -657,10 +657,17 @@ module Increase
|
|
|
657
657
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
658
658
|
)
|
|
659
659
|
|
|
660
|
-
# Occurs whenever a Loan Purchase is created.
|
|
661
|
-
|
|
660
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
661
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
662
662
|
T.let(
|
|
663
|
-
:"
|
|
663
|
+
:"loan_purchase_offer.created",
|
|
664
|
+
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
668
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
669
|
+
T.let(
|
|
670
|
+
:"loan_purchase_offer.updated",
|
|
664
671
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
665
672
|
)
|
|
666
673
|
|