increase 1.89.0 → 1.90.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: 7275a50335699dbca8dcdf0923eb6fba66c94f4d2fdc9de51b95e47eb1c7cdfa
4
- data.tar.gz: 2c63e95248ae8a51fbdb5cc28129a858bfab693e5270a1224adbc7f1382bd370
3
+ metadata.gz: 5c9d5d521a0d4062d5793115d18701d7e78a947fd7ab9d0f5be3a6c8613034c2
4
+ data.tar.gz: 0733f79a7161419a12d3569e9119629ec015b9f5e9dc995430910c719649ca42
5
5
  SHA512:
6
- metadata.gz: cd47cadc3ae99bc005107f1306016c7e2e96598b515c1f13727e54747c03017d11084f35a256c76c88dc51f4af21fa62c5b153c8451e9078ba08f73d97eea964
7
- data.tar.gz: a4f3e10c76f5ad48f5064a28eedc301a1fe656893647ad821f68862cd175fbf48d8a9cd23a1c231dab7a09178b5857c8ad5b5fb505603f6cc6e674c086fc755b
6
+ metadata.gz: a10cc1146edfd8592c9cd270f59a894fec02a02e30f48bd0d9ea9c8443074bcc9b85127b9e57e9d28b5511f8043611a7911a8c8c6f1d5bd2a8b25dc673d70ba5
7
+ data.tar.gz: acadd05a61928c78a59d71db3e59f3076b46dfddb906c92720eba847e821d676f32157d63b6156a4d84abe98bfd523b741374045f89d247589b65e70e5c6a602
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.90.0 (2025-09-24)
4
+
5
+ Full Changelog: [v1.89.0...v1.90.0](https://github.com/Increase/increase-ruby/compare/v1.89.0...v1.90.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([1d66673](https://github.com/Increase/increase-ruby/commit/1d666739b4d2b06f94ee367cb34c6254b55ab137))
10
+
3
11
  ## 1.89.0 (2025-09-24)
4
12
 
5
13
  Full Changelog: [v1.88.0...v1.89.0](https://github.com/Increase/increase-ruby/compare/v1.88.0...v1.89.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.89.0"
18
+ gem "increase", "~> 1.90.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -35,7 +35,13 @@ module Increase
35
35
  # @return [String, nil]
36
36
  optional :shared_secret, String
37
37
 
38
- # @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {})
38
+ # @!attribute status
39
+ # The status of the event subscription. Defaults to `active` if not specified.
40
+ #
41
+ # @return [Symbol, Increase::Models::EventSubscriptionCreateParams::Status, nil]
42
+ optional :status, enum: -> { Increase::EventSubscriptionCreateParams::Status }
43
+
44
+ # @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
39
45
  # Some parameter documentations has been truncated, see
40
46
  # {Increase::Models::EventSubscriptionCreateParams} for more details.
41
47
  #
@@ -47,6 +53,8 @@ module Increase
47
53
  #
48
54
  # @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
49
55
  #
56
+ # @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
57
+ #
50
58
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
51
59
 
52
60
  # If specified, this subscription will only receive webhooks for Events with the
@@ -371,6 +379,20 @@ module Increase
371
379
  # @!method self.values
372
380
  # @return [Array<Symbol>]
373
381
  end
382
+
383
+ # The status of the event subscription. Defaults to `active` if not specified.
384
+ module Status
385
+ extend Increase::Internal::Type::Enum
386
+
387
+ # The subscription is active and Events will be delivered normally.
388
+ ACTIVE = :active
389
+
390
+ # The subscription is temporarily disabled and Events will not be delivered.
391
+ DISABLED = :disabled
392
+
393
+ # @!method self.values
394
+ # @return [Array<Symbol>]
395
+ end
374
396
  end
375
397
  end
376
398
  end
@@ -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.90.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
@@ -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
@@ -6,6 +6,7 @@ module Increase
6
6
  ?oauth_connection_id: String,
7
7
  ?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
8
8
  ?shared_secret: String,
9
+ ?status: Increase::Models::EventSubscriptionCreateParams::status,
9
10
  ?request_options: Increase::request_opts
10
11
  ) -> Increase::EventSubscription
11
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.89.0
4
+ version: 1.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase