increase 1.73.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f0e69a1d7256086ffbcfc5329dda435c1e9d01e6fe72b9f462ca80d4fb3a807
4
- data.tar.gz: fe1d39ca1b0e5ece64e4c9938f02695a8c9ce8e633700f1590e47aa52b472393
3
+ metadata.gz: 352bb87a18fd3d72daceebb792dbe799ed16031c9d391d00ae2684eac0e69f76
4
+ data.tar.gz: 1b109684e3a04dd2e6c3791c5bd1909dc2f7983aa5ee1d8664fe140dc083d97f
5
5
  SHA512:
6
- metadata.gz: bc4d7737031d8e4dbc9e0ae80fab81a9689b4bb41da4fbaebb94cb69c0d48baf0b08d995c6b1778ea67b43358df664ad0f4cb3547ce2a3dc6e85f0f355adbe5b
7
- data.tar.gz: 56bbc6bfcef3785599b2c7979260e7bbebe85bb3182e976ec9599b34f7ee6845741650561318b45b67b63a580dd9e09cde1aab9088df00dd3093c1727d3c56f0
6
+ metadata.gz: de5fa34162c12fe09c537bf2f3355defb96145c1c0645ae3127160554aa731ac1234418f4c8492cde61411fddf8e71ebf8e152e4e5cf5e0c29a939ac8b02fe1b
7
+ data.tar.gz: 38da026295f5dcdc4bc2cf1da7c491042640d8ab00d0119c15be7ea67eec98a058db03dfdc706a303c74ff002c3c8a76227061e8d8b522c78b86b8d914561248
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.74.0 (2025-09-12)
4
+
5
+ Full Changelog: [v1.73.0...v1.74.0](https://github.com/Increase/increase-ruby/compare/v1.73.0...v1.74.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a039096](https://github.com/Increase/increase-ruby/commit/a039096e79751ab557fae350119599801bcebb1c))
10
+
3
11
  ## 1.73.0 (2025-09-09)
4
12
 
5
13
  Full Changelog: [v1.72.0...v1.73.0](https://github.com/Increase/increase-ruby/compare/v1.72.0...v1.73.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.73.0"
18
+ gem "increase", "~> 1.74.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -152,17 +152,7 @@ module Increase
152
152
  # @return [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline, nil]
153
153
  optional :decline, -> { Increase::RealTimeDecisionActionParams::CardAuthorization::Decline }
154
154
 
155
- # @!attribute decline_reason
156
- # The reason the card authorization was declined. This translates to a specific
157
- # decline code that is sent to the card network. This field is deprecated, please
158
- # transition to using the `decline` object as this field will be removed in a
159
- # future release.
160
- #
161
- # @return [Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::DeclineReason, nil]
162
- optional :decline_reason,
163
- enum: -> { Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason }
164
-
165
- # @!method initialize(decision:, approval: nil, decline: nil, decline_reason: nil)
155
+ # @!method initialize(decision:, approval: nil, decline: nil)
166
156
  # Some parameter documentations has been truncated, see
167
157
  # {Increase::Models::RealTimeDecisionActionParams::CardAuthorization} for more
168
158
  # details.
@@ -175,8 +165,6 @@ module Increase
175
165
  # @param approval [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval] If your application approves the authorization, this contains metadata about you
176
166
  #
177
167
  # @param decline [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline] If your application declines the authorization, this contains details about the
178
- #
179
- # @param decline_reason [Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::DeclineReason] The reason the card authorization was declined. This translates to a specific de
180
168
 
181
169
  # Whether the card authorization should be approved or declined.
182
170
  #
@@ -340,37 +328,6 @@ module Increase
340
328
  # @return [Array<Symbol>]
341
329
  end
342
330
  end
343
-
344
- # The reason the card authorization was declined. This translates to a specific
345
- # decline code that is sent to the card network. This field is deprecated, please
346
- # transition to using the `decline` object as this field will be removed in a
347
- # future release.
348
- #
349
- # @see Increase::Models::RealTimeDecisionActionParams::CardAuthorization#decline_reason
350
- module DeclineReason
351
- extend Increase::Internal::Type::Enum
352
-
353
- # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
354
- INSUFFICIENT_FUNDS = :insufficient_funds
355
-
356
- # This type of transaction is not allowed for this card. This transaction should not be retried.
357
- TRANSACTION_NEVER_ALLOWED = :transaction_never_allowed
358
-
359
- # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
360
- EXCEEDS_APPROVAL_LIMIT = :exceeds_approval_limit
361
-
362
- # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
363
- CARD_TEMPORARILY_DISABLED = :card_temporarily_disabled
364
-
365
- # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
366
- SUSPECTED_FRAUD = :suspected_fraud
367
-
368
- # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
369
- OTHER = :other
370
-
371
- # @!method self.values
372
- # @return [Array<Symbol>]
373
- end
374
331
  end
375
332
 
376
333
  class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.73.0"
4
+ VERSION = "1.74.0"
5
5
  end
@@ -387,27 +387,6 @@ module Increase
387
387
  end
388
388
  attr_writer :decline
389
389
 
390
- # The reason the card authorization was declined. This translates to a specific
391
- # decline code that is sent to the card network. This field is deprecated, please
392
- # transition to using the `decline` object as this field will be removed in a
393
- # future release.
394
- sig do
395
- returns(
396
- T.nilable(
397
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol
398
- )
399
- )
400
- end
401
- attr_reader :decline_reason
402
-
403
- sig do
404
- params(
405
- decline_reason:
406
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol
407
- ).void
408
- end
409
- attr_writer :decline_reason
410
-
411
390
  # If the Real-Time Decision relates to a card authorization attempt, this object
412
391
  # contains your response to the authorization.
413
392
  sig do
@@ -417,9 +396,7 @@ module Increase
417
396
  approval:
418
397
  Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::OrHash,
419
398
  decline:
420
- Increase::RealTimeDecisionActionParams::CardAuthorization::Decline::OrHash,
421
- decline_reason:
422
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol
399
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Decline::OrHash
423
400
  ).returns(T.attached_class)
424
401
  end
425
402
  def self.new(
@@ -432,12 +409,7 @@ module Increase
432
409
  approval: nil,
433
410
  # If your application declines the authorization, this contains details about the
434
411
  # decline.
435
- decline: nil,
436
- # The reason the card authorization was declined. This translates to a specific
437
- # decline code that is sent to the card network. This field is deprecated, please
438
- # transition to using the `decline` object as this field will be removed in a
439
- # future release.
440
- decline_reason: nil
412
+ decline: nil
441
413
  )
442
414
  end
443
415
 
@@ -449,9 +421,7 @@ module Increase
449
421
  approval:
450
422
  Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
451
423
  decline:
452
- Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
453
- decline_reason:
454
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol
424
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
455
425
  }
