increase 1.152.0 → 1.153.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: '03381acd9acc7e285c9acca341f3feb95dc658b52dc2e529a46bb8c9a222a7ac'
4
- data.tar.gz: bfb2cbbb5e8690c5fe673d668bb0ce47afed58c5f15a36af2c4768314b96726d
3
+ metadata.gz: e5a3602d0e5cf294259d9a655d18cbf6bf89e2c2d5b0f080ce2fea752c1bf524
4
+ data.tar.gz: 420a769d245f4e89fe2348548748802e4a78028d3ea51d9b072090c0a476eefa
5
5
  SHA512:
6
- metadata.gz: aeba11bb01aa68e61dd7d9ede0d08f3d89d26a9238bcf66a6e6a916e7cc86f591434415fc0f2093d038c5953bffdd5cfab35f951a0657b6f34c341ccde87da8b
7
- data.tar.gz: f75a52c874d2dc002c73aaf006d7cc8b043a908ad55238793fd23311d4f164e2369007e764692d9ab6e173b77f7eeca6f030aaa52c9715e12456c17f52cf69a5
6
+ metadata.gz: ce461c87e336291ab15f7c383bd0e8912931cbf125e05edcd3f113325acabfe8624457156eadaeb58c08c3c67edac6f674d76c94e9ebc9e77e7aae2058bd4f2c
7
+ data.tar.gz: 8ed2f113059f05046adc7ed141cb9bbb50293cb3c7fbcd71baac3ec419039801fc98579741d88ae3e1161a07170cab319fc8735578844818cba91fd682043909
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.153.0 (2025-12-04)
4
+
5
+ Full Changelog: [v1.152.0...v1.153.0](https://github.com/Increase/increase-ruby/compare/v1.152.0...v1.153.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([91788b0](https://github.com/Increase/increase-ruby/commit/91788b00fe683e5af6cdf6856a689c4238c2620c))
10
+
3
11
  ## 1.152.0 (2025-12-01)
4
12
 
5
13
  Full Changelog: [v1.151.0...v1.152.0](https://github.com/Increase/increase-ruby/compare/v1.151.0...v1.152.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.152.0"
18
+ gem "increase", "~> 1.153.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -256,6 +256,13 @@ module Increase
256
256
  # @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts]
257
257
  required :additional_amounts, -> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts }
258
258
 
259
+ # @!attribute approval
260
+ # Present if and only if `decision` is `approve`. Contains information related to
261
+ # the approval of the authorization.
262
+ #
263
+ # @return [Increase::Models::RealTimeDecision::CardAuthorization::Approval, nil]
264
+ required :approval, -> { Increase::RealTimeDecision::CardAuthorization::Approval }, nil?: true
265
+
259
266
  # @!attribute card_id
260
267
  # The identifier of the Card that is being authorized.
261
268
  #
@@ -354,6 +361,13 @@ module Increase
354
361
  # @return [Integer, nil]
355
362
  required :network_risk_score, Integer, nil?: true
356
363
 
364
+ # @!attribute partial_approval_capability
365
+ # Whether or not the authorization supports partial approvals.
366
+ #
367
+ # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::PartialApprovalCapability]
368
+ required :partial_approval_capability,
369
+ enum: -> { Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability }
370
+
357
371
  # @!attribute physical_card_id
358
372
  # If the authorization was made in-person with a physical card, the Physical Card
359
373
  # that was used.
@@ -424,7 +438,7 @@ module Increase
424
438
  # @return [Increase::Models::RealTimeDecision::CardAuthorization::Verification]
425
439
  required :verification, -> { Increase::RealTimeDecision::CardAuthorization::Verification }
426
440
 
427
- # @!method initialize(account_id:, additional_amounts:, card_id:, decision:, decline:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, request_details:, settlement_amount:, settlement_currency:, terminal_id:, upcoming_card_payment_id:, verification:)
441
+ # @!method initialize(account_id:, additional_amounts:, approval:, card_id:, decision:, decline:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, partial_approval_capability:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, request_details:, settlement_amount:, settlement_currency:, terminal_id:, upcoming_card_payment_id:, verification:)
428
442
  # Some parameter documentations has been truncated, see
429
443
  # {Increase::Models::RealTimeDecision::CardAuthorization} for more details.
430
444
  #
@@ -434,6 +448,8 @@ module Increase
434
448
  #
435
449
  # @param additional_amounts [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts] Additional amounts associated with the card authorization, such as ATM surcharge
436
450
  #
451
+ # @param approval [Increase::Models::RealTimeDecision::CardAuthorization::Approval, nil] Present if and only if `decision` is `approve`. Contains information related to
452
+ #
437
453
  # @param card_id [String] The identifier of the Card that is being authorized.
438
454
  #
439
455
  # @param decision [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Decision, nil] Whether or not the authorization was approved.
@@ -464,6 +480,8 @@ module Increase
464
480
  #
465
481
  # @param network_risk_score [Integer, nil] The risk score generated by the card network. For Visa this is the Visa Advanced
466
482
  #
483
+ # @param partial_approval_capability [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::PartialApprovalCapability] Whether or not the authorization supports partial approvals.
484
+ #
467
485
  # @param physical_card_id [String, nil] If the authorization was made in-person with a physical card, the Physical Card
468
486
  #
469
487
  # @param presentment_amount [Integer] The amount of the attempted authorization in the currency the card user sees at
@@ -886,6 +904,26 @@ module Increase
886
904
  end
887
905
  end
888
906
 
907
+ # @see Increase::Models::RealTimeDecision::CardAuthorization#approval
908
+ class Approval < Increase::Internal::Type::BaseModel
909
+ # @!attribute partial_amount
910
+ # If the authorization was partially approved, this field contains the approved
911
+ # amount in the minor unit of the settlement currency.
912
+ #
913
+ # @return [Integer, nil]
914
+ required :partial_amount, Integer, nil?: true
915
+
916
+ # @!method initialize(partial_amount:)
917
+ # Some parameter documentations has been truncated, see
918
+ # {Increase::Models::RealTimeDecision::CardAuthorization::Approval} for more
919
+ # details.
920
+ #
921
+ # Present if and only if `decision` is `approve`. Contains information related to
922
+ # the approval of the authorization.
923
+ #
924
+ # @param partial_amount [Integer, nil] If the authorization was partially approved, this field contains the approved am
925
+ end
926
+
889
927
  # Whether or not the authorization was approved.
890
928
  #
891
929
  # @see Increase::Models::RealTimeDecision::CardAuthorization#decision
@@ -1231,6 +1269,22 @@ module Increase
1231
1269
  # @param transaction_id [String, nil] A globally unique transaction identifier provided by the card network, used acro
1232
1270
  end
1233
1271
 
1272
+ # Whether or not the authorization supports partial approvals.
1273
+ #
1274
+ # @see Increase::Models::RealTimeDecision::CardAuthorization#partial_approval_capability
1275
+ module PartialApprovalCapability
1276
+ extend Increase::Internal::Type::Enum
1277
+
1278
+ # This transaction supports partial approvals.
1279
+ SUPPORTED = :supported
1280
+
1281
+ # This transaction does not support partial approvals.
1282
+ NOT_SUPPORTED = :not_supported
1283
+
1284
+ # @!method self.values
1285
+ # @return [Array<Symbol>]
1286
+ end
1287
+
1234
1288
  # The processing category describes the intent behind the authorization, such as
1235
1289
  # whether it was used for bill payments or an automatic fuel dispenser.
1236
1290
  #
@@ -196,7 +196,16 @@ module Increase
196
196
  optional :cardholder_address_verification_result,
197
197
  -> { Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult }
198
198
 
199
- # @!method initialize(cardholder_address_verification_result: nil)
199
+ # @!attribute partial_amount
200
+ # If the transaction supports partial approvals
201
+ # (`partial_approval_capability: supported`) the `partial_amount` can be provided
202
+ # in the transaction's settlement currency to approve a lower amount than was
203
+ # requested.
204
+ #
205
+ # @return [Integer, nil]
206
+ optional :partial_amount, Integer
207
+
208
+ # @!method initialize(cardholder_address_verification_result: nil, partial_amount: nil)
200
209
  # Some parameter documentations has been truncated, see
201
210
  # {Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval}
202
211
  # for more details.
@@ -207,6 +216,8 @@ module Increase
207
216
  # but indicate the address does not match.
208
217
  #
209
218
  # @param cardholder_address_verification_result [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult] Your decisions on whether or not each provided address component is a match. You
219
+ #
220
+ # @param partial_amount [Integer] If the transaction supports partial approvals (`partial_approval_capability: sup
210
221
 
211
222
  # @see Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval#cardholder_address_verification_result
212
223
  class CardholderAddressVerificationResult < Increase::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.152.0"
4
+ VERSION = "1.153.0"
5
5
  end
@@ -463,6 +463,25 @@ module Increase
463
463
  end
464
464
  attr_writer :additional_amounts
465
465
 
466
+ # Present if and only if `decision` is `approve`. Contains information related to
467
+ # the approval of the authorization.
468
+ sig do
469
+ returns(
470
+ T.nilable(Increase::RealTimeDecision::CardAuthorization::Approval)
471
+ )
472
+ end
473
+ attr_reader :approval
474
+
475
+ sig do
476
+ params(
477
+ approval:
478
+ T.nilable(
479
+ Increase::RealTimeDecision::CardAuthorization::Approval::OrHash
480
+ )
481
+ ).void
482
+ end
483
+ attr_writer :approval
484
+
466
485
  # The identifier of the Card that is being authorized.
467
486
  sig { returns(String) }
468
487
  attr_accessor :card_id
@@ -577,6 +596,14 @@ module Increase
577
596
  sig { returns(T.nilable(Integer)) }
578
597
  attr_accessor :network_risk_score
579
598
 
599
+ # Whether or not the authorization supports partial approvals.
600
+ sig do
601
+ returns(
602
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol
603
+ )
604
+ end
605
+ attr_accessor :partial_approval_capability
606
+
580
607
  # If the authorization was made in-person with a physical card, the Physical Card
581
608
  # that was used.
582
609
  sig { returns(T.nilable(String)) }
@@ -656,6 +683,10 @@ module Increase
656
683
  account_id: String,
657
684
  additional_amounts:
658
685
  Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::OrHash,
686
+ approval:
687
+ T.nilable(
688
+ Increase::RealTimeDecision::CardAuthorization::Approval::OrHash
689
+ ),
659
690
  card_id: String,
660
691
  decision:
661
692
  T.nilable(
@@ -680,6 +711,8 @@ module Increase
680
711
  network_identifiers:
681
712
  Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers::OrHash,
682
713
  network_risk_score: T.nilable(Integer),
714
+ partial_approval_capability:
715
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::OrSymbol,
683
716
  physical_card_id: T.nilable(String),
684
717
  presentment_amount: Integer,
685
718
  presentment_currency: String,
@@ -702,6 +735,9 @@ module Increase
702
735
  # surcharges fees. These are usually a subset of the `amount` field and are used
703
736
  # to provide more detailed information about the transaction.
704
737
  additional_amounts:,
738
+ # Present if and only if `decision` is `approve`. Contains information related to
739
+ # the approval of the authorization.
740
+ approval:,
705
741
  # The identifier of the Card that is being authorized.
706
742
  card_id:,
707
743
  # Whether or not the authorization was approved.
@@ -740,6 +776,8 @@ module Increase
740
776
  # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
741
777
  # score is from 0 to 999, where 999 is the riskiest.
742
778
  network_risk_score:,
779
+ # Whether or not the authorization supports partial approvals.
780
+ partial_approval_capability:,
743
781
  # If the authorization was made in-person with a physical card, the Physical Card
744
782
  # that was used.
745
783
  physical_card_id:,
@@ -778,6 +816,10 @@ module Increase
778
816
  account_id: String,
779
817
  additional_amounts:
780
818
  Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
819
+ approval:
820
+ T.nilable(
821
+ Increase::RealTimeDecision::CardAuthorization::Approval
822
+ ),
781
823
  card_id: String,
782
824
  decision:
783
825
  T.nilable(
@@ -802,6 +844,8 @@ module Increase
802
844
  network_identifiers:
803
845
  Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers,
804
846
  network_risk_score: T.nilable(Integer),
847
+ partial_approval_capability:
848
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol,
805
849
  physical_card_id: T.nilable(String),
806
850
  presentment_amount: Integer,
807
851
  presentment_currency: String,
@@ -1571,6 +1615,37 @@ module Increase
1571
1615
  end
1572
1616
  end
1573
1617
 
1618
+ class Approval < Increase::Internal::Type::BaseModel
1619
+ OrHash =
1620
+ T.type_alias do
1621
+ T.any(
1622
+ Increase::RealTimeDecision::CardAuthorization::Approval,
1623
+ Increase::Internal::AnyHash
1624
+ )
1625
+ end
1626
+
1627
+ # If the authorization was partially approved, this field contains the approved
1628
+ # amount in the minor unit of the settlement currency.
1629
+ sig { returns(T.nilable(Integer)) }
1630
+ attr_accessor :partial_amount
1631
+
1632
+ # Present if and only if `decision` is `approve`. Contains information related to
1633
+ # the approval of the authorization.
1634
+ sig do
1635
+ params(partial_amount: T.nilable(Integer)).returns(T.attached_class)
1636
+ end
1637
+ def self.new(
1638
+ # If the authorization was partially approved, this field contains the approved
1639
+ # amount in the minor unit of the settlement currency.
1640
+ partial_amount:
1641
+ )
1642
+ end
1643
+
1644
+ sig { override.returns({ partial_amount: T.nilable(Integer) }) }
1645
+ def to_hash
1646
+ end
1647
+ end
1648
+
1574
1649
  # Whether or not the authorization was approved.
1575
1650
  module Decision
1576
1651
  extend Increase::Internal::Type::Enum
@@ -2333,6 +2408,44 @@ module Increase
2333
2408
  end
2334
2409
  end
2335
2410
 
2411
+ # Whether or not the authorization supports partial approvals.
2412
+ module PartialApprovalCapability
2413
+ extend Increase::Internal::Type::Enum
2414
+
2415
+ TaggedSymbol =
2416
+ T.type_alias do
2417
+ T.all(
2418
+ Symbol,
2419
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability
2420
+ )
2421
+ end
2422
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2423
+
2424
+ # This transaction supports partial approvals.
2425
+ SUPPORTED =
2426
+ T.let(
2427
+ :supported,
2428
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol
2429
+ )
2430
+
2431
+ # This transaction does not support partial approvals.
2432
+ NOT_SUPPORTED =
2433
+ T.let(
2434
+ :not_supported,
2435
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol
2436
+ )
2437
+
2438
+ sig do
2439
+ override.returns(
2440
+ T::Array[
2441
+ Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol
2442
+ ]
2443
+ )
2444
+ end
2445
+ def self.values
2446
+ end
2447
+ end
2448
+
2336
2449
  # The processing category describes the intent behind the authorization, such as
2337
2450
  # whether it was used for bill payments or an automatic fuel dispenser.
2338
2451
  module ProcessingCategory
@@ -498,6 +498,16 @@ module Increase
498
498
  end
499
499
  attr_writer :cardholder_address_verification_result
500
500
 
501
+ # If the transaction supports partial approvals
502
+ # (`partial_approval_capability: supported`) the `partial_amount` can be provided
503
+ # in the transaction's settlement currency to approve a lower amount than was
504
+ # requested.
505
+ sig { returns(T.nilable(Integer)) }
506
+ attr_reader :partial_amount
507
+
508
+ sig { params(partial_amount: Integer).void }
509
+ attr_writer :partial_amount
510
+
501
511
  # If your application approves the authorization, this contains metadata about
502
512
  # your decision to approve. Your response here is advisory to the acquiring bank.
503
513
  # The bank may choose to reverse the authorization if you approve the transaction
@@ -505,7 +515,8 @@ module Increase
505
515
  sig do
506
516
  params(
507
517
  cardholder_address_verification_result:
508
- Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::OrHash
518
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult::OrHash,
519
+ partial_amount: Integer
509
520
  ).returns(T.attached_class)
510
521
  end
511
522
  def self.new(
@@ -515,7 +526,12 @@ module Increase
515
526
  # information, see our
516
527
  # [Address Verification System Codes and Overrides](https://increase.com/documentation/address-verification-system-codes-and-overrides)
517
528
  # guide.
518
- cardholder_address_verification_result: nil
529
+ cardholder_address_verification_result: nil,
530
+ # If the transaction supports partial approvals
531
+ # (`partial_approval_capability: supported`) the `partial_amount` can be provided
532
+ # in the transaction's settlement currency to approve a lower amount than was
533
+ # requested.
534
+ partial_amount: nil
519
535
  )
520
536
  end
521
537
 
@@ -523,7 +539,8 @@ module Increase
523
539
  override.returns(
524
540
  {
525
541
  cardholder_address_verification_result:
526
- Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
542
+ Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult,
543
+ partial_amount: Integer
527
544
  }
528
545
  )
529
546
  end
@@ -170,6 +170,7 @@ module Increase
170
170
  {
171
171
  account_id: String,
172
172
  additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
173
+ approval: Increase::RealTimeDecision::CardAuthorization::Approval?,
173
174
  card_id: String,
174
175
  decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
175
176
  decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
@@ -185,6 +186,7 @@ module Increase
185
186
  network_details: Increase::RealTimeDecision::CardAuthorization::NetworkDetails,
186
187
  network_identifiers: Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers,
187
188
  network_risk_score: Integer?,
189
+ partial_approval_capability: Increase::Models::RealTimeDecision::CardAuthorization::partial_approval_capability,
188
190
  physical_card_id: String?,
189
191
  presentment_amount: Integer,
190
192
  presentment_currency: String,
@@ -202,6 +204,8 @@ module Increase
202
204
 
203
205
  attr_accessor additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts
204
206
 
207
+ attr_accessor approval: Increase::RealTimeDecision::CardAuthorization::Approval?
208
+
205
209
  attr_accessor card_id: String
206
210
 
207
211
  attr_accessor decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?
@@ -232,6 +236,8 @@ module Increase
232
236
 
233
237
  attr_accessor network_risk_score: Integer?
234
238
 
239
+ attr_accessor partial_approval_capability: Increase::Models::RealTimeDecision::CardAuthorization::partial_approval_capability
240
+
235
241
  attr_accessor physical_card_id: String?
236
242
 
237
243
  attr_accessor presentment_amount: Integer
@@ -255,6 +261,7 @@ module Increase
255
261
  def initialize: (
256
262
  account_id: String,
257
263
  additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
264
+ approval: Increase::RealTimeDecision::CardAuthorization::Approval?,
258
265
  card_id: String,
259
266
  decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
260
267
  decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
@@ -270,6 +277,7 @@ module Increase
270
277
  network_details: Increase::RealTimeDecision::CardAuthorization::NetworkDetails,
271
278
  network_identifiers: Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers,
272
279
  network_risk_score: Integer?,
280
+ partial_approval_capability: Increase::Models::RealTimeDecision::CardAuthorization::partial_approval_capability,
273
281
  physical_card_id: String?,
274
282
  presentment_amount: Integer,
275
283
  presentment_currency: String,
@@ -285,6 +293,7 @@ module Increase
285
293
  def to_hash: -> {
286
294
  account_id: String,
287
295
  additional_amounts: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts,
296
+ approval: Increase::RealTimeDecision::CardAuthorization::Approval?,
288
297
  card_id: String,
289
298
  decision: Increase::Models::RealTimeDecision::CardAuthorization::decision?,
290
299
  decline: Increase::RealTimeDecision::CardAuthorization::Decline?,
@@ -300,6 +309,7 @@ module Increase
300
309
  network_details: Increase::RealTimeDecision::CardAuthorization::NetworkDetails,
301
310
  network_identifiers: Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers,
302
311
  network_risk_score: Integer?,
312
+ partial_approval_capability: Increase::Models::RealTimeDecision::CardAuthorization::partial_approval_capability,
303
313
  physical_card_id: String?,
304
314
  presentment_amount: Integer,
305
315
  presentment_currency: String,
@@ -494,6 +504,16 @@ module Increase
494
504
  end
495
505
  end
496
506
 
507
+ type approval = { partial_amount: Integer? }
508
+
509
+ class Approval < Increase::Internal::Type::BaseModel
510
+ attr_accessor partial_amount: Integer?
511
+
512
+ def initialize: (partial_amount: Integer?) -> void
513
+
514
+ def to_hash: -> { partial_amount: Integer? }
515
+ end
516
+
497
517
  type decision = :approve | :decline
498
518
 
499
519
  module Decision
@@ -803,6 +823,20 @@ module Increase
803
823
  }
804
824
  end
805
825
 
826
+ type partial_approval_capability = :supported | :not_supported
827
+
828
+ module PartialApprovalCapability
829
+ extend Increase::Internal::Type::Enum
830
+
831
+ # This transaction supports partial approvals.
832
+ SUPPORTED: :supported
833
+
834
+ # This transaction does not support partial approvals.
835
+ NOT_SUPPORTED: :not_supported
836
+
837
+ def self?.values: -> ::Array[Increase::Models::RealTimeDecision::CardAuthorization::partial_approval_capability]
838
+ end
839
+
806
840
  type processing_category =
807
841
  :account_funding
808
842
  | :automatic_fuel_dispenser
@@ -177,7 +177,8 @@ module Increase
177
177
 
178
178
  type approval =
179
179
  {
180
- cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
180
+ cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult,
181
+ partial_amount: Integer
181
182
  }
182
183
 
183
184
  class Approval < Increase::Internal::Type::BaseModel
@@ -187,12 +188,18 @@ module Increase
187
188
  Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
188
189
  ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
189
190
 
191
+ attr_reader partial_amount: Integer?
192
+
193
+ def partial_amount=: (Integer) -> Integer
194
+
190
195
  def initialize: (
191
- ?cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
196
+ ?cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult,
197
+ ?partial_amount: Integer
192
198
  ) -> void
193
199
 
194
200
  def to_hash: -> {
195
- cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult
201
+ cardholder_address_verification_result: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::CardholderAddressVerificationResult,
202
+ partial_amount: Integer
196
203
  }
197
204
 
198
205
  type cardholder_address_verification_result =
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.152.0
4
+ version: 1.153.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-12-01 00:00:00.000000000 Z
11
+ date: 2025-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool