increase 1.71.0 → 1.73.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/card_payment.rb +18 -18
- data/lib/increase/models/declined_transaction.rb +6 -6
- data/lib/increase/models/entity_update_params.rb +11 -1
- data/lib/increase/models/pending_transaction.rb +6 -6
- data/lib/increase/models/real_time_decision.rb +31 -7
- data/lib/increase/models/real_time_decision_action_params.rb +184 -4
- data/lib/increase/resources/entities.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_payment.rbi +30 -30
- data/rbi/increase/models/declined_transaction.rbi +10 -10
- data/rbi/increase/models/entity_update_params.rbi +15 -0
- data/rbi/increase/models/pending_transaction.rbi +10 -10
- data/rbi/increase/models/real_time_decision.rbi +67 -10
- data/rbi/increase/models/real_time_decision_action_params.rbi +400 -3
- data/rbi/increase/resources/entities.rbi +5 -0
- data/sig/increase/models/card_payment.rbs +21 -21
- data/sig/increase/models/declined_transaction.rbs +7 -7
- data/sig/increase/models/entity_update_params.rbs +7 -0
- data/sig/increase/models/pending_transaction.rbs +7 -7
- data/sig/increase/models/real_time_decision.rbs +22 -7
- data/sig/increase/models/real_time_decision_action_params.rbs +138 -0
- data/sig/increase/resources/entities.rbs +1 -0
- metadata +2 -2
@@ -1010,25 +1010,22 @@ module Increase
|
|
1010
1010
|
|
1011
1011
|
type result =
|
1012
1012
|
:not_checked
|
1013
|
-
| :postal_code_match_address_not_checked
|
1014
1013
|
| :postal_code_match_address_no_match
|
1015
1014
|
| :postal_code_no_match_address_match
|
1016
1015
|
| :match
|
1017
1016
|
| :no_match
|
1017
|
+
| :postal_code_match_address_not_checked
|
1018
1018
|
|
1019
1019
|
module Result
|
1020
1020
|
extend Increase::Internal::Type::Enum
|
1021
1021
|
|
1022
|
-
# No address was provided in the authorization request.
|
1022
|
+
# No address information was provided in the authorization request.
|
1023
1023
|
NOT_CHECKED: :not_checked
|
1024
1024
|
|
1025
|
-
# Postal code matches, but the street address was not
|
1026
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED: :postal_code_match_address_not_checked
|
1027
|
-
|
1028
|
-
# Postal code matches, but the street address does not match.
|
1025
|
+
# Postal code matches, but the street address does not match or was not provided.
|
1029
1026
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH: :postal_code_match_address_no_match
|
1030
1027
|
|
1031
|
-
# Postal code does not match, but the street address matches.
|
1028
|
+
# Postal code does not match, but the street address matches or was not provided.
|
1032
1029
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH: :postal_code_no_match_address_match
|
1033
1030
|
|
1034
1031
|
# Postal code and street address match.
|
@@ -1037,6 +1034,9 @@ module Increase
|
|
1037
1034
|
# Postal code and street address do not match.
|
1038
1035
|
NO_MATCH: :no_match
|
1039
1036
|
|
1037
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
1038
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED: :postal_code_match_address_not_checked
|
1039
|
+
|
1040
1040
|
def self?.values: -> ::Array[Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::result]
|
1041
1041
|
end
|
1042
1042
|
end
|
@@ -172,6 +172,7 @@ module Increase
|
|
172
172
|
additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
|
173
173
|
card_id: String,
|
174
174
|
decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
|
175
|
+
decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
|
175
176
|
digital_wallet_token_id: String?,
|
176
177
|
direction: Increase::Models::RealTimeDecision::CardAuthorization::direction,
|
177
178
|
merchant_acceptor_id: String,
|
@@ -205,6 +206,8 @@ module Increase
|
|
205
206
|
|
206
207
|
attr_accessor decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?
|
207
208
|
|
209
|
+
attr_accessor decline: Increase::RealTimeDecision::CardAuthorization::Decline?
|
210
|
+
|
208
211
|
attr_accessor digital_wallet_token_id: String?
|
209
212
|
|
210
213
|
attr_accessor direction: Increase::Models::RealTimeDecision::CardAuthorization::direction
|
@@ -254,6 +257,7 @@ module Increase
|
|
254
257
|
additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
|
255
258
|
card_id: String,
|
256
259
|
decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
|
260
|
+
decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
|
257
261
|
digital_wallet_token_id: String?,
|
258
262
|
direction: Increase::Models::RealTimeDecision::CardAuthorization::direction,
|
259
263
|
merchant_acceptor_id: String,
|
@@ -283,6 +287,7 @@ module Increase
|
|
283
287
|
additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
|
284
288
|
card_id: String,
|
285
289
|
decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
|
290
|
+
decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
|
286
291
|
digital_wallet_token_id: String?,
|
287
292
|
direction: Increase::Models::RealTimeDecision::CardAuthorization::direction,
|
288
293
|
merchant_acceptor_id: String,
|
@@ -486,6 +491,16 @@ module Increase
|
|
486
491
|
def self?.values: -> ::Array[Increase::Models::RealTimeDecision::CardAuthorization::decision]
|
487
492
|
end
|
488
493
|
|
494
|
+
type decline = { reason: String }
|
495
|
+
|
496
|
+
class Decline < Increase::Internal::Type::BaseModel
|
497
|
+
attr_accessor reason: String
|
498
|
+
|
499
|
+
def initialize: (reason: String) -> void
|
500
|
+
|
501
|
+
def to_hash: -> { reason: String }
|
502
|
+
end
|
503
|
+
|
489
504
|
type direction = :settlement | :refund
|
490
505
|
|
491
506
|
module Direction
|
@@ -908,25 +923,22 @@ module Increase
|
|
908
923
|
|
909
924
|
type result =
|
910
925
|
:not_checked
|
911
|
-
| :postal_code_match_address_not_checked
|
912
926
|
| :postal_code_match_address_no_match
|
913
927
|
| :postal_code_no_match_address_match
|
914
928
|
| :match
|
915
929
|
| :no_match
|
930
|
+
| :postal_code_match_address_not_checked
|
916
931
|
|
917
932
|
module Result
|
918
933
|
extend Increase::Internal::Type::Enum
|
919
934
|
|
920
|
-
# No address was provided in the authorization request.
|
935
|
+
# No address information was provided in the authorization request.
|
921
936
|
NOT_CHECKED: :not_checked
|
922
937
|
|
923
|
-
# Postal code matches, but the street address was not
|
924
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED: :postal_code_match_address_not_checked
|
925
|
-
|
926
|
-
# Postal code matches, but the street address does not match.
|
938
|
+
# Postal code matches, but the street address does not match or was not provided.
|
927
939
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH: :postal_code_match_address_no_match
|
928
940
|
|
929
|
-
# Postal code does not match, but the street address matches.
|
941
|
+
# Postal code does not match, but the street address matches or was not provided.
|
930
942
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH: :postal_code_no_match_address_match
|
931
943
|
|
932
944
|
# Postal code and street address match.
|
@@ -935,6 +947,9 @@ module Increase
|
|
935
947
|
# Postal code and street address do not match.
|
936
948
|
NO_MATCH: :no_match
|
937
949
|
|
950
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
951
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED: :postal_code_match_address_not_checked
|
952
|
+
|
938
953
|
def self?.values: -> ::Array[Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::result]
|
939
954
|
end
|
940
955
|
end
|
@@ -130,12 +130,26 @@ module Increase
|
|
130
130
|
type card_authorization =
|
131
131
|
{
|
132
132
|
decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
|
133
|
+
approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
|
134
|
+
decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
|
133
135
|
decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
|
134
136
|
}
|
135
137
|
|
136
138
|
class CardAuthorization < Increase::Internal::Type::BaseModel
|
137
139
|
attr_accessor decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision
|
138
140
|
|
141
|
+
attr_reader approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval?
|
142
|
+
|
143
|
+
def approval=: (
|
144
|
+
Increase::RealTimeDecisionActionParams::CardAuthorization::Approval
|
145
|
+
) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Approval
|
146
|
+
|
147
|
+
attr_reader decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline?
|
148
|
+
|
149
|
+
def decline=: (
|
150
|
+
Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
|
151
|
+
) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
|
152
|
+
|
139
153
|
attr_reader decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason?
|
140
154
|
|
141
155
|
def decline_reason=: (
|
@@ -144,11 +158,15 @@ module Increase
|
|
144
158
|
|
145
159
|
def initialize: (
|
146
160
|
decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
|
161
|
+
?approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
|
162
|
+
?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
|
147
163
|
?decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
|
148
164
|
) -> void
|
149
165
|
|
150
166
|
def to_hash: -> {
|
151
167
|
decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
|
168
|
+
approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
|
169
|
+
decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
|
152
170
|
decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
|
153
171
|
}
|
154
172
|
|
@@ -166,6 +184,126 @@ module Increase
|
|
166
184
|
def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision]
|
167
185
|
end
|
168
186
|
|
187
|
+
type approval =
|
188
|
+
{
|
189
|
+
cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
|
190
|
+
}
|
191
|
+
|
192
|
+
class Approval < Increase::Internal::Type::BaseModel
|
193
|
+
attr_reader cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult?
|
194
|
+
|
195
|
+
def cardholder_address_verification_result=: (
|
196
|
+
Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
|
197
|
+
) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
|
198
|
+
|
199
|
+
def initialize: (
|
200
|
+
?cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
|
201
|
+
) -> void
|
202
|
+
|
203
|
+
def to_hash: -> {
|
204
|
+
cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
|
205
|
+
}
|
206
|
+
|
207
|
+
type cardholder_address_verification_result =
|
208
|
+
{
|
209
|
+
:line1 => Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
|
210
|
+
postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
|
211
|
+
}
|
212
|
+
|
213
|
+
class CardholderAddressVerificationResult < Increase::Internal::Type::BaseModel
|
214
|
+
attr_accessor line1: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1
|
215
|
+
|
216
|
+
attr_accessor postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
|
217
|
+
|
218
|
+
def initialize: (
|
219
|
+
line1: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
|
220
|
+
postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
|
221
|
+
) -> void
|
222
|
+
|
223
|
+
def to_hash: -> {
|
224
|
+
:line1 => Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
|
225
|
+
postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
|
226
|
+
}
|
227
|
+
|
228
|
+
type line1 = :match | :no_match
|
229
|
+
|
230
|
+
module Line1
|
231
|
+
extend Increase::Internal::Type::Enum
|
232
|
+
|
233
|
+
# The cardholder address verification result matches the address provided by the merchant.
|
234
|
+
MATCH: :match
|
235
|
+
|
236
|
+
# The cardholder address verification result does not match the address provided by the merchant.
|
237
|
+
NO_MATCH: :no_match
|
238
|
+
|
239
|
+
def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1]
|
240
|
+
end
|
241
|
+
|
242
|
+
type postal_code = :match | :no_match
|
243
|
+
|
244
|
+
module PostalCode
|
245
|
+
extend Increase::Internal::Type::Enum
|
246
|
+
|
247
|
+
# The cardholder address verification result matches the address provided by the merchant.
|
248
|
+
MATCH: :match
|
249
|
+
|
250
|
+
# The cardholder address verification result does not match the address provided by the merchant.
|
251
|
+
NO_MATCH: :no_match
|
252
|
+
|
253
|
+
def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code]
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
type decline =
|
259
|
+
{
|
260
|
+
reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
|
261
|
+
}
|
262
|
+
|
263
|
+
class Decline < Increase::Internal::Type::BaseModel
|
264
|
+
attr_accessor reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
|
265
|
+
|
266
|
+
def initialize: (
|
267
|
+
reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
|
268
|
+
) -> void
|
269
|
+
|
270
|
+
def to_hash: -> {
|
271
|
+
reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
|
272
|
+
}
|
273
|
+
|
274
|
+
type reason =
|
275
|
+
:insufficient_funds
|
276
|
+
| :transaction_never_allowed
|
277
|
+
| :exceeds_approval_limit
|
278
|
+
| :card_temporarily_disabled
|
279
|
+
| :suspected_fraud
|
280
|
+
| :other
|
281
|
+
|
282
|
+
module Reason
|
283
|
+
extend Increase::Internal::Type::Enum
|
284
|
+
|
285
|
+
# The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
|
286
|
+
INSUFFICIENT_FUNDS: :insufficient_funds
|
287
|
+
|
288
|
+
# This type of transaction is not allowed for this card. This transaction should not be retried.
|
289
|
+
TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed
|
290
|
+
|
291
|
+
# The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
|
292
|
+
EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit
|
293
|
+
|
294
|
+
# The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
|
295
|
+
CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled
|
296
|
+
|
297
|
+
# The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
|
298
|
+
SUSPECTED_FRAUD: :suspected_fraud
|
299
|
+
|
300
|
+
# The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
|
301
|
+
OTHER: :other
|
302
|
+
|
303
|
+
def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason]
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
169
307
|
type decline_reason =
|
170
308
|
:insufficient_funds
|
171
309
|
| :transaction_never_allowed
|
@@ -23,6 +23,7 @@ module Increase
|
|
23
23
|
def update: (
|
24
24
|
String entity_id,
|
25
25
|
?corporation: Increase::EntityUpdateParams::Corporation,
|
26
|
+
?details_confirmed_at: Time,
|
26
27
|
?government_authority: Increase::EntityUpdateParams::GovernmentAuthority,
|
27
28
|
?natural_person: Increase::EntityUpdateParams::NaturalPerson,
|
28
29
|
?risk_rating: Increase::EntityUpdateParams::RiskRating,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: increase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.73.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Increase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|