increase 1.216.0 → 1.218.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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/check_deposit.rb +71 -1
- data/lib/increase/models/simulations/card_authentication_challenge_attempts_params.rb +24 -0
- data/lib/increase/models/simulations/card_authentication_challenges_params.rb +16 -0
- data/lib/increase/models/simulations/card_authentication_create_params.rb +118 -0
- data/lib/increase/resources/simulations/card_authentications.rb +110 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +4 -0
- data/rbi/increase/models/check_deposit.rbi +132 -0
- data/rbi/increase/models/simulations/card_authentication_challenge_attempts_params.rbi +45 -0
- data/rbi/increase/models/simulations/card_authentication_challenges_params.rbi +32 -0
- data/rbi/increase/models/simulations/card_authentication_create_params.rbi +238 -0
- data/rbi/increase/resources/simulations/card_authentications.rbi +94 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/models/check_deposit.rbs +65 -0
- data/sig/increase/models/simulations/card_authentication_challenge_attempts_params.rbs +25 -0
- data/sig/increase/models/simulations/card_authentication_challenges_params.rbs +17 -0
- data/sig/increase/models/simulations/card_authentication_create_params.rbs +112 -0
- data/sig/increase/resources/simulations/card_authentications.rbs +32 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +13 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
class CardAuthenticationChallengesParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Increase::Simulations::CardAuthenticationChallengesParams,
|
|
14
|
+
Increase::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
20
|
+
T.attached_class
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
def self.new(request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
class CardAuthenticationCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Increase::Simulations::CardAuthenticationCreateParams,
|
|
14
|
+
Increase::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The identifier of the Card to be authorized.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :card_id
|
|
21
|
+
|
|
22
|
+
# The category of the card authentication attempt.
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
T.nilable(
|
|
26
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::OrSymbol
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_reader :category
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
category:
|
|
35
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::OrSymbol
|
|
36
|
+
).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :category
|
|
39
|
+
|
|
40
|
+
# The device channel of the card authentication attempt.
|
|
41
|
+
sig do
|
|
42
|
+
returns(
|
|
43
|
+
T.nilable(
|
|
44
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::OrSymbol
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
attr_reader :device_channel
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
device_channel:
|
|
53
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::OrSymbol
|
|
54
|
+
).void
|
|
55
|
+
end
|
|
56
|
+
attr_writer :device_channel
|
|
57
|
+
|
|
58
|
+
# The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
59
|
+
# is transacting with.
|
|
60
|
+
sig { returns(T.nilable(String)) }
|
|
61
|
+
attr_reader :merchant_acceptor_id
|
|
62
|
+
|
|
63
|
+
sig { params(merchant_acceptor_id: String).void }
|
|
64
|
+
attr_writer :merchant_acceptor_id
|
|
65
|
+
|
|
66
|
+
# The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
67
|
+
# card is transacting with.
|
|
68
|
+
sig { returns(T.nilable(String)) }
|
|
69
|
+
attr_reader :merchant_category_code
|
|
70
|
+
|
|
71
|
+
sig { params(merchant_category_code: String).void }
|
|
72
|
+
attr_writer :merchant_category_code
|
|
73
|
+
|
|
74
|
+
# The country the merchant resides in.
|
|
75
|
+
sig { returns(T.nilable(String)) }
|
|
76
|
+
attr_reader :merchant_country
|
|
77
|
+
|
|
78
|
+
sig { params(merchant_country: String).void }
|
|
79
|
+
attr_writer :merchant_country
|
|
80
|
+
|
|
81
|
+
# The name of the merchant
|
|
82
|
+
sig { returns(T.nilable(String)) }
|
|
83
|
+
attr_reader :merchant_name
|
|
84
|
+
|
|
85
|
+
sig { params(merchant_name: String).void }
|
|
86
|
+
attr_writer :merchant_name
|
|
87
|
+
|
|
88
|
+
# The purchase amount in cents.
|
|
89
|
+
sig { returns(T.nilable(Integer)) }
|
|
90
|
+
attr_reader :purchase_amount
|
|
91
|
+
|
|
92
|
+
sig { params(purchase_amount: Integer).void }
|
|
93
|
+
attr_writer :purchase_amount
|
|
94
|
+
|
|
95
|
+
sig do
|
|
96
|
+
params(
|
|
97
|
+
card_id: String,
|
|
98
|
+
category:
|
|
99
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::OrSymbol,
|
|
100
|
+
device_channel:
|
|
101
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::OrSymbol,
|
|
102
|
+
merchant_acceptor_id: String,
|
|
103
|
+
merchant_category_code: String,
|
|
104
|
+
merchant_country: String,
|
|
105
|
+
merchant_name: String,
|
|
106
|
+
purchase_amount: Integer,
|
|
107
|
+
request_options: Increase::RequestOptions::OrHash
|
|
108
|
+
).returns(T.attached_class)
|
|
109
|
+
end
|
|
110
|
+
def self.new(
|
|
111
|
+
# The identifier of the Card to be authorized.
|
|
112
|
+
card_id:,
|
|
113
|
+
# The category of the card authentication attempt.
|
|
114
|
+
category: nil,
|
|
115
|
+
# The device channel of the card authentication attempt.
|
|
116
|
+
device_channel: nil,
|
|
117
|
+
# The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
118
|
+
# is transacting with.
|
|
119
|
+
merchant_acceptor_id: nil,
|
|
120
|
+
# The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
121
|
+
# card is transacting with.
|
|
122
|
+
merchant_category_code: nil,
|
|
123
|
+
# The country the merchant resides in.
|
|
124
|
+
merchant_country: nil,
|
|
125
|
+
# The name of the merchant
|
|
126
|
+
merchant_name: nil,
|
|
127
|
+
# The purchase amount in cents.
|
|
128
|
+
purchase_amount: nil,
|
|
129
|
+
request_options: {}
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
sig do
|
|
134
|
+
override.returns(
|
|
135
|
+
{
|
|
136
|
+
card_id: String,
|
|
137
|
+
category:
|
|
138
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::OrSymbol,
|
|
139
|
+
device_channel:
|
|
140
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::OrSymbol,
|
|
141
|
+
merchant_acceptor_id: String,
|
|
142
|
+
merchant_category_code: String,
|
|
143
|
+
merchant_country: String,
|
|
144
|
+
merchant_name: String,
|
|
145
|
+
purchase_amount: Integer,
|
|
146
|
+
request_options: Increase::RequestOptions
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
def to_hash
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# The category of the card authentication attempt.
|
|
154
|
+
module Category
|
|
155
|
+
extend Increase::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
TaggedSymbol =
|
|
158
|
+
T.type_alias do
|
|
159
|
+
T.all(
|
|
160
|
+
Symbol,
|
|
161
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
165
|
+
|
|
166
|
+
# The authentication attempt is for a payment.
|
|
167
|
+
PAYMENT_AUTHENTICATION =
|
|
168
|
+
T.let(
|
|
169
|
+
:payment_authentication,
|
|
170
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::TaggedSymbol
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
# The authentication attempt is not for a payment.
|
|
174
|
+
NON_PAYMENT_AUTHENTICATION =
|
|
175
|
+
T.let(
|
|
176
|
+
:non_payment_authentication,
|
|
177
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
sig do
|
|
181
|
+
override.returns(
|
|
182
|
+
T::Array[
|
|
183
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::TaggedSymbol
|
|
184
|
+
]
|
|
185
|
+
)
|
|
186
|
+
end
|
|
187
|
+
def self.values
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# The device channel of the card authentication attempt.
|
|
192
|
+
module DeviceChannel
|
|
193
|
+
extend Increase::Internal::Type::Enum
|
|
194
|
+
|
|
195
|
+
TaggedSymbol =
|
|
196
|
+
T.type_alias do
|
|
197
|
+
T.all(
|
|
198
|
+
Symbol,
|
|
199
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
203
|
+
|
|
204
|
+
# The authentication attempt was made from an app.
|
|
205
|
+
APP =
|
|
206
|
+
T.let(
|
|
207
|
+
:app,
|
|
208
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::TaggedSymbol
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
# The authentication attempt was made from a browser.
|
|
212
|
+
BROWSER =
|
|
213
|
+
T.let(
|
|
214
|
+
:browser,
|
|
215
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
# The authentication attempt was initiated by the 3DS Requestor.
|
|
219
|
+
THREE_DS_REQUESTOR_INITIATED =
|
|
220
|
+
T.let(
|
|
221
|
+
:three_ds_requestor_initiated,
|
|
222
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::TaggedSymbol
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
sig do
|
|
226
|
+
override.returns(
|
|
227
|
+
T::Array[
|
|
228
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::TaggedSymbol
|
|
229
|
+
]
|
|
230
|
+
)
|
|
231
|
+
end
|
|
232
|
+
def self.values
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class CardAuthentications
|
|
7
|
+
# Simulates a Card Authentication attempt on a [Card](#cards). The attempt always
|
|
8
|
+
# results in a [Card Payment](#card_payments) being created, either with a status
|
|
9
|
+
# that allows further action or a terminal failed status.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
card_id: String,
|
|
13
|
+
category:
|
|
14
|
+
Increase::Simulations::CardAuthenticationCreateParams::Category::OrSymbol,
|
|
15
|
+
device_channel:
|
|
16
|
+
Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel::OrSymbol,
|
|
17
|
+
merchant_acceptor_id: String,
|
|
18
|
+
merchant_category_code: String,
|
|
19
|
+
merchant_country: String,
|
|
20
|
+
merchant_name: String,
|
|
21
|
+
purchase_amount: Integer,
|
|
22
|
+
request_options: Increase::RequestOptions::OrHash
|
|
23
|
+
).returns(Increase::CardPayment)
|
|
24
|
+
end
|
|
25
|
+
def create(
|
|
26
|
+
# The identifier of the Card to be authorized.
|
|
27
|
+
card_id:,
|
|
28
|
+
# The category of the card authentication attempt.
|
|
29
|
+
category: nil,
|
|
30
|
+
# The device channel of the card authentication attempt.
|
|
31
|
+
device_channel: nil,
|
|
32
|
+
# The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
33
|
+
# is transacting with.
|
|
34
|
+
merchant_acceptor_id: nil,
|
|
35
|
+
# The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
36
|
+
# card is transacting with.
|
|
37
|
+
merchant_category_code: nil,
|
|
38
|
+
# The country the merchant resides in.
|
|
39
|
+
merchant_country: nil,
|
|
40
|
+
# The name of the merchant
|
|
41
|
+
merchant_name: nil,
|
|
42
|
+
# The purchase amount in cents.
|
|
43
|
+
purchase_amount: nil,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Simulates an attempt at a Card Authentication Challenge. This updates the
|
|
49
|
+
# `card_authentications` object under the [Card Payment](#card_payments). You can
|
|
50
|
+
# also attempt the challenge by navigating to
|
|
51
|
+
# https://dashboard.increase.com/card_authentication_simulation/:card_payment_id.
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
card_payment_id: String,
|
|
55
|
+
one_time_code: String,
|
|
56
|
+
request_options: Increase::RequestOptions::OrHash
|
|
57
|
+
).returns(Increase::CardPayment)
|
|
58
|
+
end
|
|
59
|
+
def challenge_attempts(
|
|
60
|
+
# The identifier of the Card Payment to be challenged.
|
|
61
|
+
card_payment_id,
|
|
62
|
+
# The one-time code to be validated.
|
|
63
|
+
one_time_code:,
|
|
64
|
+
request_options: {}
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Simulates starting a Card Authentication Challenge for an existing Card
|
|
69
|
+
# Authentication. This updates the `card_authentications` object under the
|
|
70
|
+
# [Card Payment](#card_payments). To attempt the challenge, use the
|
|
71
|
+
# `/simulations/card_authentications/:card_payment_id/challenge_attempts` endpoint
|
|
72
|
+
# or navigate to
|
|
73
|
+
# https://dashboard.increase.com/card_authentication_simulation/:card_payment_id.
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
card_payment_id: String,
|
|
77
|
+
request_options: Increase::RequestOptions::OrHash
|
|
78
|
+
).returns(Increase::CardPayment)
|
|
79
|
+
end
|
|
80
|
+
def challenges(
|
|
81
|
+
# The identifier of the Card Payment to be challenged.
|
|
82
|
+
card_payment_id,
|
|
83
|
+
request_options: {}
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# @api private
|
|
88
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
89
|
+
def self.new(client:)
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -35,6 +35,9 @@ module Increase
|
|
|
35
35
|
sig { returns(Increase::Resources::Simulations::CardRefunds) }
|
|
36
36
|
attr_reader :card_refunds
|
|
37
37
|
|
|
38
|
+
sig { returns(Increase::Resources::Simulations::CardAuthentications) }
|
|
39
|
+
attr_reader :card_authentications
|
|
40
|
+
|
|
38
41
|
sig { returns(Increase::Resources::Simulations::CardDisputes) }
|
|
39
42
|
attr_reader :card_disputes
|
|
40
43
|
|
|
@@ -8,6 +8,7 @@ module Increase
|
|
|
8
8
|
back_image_file_id: String?,
|
|
9
9
|
created_at: Time,
|
|
10
10
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
11
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
11
12
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
12
13
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
13
14
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -35,6 +36,8 @@ module Increase
|
|
|
35
36
|
|
|
36
37
|
attr_accessor deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?
|
|
37
38
|
|
|
39
|
+
attr_accessor deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment]
|
|
40
|
+
|
|
38
41
|
attr_accessor deposit_rejection: Increase::CheckDeposit::DepositRejection?
|
|
39
42
|
|
|
40
43
|
attr_accessor deposit_return: Increase::CheckDeposit::DepositReturn?
|
|
@@ -66,6 +69,7 @@ module Increase
|
|
|
66
69
|
back_image_file_id: String?,
|
|
67
70
|
created_at: Time,
|
|
68
71
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
72
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
69
73
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
70
74
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
71
75
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -87,6 +91,7 @@ module Increase
|
|
|
87
91
|
back_image_file_id: String?,
|
|
88
92
|
created_at: Time,
|
|
89
93
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
94
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
90
95
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
91
96
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
92
97
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -159,6 +164,66 @@ module Increase
|
|
|
159
164
|
end
|
|
160
165
|
end
|
|
161
166
|
|
|
167
|
+
type deposit_adjustment =
|
|
168
|
+
{
|
|
169
|
+
adjusted_at: Time,
|
|
170
|
+
amount: Integer,
|
|
171
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
172
|
+
transaction_id: String
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
class DepositAdjustment < Increase::Internal::Type::BaseModel
|
|
176
|
+
attr_accessor adjusted_at: Time
|
|
177
|
+
|
|
178
|
+
attr_accessor amount: Integer
|
|
179
|
+
|
|
180
|
+
attr_accessor reason: Increase::Models::CheckDeposit::DepositAdjustment::reason
|
|
181
|
+
|
|
182
|
+
attr_accessor transaction_id: String
|
|
183
|
+
|
|
184
|
+
def initialize: (
|
|
185
|
+
adjusted_at: Time,
|
|
186
|
+
amount: Integer,
|
|
187
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
188
|
+
transaction_id: String
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
adjusted_at: Time,
|
|
193
|
+
amount: Integer,
|
|
194
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
195
|
+
transaction_id: String
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
type reason =
|
|
199
|
+
:late_return
|
|
200
|
+
| :wrong_payee_credit
|
|
201
|
+
| :adjusted_amount
|
|
202
|
+
| :non_conforming_item
|
|
203
|
+
| :paid
|
|
204
|
+
|
|
205
|
+
module Reason
|
|
206
|
+
extend Increase::Internal::Type::Enum
|
|
207
|
+
|
|
208
|
+
# The return was initiated too late and the receiving institution has responded with a Late Return Claim.
|
|
209
|
+
LATE_RETURN: :late_return
|
|
210
|
+
|
|
211
|
+
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
|
|
212
|
+
WRONG_PAYEE_CREDIT: :wrong_payee_credit
|
|
213
|
+
|
|
214
|
+
# The check was deposited with a different amount than what was written on the check.
|
|
215
|
+
ADJUSTED_AMOUNT: :adjusted_amount
|
|
216
|
+
|
|
217
|
+
# The recipient was not able to process the check. This usually happens for e.g., low quality images.
|
|
218
|
+
NON_CONFORMING_ITEM: :non_conforming_item
|
|
219
|
+
|
|
220
|
+
# The check has already been deposited elsewhere and so this is a duplicate.
|
|
221
|
+
PAID: :paid
|
|
222
|
+
|
|
223
|
+
def self?.values: -> ::Array[Increase::Models::CheckDeposit::DepositAdjustment::reason]
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
162
227
|
type deposit_rejection =
|
|
163
228
|
{
|
|
164
229
|
amount: Integer,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
module Simulations
|
|
4
|
+
type card_authentication_challenge_attempts_params =
|
|
5
|
+
{ one_time_code: String } & Increase::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CardAuthenticationChallengeAttemptsParams < Increase::Internal::Type::BaseModel
|
|
8
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Increase::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor one_time_code: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
one_time_code: String,
|
|
15
|
+
?request_options: Increase::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
one_time_code: String,
|
|
20
|
+
request_options: Increase::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
module Simulations
|
|
4
|
+
type card_authentication_challenges_params =
|
|
5
|
+
{ } & Increase::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CardAuthenticationChallengesParams < Increase::Internal::Type::BaseModel
|
|
8
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Increase::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (?request_options: Increase::request_opts) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { request_options: Increase::RequestOptions }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
module Simulations
|
|
4
|
+
type card_authentication_create_params =
|
|
5
|
+
{
|
|
6
|
+
card_id: String,
|
|
7
|
+
category: Increase::Models::Simulations::CardAuthenticationCreateParams::category,
|
|
8
|
+
device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel,
|
|
9
|
+
merchant_acceptor_id: String,
|
|
10
|
+
merchant_category_code: String,
|
|
11
|
+
merchant_country: String,
|
|
12
|
+
merchant_name: String,
|
|
13
|
+
purchase_amount: Integer
|
|
14
|
+
}
|
|
15
|
+
& Increase::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class CardAuthenticationCreateParams < Increase::Internal::Type::BaseModel
|
|
18
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Increase::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor card_id: String
|
|
22
|
+
|
|
23
|
+
attr_reader category: Increase::Models::Simulations::CardAuthenticationCreateParams::category?
|
|
24
|
+
|
|
25
|
+
def category=: (
|
|
26
|
+
Increase::Models::Simulations::CardAuthenticationCreateParams::category
|
|
27
|
+
) -> Increase::Models::Simulations::CardAuthenticationCreateParams::category
|
|
28
|
+
|
|
29
|
+
attr_reader device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel?
|
|
30
|
+
|
|
31
|
+
def device_channel=: (
|
|
32
|
+
Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel
|
|
33
|
+
) -> Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel
|
|
34
|
+
|
|
35
|
+
attr_reader merchant_acceptor_id: String?
|
|
36
|
+
|
|
37
|
+
def merchant_acceptor_id=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_reader merchant_category_code: String?
|
|
40
|
+
|
|
41
|
+
def merchant_category_code=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader merchant_country: String?
|
|
44
|
+
|
|
45
|
+
def merchant_country=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader merchant_name: String?
|
|
48
|
+
|
|
49
|
+
def merchant_name=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader purchase_amount: Integer?
|
|
52
|
+
|
|
53
|
+
def purchase_amount=: (Integer) -> Integer
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
card_id: String,
|
|
57
|
+
?category: Increase::Models::Simulations::CardAuthenticationCreateParams::category,
|
|
58
|
+
?device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel,
|
|
59
|
+
?merchant_acceptor_id: String,
|
|
60
|
+
?merchant_category_code: String,
|
|
61
|
+
?merchant_country: String,
|
|
62
|
+
?merchant_name: String,
|
|
63
|
+
?purchase_amount: Integer,
|
|
64
|
+
?request_options: Increase::request_opts
|
|
65
|
+
) -> void
|
|
66
|
+
|
|
67
|
+
def to_hash: -> {
|
|
68
|
+
card_id: String,
|
|
69
|
+
category: Increase::Models::Simulations::CardAuthenticationCreateParams::category,
|
|
70
|
+
device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel,
|
|
71
|
+
merchant_acceptor_id: String,
|
|
72
|
+
merchant_category_code: String,
|
|
73
|
+
merchant_country: String,
|
|
74
|
+
merchant_name: String,
|
|
75
|
+
purchase_amount: Integer,
|
|
76
|
+
request_options: Increase::RequestOptions
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
type category = :payment_authentication | :non_payment_authentication
|
|
80
|
+
|
|
81
|
+
module Category
|
|
82
|
+
extend Increase::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
# The authentication attempt is for a payment.
|
|
85
|
+
PAYMENT_AUTHENTICATION: :payment_authentication
|
|
86
|
+
|
|
87
|
+
# The authentication attempt is not for a payment.
|
|
88
|
+
NON_PAYMENT_AUTHENTICATION: :non_payment_authentication
|
|
89
|
+
|
|
90
|
+
def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthenticationCreateParams::category]
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
type device_channel = :app | :browser | :three_ds_requestor_initiated
|
|
94
|
+
|
|
95
|
+
module DeviceChannel
|
|
96
|
+
extend Increase::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
# The authentication attempt was made from an app.
|
|
99
|
+
APP: :app
|
|
100
|
+
|
|
101
|
+
# The authentication attempt was made from a browser.
|
|
102
|
+
BROWSER: :browser
|
|
103
|
+
|
|
104
|
+
# The authentication attempt was initiated by the 3DS Requestor.
|
|
105
|
+
THREE_DS_REQUESTOR_INITIATED: :three_ds_requestor_initiated
|
|
106
|
+
|
|
107
|
+
def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Resources
|
|
3
|
+
class Simulations
|
|
4
|
+
class CardAuthentications
|
|
5
|
+
def create: (
|
|
6
|
+
card_id: String,
|
|
7
|
+
?category: Increase::Models::Simulations::CardAuthenticationCreateParams::category,
|
|
8
|
+
?device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel,
|
|
9
|
+
?merchant_acceptor_id: String,
|
|
10
|
+
?merchant_category_code: String,
|
|
11
|
+
?merchant_country: String,
|
|
12
|
+
?merchant_name: String,
|
|
13
|
+
?purchase_amount: Integer,
|
|
14
|
+
?request_options: Increase::request_opts
|
|
15
|
+
) -> Increase::CardPayment
|
|
16
|
+
|
|
17
|
+
def challenge_attempts: (
|
|
18
|
+
String card_payment_id,
|
|
19
|
+
one_time_code: String,
|
|
20
|
+
?request_options: Increase::request_opts
|
|
21
|
+
) -> Increase::CardPayment
|
|
22
|
+
|
|
23
|
+
def challenges: (
|
|
24
|
+
String card_payment_id,
|
|
25
|
+
?request_options: Increase::request_opts
|
|
26
|
+
) -> Increase::CardPayment
|
|
27
|
+
|
|
28
|
+
def initialize: (client: Increase::Client) -> void
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -21,6 +21,8 @@ module Increase
|
|
|
21
21
|
|
|
22
22
|
attr_reader card_refunds: Increase::Resources::Simulations::CardRefunds
|
|
23
23
|
|
|
24
|
+
attr_reader card_authentications: Increase::Resources::Simulations::CardAuthentications
|
|
25
|
+
|
|
24
26
|
attr_reader card_disputes: Increase::Resources::Simulations::CardDisputes
|
|
25
27
|
|
|
26
28
|
attr_reader physical_cards: Increase::Resources::Simulations::PhysicalCards
|