stigg 0.1.0.pre.beta.24 → 0.1.0.pre.beta.25

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: 766be9befabaf0dd015fbc84a5445dc84fbdb35d770e2b5366303c0ed6e8c2b0
4
- data.tar.gz: f5f1132a8f58061908fc25ad9a013c3b8e2f5470650d1d784a3de1c362cb6be1
3
+ metadata.gz: 59be81056c6c5ba5461a3d0653aae8dfbedfefa87ec83b5528bf1d2c46b4c0f7
4
+ data.tar.gz: 411fc0c2e2568f89a9afae82aa72a82d06f86e49a0c0af7af880da6484d14420
5
5
  SHA512:
6
- metadata.gz: be9e4942faad0c1f23273a5568003e397bb0f0761850286ce65753ab125317c46e42d0d7ffee8f6cb033bec9f4e7e56b52fabff8340b4f639acbb3bba85fe96e
7
- data.tar.gz: b12b78dd1ff7730be7ce7ec777509055d151ca884a0e5820c55e00bb1ef4c90e9253a05572879ad7c08e576240061a758ae80b3ddd270fb213625bb4dc726169
6
+ metadata.gz: 07540e672c3fee67499559bd20f1e8a7425d97d2aa644bdf4c83ba0f393e2827f5af4022e36ec043e7498b3a7b282a7fabeab22015f28f3ca04a4aec52c0e630
7
+ data.tar.gz: 782209f127b48a055883b099ca1a1ca792f1b2bb352761cf06581abc843800b791e3dcd5fa57f0297df9fb3ff4272afb4f8fd3ea2295afe0629e5ed5d954a6f9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.25 (2026-06-18)
4
+
5
+ Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.24...v0.1.0-beta.25)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **types:** make usage_limit nullable in customers assignment models ([8ea2068](https://github.com/stiggio/stigg-ruby/commit/8ea2068629367c01528095352c5e6fba96fb9328))
10
+
3
11
  ## 0.1.0-beta.24 (2026-06-18)
4
12
 
5
13
  Full Changelog: [v0.1.0-beta.23...v0.1.0-beta.24](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.23...v0.1.0-beta.24)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "stigg", "~> 0.1.0.pre.beta.24"
27
+ gem "stigg", "~> 0.1.0.pre.beta.25"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -54,8 +54,8 @@ module Stigg
54
54
  # @!attribute usage_limit
55
55
  # Maximum usage allowed within one cadence window
56
56
  #
57
- # @return [Float]
58
- required :usage_limit, Float, api_name: :usageLimit
57
+ # @return [Float, nil]
58
+ required :usage_limit, Float, api_name: :usageLimit, nil?: true
59
59
 
60
60
  # @!attribute currency_id
61
61
  # Currency refId this assignment grants (present for credit capabilities).
@@ -91,7 +91,7 @@ module Stigg
91
91
  #
92
92
  # @param updated_at [Time] Timestamp of when the record was last updated
93
93
  #
94
- # @param usage_limit [Float] Maximum usage allowed within one cadence window
94
+ # @param usage_limit [Float, nil] Maximum usage allowed within one cadence window
95
95
  #
96
96
  # @param currency_id [String] Currency refId this assignment grants (present for credit capabilities).
97
97
  #
@@ -85,7 +85,7 @@ module Stigg
85
85
  # Maximum usage allowed within one cadence window (required on create)
86
86
  #
87
87
  # @return [Float, nil]
88
- optional :usage_limit, Float, api_name: :usageLimit
88
+ optional :usage_limit, Float, api_name: :usageLimit, nil?: true
89
89
 
90
90
  # @!method initialize(entity_id:, cadence: nil, currency_id: nil, feature_id: nil, parent_id: nil, scope_entity_ids: nil, usage_limit: nil)
91
91
  # Some parameter documentations has been truncated, see
@@ -110,7 +110,7 @@ module Stigg
110
110
  #
111
111
  # @param scope_entity_ids [Array<String>]
112
112
  #
113
- # @param usage_limit [Float] Maximum usage allowed within one cadence window (required on create)
113
+ # @param usage_limit [Float, nil] Maximum usage allowed within one cadence window (required on create)
114
114
 
115
115
  # Usage-reset cadence (required on create). Currently only `MONTH` is supported
116
116
  #
@@ -66,8 +66,8 @@ module Stigg
66
66
  # @!attribute usage_limit
67
67
  # Maximum usage allowed within one cadence window
68
68
  #
69
- # @return [Float]
70
- required :usage_limit, Float, api_name: :usageLimit
69
+ # @return [Float, nil]
70
+ required :usage_limit, Float, api_name: :usageLimit, nil?: true
71
71
 
72
72
  # @!attribute currency_id
73
73
  # Currency refId this assignment grants (present for credit capabilities).
@@ -104,7 +104,7 @@ module Stigg
104
104
  #
105
105
  # @param updated_at [Time] Timestamp of when the record was last updated
106
106
  #
107
- # @param usage_limit [Float] Maximum usage allowed within one cadence window
107
+ # @param usage_limit [Float, nil] Maximum usage allowed within one cadence window
108
108
  #
109
109
  # @param currency_id [String] Currency refId this assignment grants (present for credit capabilities).
110
110
  #
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "0.1.0.pre.beta.24"
4
+ VERSION = "0.1.0.pre.beta.25"
5
5
  end
@@ -49,7 +49,7 @@ module Stigg
49
49
  attr_accessor :updated_at
50
50
 
51
51
  # Maximum usage allowed within one cadence window
52
- sig { returns(Float) }
52
+ sig { returns(T.nilable(Float)) }
53
53
  attr_accessor :usage_limit
54
54
 
55
55
  # Currency refId this assignment grants (present for credit capabilities).
@@ -79,7 +79,7 @@ module Stigg
79
79
  parent_id: T.nilable(String),
80
80
  scope_entity_ids: T::Array[String],
81
81
  updated_at: Time,
82
- usage_limit: Float,
82
+ usage_limit: T.nilable(Float),
83
83
  currency_id: String,
84
84
  feature_id: String
85
85
  ).returns(T.attached_class)
@@ -122,7 +122,7 @@ module Stigg
122
122
  parent_id: T.nilable(String),
123
123
  scope_entity_ids: T::Array[String],
124
124
  updated_at: Time,
125
- usage_limit: Float,
125
+ usage_limit: T.nilable(Float),
126
126
  currency_id: String,
127
127
  feature_id: String
128
128
  }
@@ -140,10 +140,7 @@ module Stigg
140
140
 
141
141
  # Maximum usage allowed within one cadence window (required on create)
142
142
  sig { returns(T.nilable(Float)) }
143
- attr_reader :usage_limit
144
-
145
- sig { params(usage_limit: Float).void }
146
- attr_writer :usage_limit
143
+ attr_accessor :usage_limit
147
144
 
148
145
  # A single assignment to create or update. Identify the capability with exactly
149
146
  # one of `featureId` or `currencyId`. The natural key is the
@@ -159,7 +156,7 @@ module Stigg
159
156
  feature_id: String,
160
157
  parent_id: T.nilable(String),
161
158
  scope_entity_ids: T::Array[String],
162
- usage_limit: Float
159
+ usage_limit: T.nilable(Float)
163
160
  ).returns(T.attached_class)
164
161
  end
165
162
  def self.new(
@@ -192,7 +189,7 @@ module Stigg
192
189
  feature_id: String,
193
190
  parent_id: T.nilable(String),
194
191
  scope_entity_ids: T::Array[String],
195
- usage_limit: Float
192
+ usage_limit: T.nilable(Float)
196
193
  }
197
194
  )
198
195
  end
@@ -92,7 +92,7 @@ module Stigg
92
92
  attr_accessor :updated_at
93
93
 
94
94
  # Maximum usage allowed within one cadence window
95
- sig { returns(Float) }
95
+ sig { returns(T.nilable(Float)) }
96
96
  attr_accessor :usage_limit
97
97
 
98
98
  # Currency refId this assignment grants (present for credit capabilities).
@@ -122,7 +122,7 @@ module Stigg
122
122
  parent_id: T.nilable(String),
123
123
  scope_entity_ids: T::Array[String],
124
124
  updated_at: Time,
125
- usage_limit: Float,
125
+ usage_limit: T.nilable(Float),
126
126
  currency_id: String,
127
127
  feature_id: String
128
128
  ).returns(T.attached_class)
@@ -165,7 +165,7 @@ module Stigg
165
165
  parent_id: T.nilable(String),
166
166
  scope_entity_ids: T::Array[String],
167
167
  updated_at: Time,
168
- usage_limit: Float,
168
+ usage_limit: T.nilable(Float),
169
169
  currency_id: String,
170
170
  feature_id: String
171
171
  }
@@ -11,7 +11,7 @@ module Stigg
11
11
  parent_id: String?,
12
12
  scope_entity_ids: ::Array[String],
13
13
  updated_at: Time,
14
- usage_limit: Float,
14
+ usage_limit: Float?,
15
15
  currency_id: String,
16
16
  feature_id: String
17
17
  }
@@ -31,7 +31,7 @@ module Stigg
31
31
 
32
32
  attr_accessor updated_at: Time
33
33
 
34
- attr_accessor usage_limit: Float
34
+ attr_accessor usage_limit: Float?
35
35
 
36
36
  attr_reader currency_id: String?
37
37
 
@@ -49,7 +49,7 @@ module Stigg
49
49
  parent_id: String?,
50
50
  scope_entity_ids: ::Array[String],
51
51
  updated_at: Time,
52
- usage_limit: Float,
52
+ usage_limit: Float?,
53
53
  ?currency_id: String,
54
54
  ?feature_id: String
55
55
  ) -> void
@@ -62,7 +62,7 @@ module Stigg
62
62
  parent_id: String?,
63
63
  scope_entity_ids: ::Array[String],
64
64
  updated_at: Time,
65
- usage_limit: Float,
65
+ usage_limit: Float?,
66
66
  currency_id: String,
67
67
  feature_id: String
68
68
  }
@@ -51,7 +51,7 @@ module Stigg
51
51
  feature_id: String,
52
52
  parent_id: String?,
53
53
  scope_entity_ids: ::Array[String],
54
- usage_limit: Float
54
+ usage_limit: Float?
55
55
  }
56
56
 
57
57
  class Assignment < Stigg::Internal::Type::BaseModel
@@ -77,9 +77,7 @@ module Stigg
77
77
 
78
78
  def scope_entity_ids=: (::Array[String]) -> ::Array[String]
79
79
 
80
- attr_reader usage_limit: Float?
81
-
82
- def usage_limit=: (Float) -> Float
80
+ attr_accessor usage_limit: Float?
83
81
 
84
82
  def initialize: (
85
83
  entity_id: String,
@@ -88,7 +86,7 @@ module Stigg
88
86
  ?feature_id: String,
89
87
  ?parent_id: String?,
90
88
  ?scope_entity_ids: ::Array[String],
91
- ?usage_limit: Float
89
+ ?usage_limit: Float?
92
90
  ) -> void
93
91
 
94
92
  def to_hash: -> {
@@ -98,7 +96,7 @@ module Stigg
98
96
  feature_id: String,
99
97
  parent_id: String?,
100
98
  scope_entity_ids: ::Array[String],
101
- usage_limit: Float
99
+ usage_limit: Float?
102
100
  }
103
101
 
104
102
  type cadence = :MONTH
@@ -27,7 +27,7 @@ module Stigg
27
27
  parent_id: String?,
28
28
  scope_entity_ids: ::Array[String],
29
29
  updated_at: Time,
30
- usage_limit: Float,
30
+ usage_limit: Float?,
31
31
  currency_id: String,
32
32
  feature_id: String
33
33
  }
@@ -47,7 +47,7 @@ module Stigg
47
47
 
48
48
  attr_accessor updated_at: Time
49
49
 
50
- attr_accessor usage_limit: Float
50
+ attr_accessor usage_limit: Float?
51
51
 
52
52
  attr_reader currency_id: String?
53
53
 
@@ -65,7 +65,7 @@ module Stigg
65
65
  parent_id: String?,
66
66
  scope_entity_ids: ::Array[String],
67
67
  updated_at: Time,
68
- usage_limit: Float,
68
+ usage_limit: Float?,
69
69
  ?currency_id: String,
70
70
  ?feature_id: String
71
71
  ) -> void
@@ -78,7 +78,7 @@ module Stigg
78
78
  parent_id: String?,
79
79
  scope_entity_ids: ::Array[String],
80
80
  updated_at: Time,
81
- usage_limit: Float,
81
+ usage_limit: Float?,
82
82
  currency_id: String,
83
83
  feature_id: String
84
84
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.beta.24
4
+ version: 0.1.0.pre.beta.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg