increase 1.368.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.
- checksums.yaml +4 -4
- data/README.md +1 -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/real_time_decision.rb +330 -1
- data/lib/increase/version.rb +1 -1
- 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/real_time_decision.rbi +623 -3
- 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/real_time_decision.rbs +245 -3
- metadata +2 -2
|
@@ -19,6 +19,17 @@ module Increase
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :card_id
|
|
21
21
|
|
|
22
|
+
# The cardholder adding the card to the digital wallet.
|
|
23
|
+
sig { returns(Increase::DigitalWalletTokenRequest::Cardholder) }
|
|
24
|
+
attr_reader :cardholder
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
cardholder: Increase::DigitalWalletTokenRequest::Cardholder::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :cardholder
|
|
32
|
+
|
|
22
33
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
23
34
|
# the Digital Wallet Token Request was created.
|
|
24
35
|
sig { returns(Time) }
|
|
@@ -45,12 +56,28 @@ module Increase
|
|
|
45
56
|
end
|
|
46
57
|
attr_writer :device
|
|
47
58
|
|
|
59
|
+
# The card network the token is being provisioned on.
|
|
60
|
+
sig do
|
|
61
|
+
returns(Increase::DigitalWalletTokenRequest::Network::TaggedSymbol)
|
|
62
|
+
end
|
|
63
|
+
attr_accessor :network
|
|
64
|
+
|
|
48
65
|
# The outcome of the tokenization request.
|
|
49
66
|
sig do
|
|
50
67
|
returns(Increase::DigitalWalletTokenRequest::Outcome::TaggedSymbol)
|
|
51
68
|
end
|
|
52
69
|
attr_accessor :outcome
|
|
53
70
|
|
|
71
|
+
# How the card number was provided to the digital wallet.
|
|
72
|
+
sig do
|
|
73
|
+
returns(
|
|
74
|
+
T.nilable(
|
|
75
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
attr_accessor :primary_account_number_source
|
|
80
|
+
|
|
54
81
|
# Details of the provisioned Digital Wallet Token. Present if and only if
|
|
55
82
|
# `outcome` is `provisioned`.
|
|
56
83
|
sig do
|
|
@@ -78,28 +105,87 @@ module Increase
|
|
|
78
105
|
end
|
|
79
106
|
attr_accessor :token_requestor
|
|
80
107
|
|
|
108
|
+
# The digital wallet or merchant that requested the token.
|
|
109
|
+
sig do
|
|
110
|
+
returns(Increase::DigitalWalletTokenRequest::TokenRequestorDetails)
|
|
111
|
+
end
|
|
112
|
+
attr_reader :token_requestor_details
|
|
113
|
+
|
|
114
|
+
sig do
|
|
115
|
+
params(
|
|
116
|
+
token_requestor_details:
|
|
117
|
+
Increase::DigitalWalletTokenRequest::TokenRequestorDetails::OrHash
|
|
118
|
+
).void
|
|
119
|
+
end
|
|
120
|
+
attr_writer :token_requestor_details
|
|
121
|
+
|
|
81
122
|
# A constant representing the object's type. For this resource it will always be
|
|
82
123
|
# `digital_wallet_token_request`.
|
|
83
124
|
sig { returns(Increase::DigitalWalletTokenRequest::Type::TaggedSymbol) }
|
|
84
125
|
attr_accessor :type
|
|
85
126
|
|
|
127
|
+
# Fields related to verification of cardholder-provided values.
|
|
128
|
+
sig { returns(Increase::DigitalWalletTokenRequest::Verification) }
|
|
129
|
+
attr_reader :verification
|
|
130
|
+
|
|
131
|
+
sig do
|
|
132
|
+
params(
|
|
133
|
+
verification:
|
|
134
|
+
Increase::DigitalWalletTokenRequest::Verification::OrHash
|
|
135
|
+
).void
|
|
136
|
+
end
|
|
137
|
+
attr_writer :verification
|
|
138
|
+
|
|
139
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
140
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
141
|
+
sig { returns(T.nilable(Increase::DigitalWalletTokenRequest::Visa)) }
|
|
142
|
+
attr_reader :visa
|
|
143
|
+
|
|
144
|
+
sig do
|
|
145
|
+
params(
|
|
146
|
+
visa: T.nilable(Increase::DigitalWalletTokenRequest::Visa::OrHash)
|
|
147
|
+
).void
|
|
148
|
+
end
|
|
149
|
+
attr_writer :visa
|
|
150
|
+
|
|
151
|
+
# Details about the digital wallet.
|
|
152
|
+
sig { returns(Increase::DigitalWalletTokenRequest::Wallet) }
|
|
153
|
+
attr_reader :wallet
|
|
154
|
+
|
|
155
|
+
sig do
|
|
156
|
+
params(wallet: Increase::DigitalWalletTokenRequest::Wallet::OrHash).void
|
|
157
|
+
end
|
|
158
|
+
attr_writer :wallet
|
|
159
|
+
|
|
86
160
|
# A Digital Wallet Token Request is created each time a digital wallet app, such
|
|
87
161
|
# as Apple Pay or Google Pay, requests to tokenize a Card.
|
|
88
162
|
sig do
|
|
89
163
|
params(
|
|
90
164
|
id: String,
|
|
91
165
|
card_id: String,
|
|
166
|
+
cardholder: Increase::DigitalWalletTokenRequest::Cardholder::OrHash,
|
|
92
167
|
created_at: Time,
|
|
93
168
|
declined:
|
|
94
169
|
T.nilable(Increase::DigitalWalletTokenRequest::Declined::OrHash),
|
|
95
170
|
device: Increase::DigitalWalletTokenRequest::Device::OrHash,
|
|
171
|
+
network: Increase::DigitalWalletTokenRequest::Network::OrSymbol,
|
|
96
172
|
outcome: Increase::DigitalWalletTokenRequest::Outcome::OrSymbol,
|
|
173
|
+
primary_account_number_source:
|
|
174
|
+
T.nilable(
|
|
175
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::OrSymbol
|
|
176
|
+
),
|
|
97
177
|
provisioned:
|
|
98
178
|
T.nilable(Increase::DigitalWalletTokenRequest::Provisioned::OrHash),
|
|
99
179
|
token_reference_identifier: String,
|
|
100
180
|
token_requestor:
|
|
101
181
|
Increase::DigitalWalletTokenRequest::TokenRequestor::OrSymbol,
|
|
102
|
-
|
|
182
|
+
token_requestor_details:
|
|
183
|
+
Increase::DigitalWalletTokenRequest::TokenRequestorDetails::OrHash,
|
|
184
|
+
type: Increase::DigitalWalletTokenRequest::Type::OrSymbol,
|
|
185
|
+
verification:
|
|
186
|
+
Increase::DigitalWalletTokenRequest::Verification::OrHash,
|
|
187
|
+
visa: T.nilable(Increase::DigitalWalletTokenRequest::Visa::OrHash),
|
|
188
|
+
wallet: Increase::DigitalWalletTokenRequest::Wallet::OrHash
|
|
103
189
|
).returns(T.attached_class)
|
|
104
190
|
end
|
|
105
191
|
def self.new(
|
|
@@ -107,6 +193,8 @@ module Increase
|
|
|
107
193
|
id:,
|
|
108
194
|
# The identifier of the Card the tokenization was requested for.
|
|
109
195
|
card_id:,
|
|
196
|
+
# The cardholder adding the card to the digital wallet.
|
|
197
|
+
cardholder:,
|
|
110
198
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
111
199
|
# the Digital Wallet Token Request was created.
|
|
112
200
|
created_at:,
|
|
@@ -114,8 +202,12 @@ module Increase
|
|
|
114
202
|
declined:,
|
|
115
203
|
# The device that requested the tokenization.
|
|
116
204
|
device:,
|
|
205
|
+
# The card network the token is being provisioned on.
|
|
206
|
+
network:,
|
|
117
207
|
# The outcome of the tokenization request.
|
|
118
208
|
outcome:,
|
|
209
|
+
# How the card number was provided to the digital wallet.
|
|
210
|
+
primary_account_number_source:,
|
|
119
211
|
# Details of the provisioned Digital Wallet Token. Present if and only if
|
|
120
212
|
# `outcome` is `provisioned`.
|
|
121
213
|
provisioned:,
|
|
@@ -123,9 +215,18 @@ module Increase
|
|
|
123
215
|
token_reference_identifier:,
|
|
124
216
|
# The digital wallet app being used.
|
|
125
217
|
token_requestor:,
|
|
218
|
+
# The digital wallet or merchant that requested the token.
|
|
219
|
+
token_requestor_details:,
|
|
126
220
|
# A constant representing the object's type. For this resource it will always be
|
|
127
221
|
# `digital_wallet_token_request`.
|
|
128
|
-
type
|
|
222
|
+
type:,
|
|
223
|
+
# Fields related to verification of cardholder-provided values.
|
|
224
|
+
verification:,
|
|
225
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
226
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
227
|
+
visa:,
|
|
228
|
+
# Details about the digital wallet.
|
|
229
|
+
wallet:
|
|
129
230
|
)
|
|
130
231
|
end
|
|
131
232
|
|
|
@@ -134,22 +235,59 @@ module Increase
|
|
|
134
235
|
{
|
|
135
236
|
id: String,
|
|
136
237
|
card_id: String,
|
|
238
|
+
cardholder: Increase::DigitalWalletTokenRequest::Cardholder,
|
|
137
239
|
created_at: Time,
|
|
138
240
|
declined: T.nilable(Increase::DigitalWalletTokenRequest::Declined),
|
|
139
241
|
device: Increase::DigitalWalletTokenRequest::Device,
|
|
242
|
+
network: Increase::DigitalWalletTokenRequest::Network::TaggedSymbol,
|
|
140
243
|
outcome: Increase::DigitalWalletTokenRequest::Outcome::TaggedSymbol,
|
|
244
|
+
primary_account_number_source:
|
|
245
|
+
T.nilable(
|
|
246
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
247
|
+
),
|
|
141
248
|
provisioned:
|
|
142
249
|
T.nilable(Increase::DigitalWalletTokenRequest::Provisioned),
|
|
143
250
|
token_reference_identifier: String,
|
|
144
251
|
token_requestor:
|
|
145
252
|
Increase::DigitalWalletTokenRequest::TokenRequestor::TaggedSymbol,
|
|
146
|
-
|
|
253
|
+
token_requestor_details:
|
|
254
|
+
Increase::DigitalWalletTokenRequest::TokenRequestorDetails,
|
|
255
|
+
type: Increase::DigitalWalletTokenRequest::Type::TaggedSymbol,
|
|
256
|
+
verification: Increase::DigitalWalletTokenRequest::Verification,
|
|
257
|
+
visa: T.nilable(Increase::DigitalWalletTokenRequest::Visa),
|
|
258
|
+
wallet: Increase::DigitalWalletTokenRequest::Wallet
|
|
147
259
|
}
|
|
148
260
|
)
|
|
149
261
|
end
|
|
150
262
|
def to_hash
|
|
151
263
|
end
|
|
152
264
|
|
|
265
|
+
class Cardholder < Increase::Internal::Type::BaseModel
|
|
266
|
+
OrHash =
|
|
267
|
+
T.type_alias do
|
|
268
|
+
T.any(
|
|
269
|
+
Increase::DigitalWalletTokenRequest::Cardholder,
|
|
270
|
+
Increase::Internal::AnyHash
|
|
271
|
+
)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# The cardholder's name, as entered in the digital wallet.
|
|
275
|
+
sig { returns(T.nilable(String)) }
|
|
276
|
+
attr_accessor :name
|
|
277
|
+
|
|
278
|
+
# The cardholder adding the card to the digital wallet.
|
|
279
|
+
sig { params(name: T.nilable(String)).returns(T.attached_class) }
|
|
280
|
+
def self.new(
|
|
281
|
+
# The cardholder's name, as entered in the digital wallet.
|
|
282
|
+
name:
|
|
283
|
+
)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
sig { override.returns({ name: T.nilable(String) }) }
|
|
287
|
+
def to_hash
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
153
291
|
class Declined < Increase::Internal::Type::BaseModel
|
|
154
292
|
OrHash =
|
|
155
293
|
T.type_alias do
|
|
@@ -445,6 +583,32 @@ module Increase
|
|
|
445
583
|
end
|
|
446
584
|
end
|
|
447
585
|
|
|
586
|
+
# The card network the token is being provisioned on.
|
|
587
|
+
module Network
|
|
588
|
+
extend Increase::Internal::Type::Enum
|
|
589
|
+
|
|
590
|
+
TaggedSymbol =
|
|
591
|
+
T.type_alias do
|
|
592
|
+
T.all(Symbol, Increase::DigitalWalletTokenRequest::Network)
|
|
593
|
+
end
|
|
594
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
595
|
+
|
|
596
|
+
# Visa
|
|
597
|
+
VISA =
|
|
598
|
+
T.let(
|
|
599
|
+
:visa,
|
|
600
|
+
Increase::DigitalWalletTokenRequest::Network::TaggedSymbol
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
sig do
|
|
604
|
+
override.returns(
|
|
605
|
+
T::Array[Increase::DigitalWalletTokenRequest::Network::TaggedSymbol]
|
|
606
|
+
)
|
|
607
|
+
end
|
|
608
|
+
def self.values
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
448
612
|
# The outcome of the tokenization request.
|
|
449
613
|
module Outcome
|
|
450
614
|
extend Increase::Internal::Type::Enum
|
|
@@ -478,6 +642,72 @@ module Increase
|
|
|
478
642
|
end
|
|
479
643
|
end
|
|
480
644
|
|
|
645
|
+
# How the card number was provided to the digital wallet.
|
|
646
|
+
module PrimaryAccountNumberSource
|
|
647
|
+
extend Increase::Internal::Type::Enum
|
|
648
|
+
|
|
649
|
+
TaggedSymbol =
|
|
650
|
+
T.type_alias do
|
|
651
|
+
T.all(
|
|
652
|
+
Symbol,
|
|
653
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource
|
|
654
|
+
)
|
|
655
|
+
end
|
|
656
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
657
|
+
|
|
658
|
+
# The cardholder entered the card number manually.
|
|
659
|
+
KEY_ENTERED =
|
|
660
|
+
T.let(
|
|
661
|
+
:key_entered,
|
|
662
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
# The card number was already on file with the token requestor.
|
|
666
|
+
ON_FILE =
|
|
667
|
+
T.let(
|
|
668
|
+
:on_file,
|
|
669
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
670
|
+
)
|
|
671
|
+
|
|
672
|
+
# The card was added from your mobile app using push provisioning.
|
|
673
|
+
MOBILE_APP =
|
|
674
|
+
T.let(
|
|
675
|
+
:mobile_app,
|
|
676
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
677
|
+
)
|
|
678
|
+
|
|
679
|
+
# The card number was sourced from an existing token.
|
|
680
|
+
TOKEN =
|
|
681
|
+
T.let(
|
|
682
|
+
:token,
|
|
683
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
# The card number was read from the chip of the physical card.
|
|
687
|
+
CHIP_DIP =
|
|
688
|
+
T.let(
|
|
689
|
+
:chip_dip,
|
|
690
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
# The card number was read by tapping the physical card on the device.
|
|
694
|
+
CONTACTLESS_TAP =
|
|
695
|
+
T.let(
|
|
696
|
+
:contactless_tap,
|
|
697
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
sig do
|
|
701
|
+
override.returns(
|
|
702
|
+
T::Array[
|
|
703
|
+
Increase::DigitalWalletTokenRequest::PrimaryAccountNumberSource::TaggedSymbol
|
|
704
|
+
]
|
|
705
|
+
)
|
|
706
|
+
end
|
|
707
|
+
def self.values
|
|
708
|
+
end
|
|
709
|
+
end
|
|
710
|
+
|
|
481
711
|
class Provisioned < Increase::Internal::Type::BaseModel
|
|
482
712
|
OrHash =
|
|
483
713
|
T.type_alias do
|
|
@@ -563,6 +793,44 @@ module Increase
|
|
|
563
793
|
end
|
|
564
794
|
end
|
|
565
795
|
|
|
796
|
+
class TokenRequestorDetails < Increase::Internal::Type::BaseModel
|
|
797
|
+
OrHash =
|
|
798
|
+
T.type_alias do
|
|
799
|
+
T.any(
|
|
800
|
+
Increase::DigitalWalletTokenRequest::TokenRequestorDetails,
|
|
801
|
+
Increase::Internal::AnyHash
|
|
802
|
+
)
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
# The identifier assigned to the token requestor by the card network.
|
|
806
|
+
sig { returns(String) }
|
|
807
|
+
attr_accessor :identifier
|
|
808
|
+
|
|
809
|
+
# The name of the token requestor, for example "Apple Inc.".
|
|
810
|
+
sig { returns(T.nilable(String)) }
|
|
811
|
+
attr_accessor :name
|
|
812
|
+
|
|
813
|
+
# The digital wallet or merchant that requested the token.
|
|
814
|
+
sig do
|
|
815
|
+
params(identifier: String, name: T.nilable(String)).returns(
|
|
816
|
+
T.attached_class
|
|
817
|
+
)
|
|
818
|
+
end
|
|
819
|
+
def self.new(
|
|
820
|
+
# The identifier assigned to the token requestor by the card network.
|
|
821
|
+
identifier:,
|
|
822
|
+
# The name of the token requestor, for example "Apple Inc.".
|
|
823
|
+
name:
|
|
824
|
+
)
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
sig do
|
|
828
|
+
override.returns({ identifier: String, name: T.nilable(String) })
|
|
829
|
+
end
|
|
830
|
+
def to_hash
|
|
831
|
+
end
|
|
832
|
+
end
|
|
833
|
+
|
|
566
834
|
# A constant representing the object's type. For this resource it will always be
|
|
567
835
|
# `digital_wallet_token_request`.
|
|
568
836
|
module Type
|
|
@@ -588,6 +856,324 @@ module Increase
|
|
|
588
856
|
def self.values
|
|
589
857
|
end
|
|
590
858
|
end
|
|
859
|
+
|
|
860
|
+
class Verification < Increase::Internal::Type::BaseModel
|
|
861
|
+
OrHash =
|
|
862
|
+
T.type_alias do
|
|
863
|
+
T.any(
|
|
864
|
+
Increase::DigitalWalletTokenRequest::Verification,
|
|
865
|
+
Increase::Internal::AnyHash
|
|
866
|
+
)
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
870
|
+
# we verified it against.
|
|
871
|
+
sig do
|
|
872
|
+
returns(
|
|
873
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
|
|
874
|
+
)
|
|
875
|
+
end
|
|
876
|
+
attr_reader :cardholder_address
|
|
877
|
+
|
|
878
|
+
sig do
|
|
879
|
+
params(
|
|
880
|
+
cardholder_address:
|
|
881
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::OrHash
|
|
882
|
+
).void
|
|
883
|
+
end
|
|
884
|
+
attr_writer :cardholder_address
|
|
885
|
+
|
|
886
|
+
# Fields related to verification of cardholder-provided values.
|
|
887
|
+
sig do
|
|
888
|
+
params(
|
|
889
|
+
cardholder_address:
|
|
890
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::OrHash
|
|
891
|
+
).returns(T.attached_class)
|
|
892
|
+
end
|
|
893
|
+
def self.new(
|
|
894
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
895
|
+
# we verified it against.
|
|
896
|
+
cardholder_address:
|
|
897
|
+
)
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
sig do
|
|
901
|
+
override.returns(
|
|
902
|
+
{
|
|
903
|
+
cardholder_address:
|
|
904
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
|
|
905
|
+
}
|
|
906
|
+
)
|
|
907
|
+
end
|
|
908
|
+
def to_hash
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
class CardholderAddress < Increase::Internal::Type::BaseModel
|
|
912
|
+
OrHash =
|
|
913
|
+
T.type_alias do
|
|
914
|
+
T.any(
|
|
915
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress,
|
|
916
|
+
Increase::Internal::AnyHash
|
|
917
|
+
)
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# Line 1 of the address on file for the cardholder.
|
|
921
|
+
sig { returns(T.nilable(String)) }
|
|
922
|
+
attr_accessor :actual_line1
|
|
923
|
+
|
|
924
|
+
# The postal code of the address on file for the cardholder.
|
|
925
|
+
sig { returns(T.nilable(String)) }
|
|
926
|
+
attr_accessor :actual_postal_code
|
|
927
|
+
|
|
928
|
+
# The cardholder address line 1 provided for verification in the provisioning
|
|
929
|
+
# request.
|
|
930
|
+
sig { returns(T.nilable(String)) }
|
|
931
|
+
attr_accessor :provided_line1
|
|
932
|
+
|
|
933
|
+
# The postal code provided for verification in the provisioning request.
|
|
934
|
+
sig { returns(T.nilable(String)) }
|
|
935
|
+
attr_accessor :provided_postal_code
|
|
936
|
+
|
|
937
|
+
# The address verification result.
|
|
938
|
+
sig do
|
|
939
|
+
returns(
|
|
940
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
941
|
+
)
|
|
942
|
+
end
|
|
943
|
+
attr_accessor :result
|
|
944
|
+
|
|
945
|
+
# Cardholder address provided in the provisioning request and the address on file
|
|
946
|
+
# we verified it against.
|
|
947
|
+
sig do
|
|
948
|
+
params(
|
|
949
|
+
actual_line1: T.nilable(String),
|
|
950
|
+
actual_postal_code: T.nilable(String),
|
|
951
|
+
provided_line1: T.nilable(String),
|
|
952
|
+
provided_postal_code: T.nilable(String),
|
|
953
|
+
result:
|
|
954
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::OrSymbol
|
|
955
|
+
).returns(T.attached_class)
|
|
956
|
+
end
|
|
957
|
+
def self.new(
|
|
958
|
+
# Line 1 of the address on file for the cardholder.
|
|
959
|
+
actual_line1:,
|
|
960
|
+
# The postal code of the address on file for the cardholder.
|
|
961
|
+
actual_postal_code:,
|
|
962
|
+
# The cardholder address line 1 provided for verification in the provisioning
|
|
963
|
+
# request.
|
|
964
|
+
provided_line1:,
|
|
965
|
+
# The postal code provided for verification in the provisioning request.
|
|
966
|
+
provided_postal_code:,
|
|
967
|
+
# The address verification result.
|
|
968
|
+
result:
|
|
969
|
+
)
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
sig do
|
|
973
|
+
override.returns(
|
|
974
|
+
{
|
|
975
|
+
actual_line1: T.nilable(String),
|
|
976
|
+
actual_postal_code: T.nilable(String),
|
|
977
|
+
provided_line1: T.nilable(String),
|
|
978
|
+
provided_postal_code: T.nilable(String),
|
|
979
|
+
result:
|
|
980
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
981
|
+
}
|
|
982
|
+
)
|
|
983
|
+
end
|
|
984
|
+
def to_hash
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# The address verification result.
|
|
988
|
+
module Result
|
|
989
|
+
extend Increase::Internal::Type::Enum
|
|
990
|
+
|
|
991
|
+
TaggedSymbol =
|
|
992
|
+
T.type_alias do
|
|
993
|
+
T.all(
|
|
994
|
+
Symbol,
|
|
995
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result
|
|
996
|
+
)
|
|
997
|
+
end
|
|
998
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
999
|
+
|
|
1000
|
+
# No address information was provided in the authorization request.
|
|
1001
|
+
NOT_CHECKED =
|
|
1002
|
+
T.let(
|
|
1003
|
+
:not_checked,
|
|
1004
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1005
|
+
)
|
|
1006
|
+
|
|
1007
|
+
# Postal code matches, but the street address does not match or was not provided.
|
|
1008
|
+
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
|
1009
|
+
T.let(
|
|
1010
|
+
:postal_code_match_address_no_match,
|
|
1011
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1012
|
+
)
|
|
1013
|
+
|
|
1014
|
+
# Postal code does not match, but the street address matches or was not provided.
|
|
1015
|
+
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
|
1016
|
+
T.let(
|
|
1017
|
+
:postal_code_no_match_address_match,
|
|
1018
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1019
|
+
)
|
|
1020
|
+
|
|
1021
|
+
# Postal code and street address match.
|
|
1022
|
+
MATCH =
|
|
1023
|
+
T.let(
|
|
1024
|
+
:match,
|
|
1025
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1026
|
+
)
|
|
1027
|
+
|
|
1028
|
+
# Postal code and street address do not match.
|
|
1029
|
+
NO_MATCH =
|
|
1030
|
+
T.let(
|
|
1031
|
+
:no_match,
|
|
1032
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
|
1036
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
|
1037
|
+
T.let(
|
|
1038
|
+
:postal_code_match_address_not_checked,
|
|
1039
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1040
|
+
)
|
|
1041
|
+
|
|
1042
|
+
sig do
|
|
1043
|
+
override.returns(
|
|
1044
|
+
T::Array[
|
|
1045
|
+
Increase::DigitalWalletTokenRequest::Verification::CardholderAddress::Result::TaggedSymbol
|
|
1046
|
+
]
|
|
1047
|
+
)
|
|
1048
|
+
end
|
|
1049
|
+
def self.values
|
|
1050
|
+
end
|
|
1051
|
+
end
|
|
1052
|
+
end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
class Visa < Increase::Internal::Type::BaseModel
|
|
1056
|
+
OrHash =
|
|
1057
|
+
T.type_alias do
|
|
1058
|
+
T.any(
|
|
1059
|
+
Increase::DigitalWalletTokenRequest::Visa,
|
|
1060
|
+
Increase::Internal::AnyHash
|
|
1061
|
+
)
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
# Visa's risk score for the card, based on its transaction history, from 0 to 99.
|
|
1065
|
+
# A higher score indicates a higher risk.
|
|
1066
|
+
sig { returns(T.nilable(Integer)) }
|
|
1067
|
+
attr_accessor :network_risk_score
|
|
1068
|
+
|
|
1069
|
+
# Visa's risk score for the provisioning request, from 1 to 99. A higher score
|
|
1070
|
+
# indicates a higher risk.
|
|
1071
|
+
sig { returns(T.nilable(Integer)) }
|
|
1072
|
+
attr_accessor :provisioning_risk_score
|
|
1073
|
+
|
|
1074
|
+
# Risk scores provided by Visa for the provisioning request. This field will be
|
|
1075
|
+
# present in the JSON response if and only if `network` is equal to `visa`.
|
|
1076
|
+
sig do
|
|
1077
|
+
params(
|
|
1078
|
+
network_risk_score: T.nilable(Integer),
|
|
1079
|
+
provisioning_risk_score: T.nilable(Integer)
|
|
1080
|
+
).returns(T.attached_class)
|
|
1081
|
+
end
|
|
1082
|
+
def self.new(
|
|
1083
|
+
# Visa's risk score for the card, based on its transaction history, from 0 to 99.
|
|
1084
|
+
# A higher score indicates a higher risk.
|
|
1085
|
+
network_risk_score:,
|
|
1086
|
+
# Visa's risk score for the provisioning request, from 1 to 99. A higher score
|
|
1087
|
+
# indicates a higher risk.
|
|
1088
|
+
provisioning_risk_score:
|
|
1089
|
+
)
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
sig do
|
|
1093
|
+
override.returns(
|
|
1094
|
+
{
|
|
1095
|
+
network_risk_score: T.nilable(Integer),
|
|
1096
|
+
provisioning_risk_score: T.nilable(Integer)
|
|
1097
|
+
}
|
|
1098
|
+
)
|
|
1099
|
+
end
|
|
1100
|
+
def to_hash
|
|
1101
|
+
end
|
|
1102
|
+
end
|
|
1103
|
+
|
|
1104
|
+
class Wallet < Increase::Internal::Type::BaseModel
|
|
1105
|
+
OrHash =
|
|
1106
|
+
T.type_alias do
|
|
1107
|
+
T.any(
|
|
1108
|
+
Increase::DigitalWalletTokenRequest::Wallet,
|
|
1109
|
+
Increase::Internal::AnyHash
|
|
1110
|
+
)
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
# The number of days since the email address was added to the cardholder's digital
|
|
1114
|
+
# wallet account, up to 999.
|
|
1115
|
+
sig { returns(T.nilable(Integer)) }
|
|
1116
|
+
attr_accessor :account_email_age_days
|
|
1117
|
+
|
|
1118
|
+
# An identifier for the cardholder's account with the digital wallet.
|
|
1119
|
+
sig { returns(T.nilable(String)) }
|
|
1120
|
+
attr_accessor :account_identifier
|
|
1121
|
+
|
|
1122
|
+
# How much the digital wallet trusts the cardholder's account, from 1 to 5. A
|
|
1123
|
+
# higher score indicates more trust.
|
|
1124
|
+
sig { returns(T.nilable(Integer)) }
|
|
1125
|
+
attr_accessor :account_score
|
|
1126
|
+
|
|
1127
|
+
# How much the digital wallet trusts the device the card is being added to, from 1
|
|
1128
|
+
# to 5. A higher score indicates more trust.
|
|
1129
|
+
sig { returns(T.nilable(Integer)) }
|
|
1130
|
+
attr_accessor :device_score
|
|
1131
|
+
|
|
1132
|
+
# A hash of the email address on the cardholder's digital wallet account.
|
|
1133
|
+
sig { returns(T.nilable(String)) }
|
|
1134
|
+
attr_accessor :email_hash
|
|
1135
|
+
|
|
1136
|
+
# Details about the digital wallet.
|
|
1137
|
+
sig do
|
|
1138
|
+
params(
|
|
1139
|
+
account_email_age_days: T.nilable(Integer),
|
|
1140
|
+
account_identifier: T.nilable(String),
|
|
1141
|
+
account_score: T.nilable(Integer),
|
|
1142
|
+
device_score: T.nilable(Integer),
|
|
1143
|
+
email_hash: T.nilable(String)
|
|
1144
|
+
).returns(T.attached_class)
|
|
1145
|
+
end
|
|
1146
|
+
def self.new(
|
|
1147
|
+
# The number of days since the email address was added to the cardholder's digital
|
|
1148
|
+
# wallet account, up to 999.
|
|
1149
|
+
account_email_age_days:,
|
|
1150
|
+
# An identifier for the cardholder's account with the digital wallet.
|
|
1151
|
+
account_identifier:,
|
|
1152
|
+
# How much the digital wallet trusts the cardholder's account, from 1 to 5. A
|
|
1153
|
+
# higher score indicates more trust.
|
|
1154
|
+
account_score:,
|
|
1155
|
+
# How much the digital wallet trusts the device the card is being added to, from 1
|
|
1156
|
+
# to 5. A higher score indicates more trust.
|
|
1157
|
+
device_score:,
|
|
1158
|
+
# A hash of the email address on the cardholder's digital wallet account.
|
|
1159
|
+
email_hash:
|
|
1160
|
+
)
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
sig do
|
|
1164
|
+
override.returns(
|
|
1165
|
+
{
|
|
1166
|
+
account_email_age_days: T.nilable(Integer),
|
|
1167
|
+
account_identifier: T.nilable(String),
|
|
1168
|
+
account_score: T.nilable(Integer),
|
|
1169
|
+
device_score: T.nilable(Integer),
|
|
1170
|
+
email_hash: T.nilable(String)
|
|
1171
|
+
}
|
|
1172
|
+
)
|
|
1173
|
+
end
|
|
1174
|
+
def to_hash
|
|
1175
|
+
end
|
|
1176
|
+
end
|
|
591
1177
|
end
|
|
592
1178
|
end
|
|
593
1179
|
end
|