stigg 0.1.0.pre.beta.63 → 0.1.0.pre.beta.64

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: 6c114a3a61416839ea99a2c4c5f98fa95969c19f1c5e622a393ac2e1bba8f3a4
4
- data.tar.gz: 54492f3692b1f942b0a98ad32f74c341975da228177ca6d89758ff4df243a432
3
+ metadata.gz: 04abb3b478aabd84f2fd0c05b1e5548ec8fdf5a5c73d480feb51f11105f7a42e
4
+ data.tar.gz: e93362c05e846ebb5dbdb604450e64d6317ea38a4ca383131104c0532de2b3e6
5
5
  SHA512:
6
- metadata.gz: 40bb0400981005162f616816e6d5d8ae1827343de4fc2023a8b26301c4b2114d91bf18da1e5f2ec7b837b5b34f8d02183c10bbbee78deda837575df8acb470d2
7
- data.tar.gz: 66072f1f337fbf2b6d72dfc1b9c238560b107675750600f62d01cd2bd69703ab2dd8d467cf5654ef52e123c9b07d79e827c5a00b00ef5e4a6cbebd81b24a4d65
6
+ metadata.gz: 670e4eef9fe446138f433a7e931031bd2c0ef1479584e3c04ed1f3312b87a08acdbacaf1f08fe5cfc16049276f90caf53f2e4bc6e19237aa20f6cf885a67e0ad
7
+ data.tar.gz: 4858e41752560cd519fef01be6d3a796967e27fab14a4048a141ecac319e36343d2c4834e550787724c92126ce46673f97a3db96f972a86320f806e7c958dd3b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.0-beta.64](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.63...v0.1.0-beta.64) (2026-11-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * sync OpenAPI spec from stigg-api ([6076c9c](https://github.com/stiggio/stigg-ruby/commit/6076c9cc4f3f3e971d560fab4c3079e6902bae34))
9
+
10
+
11
+ ### Chores
12
+
13
+ * normalize version.rb to gem prerelease format for stlc codegen ([fc4f5c2](https://github.com/stiggio/stigg-ruby/commit/fc4f5c2a145bc1b4a1359a8c1bb8f23c8eb1271f))
14
+
3
15
  ## [0.1.0-beta.63](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.62...v0.1.0-beta.63) (2026-10-30)
4
16
 
5
17
 
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.62"
27
+ gem "stigg", "~> 0.1.0.pre.beta.63"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -32,6 +32,12 @@ module Stigg
32
32
  # @return [String, nil]
33
33
  optional :currency_id, String
34
34
 
35
+ # @!attribute end_date
36
+ # Filter to events with a timestamp on or before this date, inclusive (ISO 8601)
37
+ #
38
+ # @return [Time, nil]
39
+ optional :end_date, Time
40
+
35
41
  # @!attribute event_type
36
42
  # Filter by event type(s), comma-separated
37
43
  #
@@ -56,6 +62,12 @@ module Stigg
56
62
  # @return [String, nil]
57
63
  optional :resource_id, String
58
64
 
65
+ # @!attribute start_date
66
+ # Filter to events with a timestamp on or after this date, inclusive (ISO 8601)
67
+ #
68
+ # @return [Time, nil]
69
+ optional :start_date, Time
70
+
59
71
  # @!attribute x_account_id
60
72
  #
61
73
  # @return [String, nil]
@@ -66,7 +78,7 @@ module Stigg
66
78
  # @return [String, nil]
67
79
  optional :x_environment_id, String
68
80
 
69
- # @!method initialize(customer_id:, after: nil, before: nil, currency_id: nil, event_type: nil, limit: nil, reservation_id: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
81
+ # @!method initialize(customer_id:, after: nil, before: nil, currency_id: nil, end_date: nil, event_type: nil, limit: nil, reservation_id: nil, resource_id: nil, start_date: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
70
82
  # @param customer_id [String] Filter by customer ID (required)
71
83
  #
72
84
  # @param after [String] Return items that come after this cursor
@@ -75,6 +87,8 @@ module Stigg
75
87
  #
76
88
  # @param currency_id [String] Filter by currency ID
77
89
  #
90
+ # @param end_date [Time] Filter to events with a timestamp on or before this date, inclusive (ISO 8601)
91
+ #
78
92
  # @param event_type [String] Filter by event type(s), comma-separated
79
93
  #
80
94
  # @param limit [Integer] Maximum number of items to return
@@ -83,6 +97,8 @@ module Stigg
83
97
  #
84
98
  # @param resource_id [String] Filter by resource ID
85
99
  #
100
+ # @param start_date [Time] Filter to events with a timestamp on or after this date, inclusive (ISO 8601)
101
+ #
86
102
  # @param x_account_id [String]
87
103
  #
88
104
  # @param x_environment_id [String]
@@ -135,7 +135,7 @@ module Stigg
135
135
  #
136
136
  # Retrieves a paginated list of credit ledger events for a customer.
137
137
  #
138
- # @overload list_ledger(customer_id:, after: nil, before: nil, currency_id: nil, event_type: nil, limit: nil, reservation_id: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
138
+ # @overload list_ledger(customer_id:, after: nil, before: nil, currency_id: nil, end_date: nil, event_type: nil, limit: nil, reservation_id: nil, resource_id: nil, start_date: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
139
139
  #
140
140
  # @param customer_id [String] Query param: Filter by customer ID (required)
141
141
  #
@@ -145,6 +145,8 @@ module Stigg
145
145
  #
146
146
  # @param currency_id [String] Query param: Filter by currency ID
147
147
  #
148
+ # @param end_date [Time] Query param: Filter to events with a timestamp on or before this date, inclusive
149
+ #
148
150
  # @param event_type [String] Query param: Filter by event type(s), comma-separated
149
151
  #
150
152
  # @param limit [Integer] Query param: Maximum number of items to return
@@ -153,6 +155,8 @@ module Stigg
153
155
  #
154
156
  # @param resource_id [String] Query param: Filter by resource ID
155
157
  #
158
+ # @param start_date [Time] Query param: Filter to events with a timestamp on or after this date, inclusive
159
+ #
156
160
  # @param x_account_id [String] Header param: Account ID — optional when authenticating with a user JWT (Bearer
157
161
  #
158
162
  # @param x_environment_id [String] Header param: Environment ID — required when authenticating with a user JWT (Bea
@@ -164,7 +168,18 @@ module Stigg
164
168
  # @see Stigg::Models::V1::CreditListLedgerParams
165
169
  def list_ledger(params)
166
170
  query_params =
167
- [:customer_id, :after, :before, :currency_id, :event_type, :limit, :reservation_id, :resource_id]
171
+ [
172
+ :customer_id,
173
+ :after,
174
+ :before,
175
+ :currency_id,
176
+ :end_date,
177
+ :event_type,
178
+ :limit,
179
+ :reservation_id,
180
+ :resource_id,
181
+ :start_date
182
+ ]
168
183
  parsed, options = Stigg::V1::CreditListLedgerParams.dump_request(params)
169
184
  query = Stigg::Internal::Util.encode_query_params(parsed.slice(*query_params))
170
185
  @client.request(
@@ -173,9 +188,11 @@ module Stigg
173
188
  query: query.transform_keys(
174
189
  customer_id: "customerId",
175
190
  currency_id: "currencyId",
191
+ end_date: "endDate",
176
192
  event_type: "eventType",
177
193
  reservation_id: "reservationId",
178
- resource_id: "resourceId"
194
+ resource_id: "resourceId",
195
+ start_date: "startDate"
179
196
  ),
180
197
  headers: parsed.except(*query_params).transform_keys(
181
198
  x_account_id: "x-account-id",
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-beta.63"
4
+ VERSION = "0.1.0-beta.64"
5
5
  end
@@ -37,6 +37,13 @@ module Stigg
37
37
  sig { params(currency_id: String).void }
38
38
  attr_writer :currency_id
39
39
 
40
+ # Filter to events with a timestamp on or before this date, inclusive (ISO 8601)
41
+ sig { returns(T.nilable(Time)) }
42
+ attr_reader :end_date
43
+
44
+ sig { params(end_date: Time).void }
45
+ attr_writer :end_date
46
+
40
47
  # Filter by event type(s), comma-separated
41
48
  sig { returns(T.nilable(String)) }
42
49
  attr_reader :event_type
@@ -65,6 +72,13 @@ module Stigg
65
72
  sig { params(resource_id: String).void }
66
73
  attr_writer :resource_id
67
74
 
75
+ # Filter to events with a timestamp on or after this date, inclusive (ISO 8601)
76
+ sig { returns(T.nilable(Time)) }
77
+ attr_reader :start_date
78
+
79
+ sig { params(start_date: Time).void }
80
+ attr_writer :start_date
81
+
68
82
  sig { returns(T.nilable(String)) }
69
83
  attr_reader :x_account_id
70
84
 
@@ -83,10 +97,12 @@ module Stigg
83
97
  after: String,
84
98
  before: String,
85
99
  currency_id: String,
100
+ end_date: Time,
86
101
  event_type: String,
87
102
  limit: Integer,
88
103
  reservation_id: String,
89
104
  resource_id: String,
105
+ start_date: Time,
90
106
  x_account_id: String,
91
107
  x_environment_id: String,
92
108
  request_options: Stigg::RequestOptions::OrHash
@@ -101,6 +117,8 @@ module Stigg
101
117
  before: nil,
102
118
  # Filter by currency ID
103
119
  currency_id: nil,
120
+ # Filter to events with a timestamp on or before this date, inclusive (ISO 8601)
121
+ end_date: nil,
104
122
  # Filter by event type(s), comma-separated
105
123
  event_type: nil,
106
124
  # Maximum number of items to return
@@ -109,6 +127,8 @@ module Stigg
109
127
  reservation_id: nil,
110
128
  # Filter by resource ID
111
129
  resource_id: nil,
130
+ # Filter to events with a timestamp on or after this date, inclusive (ISO 8601)
131
+ start_date: nil,
112
132
  x_account_id: nil,
113
133
  x_environment_id: nil,
114
134
  request_options: {}
@@ -122,10 +142,12 @@ module Stigg
122
142
  after: String,
123
143
  before: String,
124
144
  currency_id: String,
145
+ end_date: Time,
125
146
  event_type: String,
126
147
  limit: Integer,
127
148
  reservation_id: String,
128
149
  resource_id: String,
150
+ start_date: Time,
129
151
  x_account_id: String,
130
152
  x_environment_id: String,
131
153
  request_options: Stigg::RequestOptions
@@ -109,10 +109,12 @@ module Stigg
109
109
  after: String,
110
110
  before: String,
111
111
  currency_id: String,
112
+ end_date: Time,
112
113
  event_type: String,
113
114
  limit: Integer,
114
115
  reservation_id: String,
115
116
  resource_id: String,
117
+ start_date: Time,
116
118
  x_account_id: String,
117
119
  x_environment_id: String,
118
120
  request_options: Stigg::RequestOptions::OrHash
@@ -131,6 +133,9 @@ module Stigg
131
133
  before: nil,
132
134
  # Query param: Filter by currency ID
133
135
  currency_id: nil,
136
+ # Query param: Filter to events with a timestamp on or before this date, inclusive
137
+ # (ISO 8601)
138
+ end_date: nil,
134
139
  # Query param: Filter by event type(s), comma-separated
135
140
  event_type: nil,
136
141
  # Query param: Maximum number of items to return
@@ -139,6 +144,9 @@ module Stigg
139
144
  reservation_id: nil,
140
145
  # Query param: Filter by resource ID
141
146
  resource_id: nil,
147
+ # Query param: Filter to events with a timestamp on or after this date, inclusive
148
+ # (ISO 8601)
149
+ start_date: nil,
142
150
  # Header param: Account ID — optional when authenticating with a user JWT (Bearer
143
151
  # token); falls back to the user's first membership. Ignored for API-key auth.
144
152
  x_account_id: nil,
@@ -7,10 +7,12 @@ module Stigg
7
7
  after: String,
8
8
  before: String,
9
9
  currency_id: String,
10
+ end_date: Time,
10
11
  event_type: String,
11
12
  limit: Integer,
12
13
  reservation_id: String,
13
14
  resource_id: String,
15
+ start_date: Time,
14
16
  x_account_id: String,
15
17
  x_environment_id: String
16
18
  }
@@ -34,6 +36,10 @@ module Stigg
34
36
 
35
37
  def currency_id=: (String) -> String
36
38
 
39
+ attr_reader end_date: Time?
40
+
41
+ def end_date=: (Time) -> Time
42
+
37
43
  attr_reader event_type: String?
38
44
 
39
45
  def event_type=: (String) -> String
@@ -50,6 +56,10 @@ module Stigg
50
56
 
51
57
  def resource_id=: (String) -> String
52
58
 
59
+ attr_reader start_date: Time?
60
+
61
+ def start_date=: (Time) -> Time
62
+
53
63
  attr_reader x_account_id: String?
54
64
 
55
65
  def x_account_id=: (String) -> String
@@ -63,10 +73,12 @@ module Stigg
63
73
  ?after: String,
64
74
  ?before: String,
65
75
  ?currency_id: String,
76
+ ?end_date: Time,
66
77
  ?event_type: String,
67
78
  ?limit: Integer,
68
79
  ?reservation_id: String,
69
80
  ?resource_id: String,
81
+ ?start_date: Time,
70
82
  ?x_account_id: String,
71
83
  ?x_environment_id: String,
72
84
  ?request_options: Stigg::request_opts
@@ -77,10 +89,12 @@ module Stigg
77
89
  after: String,
78
90
  before: String,
79
91
  currency_id: String,
92
+ end_date: Time,
80
93
  event_type: String,
81
94
  limit: Integer,
82
95
  reservation_id: String,
83
96
  resource_id: String,
97
+ start_date: Time,
84
98
  x_account_id: String,
85
99
  x_environment_id: String,
86
100
  request_options: Stigg::RequestOptions
@@ -39,10 +39,12 @@ module Stigg
39
39
  ?after: String,
40
40
  ?before: String,
41
41
  ?currency_id: String,
42
+ ?end_date: Time,
42
43
  ?event_type: String,
43
44
  ?limit: Integer,
44
45
  ?reservation_id: String,
45
46
  ?resource_id: String,
47
+ ?start_date: Time,
46
48
  ?x_account_id: String,
47
49
  ?x_environment_id: String,
48
50
  ?request_options: Stigg::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.beta.63
4
+ version: 0.1.0.pre.beta.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-30 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi