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.
@@ -236,6 +236,13 @@ module Increase
236
236
  Increase::TransactionListParams::Category::In::TaggedSymbol
237
237
  )
238
238
 
239
+ # Card Financial: details will be under the `card_financial` object.
240
+ CARD_FINANCIAL =
241
+ T.let(
242
+ :card_financial,
243
+ Increase::TransactionListParams::Category::In::TaggedSymbol
244
+ )
245
+
239
246
  # Card Revenue Payment: details will be under the `card_revenue_payment` object.
240
247
  CARD_REVENUE_PAYMENT =
241
248
  T.let(
@@ -11,6 +11,7 @@ module Increase
11
11
  selected_event_category:
12
12
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
13
13
  shared_secret: String,
14
+ status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
14
15
  request_options: Increase::RequestOptions::OrHash
15
16
  ).returns(Increase::EventSubscription)
16
17
  end
@@ -26,6 +27,8 @@ module Increase
26
27
  # The key that will be used to sign webhooks. If no value is passed, a random
27
28
  # string will be used as default.
28
29
  shared_secret: nil,
30
+ # The status of the event subscription. Defaults to `active` if not specified.
31
+ status: nil,
29
32
  request_options: {}
30
33
  )
31
34
  end
@@ -5,7 +5,8 @@ module Increase
5
5
  url: String,
6
6
  oauth_connection_id: String,
7
7
  selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
8
- shared_secret: String
8
+ shared_secret: String,
9
+ status: Increase::Models::EventSubscriptionCreateParams::status
9
10
  }
10
11
  & Increase::Internal::Type::request_parameters
11
12
 
@@ -29,11 +30,18 @@ module Increase
29
30
 
30
31
  def shared_secret=: (String) -> String
31
32
 
33
+ attr_reader status: Increase::Models::EventSubscriptionCreateParams::status?
34
+
35
+ def status=: (
36
+ Increase::Models::EventSubscriptionCreateParams::status
37
+ ) -> Increase::Models::EventSubscriptionCreateParams::status
38
+
32
39
  def initialize: (
33
40
  url: String,
34
41
  ?oauth_connection_id: String,
35
42
  ?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
36
43
  ?shared_secret: String,
44
+ ?status: Increase::Models::EventSubscriptionCreateParams::status,
37
45
  ?request_options: Increase::request_opts
38
46
  ) -> void
39
47
 
@@ -42,6 +50,7 @@ module Increase
42
50
  oauth_connection_id: String,
43
51
  selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
44
52
  shared_secret: String,
53
+ status: Increase::Models::EventSubscriptionCreateParams::status,
45
54
  request_options: Increase::RequestOptions
46
55
  }
47
56
 
@@ -468,6 +477,20 @@ module Increase
468
477
 
469
478
  def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::selected_event_category]
470
479
  end
480
+
481
+ type status = :active | :disabled
482
+
483
+ module Status
484
+ extend Increase::Internal::Type::Enum
485
+
486
+ # The subscription is active and Events will be delivered normally.
487
+ ACTIVE: :active
488
+
489
+ # The subscription is temporarily disabled and Events will not be delivered.
490
+ DISABLED: :disabled
491
+
492
+ def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::status]
493
+ end
471
494
  end
472
495
  end
473
496
  end