increase 1.156.0 → 1.157.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.
@@ -29,6 +29,13 @@ module Increase
29
29
  # @return [Increase::Models::RealTimeDecisionActionParams::CardAuthorization, nil]
30
30
  optional :card_authorization, -> { Increase::RealTimeDecisionActionParams::CardAuthorization }
31
31
 
32
+ # @!attribute card_balance_inquiry
33
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
34
+ # contains your response to the inquiry.
35
+ #
36
+ # @return [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry, nil]
37
+ optional :card_balance_inquiry, -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry }
38
+
32
39
  # @!attribute digital_wallet_authentication
33
40
  # If the Real-Time Decision relates to a digital wallet authentication attempt,
34
41
  # this object contains your response to the authentication.
@@ -44,7 +51,7 @@ module Increase
44
51
  # @return [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, nil]
45
52
  optional :digital_wallet_token, -> { Increase::RealTimeDecisionActionParams::DigitalWalletToken }
46
53
 
47
- # @!method initialize(card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
54
+ # @!method initialize(card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, card_balance_inquiry: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
48
55
  # Some parameter documentations has been truncated, see
49
56
  # {Increase::Models::RealTimeDecisionActionParams} for more details.
50
57
  #
@@ -54,6 +61,8 @@ module Increase
54
61
  #
55
62
  # @param card_authorization [Increase::Models::RealTimeDecisionActionParams::CardAuthorization] If the Real-Time Decision relates to a card authorization attempt, this object c
56
63
  #
64
+ # @param card_balance_inquiry [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry] If the Real-Time Decision relates to a card balance inquiry attempt, this object
65
+ #
57
66
  # @param digital_wallet_authentication [Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication] If the Real-Time Decision relates to a digital wallet authentication attempt, th
58
67
  #
59
68
  # @param digital_wallet_token [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken] If the Real-Time Decision relates to a digital wallet token provisioning attempt
@@ -331,6 +340,64 @@ module Increase
331
340
  end
332
341
  end
333
342
 
343
+ class CardBalanceInquiry < Increase::Internal::Type::BaseModel
344
+ # @!attribute decision
345
+ # Whether the card balance inquiry should be approved or declined.
346
+ #
347
+ # @return [Symbol, Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Decision]
348
+ required :decision, enum: -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision }
349
+
350
+ # @!attribute approval
351
+ # If your application approves the balance inquiry, this contains metadata about
352
+ # your decision to approve.
353
+ #
354
+ # @return [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Approval, nil]
355
+ optional :approval, -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval }
356
+
357
+ # @!method initialize(decision:, approval: nil)
358
+ # Some parameter documentations has been truncated, see
359
+ # {Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry} for more
360
+ # details.
361
+ #
362
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
363
+ # contains your response to the inquiry.
364
+ #
365
+ # @param decision [Symbol, Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Decision] Whether the card balance inquiry should be approved or declined.
366
+ #
367
+ # @param approval [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Approval] If your application approves the balance inquiry, this contains metadata about y
368
+
369
+ # Whether the card balance inquiry should be approved or declined.
370
+ #
371
+ # @see Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry#decision
372
+ module Decision
373
+ extend Increase::Internal::Type::Enum
374
+
375
+ # Approve the authorization.
376
+ APPROVE = :approve
377
+
378
+ # Decline the authorization.
379
+ DECLINE = :decline
380
+
381
+ # @!method self.values
382
+ # @return [Array<Symbol>]
383
+ end
384
+
385
+ # @see Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry#approval
386
+ class Approval < Increase::Internal::Type::BaseModel
387
+ # @!attribute balance
388
+ # The balance on the card in the settlement currency of the transaction.
389
+ #
390
+ # @return [Integer]
391
+ required :balance, Integer
392
+
393
+ # @!method initialize(balance:)
394
+ # If your application approves the balance inquiry, this contains metadata about
395
+ # your decision to approve.
396
+ #
397
+ # @param balance [Integer] The balance on the card in the settlement currency of the transaction.
398
+ end
399
+ end
400
+
334
401
  class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
335
402
  # @!attribute result
336
403
  # Whether your application was able to deliver the one-time passcode.
@@ -28,7 +28,7 @@ module Increase
28
28
  #
29
29
  # Action a Real-Time Decision
30
30
  #
31
- # @overload action(real_time_decision_id, card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
31
+ # @overload action(real_time_decision_id, card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, card_balance_inquiry: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
32
32
  #
33
33
  # @param real_time_decision_id [String] The identifier of the Real-Time Decision.
34
34
  #
@@ -38,6 +38,8 @@ module Increase
38
38
  #
39
39
  # @param card_authorization [Increase::Models::RealTimeDecisionActionParams::CardAuthorization] If the Real-Time Decision relates to a card authorization attempt, this object c
40
40
  #
41
+ # @param card_balance_inquiry [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry] If the Real-Time Decision relates to a card balance inquiry attempt, this object
42
+ #
41
43
  # @param digital_wallet_authentication [Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication] If the Real-Time Decision relates to a digital wallet authentication attempt, th
42
44
  #
43
45
  # @param digital_wallet_token [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken] If the Real-Time Decision relates to a digital wallet token provisioning attempt
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.156.0"
4
+ VERSION = "1.157.0"
5
5
  end
@@ -634,6 +634,13 @@ module Increase
634
634
  Increase::Event::Category::TaggedSymbol
635
635
  )
636
636
 
637
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
638
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
639
+ T.let(
640
+ :"real_time_decision.card_balance_inquiry_requested",
641
+ Increase::Event::Category::TaggedSymbol
642
+ )
643
+
637
644
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
638
645
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
639
646
  T.let(
@@ -739,6 +739,13 @@ module Increase
739
739
  Increase::EventListParams::Category::In::TaggedSymbol
740
740
  )
741
741
 
742
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
743
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
744
+ T.let(
745
+ :"real_time_decision.card_balance_inquiry_requested",
746
+ Increase::EventListParams::Category::In::TaggedSymbol
747
+ )
748
+
742
749
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
743
750
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
744
751
  T.let(
@@ -723,6 +723,13 @@ module Increase
723
723
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
724
724
  )
725
725
 
726
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
727
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
728
+ T.let(
729
+ :"real_time_decision.card_balance_inquiry_requested",
730
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
731
+ )
732
+
726
733
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
727
734
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
728
735
  T.let(
@@ -722,6 +722,13 @@ module Increase
722
722
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
723
723
  )
724
724
 
725
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
726
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
727
+ T.let(
728
+ :"real_time_decision.card_balance_inquiry_requested",
729
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
730
+ )
731
+
725
732
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
726
733
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
727
734
  T.let(