increase 1.89.0 → 1.91.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.
@@ -112,6 +112,9 @@ module Increase
112
112
  # Card Settlement: details will be under the `card_settlement` object.
113
113
  CARD_SETTLEMENT = :card_settlement
114
114
 
115
+ # Card Financial: details will be under the `card_financial` object.
116
+ CARD_FINANCIAL = :card_financial
117
+
115
118
  # Card Revenue Payment: details will be under the `card_revenue_payment` object.
116
119
  CARD_REVENUE_PAYMENT = :card_revenue_payment
117
120
 
@@ -8,7 +8,7 @@ module Increase
8
8
  #
9
9
  # Create an Event Subscription
10
10
  #
11
- # @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {})
11
+ # @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
12
12
  #
13
13
  # @param url [String] The URL you'd like us to send webhooks to.
14
14
  #
@@ -18,6 +18,8 @@ module Increase
18
18
  #
19
19
  # @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
20
20
  #
21
+ # @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
22
+ #
21
23
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
22
24
  #
23
25
  # @return [Increase::Models::EventSubscription]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.89.0"
4
+ VERSION = "1.91.0"
5
5
  end
@@ -53,6 +53,21 @@ module Increase
53
53
  sig { params(shared_secret: String).void }
54
54
  attr_writer :shared_secret
55
55
 
56
+ # The status of the event subscription. Defaults to `active` if not specified.
57
+ sig do
58
+ returns(
59
+ T.nilable(Increase::EventSubscriptionCreateParams::Status::OrSymbol)
60
+ )
61
+ end
62
+ attr_reader :status
63
+
64
+ sig do
65
+ params(
66
+ status: Increase::EventSubscriptionCreateParams::Status::OrSymbol
67
+ ).void
68
+ end
69
+ attr_writer :status
70
+
56
71
  sig do
57
72
  params(
58
73
  url: String,
@@ -60,6 +75,7 @@ module Increase
60
75
  selected_event_category:
61
76
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
62
77
  shared_secret: String,
78
+ status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
63
79
  request_options: Increase::RequestOptions::OrHash
64
80
  ).returns(T.attached_class)
65
81
  end
@@ -75,6 +91,8 @@ module Increase
75
91
  # The key that will be used to sign webhooks. If no value is passed, a random
76
92
  # string will be used as default.
77
93
  shared_secret: nil,
94
+ # The status of the event subscription. Defaults to `active` if not specified.
95
+ status: nil,
78
96
  request_options: {}
79
97
  )
80
98
  end
@@ -87,6 +105,7 @@ module Increase
87
105
  selected_event_category:
88
106
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
89
107
  shared_secret: String,
108
+ status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
90
109
  request_options: Increase::RequestOptions
91
110
  }
92
111
  )
@@ -846,6 +865,41 @@ module Increase
846
865
  def self.values
847
866
  end
848
867
  end
868
+
869
+ # The status of the event subscription. Defaults to `active` if not specified.
870
+ module Status
871
+ extend Increase::Internal::Type::Enum
872
+
873
+ TaggedSymbol =
874
+ T.type_alias do
875
+ T.all(Symbol, Increase::EventSubscriptionCreateParams::Status)
876
+ end
877
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
878
+
879
+ # The subscription is active and Events will be delivered normally.
880
+ ACTIVE =
881
+ T.let(
882
+ :active,
883
+ Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
884
+ )
885
+
886
+ # The subscription is temporarily disabled and Events will not be delivered.
887
+ DISABLED =
888
+ T.let(
889
+ :disabled,
890
+ Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
891
+ )
892
+
893
+ sig do
894
+ override.returns(
895
+ T::Array[
896
+ Increase::EventSubscriptionCreateParams::Status::TaggedSymbol
897
+ ]
898
+ )
899
+ end
900
+ def self.values
901
+ end
902
+ end
849
903
  end
850
904
  end
851
905
  end