456
426
  )
457
427
  end
@@ -824,75 +794,6 @@ module Increase
824
794
  end
825
795
  end
826
796
  end
827
-
828
- # The reason the card authorization was declined. This translates to a specific
829
- # decline code that is sent to the card network. This field is deprecated, please
830
- # transition to using the `decline` object as this field will be removed in a
831
- # future release.
832
- module DeclineReason
833
- extend Increase::Internal::Type::Enum
834
-
835
- TaggedSymbol =
836
- T.type_alias do
837
- T.all(
838
- Symbol,
839
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason
840
- )
841
- end
842
- OrSymbol = T.type_alias { T.any(Symbol, String) }
843
-
844
- # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
845
- INSUFFICIENT_FUNDS =
846
- T.let(
847
- :insufficient_funds,
848
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
849
- )
850
-
851
- # This type of transaction is not allowed for this card. This transaction should not be retried.
852
- TRANSACTION_NEVER_ALLOWED =
853
- T.let(
854
- :transaction_never_allowed,
855
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
856
- )
857
-
858
- # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
859
- EXCEEDS_APPROVAL_LIMIT =
860
- T.let(
861
- :exceeds_approval_limit,
862
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
863
- )
864
-
865
- # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
866
- CARD_TEMPORARILY_DISABLED =
867
- T.let(
868
- :card_temporarily_disabled,
869
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
870
- )
871
-
872
- # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
873
- SUSPECTED_FRAUD =
874
- T.let(
875
- :suspected_fraud,
876
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
877
- )
878
-
879
- # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
880
- OTHER =
881
- T.let(
882
- :other,
883
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
884
- )
885
-
886
- sig do
887
- override.returns(
888
- T::Array[
889
- Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol
890
- ]
891
- )
892
- end
893
- def self.values
894
- end
895
- end
896
797
  end
897
798
 
898
799
  class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
@@ -131,8 +131,7 @@ module Increase
131
131
  {
132
132
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
133
133
  approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
134
- decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
135
- decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
134
+ decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
136
135
  }
137
136
 
138
137
  class CardAuthorization < Increase::Internal::Type::BaseModel
@@ -150,24 +149,16 @@ module Increase
150
149
  Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
151
150
  ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
152
151
 
153
- attr_reader decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason?
154
-
155
- def decline_reason=: (
156
- Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
157
- ) -> Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
158
-
159
152
  def initialize: (
160
153
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
161
154
  ?approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
162
- ?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
163
- ?decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
155
+ ?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
164
156
  ) -> void
165
157
 
166
158
  def to_hash: -> {
167
159
  decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision,
168
160
  approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval,
169
- decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline,
170
- decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason
161
+ decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline
171
162
  }
172
163
 
173
164
  type decision = :approve | :decline
@@ -303,38 +294,6 @@ module Increase
303
294
  def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason]
304
295
  end
305
296
  end
306
-
307
- type decline_reason =
308
- :insufficient_funds
309
- | :transaction_never_allowed
310
- | :exceeds_approval_limit
311
- | :card_temporarily_disabled
312
- | :suspected_fraud
313
- | :other
314
-
315
- module DeclineReason
316
- extend Increase::Internal::Type::Enum
317
-
318
- # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
319
- INSUFFICIENT_FUNDS: :insufficient_funds
320
-
321
- # This type of transaction is not allowed for this card. This transaction should not be retried.
322
- TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed
323
-
324
- # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
325
- EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit
326
-
327
- # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
328
- CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled
329
-
330
- # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
331
- SUSPECTED_FRAUD: :suspected_fraud
332
-
333
- # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
334
- OTHER: :other
335
-
336
- def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason]
337
- end
338
297
  end
339
298
 
340
299
  type digital_wallet_authentication =
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.73.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-11 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