increase 1.368.0 → 1.370.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/errors.rb +6 -0
- data/lib/increase/models/checkbook.rb +3 -0
- data/lib/increase/models/checkbook_create_params.rb +24 -1
- data/lib/increase/models/digital_wallet_token.rb +63 -1
- data/lib/increase/models/digital_wallet_token_request.rb +327 -1
- data/lib/increase/models/event.rb +15 -0
- data/lib/increase/models/event_list_params.rb +15 -0
- data/lib/increase/models/event_subscription.rb +15 -0
- data/lib/increase/models/event_subscription_create_params.rb +15 -0
- data/lib/increase/models/inbound_wire_transfer.rb +12 -1
- data/lib/increase/models/inbound_wire_transfer_reverse_params.rb +17 -1
- data/lib/increase/models/real_time_decision.rb +330 -1
- data/lib/increase/models/real_time_payments_transfer.rb +75 -1
- data/lib/increase/models/real_time_payments_transfer_create_params.rb +82 -1
- data/lib/increase/models/unwrap_webhook_event.rb +15 -0
- data/lib/increase/resources/checkbooks.rb +4 -1
- data/lib/increase/resources/inbound_wire_transfers.rb +6 -1
- data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/errors.rbi +4 -0
- data/rbi/increase/models/checkbook.rbi +4 -0
- data/rbi/increase/models/checkbook_create_params.rbi +39 -0
- data/rbi/increase/models/digital_wallet_token.rbi +114 -3
- data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
- data/rbi/increase/models/event.rbi +26 -0
- data/rbi/increase/models/event_list_params.rbi +35 -0
- data/rbi/increase/models/event_subscription.rbi +35 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +35 -0
- data/rbi/increase/models/inbound_wire_transfer.rbi +15 -0
- data/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +22 -0
- data/rbi/increase/models/real_time_decision.rbi +623 -3
- data/rbi/increase/models/real_time_payments_transfer.rbi +108 -0
- data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +123 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +35 -0
- data/rbi/increase/resources/checkbooks.rbi +3 -0
- data/rbi/increase/resources/inbound_wire_transfers.rbi +5 -0
- data/rbi/increase/resources/real_time_payments_transfers.rbi +5 -0
- data/sig/increase/errors.rbs +4 -0
- data/sig/increase/models/checkbook.rbs +4 -1
- data/sig/increase/models/checkbook_create_params.rbs +20 -1
- data/sig/increase/models/digital_wallet_token.rbs +40 -3
- data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
- data/sig/increase/models/event.rbs +20 -0
- data/sig/increase/models/event_list_params.rbs +20 -0
- data/sig/increase/models/event_subscription.rbs +20 -0
- data/sig/increase/models/event_subscription_create_params.rbs +20 -0
- data/sig/increase/models/inbound_wire_transfer.rbs +10 -1
- data/sig/increase/models/inbound_wire_transfer_reverse_params.rbs +13 -2
- data/sig/increase/models/real_time_decision.rbs +245 -3
- data/sig/increase/models/real_time_payments_transfer.rbs +52 -0
- data/sig/increase/models/real_time_payments_transfer_create_params.rbs +60 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +20 -0
- data/sig/increase/resources/checkbooks.rbs +1 -0
- data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
- data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
- metadata +2 -2
|
@@ -319,6 +319,15 @@ module Increase
|
|
|
319
319
|
# Occurs whenever a Loan Distribution is created.
|
|
320
320
|
LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
|
|
321
321
|
|
|
322
|
+
# Occurs whenever a Loan Draw is created.
|
|
323
|
+
LOAN_DRAW_CREATED = :"loan_draw.created"
|
|
324
|
+
|
|
325
|
+
# Occurs whenever a Loan Hold is created.
|
|
326
|
+
LOAN_HOLD_CREATED = :"loan_hold.created"
|
|
327
|
+
|
|
328
|
+
# Occurs whenever a Loan Hold is updated.
|
|
329
|
+
LOAN_HOLD_UPDATED = :"loan_hold.updated"
|
|
330
|
+
|
|
322
331
|
# Occurs whenever a Loan Obligation is created.
|
|
323
332
|
LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
|
|
324
333
|
|
|
@@ -328,12 +337,18 @@ module Increase
|
|
|
328
337
|
# Occurs whenever a Loan Offer is updated.
|
|
329
338
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
330
339
|
|
|
340
|
+
# Occurs whenever a Loan Payment is created.
|
|
341
|
+
LOAN_PAYMENT_CREATED = :"loan_payment.created"
|
|
342
|
+
|
|
331
343
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
332
344
|
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
333
345
|
|
|
334
346
|
# Occurs whenever a Loan Purchase Offer is updated.
|
|
335
347
|
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
336
348
|
|
|
349
|
+
# Occurs whenever a Loan Statement is created.
|
|
350
|
+
LOAN_STATEMENT_CREATED = :"loan_statement.created"
|
|
351
|
+
|
|
337
352
|
# Occurs whenever a Lockbox is created.
|
|
338
353
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
339
354
|
|
|
@@ -348,6 +348,15 @@ module Increase
|
|
|
348
348
|
# Occurs whenever a Loan Distribution is created.
|
|
349
349
|
LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
|
|
350
350
|
|
|
351
|
+
# Occurs whenever a Loan Draw is created.
|
|
352
|
+
LOAN_DRAW_CREATED = :"loan_draw.created"
|
|
353
|
+
|
|
354
|
+
# Occurs whenever a Loan Hold is created.
|
|
355
|
+
LOAN_HOLD_CREATED = :"loan_hold.created"
|
|
356
|
+
|
|
357
|
+
# Occurs whenever a Loan Hold is updated.
|
|
358
|
+
LOAN_HOLD_UPDATED = :"loan_hold.updated"
|
|
359
|
+
|
|
351
360
|
# Occurs whenever a Loan Obligation is created.
|
|
352
361
|
LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
|
|
353
362
|
|
|
@@ -357,12 +366,18 @@ module Increase
|
|
|
357
366
|
# Occurs whenever a Loan Offer is updated.
|
|
358
367
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
359
368
|
|
|
369
|
+
# Occurs whenever a Loan Payment is created.
|
|
370
|
+
LOAN_PAYMENT_CREATED = :"loan_payment.created"
|
|
371
|
+
|
|
360
372
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
361
373
|
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
362
374
|
|
|
363
375
|
# Occurs whenever a Loan Purchase Offer is updated.
|
|
364
376
|
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
365
377
|
|
|
378
|
+
# Occurs whenever a Loan Statement is created.
|
|
379
|
+
LOAN_STATEMENT_CREATED = :"loan_statement.created"
|
|
380
|
+
|
|
366
381
|
# Occurs whenever a Lockbox is created.
|
|
367
382
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
368
383
|
|
|
@@ -317,6 +317,15 @@ module Increase
|
|
|
317
317
|
# Occurs whenever a Loan Distribution is created.
|
|
318
318
|
LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
|
|
319
319
|
|
|
320
|
+
# Occurs whenever a Loan Draw is created.
|
|
321
|
+
LOAN_DRAW_CREATED = :"loan_draw.created"
|
|
322
|
+
|
|
323
|
+
# Occurs whenever a Loan Hold is created.
|
|
324
|
+
LOAN_HOLD_CREATED = :"loan_hold.created"
|
|
325
|
+
|
|
326
|
+
# Occurs whenever a Loan Hold is updated.
|
|
327
|
+
LOAN_HOLD_UPDATED = :"loan_hold.updated"
|
|
328
|
+
|
|
320
329
|
# Occurs whenever a Loan Obligation is created.
|
|
321
330
|
LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
|
|
322
331
|
|
|
@@ -326,12 +335,18 @@ module Increase
|
|
|
326
335
|
# Occurs whenever a Loan Offer is updated.
|
|
327
336
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
328
337
|
|
|
338
|
+
# Occurs whenever a Loan Payment is created.
|
|
339
|
+
LOAN_PAYMENT_CREATED = :"loan_payment.created"
|
|
340
|
+
|
|
329
341
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
330
342
|
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
331
343
|
|
|
332
344
|
# Occurs whenever a Loan Purchase Offer is updated.
|
|
333
345
|
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
334
346
|
|
|
347
|
+
# Occurs whenever a Loan Statement is created.
|
|
348
|
+
LOAN_STATEMENT_CREATED = :"loan_statement.created"
|
|
349
|
+
|
|
335
350
|
# Occurs whenever a Lockbox is created.
|
|
336
351
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
337
352
|
|
|
@@ -292,6 +292,12 @@ module Increase
|
|
|
292
292
|
|
|
293
293
|
# @see Increase::Models::InboundWireTransfer#reversal
|
|
294
294
|
class Reversal < Increase::Internal::Type::BaseModel
|
|
295
|
+
# @!attribute amount
|
|
296
|
+
# The amount that was reversed in USD cents.
|
|
297
|
+
#
|
|
298
|
+
# @return [Integer]
|
|
299
|
+
required :amount, Integer
|
|
300
|
+
|
|
295
301
|
# @!attribute reason
|
|
296
302
|
# The reason for the reversal.
|
|
297
303
|
#
|
|
@@ -305,9 +311,11 @@ module Increase
|
|
|
305
311
|
# @return [Time]
|
|
306
312
|
required :reversed_at, Time
|
|
307
313
|
|
|
308
|
-
# @!method initialize(reason:, reversed_at:)
|
|
314
|
+
# @!method initialize(amount:, reason:, reversed_at:)
|
|
309
315
|
# If the transfer is reversed, this will contain details of the reversal.
|
|
310
316
|
#
|
|
317
|
+
# @param amount [Integer] The amount that was reversed in USD cents.
|
|
318
|
+
#
|
|
311
319
|
# @param reason [Symbol, Increase::Models::InboundWireTransfer::Reversal::Reason]
|
|
312
320
|
# The reason for the reversal.
|
|
313
321
|
#
|
|
@@ -330,6 +338,9 @@ module Increase
|
|
|
330
338
|
# The account cannot currently receive inbound wires.
|
|
331
339
|
TRANSACTION_FORBIDDEN = :transaction_forbidden
|
|
332
340
|
|
|
341
|
+
# The inbound wire transfer was fraudulent.
|
|
342
|
+
FRAUD = :fraud
|
|
343
|
+
|
|
333
344
|
# @!method self.values
|
|
334
345
|
# @return [Array<Symbol>]
|
|
335
346
|
end
|
|
@@ -19,12 +19,25 @@ module Increase
|
|
|
19
19
|
# @return [Symbol, Increase::Models::InboundWireTransferReverseParams::Reason]
|
|
20
20
|
required :reason, enum: -> { Increase::InboundWireTransferReverseParams::Reason }
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute amount
|
|
23
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
24
|
+
# Wire Transfer. A transfer can only be reversed once, so any amount you don't
|
|
25
|
+
# return now stays with the recipient.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
optional :amount, Integer
|
|
29
|
+
|
|
30
|
+
# @!method initialize(inbound_wire_transfer_id:, reason:, amount: nil, request_options: {})
|
|
23
31
|
# @param inbound_wire_transfer_id [String] The identifier of the Inbound Wire Transfer to reverse.
|
|
24
32
|
#
|
|
25
33
|
# @param reason [Symbol, Increase::Models::InboundWireTransferReverseParams::Reason]
|
|
26
34
|
# Reason for the reversal.
|
|
27
35
|
#
|
|
36
|
+
# @param amount [Integer]
|
|
37
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
38
|
+
# Wire Transfer. A transfer can only be reversed once, so any amount you don't
|
|
39
|
+
# return now stays with the recipient.
|
|
40
|
+
#
|
|
28
41
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
29
42
|
|
|
30
43
|
# Reason for the reversal.
|
|
@@ -40,6 +53,9 @@ module Increase
|
|
|
40
53
|
# The account cannot currently receive inbound wires.
|
|
41
54
|
TRANSACTION_FORBIDDEN = :transaction_forbidden
|
|
42
55
|
|
|
56
|
+
# The inbound wire transfer was fraudulent.
|
|
57
|
+
FRAUD = :fraud
|
|
58
|
+
|
|
43
59
|
# @!method self.values
|
|
44
60
|
# @return [Array<Symbol>]
|
|
45
61
|
end
|
|
@@ -3892,6 +3892,12 @@ module Increase
|
|
|
3892
3892
|
# @return [String]
|
|
3893
3893
|
required :card_id, String
|
|
3894
3894
|
|
|
3895
|
+
# @!attribute cardholder
|
|
3896
|
+
# The cardholder adding the card to the digital wallet.
|
|
3897
|
+
#
|
|
3898
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Cardholder]
|
|
3899
|
+
required :cardholder, -> { Increase::RealTimeDecision::DigitalWalletToken::Cardholder }
|
|
3900
|
+
|
|
3895
3901
|
# @!attribute decision
|
|
3896
3902
|
# Whether or not the provisioning request was approved. This will be null until
|
|
3897
3903
|
# the real time decision is responded to.
|
|
@@ -3911,11 +3917,54 @@ module Increase
|
|
|
3911
3917
|
# @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet]
|
|
3912
3918
|
required :digital_wallet, enum: -> { Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet }
|
|
3913
3919
|
|
|
3914
|
-
# @!
|
|
3920
|
+
# @!attribute network
|
|
3921
|
+
# The card network the token is being provisioned on.
|
|
3922
|
+
#
|
|
3923
|
+
# @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Network]
|
|
3924
|
+
required :network, enum: -> { Increase::RealTimeDecision::DigitalWalletToken::Network }
|
|
3925
|
+
|
|
3926
|
+
# @!attribute primary_account_number_source
|
|
3927
|
+
# How the card number was provided to the digital wallet.
|
|
3928
|
+
#
|
|
3929
|
+
# @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource, nil]
|
|
3930
|
+
required :primary_account_number_source,
|
|
3931
|
+
enum: -> { Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource },
|
|
3932
|
+
nil?: true
|
|
3933
|
+
|
|
3934
|
+
# @!attribute token_requestor_details
|
|
3935
|
+
# The digital wallet or merchant that requested the token.
|
|
3936
|
+
#
|
|
3937
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails]
|
|
3938
|
+
required :token_requestor_details,
|
|
3939
|
+
-> { Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails }
|
|
3940
|
+
|
|
3941
|
+
# @!attribute verification
|
|
3942
|
+
# Fields related to verification of cardholder-provided values.
|
|
3943
|
+
#
|
|
3944
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification]
|
|
3945
|
+
required :verification, -> { Increase::RealTimeDecision::DigitalWalletToken::Verification }
|
|
3946
|
+
|
|
3947
|
+
# @!attribute visa
|
|
3948
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
3949
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
3950
|
+
#
|
|
3951
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Visa, nil]
|
|
3952
|
+
required :visa, -> { Increase::RealTimeDecision::DigitalWalletToken::Visa }, nil?: true
|
|
3953
|
+
|
|
3954
|
+
# @!attribute wallet
|
|
3955
|
+
# Details about the digital wallet.
|
|
3956
|
+
#
|
|
3957
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Wallet]
|
|
3958
|
+
required :wallet, -> { Increase::RealTimeDecision::DigitalWalletToken::Wallet }
|
|
3959
|
+
|
|
3960
|
+
# @!method initialize(card_id:, cardholder:, decision:, device:, digital_wallet:, network:, primary_account_number_source:, token_requestor_details:, verification:, visa:, wallet:)
|
|
3915
3961
|
# Fields related to a digital wallet token provisioning attempt.
|
|
3916
3962
|
#
|
|
3917
3963
|
# @param card_id [String] The identifier of the Card that is being tokenized.
|
|
3918
3964
|
#
|
|
3965
|
+
# @param cardholder [Increase::Models::RealTimeDecision::DigitalWalletToken::Cardholder]
|
|
3966
|
+
# The cardholder adding the card to the digital wallet.
|
|
3967
|
+
#
|
|
3919
3968
|
# @param decision [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Decision, nil]
|
|
3920
3969
|
# Whether or not the provisioning request was approved. This will be null until
|
|
3921
3970
|
# the real time decision is responded to.
|
|
@@ -3925,6 +3974,39 @@ module Increase
|
|
|
3925
3974
|
#
|
|
3926
3975
|
# @param digital_wallet [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet]
|
|
3927
3976
|
# The digital wallet app being used.
|
|
3977
|
+
#
|
|
3978
|
+
# @param network [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Network]
|
|
3979
|
+
# The card network the token is being provisioned on.
|
|
3980
|
+
#
|
|
3981
|
+
# @param primary_account_number_source [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource, nil]
|
|
3982
|
+
# How the card number was provided to the digital wallet.
|
|
3983
|
+
#
|
|
3984
|
+
# @param token_requestor_details [Increase::Models::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails]
|
|
3985
|
+
# The digital wallet or merchant that requested the token.
|
|
3986
|
+
#
|
|
3987
|
+
# @param verification [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification]
|
|
3988
|
+
# Fields related to verification of cardholder-provided values.
|
|
3989
|
+
#
|
|
3990
|
+
# @param visa [Increase::Models::RealTimeDecision::DigitalWalletToken::Visa, nil]
|
|
3991
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
3992
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
3993
|
+
#
|
|
3994
|
+
# @param wallet [Increase::Models::RealTimeDecision::DigitalWalletToken::Wallet]
|
|
3995
|
+
# Details about the digital wallet.
|
|
3996
|
+
|
|
3997
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#cardholder
|
|
3998
|
+
class Cardholder < Increase::Internal::Type::BaseModel
|
|
3999
|
+
# @!attribute name
|
|
4000
|
+
# The cardholder's name, as entered in the digital wallet.
|
|
4001
|
+
#
|
|
4002
|
+
# @return [String, nil]
|
|
4003
|
+
required :name, String, nil?: true
|
|
4004
|
+
|
|
4005
|
+
# @!method initialize(name:)
|
|
4006
|
+
# The cardholder adding the card to the digital wallet.
|
|
4007
|
+
#
|
|
4008
|
+
# @param name [String, nil] The cardholder's name, as entered in the digital wallet.
|
|
4009
|
+
end
|
|
3928
4010
|
|
|
3929
4011
|
# Whether or not the provisioning request was approved. This will be null until
|
|
3930
4012
|
# the real time decision is responded to.
|
|
@@ -4045,6 +4127,253 @@ module Increase
|
|
|
4045
4127
|
# @!method self.values
|
|
4046
4128
|
# @return [Array<Symbol>]
|
|
4047
4129
|
end
|
|
4130
|
+
|
|
4131
|
+
# The card network the token is being provisioned on.
|
|
4132
|
+
#
|
|
4133
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#network
|
|
4134
|
+
module Network
|
|
4135
|
+
extend Increase::Internal::Type::Enum
|
|
4136
|
+
|
|
4137
|
+
# Visa
|
|
4138
|
+
VISA = :visa
|
|
4139
|
+
|
|
4140
|
+
# @!method self.values
|
|
4141
|
+
# @return [Array<Symbol>]
|
|
4142
|
+
end
|
|
4143
|
+
|
|
4144
|
+
# How the card number was provided to the digital wallet.
|
|
4145
|
+
#
|
|
4146
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#primary_account_number_source
|
|
4147
|
+
module PrimaryAccountNumberSource
|
|
4148
|
+
extend Increase::Internal::Type::Enum
|
|
4149
|
+
|
|
4150
|
+
# The cardholder entered the card number manually.
|
|
4151
|
+
KEY_ENTERED = :key_entered
|
|
4152
|
+
|
|
4153
|
+
# The card number was already on file with the token requestor.
|
|
4154
|
+
ON_FILE = :on_file
|
|
4155
|
+
|
|
4156
|
+
# The card was added from your mobile app using push provisioning.
|
|
4157
|
+
MOBILE_APP = :mobile_app
|
|
4158
|
+
|
|
4159
|
+
# The card number was sourced from an existing token.
|
|
4160
|
+
TOKEN = :token
|
|
4161
|
+
|
|
4162
|
+
# The card number was read from the chip of the physical card.
|
|
4163
|
+
CHIP_DIP = :chip_dip
|
|
4164
|
+
|
|
4165
|
+
# The card number was read by tapping the physical card on the device.
|
|
4166
|
+
CONTACTLESS_TAP = :contactless_tap
|
|
4167
|
+
|
|
4168
|
+
# @!method self.values
|
|
4169
|
+
# @return [Array<Symbol>]
|
|
4170
|
+
end
|
|
4171
|
+
|
|
4172
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#token_requestor_details
|
|
4173
|
+
class TokenRequestorDetails < Increase::Internal::Type::BaseModel
|
|
4174
|
+
# @!attribute identifier
|
|
4175
|
+
# The identifier assigned to the token requestor by the card network.
|
|
4176
|
+
#
|
|
4177
|
+
# @return [String]
|
|
4178
|
+
required :identifier, String
|
|
4179
|
+
|
|
4180
|
+
# @!attribute name
|
|
4181
|
+
# The name of the token requestor, for example "Apple Inc.".
|
|
4182
|
+
#
|
|
4183
|
+
# @return [String, nil]
|
|
4184
|
+
required :name, String, nil?: true
|
|
4185
|
+
|
|
4186
|
+
# @!method initialize(identifier:, name:)
|
|
4187
|
+
# The digital wallet or merchant that requested the token.
|
|
4188
|
+
#
|
|
4189
|
+
# @param identifier [String] The identifier assigned to the token requestor by the card network.
|
|
4190
|
+
#
|
|
4191
|
+
# @param name [String, nil] The name of the token requestor, for example "Apple Inc.".
|
|
4192
|
+
end
|
|
4193
|
+
|
|
4194
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#verification
|
|
4195
|
+
class Verification < Increase::Internal::Type::BaseModel
|
|
4196
|
+
# @!attribute cardholder_address
|
|
4197
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
4198
|
+
# we verified it against.
|
|
4199
|
+
#
|
|
4200
|
+
# @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress]
|
|
4201
|
+
required :cardholder_address,
|
|
4202
|
+
-> { Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress }
|
|
4203
|
+
|
|
4204
|
+
# @!method initialize(cardholder_address:)
|
|
4205
|
+
# Fields related to verification of cardholder-provided values.
|
|
4206
|
+
#
|
|
4207
|
+
# @param cardholder_address [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress]
|
|
4208
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
4209
|
+
# we verified it against.
|
|
4210
|
+
|
|
4211
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken::Verification#cardholder_address
|
|
4212
|
+
class CardholderAddress < Increase::Internal::Type::BaseModel
|
|
4213
|
+
# @!attribute actual_line1
|
|
4214
|
+
# Line 1 of the address on file for the cardholder.
|
|
4215
|
+
#
|
|
4216
|
+
# @return [String, nil]
|
|
4217
|
+
required :actual_line1, String, nil?: true
|
|
4218
|
+
|
|
4219
|
+
# @!attribute actual_postal_code
|
|
4220
|
+
# The postal code of the address on file for the cardholder.
|
|
4221
|
+
#
|
|
4222
|
+
# @return [String, nil]
|
|
4223
|
+
required :actual_postal_code, String, nil?: true
|
|
4224
|
+
|
|
4225
|
+
# @!attribute provided_line1
|
|
4226
|
+
# The cardholder address line 1 provided for verification in the provisioning
|
|
4227
|
+
# request.
|
|
4228
|
+
#
|
|
4229
|
+
# @return [String, nil]
|
|
4230
|
+
required :provided_line1, String, nil?: true
|
|
4231
|
+
|
|
4232
|
+
# @!attribute provided_postal_code
|
|
4233
|
+
# The postal code provided for verification in the provisioning request.
|
|
4234
|
+
#
|
|
4235
|
+
# @return [String, nil]
|
|
4236
|
+
required :provided_postal_code, String, nil?: true
|
|
4237
|
+
|
|
4238
|
+
# @!attribute result
|
|
4239
|
+
# The address verification result.
|
|
4240
|
+
#
|
|
4241
|
+
# @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result]
|
|
4242
|
+
required :result,
|
|
4243
|
+
enum: -> { Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result }
|
|
4244
|
+
|
|
4245
|
+
# @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:)
|
|
4246
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
4247
|
+
# we verified it against.
|
|
4248
|
+
#
|
|
4249
|
+
# @param actual_line1 [String, nil] Line 1 of the address on file for the cardholder.
|
|
4250
|
+
#
|
|
4251
|
+
# @param actual_postal_code [String, nil] The postal code of the address on file for the cardholder.
|
|
4252
|
+
#
|
|
4253
|
+
# @param provided_line1 [String, nil]
|
|
4254
|
+
# The cardholder address line 1 provided for verification in the provisioning
|
|
4255
|
+
# request.
|
|
4256
|
+
#
|
|
4257
|
+
# @param provided_postal_code [String, nil]
|
|
4258
|
+
# The postal code provided for verification in the provisioning request.
|
|
4259
|
+
#
|
|
4260
|
+
# @param result [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result]
|
|
4261
|
+
# The address verification result.
|
|
4262
|
+
|
|
4263
|
+
# The address verification result.
|
|
4264
|
+
#
|
|
4265
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress#result
|
|
4266
|
+
module Result
|
|
4267
|
+
extend Increase::Internal::Type::Enum
|
|
4268
|
+
|
|
4269
|
+
# No address information was provided in the authorization request.
|
|
4270
|
+
NOT_CHECKED = :not_checked
|
|
4271
|
+
|
|
4272
|
+
# Postal code matches, but the street address does not match or was not provided.
|
|
4273
|
+
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH = :postal_code_match_address_no_match
|
|
4274
|
+
|
|
4275
|
+
# Postal code does not match, but the street address matches or was not provided.
|
|
4276
|
+
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH = :postal_code_no_match_address_match
|
|
4277
|
+
|
|
4278
|
+
# Postal code and street address match.
|
|
4279
|
+
MATCH = :match
|
|
4280
|
+
|
|
4281
|
+
# Postal code and street address do not match.
|
|
4282
|
+
NO_MATCH = :no_match
|
|
4283
|
+
|
|
4284
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
|
4285
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED = :postal_code_match_address_not_checked
|
|
4286
|
+
|
|
4287
|
+
# @!method self.values
|
|
4288
|
+
# @return [Array<Symbol>]
|
|
4289
|
+
end
|
|
4290
|
+
end
|
|
4291
|
+
end
|
|
4292
|
+
|
|
4293
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#visa
|
|
4294
|
+
class Visa < Increase::Internal::Type::BaseModel
|
|
4295
|
+
# @!attribute network_risk_score
|
|
4296
|
+
# Visa's risk score for the card, based on its transaction history, from 0 to 99.
|
|
4297
|
+
# A higher score indicates a higher risk.
|
|
4298
|
+
#
|
|
4299
|
+
# @return [Integer, nil]
|
|
4300
|
+
required :network_risk_score, Integer, nil?: true
|
|
4301
|
+
|
|
4302
|
+
# @!attribute provisioning_risk_score
|
|
4303
|
+
# Visa's risk score for the provisioning request, from 1 to 99. A higher score
|
|
4304
|
+
# indicates a higher risk.
|
|
4305
|
+
#
|
|
4306
|
+
# @return [Integer, nil]
|
|
4307
|
+
required :provisioning_risk_score, Integer, nil?: true
|
|
4308
|
+
|
|
4309
|
+
# @!method initialize(network_risk_score:, provisioning_risk_score:)
|
|
4310
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
4311
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
4312
|
+
#
|
|
4313
|
+
# @param network_risk_score [Integer, nil]
|
|
4314
|
+
# Visa's risk score for the card, based on its transaction history, from 0 to 99.
|
|
4315
|
+
# A higher score indicates a higher risk.
|
|
4316
|
+
#
|
|
4317
|
+
# @param provisioning_risk_score [Integer, nil]
|
|
4318
|
+
# Visa's risk score for the provisioning request, from 1 to 99. A higher score
|
|
4319
|
+
# indicates a higher risk.
|
|
4320
|
+
end
|
|
4321
|
+
|
|
4322
|
+
# @see Increase::Models::RealTimeDecision::DigitalWalletToken#wallet
|
|
4323
|
+
class Wallet < Increase::Internal::Type::BaseModel
|
|
4324
|
+
# @!attribute account_email_age_days
|
|
4325
|
+
# The number of days since the email address was added to the cardholder's digital
|
|
4326
|
+
# wallet account, up to 999.
|
|
4327
|
+
#
|
|
4328
|
+
# @return [Integer, nil]
|
|
4329
|
+
required :account_email_age_days, Integer, nil?: true
|
|
4330
|
+
|
|
4331
|
+
# @!attribute account_identifier
|
|
4332
|
+
# An identifier for the cardholder's account with the digital wallet.
|
|
4333
|
+
#
|
|
4334
|
+
# @return [String, nil]
|
|
4335
|
+
required :account_identifier, String, nil?: true
|
|
4336
|
+
|
|
4337
|
+
# @!attribute account_score
|
|
4338
|
+
# How much the digital wallet trusts the cardholder's account, from 1 to 5. A
|
|
4339
|
+
# higher score indicates more trust.
|
|
4340
|
+
#
|
|
4341
|
+
# @return [Integer, nil]
|
|
4342
|
+
required :account_score, Integer, nil?: true
|
|
4343
|
+
|
|
4344
|
+
# @!attribute device_score
|
|
4345
|
+
# How much the digital wallet trusts the device the card is being added to, from 1
|
|
4346
|
+
# to 5. A higher score indicates more trust.
|
|
4347
|
+
#
|
|
4348
|
+
# @return [Integer, nil]
|
|
4349
|
+
required :device_score, Integer, nil?: true
|
|
4350
|
+
|
|
4351
|
+
# @!attribute email_hash
|
|
4352
|
+
# A hash of the email address on the cardholder's digital wallet account.
|
|
4353
|
+
#
|
|
4354
|
+
# @return [String, nil]
|
|
4355
|
+
required :email_hash, String, nil?: true
|
|
4356
|
+
|
|
4357
|
+
# @!method initialize(account_email_age_days:, account_identifier:, account_score:, device_score:, email_hash:)
|
|
4358
|
+
# Details about the digital wallet.
|
|
4359
|
+
#
|
|
4360
|
+
# @param account_email_age_days [Integer, nil]
|
|
4361
|
+
# The number of days since the email address was added to the cardholder's digital
|
|
4362
|
+
# wallet account, up to 999.
|
|
4363
|
+
#
|
|
4364
|
+
# @param account_identifier [String, nil]
|
|
4365
|
+
# An identifier for the cardholder's account with the digital wallet.
|
|
4366
|
+
#
|
|
4367
|
+
# @param account_score [Integer, nil]
|
|
4368
|
+
# How much the digital wallet trusts the cardholder's account, from 1 to 5. A
|
|
4369
|
+
# higher score indicates more trust.
|
|
4370
|
+
#
|
|
4371
|
+
# @param device_score [Integer, nil]
|
|
4372
|
+
# How much the digital wallet trusts the device the card is being added to, from 1
|
|
4373
|
+
# to 5. A higher score indicates more trust.
|
|
4374
|
+
#
|
|
4375
|
+
# @param email_hash [String, nil] A hash of the email address on the cardholder's digital wallet account.
|
|
4376
|
+
end
|
|
4048
4377
|
end
|
|
4049
4378
|
|
|
4050
4379
|
# The status of the Real-Time Decision.
|
|
@@ -76,6 +76,12 @@ module Increase
|
|
|
76
76
|
# @return [Symbol, Increase::Models::RealTimePaymentsTransfer::Currency]
|
|
77
77
|
required :currency, enum: -> { Increase::RealTimePaymentsTransfer::Currency }
|
|
78
78
|
|
|
79
|
+
# @!attribute debtor_address
|
|
80
|
+
# The address of the transfer's sender.
|
|
81
|
+
#
|
|
82
|
+
# @return [Increase::Models::RealTimePaymentsTransfer::DebtorAddress, nil]
|
|
83
|
+
required :debtor_address, -> { Increase::RealTimePaymentsTransfer::DebtorAddress }, nil?: true
|
|
84
|
+
|
|
79
85
|
# @!attribute debtor_name
|
|
80
86
|
# The name of the transfer's sender. If not provided, defaults to the name of the
|
|
81
87
|
# account's entity.
|
|
@@ -192,7 +198,7 @@ module Increase
|
|
|
192
198
|
# @return [String]
|
|
193
199
|
required :unstructured_remittance_information, String
|
|
194
200
|
|
|
195
|
-
# @!method initialize(id:, account_id:, account_number:, acknowledgement:, amount:, approval:, cancellation:, created_at:, created_by:, creditor_name:, currency:, debtor_name:, end_to_end_identification:, external_account_id:, idempotency_key:, inbound_real_time_payments_request_for_payment_id:, pending_transaction_id:, rejection:, return_of_inbound_real_time_payments_transfer_id:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:, ultimate_creditor_name:, ultimate_debtor_name:, unstructured_remittance_information:)
|
|
201
|
+
# @!method initialize(id:, account_id:, account_number:, acknowledgement:, amount:, approval:, cancellation:, created_at:, created_by:, creditor_name:, currency:, debtor_address:, debtor_name:, end_to_end_identification:, external_account_id:, idempotency_key:, inbound_real_time_payments_request_for_payment_id:, pending_transaction_id:, rejection:, return_of_inbound_real_time_payments_transfer_id:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:, ultimate_creditor_name:, ultimate_debtor_name:, unstructured_remittance_information:)
|
|
196
202
|
# Real-Time Payments transfers move funds, within seconds, between your Increase
|
|
197
203
|
# account and any other account on the Real-Time Payments network.
|
|
198
204
|
#
|
|
@@ -231,6 +237,9 @@ module Increase
|
|
|
231
237
|
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
|
232
238
|
# currency. For real-time payments transfers this is always equal to `USD`.
|
|
233
239
|
#
|
|
240
|
+
# @param debtor_address [Increase::Models::RealTimePaymentsTransfer::DebtorAddress, nil]
|
|
241
|
+
# The address of the transfer's sender.
|
|
242
|
+
#
|
|
234
243
|
# @param debtor_name [String, nil]
|
|
235
244
|
# The name of the transfer's sender. If not provided, defaults to the name of the
|
|
236
245
|
# account's entity.
|
|
@@ -487,6 +496,71 @@ module Increase
|
|
|
487
496
|
# @return [Array<Symbol>]
|
|
488
497
|
end
|
|
489
498
|
|
|
499
|
+
# @see Increase::Models::RealTimePaymentsTransfer#debtor_address
|
|
500
|
+
class DebtorAddress < Increase::Internal::Type::BaseModel
|
|
501
|
+
# @!attribute address_line2
|
|
502
|
+
# A second address line, such as an apartment or suite number. The first address
|
|
503
|
+
# line is separated into `building_number` and `street_name`.
|
|
504
|
+
#
|
|
505
|
+
# @return [String, nil]
|
|
506
|
+
required :address_line2, String, nil?: true
|
|
507
|
+
|
|
508
|
+
# @!attribute building_number
|
|
509
|
+
# The number identifying the position of the building on the street.
|
|
510
|
+
#
|
|
511
|
+
# @return [String, nil]
|
|
512
|
+
required :building_number, String, nil?: true
|
|
513
|
+
|
|
514
|
+
# @!attribute city
|
|
515
|
+
# The town or city.
|
|
516
|
+
#
|
|
517
|
+
# @return [String, nil]
|
|
518
|
+
required :city, String, nil?: true
|
|
519
|
+
|
|
520
|
+
# @!attribute country
|
|
521
|
+
# The ISO 3166, Alpha-2 country code.
|
|
522
|
+
#
|
|
523
|
+
# @return [String, nil]
|
|
524
|
+
required :country, String, nil?: true
|
|
525
|
+
|
|
526
|
+
# @!attribute postal_code
|
|
527
|
+
# The postal code or zip.
|
|
528
|
+
#
|
|
529
|
+
# @return [String, nil]
|
|
530
|
+
required :postal_code, String, nil?: true
|
|
531
|
+
|
|
532
|
+
# @!attribute state
|
|
533
|
+
# The US state component of the address.
|
|
534
|
+
#
|
|
535
|
+
# @return [String, nil]
|
|
536
|
+
required :state, String, nil?: true
|
|
537
|
+
|
|
538
|
+
# @!attribute street_name
|
|
539
|
+
# The street name without the street number.
|
|
540
|
+
#
|
|
541
|
+
# @return [String, nil]
|
|
542
|
+
required :street_name, String, nil?: true
|
|
543
|
+
|
|
544
|
+
# @!method initialize(address_line2:, building_number:, city:, country:, postal_code:, state:, street_name:)
|
|
545
|
+
# The address of the transfer's sender.
|
|
546
|
+
#
|
|
547
|
+
# @param address_line2 [String, nil]
|
|
548
|
+
# A second address line, such as an apartment or suite number. The first address
|
|
549
|
+
# line is separated into `building_number` and `street_name`.
|
|
550
|
+
#
|
|
551
|
+
# @param building_number [String, nil] The number identifying the position of the building on the street.
|
|
552
|
+
#
|
|
553
|
+
# @param city [String, nil] The town or city.
|
|
554
|
+
#
|
|
555
|
+
# @param country [String, nil] The ISO 3166, Alpha-2 country code.
|
|
556
|
+
#
|
|
557
|
+
# @param postal_code [String, nil] The postal code or zip.
|
|
558
|
+
#
|
|
559
|
+
# @param state [String, nil] The US state component of the address.
|
|
560
|
+
#
|
|
561
|
+
# @param street_name [String, nil] The street name without the street number.
|
|
562
|
+
end
|
|
563
|
+
|
|
490
564
|
# @see Increase::Models::RealTimePaymentsTransfer#rejection
|
|
491
565
|
class Rejection < Increase::Internal::Type::BaseModel
|
|
492
566
|
# @!attribute reject_reason_additional_information
|