increase 1.368.0 → 1.370.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/errors.rb +6 -0
- data/lib/increase/models/checkbook.rb +3 -0
- data/lib/increase/models/checkbook_create_params.rb +24 -1
- data/lib/increase/models/digital_wallet_token.rb +63 -1
- data/lib/increase/models/digital_wallet_token_request.rb +327 -1
- data/lib/increase/models/event.rb +15 -0
- data/lib/increase/models/event_list_params.rb +15 -0
- data/lib/increase/models/event_subscription.rb +15 -0
- data/lib/increase/models/event_subscription_create_params.rb +15 -0
- data/lib/increase/models/inbound_wire_transfer.rb +12 -1
- data/lib/increase/models/inbound_wire_transfer_reverse_params.rb +17 -1
- data/lib/increase/models/real_time_decision.rb +330 -1
- data/lib/increase/models/real_time_payments_transfer.rb +75 -1
- data/lib/increase/models/real_time_payments_transfer_create_params.rb +82 -1
- data/lib/increase/models/unwrap_webhook_event.rb +15 -0
- data/lib/increase/resources/checkbooks.rb +4 -1
- data/lib/increase/resources/inbound_wire_transfers.rb +6 -1
- data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/errors.rbi +4 -0
- data/rbi/increase/models/checkbook.rbi +4 -0
- data/rbi/increase/models/checkbook_create_params.rbi +39 -0
- data/rbi/increase/models/digital_wallet_token.rbi +114 -3
- data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
- data/rbi/increase/models/event.rbi +26 -0
- data/rbi/increase/models/event_list_params.rbi +35 -0
- data/rbi/increase/models/event_subscription.rbi +35 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +35 -0
- data/rbi/increase/models/inbound_wire_transfer.rbi +15 -0
- data/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +22 -0
- data/rbi/increase/models/real_time_decision.rbi +623 -3
- data/rbi/increase/models/real_time_payments_transfer.rbi +108 -0
- data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +123 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +35 -0
- data/rbi/increase/resources/checkbooks.rbi +3 -0
- data/rbi/increase/resources/inbound_wire_transfers.rbi +5 -0
- data/rbi/increase/resources/real_time_payments_transfers.rbi +5 -0
- data/sig/increase/errors.rbs +4 -0
- data/sig/increase/models/checkbook.rbs +4 -1
- data/sig/increase/models/checkbook_create_params.rbs +20 -1
- data/sig/increase/models/digital_wallet_token.rbs +40 -3
- data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
- data/sig/increase/models/event.rbs +20 -0
- data/sig/increase/models/event_list_params.rbs +20 -0
- data/sig/increase/models/event_subscription.rbs +20 -0
- data/sig/increase/models/event_subscription_create_params.rbs +20 -0
- data/sig/increase/models/inbound_wire_transfer.rbs +10 -1
- data/sig/increase/models/inbound_wire_transfer_reverse_params.rbs +13 -2
- data/sig/increase/models/real_time_decision.rbs +245 -3
- data/sig/increase/models/real_time_payments_transfer.rbs +52 -0
- data/sig/increase/models/real_time_payments_transfer_create_params.rbs +60 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +20 -0
- data/sig/increase/resources/checkbooks.rbs +1 -0
- data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
- data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12b98259124559124597028e090507889ee6419ee0b6930a472e67dc4bea5789
|
|
4
|
+
data.tar.gz: 9c6f8cffd8e761126c758e988f06c10cbed1b543b287ad458f41cae0c45b6f2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b06cad278a999ced661cf2502991c61b72486bf5ff4d98817b70c5f52f18319cc45a80aaa1802e6f9e007825ed46b71373393a9332c2a15263db2b6479b6ceff
|
|
7
|
+
data.tar.gz: fe8db2a9718ecc4add97d96998236ec45c0ab0d0e45b46274c827b834a717d49151db7f3884e508b5b6205212c181e0e92134c8613de3229c0f02a70eb4bb998
|
data/README.md
CHANGED
data/lib/increase/errors.rb
CHANGED
|
@@ -162,6 +162,8 @@ module Increase
|
|
|
162
162
|
Increase::Errors::APIMethodNotFoundError.new(**kwargs)
|
|
163
163
|
in [404, Increase::Errors::ObjectNotFoundError::TYPE]
|
|
164
164
|
Increase::Errors::ObjectNotFoundError.new(**kwargs)
|
|
165
|
+
in [408, Increase::Errors::RequestTimeoutError::TYPE]
|
|
166
|
+
Increase::Errors::RequestTimeoutError.new(**kwargs)
|
|
165
167
|
in [409, Increase::Errors::IdempotencyKeyAlreadyUsedError::TYPE]
|
|
166
168
|
Increase::Errors::IdempotencyKeyAlreadyUsedError.new(**kwargs)
|
|
167
169
|
in [409, Increase::Errors::InvalidOperationError::TYPE]
|
|
@@ -276,6 +278,10 @@ module Increase
|
|
|
276
278
|
TYPE = "object_not_found_error"
|
|
277
279
|
end
|
|
278
280
|
|
|
281
|
+
class RequestTimeoutError < Increase::Errors::APIStatusError
|
|
282
|
+
TYPE = "request_timeout_error"
|
|
283
|
+
end
|
|
284
|
+
|
|
279
285
|
class IdempotencyKeyAlreadyUsedError < Increase::Errors::ConflictError
|
|
280
286
|
TYPE = "idempotency_key_already_used_error"
|
|
281
287
|
end
|
|
@@ -258,6 +258,9 @@ module Increase
|
|
|
258
258
|
module Style
|
|
259
259
|
extend Increase::Internal::Type::Enum
|
|
260
260
|
|
|
261
|
+
# A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
|
|
262
|
+
TOP_TEAR_PAD = :top_tear_pad
|
|
263
|
+
|
|
261
264
|
# A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
|
|
262
265
|
THREE_RING_BINDER = :three_ring_binder
|
|
263
266
|
|
|
@@ -28,7 +28,13 @@ module Increase
|
|
|
28
28
|
# @return [Array<Increase::Models::CheckbookCreateParams::Payer>]
|
|
29
29
|
required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::CheckbookCreateParams::Payer] }
|
|
30
30
|
|
|
31
|
-
# @!
|
|
31
|
+
# @!attribute style
|
|
32
|
+
# The physical format of the Checkbook.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Increase::Models::CheckbookCreateParams::Style]
|
|
35
|
+
required :style, enum: -> { Increase::CheckbookCreateParams::Style }
|
|
36
|
+
|
|
37
|
+
# @!method initialize(account_number_id:, mailing_address:, payer:, style:, request_options: {})
|
|
32
38
|
# @param account_number_id [String]
|
|
33
39
|
# The identifier of the Account Number that the checks will draw from. The Account
|
|
34
40
|
# Number must be active.
|
|
@@ -41,6 +47,9 @@ module Increase
|
|
|
41
47
|
# check. This should be an array of up to 4 elements, each of which represents a
|
|
42
48
|
# line of the payer.
|
|
43
49
|
#
|
|
50
|
+
# @param style [Symbol, Increase::Models::CheckbookCreateParams::Style]
|
|
51
|
+
# The physical format of the Checkbook.
|
|
52
|
+
#
|
|
44
53
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
45
54
|
|
|
46
55
|
class MailingAddress < Increase::Internal::Type::BaseModel
|
|
@@ -106,6 +115,20 @@ module Increase
|
|
|
106
115
|
# @!method initialize(contents:)
|
|
107
116
|
# @param contents [String] The contents of the line.
|
|
108
117
|
end
|
|
118
|
+
|
|
119
|
+
# The physical format of the Checkbook.
|
|
120
|
+
module Style
|
|
121
|
+
extend Increase::Internal::Type::Enum
|
|
122
|
+
|
|
123
|
+
# A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
|
|
124
|
+
TOP_TEAR_PAD = :top_tear_pad
|
|
125
|
+
|
|
126
|
+
# A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
|
|
127
|
+
THREE_RING_BINDER = :three_ring_binder
|
|
128
|
+
|
|
129
|
+
# @!method self.values
|
|
130
|
+
# @return [Array<Symbol>]
|
|
131
|
+
end
|
|
109
132
|
end
|
|
110
133
|
end
|
|
111
134
|
end
|
|
@@ -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
|
-
# @!
|
|
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
|
-
# @!
|
|
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
|
|
@@ -307,6 +307,15 @@ module Increase
|
|
|
307
307
|
# Occurs whenever a Loan Distribution is created.
|
|
308
308
|
LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
|
|
309
309
|
|
|
310
|
+
# Occurs whenever a Loan Draw is created.
|
|
311
|
+
LOAN_DRAW_CREATED = :"loan_draw.created"
|
|
312
|
+
|
|
313
|
+
# Occurs whenever a Loan Hold is created.
|
|
314
|
+
LOAN_HOLD_CREATED = :"loan_hold.created"
|
|
315
|
+
|
|
316
|
+
# Occurs whenever a Loan Hold is updated.
|
|
317
|
+
LOAN_HOLD_UPDATED = :"loan_hold.updated"
|
|
318
|
+
|
|
310
319
|
# Occurs whenever a Loan Obligation is created.
|
|
311
320
|
LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
|
|
312
321
|
|
|
@@ -316,12 +325,18 @@ module Increase
|
|
|
316
325
|
# Occurs whenever a Loan Offer is updated.
|
|
317
326
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
318
327
|
|
|
328
|
+
# Occurs whenever a Loan Payment is created.
|
|
329
|
+
LOAN_PAYMENT_CREATED = :"loan_payment.created"
|
|
330
|
+
|
|
319
331
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
320
332
|
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
321
333
|
|
|
322
334
|
# Occurs whenever a Loan Purchase Offer is updated.
|
|
323
335
|
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
324
336
|
|
|
337
|
+
# Occurs whenever a Loan Statement is created.
|
|
338
|
+
LOAN_STATEMENT_CREATED = :"loan_statement.created"
|
|
339
|
+
|
|
325
340
|
# Occurs whenever a Lockbox is created.
|
|
326
341
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
327
342
|
|