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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98e0ff963d3d275e9d524bc177b51d7d3367250d023e03ecb1297e047f6d91d9
4
- data.tar.gz: bd91efc473f5df56ffa23baa5cb7989e9cf2a415b0c7c20a427e122b242922f6
3
+ metadata.gz: 51dda6e70e9003f0282f9d4c721adcdeefda26ec6ee1d50aba405d43212b31a1
4
+ data.tar.gz: 524ee7f4348a1452eaba9c1cfbb40b76aeb50e47a2d6c099f23f7b9a61505f95
5
5
  SHA512:
6
- metadata.gz: 6fcf7d6a933dd0d04acb9bee822fe14370a062f3d9ddf1bf57ec7c066b2c066a93dd5c6237dc81792988b05751a89da5e9cdd3e29d5ad04cf2bdd33d081dacfd
7
- data.tar.gz: 2097487a3b63b2661a217b04ea67c7902b134fd1730e68b7342e97d25f873ac4a842005452414cc7051558bc0f1a657687c714de4d6cf7e830a787cc21d08de4
6
+ metadata.gz: f26f45e0c4978b99d1fd2f2f2ca3b76dde6b7dfa1fc1e90e551aa0a62f367329410daa1a10968b7611c2320e0a97da6211d0d88f3628d079bafabf17be79989a
7
+ data.tar.gz: aa97a72158c9c3a3fb847ad06cc5b445b00c9764ff59875a892be5a2d3f3c62f8547366adeda73b8238706b9041002668bc831d7cc3ad3a4d842670c65ca024b
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.367.0"
18
+ gem "increase", "~> 1.369.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -2793,6 +2793,9 @@ module Increase
2793
2793
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
2794
2794
  PULSE_SWITCH_FEE = :pulse_switch_fee
2795
2795
 
2796
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
2797
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
2798
+
2796
2799
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
2797
2800
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
2798
2801
 
@@ -4306,6 +4309,9 @@ module Increase
4306
4309
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
4307
4310
  PULSE_SWITCH_FEE = :pulse_switch_fee
4308
4311
 
4312
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
4313
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
4314
+
4309
4315
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
4310
4316
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
4311
4317
 
@@ -5973,6 +5979,9 @@ module Increase
5973
5979
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
5974
5980
  PULSE_SWITCH_FEE = :pulse_switch_fee
5975
5981
 
5982
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
5983
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
5984
+
5976
5985
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
5977
5986
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
5978
5987
 
@@ -7502,6 +7511,9 @@ module Increase
7502
7511
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
7503
7512
  PULSE_SWITCH_FEE = :pulse_switch_fee
7504
7513
 
7514
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
7515
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
7516
+
7505
7517
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
7506
7518
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
7507
7519
 
@@ -8076,6 +8088,9 @@ module Increase
8076
8088
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
8077
8089
  PULSE_SWITCH_FEE = :pulse_switch_fee
8078
8090
 
8091
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
8092
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
8093
+
8079
8094
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
8080
8095
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
8081
8096
 
@@ -8972,6 +8987,9 @@ module Increase
8972
8987
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
8973
8988
  PULSE_SWITCH_FEE = :pulse_switch_fee
8974
8989
 
8990
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
8991
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
8992
+
8975
8993
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
8976
8994
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
8977
8995
 
@@ -11294,6 +11312,9 @@ module Increase
11294
11312
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
11295
11313
  PULSE_SWITCH_FEE = :pulse_switch_fee
11296
11314
 
11315
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
11316
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
11317
+
11297
11318
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
11298
11319
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
11299
11320
 
@@ -11826,6 +11847,9 @@ module Increase
11826
11847
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
11827
11848
  PULSE_SWITCH_FEE = :pulse_switch_fee
11828
11849
 
11850
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
11851
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
11852
+
11829
11853
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
11830
11854
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
11831
11855
 
@@ -14181,6 +14205,9 @@ module Increase
14181
14205
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
14182
14206
  PULSE_SWITCH_FEE = :pulse_switch_fee
14183
14207
 
14208
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
14209
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
14210
+
14184
14211
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
14185
14212
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
14186
14213
 
@@ -15439,6 +15466,9 @@ module Increase
15439
15466
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
15440
15467
  PULSE_SWITCH_FEE = :pulse_switch_fee
15441
15468
 
15469
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
15470
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
15471
+
15442
15472
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
15443
15473
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
15444
15474
 
@@ -1946,6 +1946,9 @@ module Increase
1946
1946
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
1947
1947
  PULSE_SWITCH_FEE = :pulse_switch_fee
1948
1948
 
1949
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
1950
+ PULSE_SWITCH_FEE_CREDIT = :pulse_switch_fee_credit
1951
+
1949
1952
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
1950
1953
  PULSE_TOKENIZATION_FEE = :pulse_tokenization_fee
1951
1954
 
@@ -73,6 +73,12 @@ module Increase
73
73
  # @return [Symbol, Increase::Models::DigitalWalletToken::TokenRequestor]
74
74
  required :token_requestor, enum: -> { Increase::DigitalWalletToken::TokenRequestor }
75
75
 
76
+ # @!attribute token_requestor_details
77
+ # The digital wallet or merchant that requested the token.
78
+ #
79
+ # @return [Increase::Models::DigitalWalletToken::TokenRequestorDetails]
80
+ required :token_requestor_details, -> { Increase::DigitalWalletToken::TokenRequestorDetails }
81
+
76
82
  # @!attribute type
77
83
  # A constant representing the object's type. For this resource it will always be
78
84
  # `digital_wallet_token`.
@@ -86,7 +92,13 @@ module Increase
86
92
  # @return [Array<Increase::Models::DigitalWalletToken::Update>]
87
93
  required :updates, -> { Increase::Internal::Type::ArrayOf[Increase::DigitalWalletToken::Update] }
88
94
 
89
- # @!method initialize(id:, account_id:, card_id:, cardholder:, created_at:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, type:, updates:)
95
+ # @!attribute wallet
96
+ # Details about the digital wallet.
97
+ #
98
+ # @return [Increase::Models::DigitalWalletToken::Wallet]
99
+ required :wallet, -> { Increase::DigitalWalletToken::Wallet }
100
+
101
+ # @!method initialize(id:, account_id:, card_id:, cardholder:, created_at:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, token_requestor_details:, type:, updates:, wallet:)
90
102
  # A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
91
103
  # Google Pay app. The Digital Wallet Token can be used for purchases just like a
92
104
  # Card.
@@ -122,11 +134,16 @@ module Increase
122
134
  # @param token_requestor [Symbol, Increase::Models::DigitalWalletToken::TokenRequestor]
123
135
  # The digital wallet app being used.
124
136
  #
137
+ # @param token_requestor_details [Increase::Models::DigitalWalletToken::TokenRequestorDetails]
138
+ # The digital wallet or merchant that requested the token.
139
+ #
125
140
  # @param type [Symbol, Increase::Models::DigitalWalletToken::Type]
126
141
  # A constant representing the object's type. For this resource it will always be
127
142
  # `digital_wallet_token`.
128
143
  #
129
144
  # @param updates [Array<Increase::Models::DigitalWalletToken::Update>] Updates to the Digital Wallet Token.
145
+ #
146
+ # @param wallet [Increase::Models::DigitalWalletToken::Wallet] Details about the digital wallet.
130
147
 
131
148
  # @see Increase::Models::DigitalWalletToken#cardholder
132
149
  class Cardholder < Increase::Internal::Type::BaseModel
@@ -289,6 +306,28 @@ module Increase
289
306
  # @return [Array<Symbol>]
290
307
  end
291
308
 
309
+ # @see Increase::Models::DigitalWalletToken#token_requestor_details
310
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
311
+ # @!attribute identifier
312
+ # The identifier assigned to the token requestor by the card network.
313
+ #
314
+ # @return [String]
315
+ required :identifier, String
316
+
317
+ # @!attribute name
318
+ # The name of the token requestor, for example "Apple Inc.".
319
+ #
320
+ # @return [String, nil]
321
+ required :name, String, nil?: true
322
+
323
+ # @!method initialize(identifier:, name:)
324
+ # The digital wallet or merchant that requested the token.
325
+ #
326
+ # @param identifier [String] The identifier assigned to the token requestor by the card network.
327
+ #
328
+ # @param name [String, nil] The name of the token requestor, for example "Apple Inc.".
329
+ end
330
+
292
331
  # A constant representing the object's type. For this resource it will always be
293
332
  # `digital_wallet_token`.
294
333
  #
@@ -349,6 +388,29 @@ module Increase
349
388
  # @return [Array<Symbol>]
350
389
  end
351
390
  end
391
+
392
+ # @see Increase::Models::DigitalWalletToken#wallet
393
+ class Wallet < Increase::Internal::Type::BaseModel
394
+ # @!attribute account_identifier
395
+ # An identifier for the cardholder's account with the digital wallet.
396
+ #
397
+ # @return [String, nil]
398
+ required :account_identifier, String, nil?: true
399
+
400
+ # @!attribute email_hash
401
+ # A hash of the email address on the cardholder's digital wallet account.
402
+ #
403
+ # @return [String, nil]
404
+ required :email_hash, String, nil?: true
405
+
406
+ # @!method initialize(account_identifier:, email_hash:)
407
+ # Details about the digital wallet.
408
+ #
409
+ # @param account_identifier [String, nil]
410
+ # An identifier for the cardholder's account with the digital wallet.
411
+ #
412
+ # @param email_hash [String, nil] A hash of the email address on the cardholder's digital wallet account.
413
+ end
352
414
  end
353
415
  end
354
416
  end
@@ -16,6 +16,12 @@ module Increase
16
16
  # @return [String]
17
17
  required :card_id, String
18
18
 
19
+ # @!attribute cardholder
20
+ # The cardholder adding the card to the digital wallet.
21
+ #
22
+ # @return [Increase::Models::DigitalWalletTokenRequest::Cardholder]
23
+ required :cardholder, -> { Increase::DigitalWalletTokenRequest::Cardholder }
24
+
19
25
  # @!attribute created_at
20
26
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
21
27
  # the Digital Wallet Token Request was created.
@@ -35,12 +41,26 @@ module Increase
35
41
  # @return [Increase::Models::DigitalWalletTokenRequest::Device]
36
42
  required :device, -> { Increase::DigitalWalletTokenRequest::Device }
37
43
 
44
+ # @!attribute network
45
+ # The card network the token is being provisioned on.
46
+ #
47
+ # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Network]
48
+ required :network, enum: -> { Increase::DigitalWalletTokenRequest::Network }
49
+
38
50
  # @!attribute outcome
39
51
  # The outcome of the tokenization request.
40
52
  #
41
53
  # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Outcome]
42
54
  required :outcome, enum: -> { Increase::DigitalWalletTokenRequest::Outcome }
43
55
 
56
+ # @!attribute primary_account_number_source
57
+ # How the card number was provided to the digital wallet.
58
+ #
59
+ # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::PrimaryAccountNumberSource, nil]
60
+ required :primary_account_number_source,
61
+ enum: -> { Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource },
62
+ nil?: true
63
+
44
64
  # @!attribute provisioned
45
65
  # Details of the provisioned Digital Wallet Token. Present if and only if
46
66
  # `outcome` is `provisioned`.
@@ -60,6 +80,12 @@ module Increase
60
80
  # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::TokenRequestor]
61
81
  required :token_requestor, enum: -> { Increase::DigitalWalletTokenRequest::TokenRequestor }
62
82
 
83
+ # @!attribute token_requestor_details
84
+ # The digital wallet or merchant that requested the token.
85
+ #
86
+ # @return [Increase::Models::DigitalWalletTokenRequest::TokenRequestorDetails]
87
+ required :token_requestor_details, -> { Increase::DigitalWalletTokenRequest::TokenRequestorDetails }
88
+
63
89
  # @!attribute type
64
90
  # A constant representing the object's type. For this resource it will always be
65
91
  # `digital_wallet_token_request`.
@@ -67,7 +93,26 @@ module Increase
67
93
  # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Type]
68
94
  required :type, enum: -> { Increase::DigitalWalletTokenRequest::Type }
69
95
 
70
- # @!method initialize(id:, card_id:, created_at:, declined:, device:, outcome:, provisioned:, token_reference_identifier:, token_requestor:, type:)
96
+ # @!attribute verification
97
+ # Fields related to verification of cardholder-provided values.
98
+ #
99
+ # @return [Increase::Models::DigitalWalletTokenRequest::Verification]
100
+ required :verification, -> { Increase::DigitalWalletTokenRequest::Verification }
101
+
102
+ # @!attribute visa
103
+ # Risk scores provided by Visa for the provisioning request. This field will be
104
+ # present in the JSON response if and only if `network` is equal to `visa`.
105
+ #
106
+ # @return [Increase::Models::DigitalWalletTokenRequest::Visa, nil]
107
+ required :visa, -> { Increase::DigitalWalletTokenRequest::Visa }, nil?: true
108
+
109
+ # @!attribute wallet
110
+ # Details about the digital wallet.
111
+ #
112
+ # @return [Increase::Models::DigitalWalletTokenRequest::Wallet]
113
+ required :wallet, -> { Increase::DigitalWalletTokenRequest::Wallet }
114
+
115
+ # @!method initialize(id:, card_id:, cardholder:, created_at:, declined:, device:, network:, outcome:, primary_account_number_source:, provisioned:, token_reference_identifier:, token_requestor:, token_requestor_details:, type:, verification:, visa:, wallet:)
71
116
  # A Digital Wallet Token Request is created each time a digital wallet app, such
72
117
  # as Apple Pay or Google Pay, requests to tokenize a Card.
73
118
  #
@@ -75,6 +120,9 @@ module Increase
75
120
  #
76
121
  # @param card_id [String] The identifier of the Card the tokenization was requested for.
77
122
  #
123
+ # @param cardholder [Increase::Models::DigitalWalletTokenRequest::Cardholder]
124
+ # The cardholder adding the card to the digital wallet.
125
+ #
78
126
  # @param created_at [Time]
79
127
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
80
128
  # the Digital Wallet Token Request was created.
@@ -85,9 +133,15 @@ module Increase
85
133
  # @param device [Increase::Models::DigitalWalletTokenRequest::Device]
86
134
  # The device that requested the tokenization.
87
135
  #
136
+ # @param network [Symbol, Increase::Models::DigitalWalletTokenRequest::Network]
137
+ # The card network the token is being provisioned on.
138
+ #
88
139
  # @param outcome [Symbol, Increase::Models::DigitalWalletTokenRequest::Outcome]
89
140
  # The outcome of the tokenization request.
90
141
  #
142
+ # @param primary_account_number_source [Symbol, Increase::Models::DigitalWalletTokenRequest::PrimaryAccountNumberSource, nil]
143
+ # How the card number was provided to the digital wallet.
144
+ #
91
145
  # @param provisioned [Increase::Models::DigitalWalletTokenRequest::Provisioned, nil]
92
146
  # Details of the provisioned Digital Wallet Token. Present if and only if
93
147
  # `outcome` is `provisioned`.
@@ -98,9 +152,35 @@ module Increase
98
152
  # @param token_requestor [Symbol, Increase::Models::DigitalWalletTokenRequest::TokenRequestor]
99
153
  # The digital wallet app being used.
100
154
  #
155
+ # @param token_requestor_details [Increase::Models::DigitalWalletTokenRequest::TokenRequestorDetails]
156
+ # The digital wallet or merchant that requested the token.
157
+ #
101
158
  # @param type [Symbol, Increase::Models::DigitalWalletTokenRequest::Type]
102
159
  # A constant representing the object's type. For this resource it will always be
103
160
  # `digital_wallet_token_request`.
161
+ #
162
+ # @param verification [Increase::Models::DigitalWalletTokenRequest::Verification]
163
+ # Fields related to verification of cardholder-provided values.
164
+ #
165
+ # @param visa [Increase::Models::DigitalWalletTokenRequest::Visa, nil]
166
+ # Risk scores provided by Visa for the provisioning request. This field will be
167
+ # present in the JSON response if and only if `network` is equal to `visa`.
168
+ #
169
+ # @param wallet [Increase::Models::DigitalWalletTokenRequest::Wallet] Details about the digital wallet.
170
+
171
+ # @see Increase::Models::DigitalWalletTokenRequest#cardholder
172
+ class Cardholder < Increase::Internal::Type::BaseModel
173
+ # @!attribute name
174
+ # The cardholder's name, as entered in the digital wallet.
175
+ #
176
+ # @return [String, nil]
177
+ required :name, String, nil?: true
178
+
179
+ # @!method initialize(name:)
180
+ # The cardholder adding the card to the digital wallet.
181
+ #
182
+ # @param name [String, nil] The cardholder's name, as entered in the digital wallet.
183
+ end
104
184
 
105
185
  # @see Increase::Models::DigitalWalletTokenRequest#declined
106
186
  class Declined < Increase::Internal::Type::BaseModel
@@ -237,6 +317,19 @@ module Increase
237
317
  end
238
318
  end
239
319
 
320
+ # The card network the token is being provisioned on.
321
+ #
322
+ # @see Increase::Models::DigitalWalletTokenRequest#network
323
+ module Network
324
+ extend Increase::Internal::Type::Enum
325
+
326
+ # Visa
327
+ VISA = :visa
328
+
329
+ # @!method self.values
330
+ # @return [Array<Symbol>]
331
+ end
332
+
240
333
  # The outcome of the tokenization request.
241
334
  #
242
335
  # @see Increase::Models::DigitalWalletTokenRequest#outcome
@@ -253,6 +346,34 @@ module Increase
253
346
  # @return [Array<Symbol>]
254
347
  end
255
348
 
349
+ # How the card number was provided to the digital wallet.
350
+ #
351
+ # @see Increase::Models::DigitalWalletTokenRequest#primary_account_number_source
352
+ module PrimaryAccountNumberSource
353
+ extend Increase::Internal::Type::Enum
354
+
355
+ # The cardholder entered the card number manually.
356
+ KEY_ENTERED = :key_entered
357
+
358
+ # The card number was already on file with the token requestor.
359
+ ON_FILE = :on_file
360
+
361
+ # The card was added from your mobile app using push provisioning.
362
+ MOBILE_APP = :mobile_app
363
+
364
+ # The card number was sourced from an existing token.
365
+ TOKEN = :token
366
+
367
+ # The card number was read from the chip of the physical card.
368
+ CHIP_DIP = :chip_dip
369
+
370
+ # The card number was read by tapping the physical card on the device.
371
+ CONTACTLESS_TAP = :contactless_tap
372
+
373
+ # @!method self.values
374
+ # @return [Array<Symbol>]
375
+ end
376
+
256
377
  # @see Increase::Models::DigitalWalletTokenRequest#provisioned
257
378
  class Provisioned < Increase::Internal::Type::BaseModel
258
379
  # @!attribute digital_wallet_token_id
@@ -293,6 +414,28 @@ module Increase
293
414
  # @return [Array<Symbol>]
294
415
  end
295
416
 
417
+ # @see Increase::Models::DigitalWalletTokenRequest#token_requestor_details
418
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
419
+ # @!attribute identifier
420
+ # The identifier assigned to the token requestor by the card network.
421
+ #
422
+ # @return [String]
423
+ required :identifier, String
424
+
425
+ # @!attribute name
426
+ # The name of the token requestor, for example "Apple Inc.".
427
+ #
428
+ # @return [String, nil]
429
+ required :name, String, nil?: true
430
+
431
+ # @!method initialize(identifier:, name:)
432
+ # The digital wallet or merchant that requested the token.
433
+ #
434
+ # @param identifier [String] The identifier assigned to the token requestor by the card network.
435
+ #
436
+ # @param name [String, nil] The name of the token requestor, for example "Apple Inc.".
437
+ end
438
+
296
439
  # A constant representing the object's type. For this resource it will always be
297
440
  # `digital_wallet_token_request`.
298
441
  #
@@ -305,6 +448,189 @@ module Increase
305
448
  # @!method self.values
306
449
  # @return [Array<Symbol>]
307
450
  end
451
+
452
+ # @see Increase::Models::DigitalWalletTokenRequest#verification
453
+ class Verification < Increase::Internal::Type::BaseModel
454
+ # @!attribute cardholder_address
455
+ # Cardholder address provided in the provisioning request and the address on file
456
+ # we verified it against.
457
+ #
458
+ # @return [Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress]
459
+ required :cardholder_address, -> { Increase::DigitalWalletTokenRequest::Verification::CardholderAddress }
460
+
461
+ # @!method initialize(cardholder_address:)
462
+ # Fields related to verification of cardholder-provided values.
463
+ #
464
+ # @param cardholder_address [Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress]
465
+ # Cardholder address provided in the provisioning request and the address on file
466
+ # we verified it against.
467
+
468
+ # @see Increase::Models::DigitalWalletTokenRequest::Verification#cardholder_address
469
+ class CardholderAddress < Increase::Internal::Type::BaseModel
470
+ # @!attribute actual_line1
471
+ # Line 1 of the address on file for the cardholder.
472
+ #
473
+ # @return [String, nil]
474
+ required :actual_line1, String, nil?: true
475
+
476
+ # @!attribute actual_postal_code
477
+ # The postal code of the address on file for the cardholder.
478
+ #
479
+ # @return [String, nil]
480
+ required :actual_postal_code, String, nil?: true
481
+
482
+ # @!attribute provided_line1
483
+ # The cardholder address line 1 provided for verification in the provisioning
484
+ # request.
485
+ #
486
+ # @return [String, nil]
487
+ required :provided_line1, String, nil?: true
488
+
489
+ # @!attribute provided_postal_code
490
+ # The postal code provided for verification in the provisioning request.
491
+ #
492
+ # @return [String, nil]
493
+ required :provided_postal_code, String, nil?: true
494
+
495
+ # @!attribute result
496
+ # The address verification result.
497
+ #
498
+ # @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::Result]
499
+ required :result,
500
+ enum: -> { Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result }
501
+
502
+ # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:)
503
+ # Cardholder address provided in the provisioning request and the address on file
504
+ # we verified it against.
505
+ #
506
+ # @param actual_line1 [String, nil] Line 1 of the address on file for the cardholder.
507
+ #
508
+ # @param actual_postal_code [String, nil] The postal code of the address on file for the cardholder.
509
+ #
510
+ # @param provided_line1 [String, nil]
511
+ # The cardholder address line 1 provided for verification in the provisioning
512
+ # request.
513
+ #
514
+ # @param provided_postal_code [String, nil]
515
+ # The postal code provided for verification in the provisioning request.
516
+ #
517
+ # @param result [Symbol, Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::Result]
518
+ # The address verification result.
519
+
520
+ # The address verification result.
521
+ #
522
+ # @see Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress#result
523
+ module Result
524
+ extend Increase::Internal::Type::Enum
525
+
526
+ # No address information was provided in the authorization request.
527
+ NOT_CHECKED = :not_checked
528
+
529
+ # Postal code matches, but the street address does not match or was not provided.
530
+ POSTAL_CODE_MATCH_ADDRESS_NO_MATCH = :postal_code_match_address_no_match
531
+
532
+ # Postal code does not match, but the street address matches or was not provided.
533
+ POSTAL_CODE_NO_MATCH_ADDRESS_MATCH = :postal_code_no_match_address_match
534
+
535
+ # Postal code and street address match.
536
+ MATCH = :match
537
+
538
+ # Postal code and street address do not match.
539
+ NO_MATCH = :no_match
540
+
541
+ # Postal code matches, but the street address was not verified. (deprecated)
542
+ POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED = :postal_code_match_address_not_checked
543
+
544
+ # @!method self.values
545
+ # @return [Array<Symbol>]
546
+ end
547
+ end
548
+ end
549
+
550
+ # @see Increase::Models::DigitalWalletTokenRequest#visa
551
+ class Visa < Increase::Internal::Type::BaseModel
552
+ # @!attribute network_risk_score
553
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
554
+ # A higher score indicates a higher risk.
555
+ #
556
+ # @return [Integer, nil]
557
+ required :network_risk_score, Integer, nil?: true
558
+
559
+ # @!attribute provisioning_risk_score
560
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
561
+ # indicates a higher risk.
562
+ #
563
+ # @return [Integer, nil]
564
+ required :provisioning_risk_score, Integer, nil?: true
565
+
566
+ # @!method initialize(network_risk_score:, provisioning_risk_score:)
567
+ # Risk scores provided by Visa for the provisioning request. This field will be
568
+ # present in the JSON response if and only if `network` is equal to `visa`.
569
+ #
570
+ # @param network_risk_score [Integer, nil]
571
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
572
+ # A higher score indicates a higher risk.
573
+ #
574
+ # @param provisioning_risk_score [Integer, nil]
575
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
576
+ # indicates a higher risk.
577
+ end
578
+
579
+ # @see Increase::Models::DigitalWalletTokenRequest#wallet
580
+ class Wallet < Increase::Internal::Type::BaseModel
581
+ # @!attribute account_email_age_days
582
+ # The number of days since the email address was added to the cardholder's digital
583
+ # wallet account, up to 999.
584
+ #
585
+ # @return [Integer, nil]
586
+ required :account_email_age_days, Integer, nil?: true
587
+
588
+ # @!attribute account_identifier
589
+ # An identifier for the cardholder's account with the digital wallet.
590
+ #
591
+ # @return [String, nil]
592
+ required :account_identifier, String, nil?: true
593
+
594
+ # @!attribute account_score
595
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
596
+ # higher score indicates more trust.
597
+ #
598
+ # @return [Integer, nil]
599
+ required :account_score, Integer, nil?: true
600
+
601
+ # @!attribute device_score
602
+ # How much the digital wallet trusts the device the card is being added to, from 1
603
+ # to 5. A higher score indicates more trust.
604
+ #
605
+ # @return [Integer, nil]
606
+ required :device_score, Integer, nil?: true
607
+
608
+ # @!attribute email_hash
609
+ # A hash of the email address on the cardholder's digital wallet account.
610
+ #
611
+ # @return [String, nil]
612
+ required :email_hash, String, nil?: true
613
+
614
+ # @!method initialize(account_email_age_days:, account_identifier:, account_score:, device_score:, email_hash:)
615
+ # Details about the digital wallet.
616
+ #
617
+ # @param account_email_age_days [Integer, nil]
618
+ # The number of days since the email address was added to the cardholder's digital
619
+ # wallet account, up to 999.
620
+ #
621
+ # @param account_identifier [String, nil]
622
+ # An identifier for the cardholder's account with the digital wallet.
623
+ #
624
+ # @param account_score [Integer, nil]
625
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
626
+ # higher score indicates more trust.
627
+ #
628
+ # @param device_score [Integer, nil]
629
+ # How much the digital wallet trusts the device the card is being added to, from 1
630
+ # to 5. A higher score indicates more trust.
631
+ #
632
+ # @param email_hash [String, nil] A hash of the email address on the cardholder's digital wallet account.
633
+ end
308
634
  end
309
635
  end
310
636
  end