increase 1.72.0 → 1.74.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.
@@ -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 verified.
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 verified.
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,26 +130,35 @@ module Increase
130
130
  type card_authorization =
131
131
  {
132
132
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
133
- decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
133
+ approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
134
+ decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
134
135
  }
135
136
 
136
137
  class CardAuthorization < Increase::Internal::Type::BaseModel
137
138
  attr_accessor decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision
138
139
 
139
- attr_reader decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason?
140
+ attr_reader approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval?
140
141
 
141
- def decline_reason=: (
142
- Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
143
- ) -> Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
142
+ def approval=: (
143
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Approval
144
+ ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Approval
145
+
146
+ attr_reader decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline?
147
+
148
+ def decline=: (
149
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
150
+ ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
144
151
 
145
152
  def initialize: (
146
153
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
147
- ?decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
154
+ ?approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
155
+ ?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
148
156
  ) -> void
149
157
 
150
158
  def to_hash: -> {
151
159
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
152
- decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
160
+ approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
161
+ decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
153
162
  }
154
163
 
155
164
  type decision = :approve | :decline
@@ -166,36 +175,124 @@ module Increase
166
175
  def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision]
167
176
  end
168
177
 
169
- type decline_reason =
170
- :insufficient_funds
171
- | :transaction_never_allowed
172
- | :exceeds_approval_limit
173
- | :card_temporarily_disabled
174
- | :suspected_fraud
175
- | :other
178
+ type approval =
179
+ {
180
+ cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
181
+ }
176
182
 
177
- module DeclineReason
178
- extend Increase::Internal::Type::Enum
183
+ class Approval < Increase::Internal::Type::BaseModel
184
+ attr_reader cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult?
185
+
186
+ def cardholder_address_verification_result=: (
187
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
188
+ ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
189
+
190
+ def initialize: (
191
+ ?cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
192
+ ) -> void
193
+
194
+ def to_hash: -> {
195
+ cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
196
+ }
197
+
198
+ type cardholder_address_verification_result =
199
+ {
200
+ :line1 => Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
201
+ postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
202
+ }
203
+
204
+ class CardholderAddressVerificationResult < Increase::Internal::Type::BaseModel
205
+ attr_accessor line1: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1
206
+
207
+ attr_accessor postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
208
+
209
+ def initialize: (
210
+ line1: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
211
+ postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
212
+ ) -> void
213
+
214
+ def to_hash: -> {
215
+ :line1 => Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1,
216
+ postal_code: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code
217
+ }
218
+
219
+ type line1 = :match | :no_match
220
+
221
+ module Line1
222
+ extend Increase::Internal::Type::Enum
223
+
224
+ # The cardholder address verification result matches the address provided by the merchant.
225
+ MATCH: :match
226
+
227
+ # The cardholder address verification result does not match the address provided by the merchant.
228
+ NO_MATCH: :no_match
229
+
230
+ def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::line1]
231
+ end
232
+
233
+ type postal_code = :match | :no_match
234
+
235
+ module PostalCode
236
+ extend Increase::Internal::Type::Enum
237
+
238
+ # The cardholder address verification result matches the address provided by the merchant.
239
+ MATCH: :match
240
+
241
+ # The cardholder address verification result does not match the address provided by the merchant.
242
+ NO_MATCH: :no_match
243
+
244
+ def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::postal_code]
245
+ end
246
+ end
247
+ end
248
+
249
+ type decline =
250
+ {
251
+ reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
252
+ }
253
+
254
+ class Decline < Increase::Internal::Type::BaseModel
255
+ attr_accessor reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
256
+
257
+ def initialize: (
258
+ reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
259
+ ) -> void
260
+
261
+ def to_hash: -> {
262
+ reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason
263
+ }
264
+
265
+ type reason =
266
+ :insufficient_funds
267
+ | :transaction_never_allowed
268
+ | :exceeds_approval_limit
269
+ | :card_temporarily_disabled
270
+ | :suspected_fraud
271
+ | :other
272
+
273
+ module Reason
274
+ extend Increase::Internal::Type::Enum
179
275
 
180
- # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
181
- INSUFFICIENT_FUNDS: :insufficient_funds
276
+ # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
277
+ INSUFFICIENT_FUNDS: :insufficient_funds
182
278
 
183
- # This type of transaction is not allowed for this card. This transaction should not be retried.
184
- TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed
279
+ # This type of transaction is not allowed for this card. This transaction should not be retried.
280
+ TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed
185
281
 
186
- # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
187
- EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit
282
+ # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
283
+ EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit
188
284
 
189
- # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
190
- CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled
285
+ # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
286
+ CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled
191
287
 
192
- # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
193
- SUSPECTED_FRAUD: :suspected_fraud
288
+ # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
289
+ SUSPECTED_FRAUD: :suspected_fraud
194
290
 
195
- # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
196
- OTHER: :other
291
+ # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
292
+ OTHER: :other
197
293
 
198
- def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason]
294
+ def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason]
295
+ end
199
296
  end
200
297
  end
201
298
 
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.72.0
4
+ version: 1.74.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-08 00:00:00.000000000 Z
11
+ date: 2025-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool