increase 1.367.0 → 1.369.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/card_payment.rb +30 -0
  4. data/lib/increase/models/declined_transaction.rb +3 -0
  5. data/lib/increase/models/digital_wallet_token.rb +63 -1
  6. data/lib/increase/models/digital_wallet_token_request.rb +327 -1
  7. data/lib/increase/models/export.rb +19 -5
  8. data/lib/increase/models/export_create_params.rb +36 -13
  9. data/lib/increase/models/inbound_check_deposit.rb +0 -3
  10. data/lib/increase/models/inbound_fednow_transfer.rb +3 -0
  11. data/lib/increase/models/pending_transaction.rb +76 -1
  12. data/lib/increase/models/pending_transaction_list_params.rb +3 -0
  13. data/lib/increase/models/real_time_decision.rb +330 -1
  14. data/lib/increase/models/simulations/card_refund_create_params.rb +2 -2
  15. data/lib/increase/models/transaction.rb +86 -1
  16. data/lib/increase/models/transaction_list_params.rb +3 -0
  17. data/lib/increase/resources/exports.rb +5 -1
  18. data/lib/increase/resources/simulations/card_refunds.rb +1 -1
  19. data/lib/increase/version.rb +1 -1
  20. data/rbi/increase/models/card_payment.rbi +70 -0
  21. data/rbi/increase/models/declined_transaction.rbi +7 -0
  22. data/rbi/increase/models/digital_wallet_token.rbi +114 -3
  23. data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
  24. data/rbi/increase/models/export.rbi +18 -6
  25. data/rbi/increase/models/export_create_params.rbi +44 -15
  26. data/rbi/increase/models/inbound_check_deposit.rbi +0 -3
  27. data/rbi/increase/models/inbound_fednow_transfer.rbi +7 -0
  28. data/rbi/increase/models/pending_transaction.rbi +162 -0
  29. data/rbi/increase/models/pending_transaction_list_params.rbi +7 -0
  30. data/rbi/increase/models/real_time_decision.rbi +623 -3
  31. data/rbi/increase/models/simulations/card_refund_create_params.rbi +2 -2
  32. data/rbi/increase/models/transaction.rbi +179 -0
  33. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  34. data/rbi/increase/resources/exports.rbi +5 -1
  35. data/rbi/increase/resources/simulations/card_refunds.rbi +1 -1
  36. data/sig/increase/models/card_payment.rbs +40 -0
  37. data/sig/increase/models/declined_transaction.rbs +4 -0
  38. data/sig/increase/models/digital_wallet_token.rbs +40 -3
  39. data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
  40. data/sig/increase/models/export.rbs +13 -4
  41. data/sig/increase/models/export_create_params.rbs +16 -5
  42. data/sig/increase/models/inbound_fednow_transfer.rbs +4 -0
  43. data/sig/increase/models/pending_transaction.rbs +63 -0
  44. data/sig/increase/models/pending_transaction_list_params.rbs +4 -0
  45. data/sig/increase/models/real_time_decision.rbs +245 -3
  46. data/sig/increase/models/transaction.rbs +71 -0
  47. data/sig/increase/models/transaction_list_params.rbs +4 -0
  48. metadata +2 -2
@@ -256,11 +256,19 @@ module Increase
256
256
  # @return [String, nil]
257
257
  required :account_id, String, nil?: true
258
258
 
259
- # @!attribute effective_date
260
- # The UTC date for which to retrieve the balance.
259
+ # @!attribute on_or_after_date
260
+ # The first as-of date (UTC) reported in the BAI2 file. If null, the report
261
+ # started from the earliest included Account.
262
+ #
263
+ # @return [Date, nil]
264
+ required :on_or_after_date, Date, nil?: true
265
+
266
+ # @!attribute on_or_before_date
267
+ # The last as-of date (UTC) reported in the BAI2 file. If null, the report ran
268
+ # through the date the Export was created.
261
269
  #
262
270
  # @return [Date, nil]
263
- required :effective_date, Date, nil?: true
271
+ required :on_or_before_date, Date, nil?: true
264
272
 
265
273
  # @!attribute program_id
266
274
  # Filter results by Program.
@@ -268,13 +276,19 @@ module Increase
268
276
  # @return [String, nil]
269
277
  required :program_id, String, nil?: true
270
278
 
271
- # @!method initialize(account_id:, effective_date:, program_id:)
279
+ # @!method initialize(account_id:, on_or_after_date:, on_or_before_date:, program_id:)
272
280
  # Details of the account statement BAI2 export. This field will be present when
273
281
  # the `category` is equal to `account_statement_bai2`.
274
282
  #
275
283
  # @param account_id [String, nil] Filter results by Account.
276
284
  #
277
- # @param effective_date [Date, nil] The UTC date for which to retrieve the balance.
285
+ # @param on_or_after_date [Date, nil]
286
+ # The first as-of date (UTC) reported in the BAI2 file. If null, the report
287
+ # started from the earliest included Account.
288
+ #
289
+ # @param on_or_before_date [Date, nil]
290
+ # The last as-of date (UTC) reported in the BAI2 file. If null, the report ran
291
+ # through the date the Export was created.
278
292
  #
279
293
  # @param program_id [String, nil] Filter results by Program.
280
294
  end
@@ -15,7 +15,11 @@ module Increase
15
15
 
16
16
  # @!attribute account_statement_bai2
17
17
  # Options for the created export. Required if `category` is equal to
18
- # `account_statement_bai2`.
18
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
19
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
20
+ # group's as-of date is before the UTC date the Export was created, it has
21
+ # end-of-day balances. If it's the UTC date the Export was created, it has
22
+ # intraday balances as of the time the Export was created.
19
23
  #
20
24
  # @return [Increase::Models::ExportCreateParams::AccountStatementBai2, nil]
21
25
  optional :account_statement_bai2, -> { Increase::ExportCreateParams::AccountStatementBai2 }
@@ -93,7 +97,11 @@ module Increase
93
97
  #
94
98
  # @param account_statement_bai2 [Increase::Models::ExportCreateParams::AccountStatementBai2]
95
99
  # Options for the created export. Required if `category` is equal to
96
- # `account_statement_bai2`.
100
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
101
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
102
+ # group's as-of date is before the UTC date the Export was created, it has
103
+ # end-of-day balances. If it's the UTC date the Export was created, it has
104
+ # intraday balances as of the time the Export was created.
97
105
  #
98
106
  # @param account_statement_ofx [Increase::Models::ExportCreateParams::AccountStatementOfx]
99
107
  # Options for the created export. Required if `category` is equal to
@@ -186,13 +194,20 @@ module Increase
186
194
  # @return [String, nil]
187
195
  optional :account_id, String
188
196
 
189
- # @!attribute effective_date
190
- # The UTC date to create a BAI2 report for. If not provided, the current date will
191
- # be used. If the current date is used, the report will include intraday balances,
192
- # otherwise it will include end-of-day balances for the provided date.
197
+ # @!attribute on_or_after_date
198
+ # The first as-of date (UTC) to report. Each as-of date gets its own group in the
199
+ # BAI2 file. If not provided, the report starts from the earliest included
200
+ # Account.
201
+ #
202
+ # @return [Date, nil]
203
+ optional :on_or_after_date, Date
204
+
205
+ # @!attribute on_or_before_date
206
+ # The last as-of date (UTC) to report. If not provided, the report runs through
207
+ # the current UTC date.
193
208
  #
194
209
  # @return [Date, nil]
195
- optional :effective_date, Date
210
+ optional :on_or_before_date, Date
196
211
 
197
212
  # @!attribute program_id
198
213
  # The Program to create a BAI2 report for. If not provided, all open accounts will
@@ -201,18 +216,26 @@ module Increase
201
216
  # @return [String, nil]
202
217
  optional :program_id, String
203
218
 
204
- # @!method initialize(account_id: nil, effective_date: nil, program_id: nil)
219
+ # @!method initialize(account_id: nil, on_or_after_date: nil, on_or_before_date: nil, program_id: nil)
205
220
  # Options for the created export. Required if `category` is equal to
206
- # `account_statement_bai2`.
221
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
222
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
223
+ # group's as-of date is before the UTC date the Export was created, it has
224
+ # end-of-day balances. If it's the UTC date the Export was created, it has
225
+ # intraday balances as of the time the Export was created.
207
226
  #
208
227
  # @param account_id [String]
209
228
  # The Account to create a BAI2 report for. If not provided, all open accounts will
210
229
  # be included.
211
230
  #
212
- # @param effective_date [Date]
213
- # The UTC date to create a BAI2 report for. If not provided, the current date will
214
- # be used. If the current date is used, the report will include intraday balances,
215
- # otherwise it will include end-of-day balances for the provided date.
231
+ # @param on_or_after_date [Date]
232
+ # The first as-of date (UTC) to report. Each as-of date gets its own group in the
233
+ # BAI2 file. If not provided, the report starts from the earliest included
234
+ # Account.
235
+ #
236
+ # @param on_or_before_date [Date]
237
+ # The last as-of date (UTC) to report. If not provided, the report runs through
238
+ # the current UTC date.
216
239
  #
217
240
  # @param program_id [String]
218
241
  # The Program to create a BAI2 report for. If not provided, all open accounts will
@@ -128,7 +128,6 @@ module Increase
128
128
 
129
129
  # @!attribute payee_name_analysis
130
130
  # Whether the details on the check match the recipient name of the check transfer.
131
- # This is an optional feature, contact sales to enable.
132
131
  #
133
132
  # @return [Symbol, Increase::Models::InboundCheckDeposit::PayeeNameAnalysis]
134
133
  required :payee_name_analysis, enum: -> { Increase::InboundCheckDeposit::PayeeNameAnalysis }
@@ -220,7 +219,6 @@ module Increase
220
219
  #
221
220
  # @param payee_name_analysis [Symbol, Increase::Models::InboundCheckDeposit::PayeeNameAnalysis]
222
221
  # Whether the details on the check match the recipient name of the check transfer.
223
- # This is an optional feature, contact sales to enable.
224
222
  #
225
223
  # @param status [Symbol, Increase::Models::InboundCheckDeposit::Status]
226
224
  # The status of the Inbound Check Deposit.
@@ -365,7 +363,6 @@ module Increase
365
363
  end
366
364
 
367
365
  # Whether the details on the check match the recipient name of the check transfer.
368
- # This is an optional feature, contact sales to enable.
369
366
  #
370
367
  # @see Increase::Models::InboundCheckDeposit#payee_name_analysis
371
368
  module PayeeNameAnalysis
@@ -292,6 +292,9 @@ module Increase
292
292
  # The transfer has been declined.
293
293
  DECLINED = :declined
294
294
 
295
+ # The transfer has been returned, in full or in part, to its sender.
296
+ RETURNED = :returned
297
+
295
298
  # The transfer requires attention from an Increase operator.
296
299
  REQUIRES_ATTENTION = :requires_attention
297
300
 
@@ -290,6 +290,17 @@ module Increase
290
290
  -> { Increase::PendingTransaction::Source::FednowTransferInstruction },
291
291
  nil?: true
292
292
 
293
+ # @!attribute inbound_fednow_transfer_return
294
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
295
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
296
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
297
+ # transfer and the User requests that it be returned.
298
+ #
299
+ # @return [Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn, nil]
300
+ optional :inbound_fednow_transfer_return,
301
+ -> { Increase::PendingTransaction::Source::InboundFednowTransferReturn },
302
+ nil?: true
303
+
293
304
  # @!attribute inbound_funds_hold
294
305
  # An Inbound Funds Hold object. This field will be present in the JSON response if
295
306
  # and only if `category` is equal to `inbound_funds_hold`. We hold funds for
@@ -379,7 +390,7 @@ module Increase
379
390
  -> { Increase::PendingTransaction::Source::WireTransferInstruction },
380
391
  nil?: true
381
392
 
382
- # @!method initialize(category:, account_transfer_instruction: nil, ach_transfer_instruction: nil, blockchain_offramp_transfer: nil, blockchain_onramp_transfer_instruction: nil, card_authorization: nil, card_push_transfer_instruction: nil, check_deposit_instruction: nil, check_transfer_instruction: nil, fednow_transfer_instruction: nil, inbound_funds_hold: nil, inbound_wire_transfer_reversal: nil, other: nil, real_time_payments_transfer_instruction: nil, sepa_instant_transfer_instruction: nil, swift_transfer_instruction: nil, uk_faster_payment_system_transfer_instruction: nil, user_initiated_hold: nil, wire_transfer_instruction: nil)
393
+ # @!method initialize(category:, account_transfer_instruction: nil, ach_transfer_instruction: nil, blockchain_offramp_transfer: nil, blockchain_onramp_transfer_instruction: nil, card_authorization: nil, card_push_transfer_instruction: nil, check_deposit_instruction: nil, check_transfer_instruction: nil, fednow_transfer_instruction: nil, inbound_fednow_transfer_return: nil, inbound_funds_hold: nil, inbound_wire_transfer_reversal: nil, other: nil, real_time_payments_transfer_instruction: nil, sepa_instant_transfer_instruction: nil, swift_transfer_instruction: nil, uk_faster_payment_system_transfer_instruction: nil, user_initiated_hold: nil, wire_transfer_instruction: nil)
383
394
  # This is an object giving more details on the network-level event that caused the
384
395
  # Pending Transaction. For example, for a card transaction this lists the
385
396
  # merchant's industry and location.
@@ -429,6 +440,12 @@ module Increase
429
440
  # A FedNow Transfer Instruction object. This field will be present in the JSON
430
441
  # response if and only if `category` is equal to `fednow_transfer_instruction`.
431
442
  #
443
+ # @param inbound_fednow_transfer_return [Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn, nil]
444
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
445
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
446
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
447
+ # transfer and the User requests that it be returned.
448
+ #
432
449
  # @param inbound_funds_hold [Increase::Models::PendingTransaction::Source::InboundFundsHold, nil]
433
450
  # An Inbound Funds Hold object. This field will be present in the JSON response if
434
451
  # and only if `category` is equal to `inbound_funds_hold`. We hold funds for
@@ -498,6 +515,9 @@ module Increase
498
515
  # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
499
516
  FEDNOW_TRANSFER_INSTRUCTION = :fednow_transfer_instruction
500
517
 
518
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
519
+ INBOUND_FEDNOW_TRANSFER_RETURN = :inbound_fednow_transfer_return
520
+
501
521
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
502
522
  INBOUND_FUNDS_HOLD = :inbound_funds_hold
503
523
 
@@ -2221,6 +2241,9 @@ module Increase
2221
2241
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
2222
2242
  PULSE_SWITCH_FEE = :pulse_switch_fee
2223
2243
 
2244
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
2245
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
2246
+
2224
2247
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
2225
2248
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
2226
2249
 
@@ -2592,6 +2615,58 @@ module Increase
2592
2615
  # @param transfer_id [String] The identifier of the FedNow Transfer that led to this Pending Transaction.
2593
2616
  end
2594
2617
 
2618
+ # @see Increase::Models::PendingTransaction::Source#inbound_fednow_transfer_return
2619
+ class InboundFednowTransferReturn < Increase::Internal::Type::BaseModel
2620
+ # @!attribute inbound_fednow_transfer_id
2621
+ # The identifier of the Inbound FedNow Transfer that is being returned.
2622
+ #
2623
+ # @return [String]
2624
+ required :inbound_fednow_transfer_id, String
2625
+
2626
+ # @!attribute reason
2627
+ # The reason for the return.
2628
+ #
2629
+ # @return [Symbol, Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::Reason]
2630
+ required :reason, enum: -> { Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason }
2631
+
2632
+ # @!method initialize(inbound_fednow_transfer_id:, reason:)
2633
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
2634
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
2635
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
2636
+ # transfer and the User requests that it be returned.
2637
+ #
2638
+ # @param inbound_fednow_transfer_id [String]
2639
+ # The identifier of the Inbound FedNow Transfer that is being returned.
2640
+ #
2641
+ # @param reason [Symbol, Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::Reason]
2642
+ # The reason for the return.
2643
+
2644
+ # The reason for the return.
2645
+ #
2646
+ # @see Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn#reason
2647
+ module Reason
2648
+ extend Increase::Internal::Type::Enum
2649
+
2650
+ # The inbound FedNow transfer was a duplicate. Corresponds to the FedNow reason code `DUPL`.
2651
+ DUPLICATE = :duplicate
2652
+
2653
+ # The recipient of the inbound FedNow transfer requested the funds be returned to the sender. Corresponds to the FedNow reason code `CUST`.
2654
+ CREDITOR_REQUEST = :creditor_request
2655
+
2656
+ # The inbound FedNow transfer was for the wrong amount. Corresponds to the FedNow reason code `AM09`.
2657
+ WRONG_AMOUNT = :wrong_amount
2658
+
2659
+ # The recipient of the inbound FedNow transfer was not owed the funds. Corresponds to the FedNow reason code `UPAY`.
2660
+ UNDUE_PAYMENT = :undue_payment
2661
+
2662
+ # The inbound FedNow transfer was determined to be fraudulent. Corresponds to the FedNow reason code `FR01`, and reports the fraud to the Federal Reserve and the sending bank.
2663
+ FRAUD = :fraud
2664
+
2665
+ # @!method self.values
2666
+ # @return [Array<Symbol>]
2667
+ end
2668
+ end
2669
+
2595
2670
  # @see Increase::Models::PendingTransaction::Source#inbound_funds_hold
2596
2671
  class InboundFundsHold < Increase::Internal::Type::BaseModel
2597
2672
  # @!attribute amount
@@ -108,6 +108,9 @@ module Increase
108
108
  # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
109
109
  FEDNOW_TRANSFER_INSTRUCTION = :fednow_transfer_instruction
110
110
 
111
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
112
+ INBOUND_FEDNOW_TRANSFER_RETURN = :inbound_fednow_transfer_return
113
+
111
114
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
112
115
  INBOUND_FUNDS_HOLD = :inbound_funds_hold
113
116
 
@@ -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
- # @!method initialize(card_id:, decision:, device:, digital_wallet:)
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.