stigg 0.1.0.pre.beta.42 → 0.1.0.pre.beta.43

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: 2663ec08e29edc72d72ea83c36533df69635192cbc1b2ee51a515f1655eeff10
4
- data.tar.gz: 5878ac0a46cf891fa542ef614c4ad256738c3d79aae0cf8c4767f4d364b0e5af
3
+ metadata.gz: 5452e6a16b9feca73b69401fe1e6bc473ebf4d4ca4461636f28f726c4a7e48d8
4
+ data.tar.gz: c1f345cf590fe3f79950a4ec21cb8fe6f8fb5e3a315d769814eb1b63cf6c46a4
5
5
  SHA512:
6
- metadata.gz: b70d57ef96bb56ffc8c69ce920f4ba6b011de6226c34c434cec10da555fcbdce53bb57a7a7174a1df12770781eff43512695c8e16154728106e013d27f8e0f67
7
- data.tar.gz: 29f472a786a265a6f1c67307d58bdab85dc67d18d8b2a909ca8b12ee39c7934f9cc5732b3e97d38a7a8d1123aa267dcc934c200561a5afe27dffaf7c91ea9ec8
6
+ metadata.gz: 8ef3369d0bf33f9e861c9fd1fcabe8177231994afc3efc4e5d8914cd658406b3aed1e6ed065b50634301aa3eb317185b62707a60dcf533e8dcbe1fd686798454
7
+ data.tar.gz: fa06935b77f3dc13689d3f8cb7f2014c2b55ffdf257da8f355db85f4cdf7b405cccac543440ee5605f733fb607cbc75fddb033c00f792c10d677d2abe7db7412
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.43 (2026-07-21)
4
+
5
+ Full Changelog: [v0.1.0-beta.42...v0.1.0-beta.43](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.42...v0.1.0-beta.43)
6
+
7
+ ### Features
8
+
9
+ * **api:** add event_type parameter to credits list_ledger method ([cc72355](https://github.com/stiggio/stigg-ruby/commit/cc72355119dcb303be581d76c08ecbbabc8b3e20))
10
+
3
11
  ## 0.1.0-beta.42 (2026-07-18)
4
12
 
5
13
  Full Changelog: [v0.1.0-beta.41...v0.1.0-beta.42](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.41...v0.1.0-beta.42)
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.42"
27
+ gem "stigg", "~> 0.1.0.pre.beta.43"
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 event_type
36
+ # Filter by event type(s), comma-separated
37
+ #
38
+ # @return [String, nil]
39
+ optional :event_type, String
40
+
35
41
  # @!attribute limit
36
42
  # Maximum number of items to return
37
43
  #
@@ -54,7 +60,7 @@ module Stigg
54
60
  # @return [String, nil]
55
61
  optional :x_environment_id, String
56
62
 
57
- # @!method initialize(customer_id:, after: nil, before: nil, currency_id: nil, limit: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
63
+ # @!method initialize(customer_id:, after: nil, before: nil, currency_id: nil, event_type: nil, limit: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
58
64
  # @param customer_id [String] Filter by customer ID (required)
59
65
  #
60
66
  # @param after [String] Return items that come after this cursor
@@ -63,6 +69,8 @@ module Stigg
63
69
  #
64
70
  # @param currency_id [String] Filter by currency ID
65
71
  #
72
+ # @param event_type [String] Filter by event type(s), comma-separated
73
+ #
66
74
  # @param limit [Integer] Maximum number of items to return
67
75
  #
68
76
  # @param resource_id [String] Filter by resource ID
@@ -132,7 +132,7 @@ module Stigg
132
132
  #
133
133
  # Retrieves a paginated list of credit ledger events for a customer.
134
134
  #
135
- # @overload list_ledger(customer_id:, after: nil, before: nil, currency_id: nil, limit: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
135
+ # @overload list_ledger(customer_id:, after: nil, before: nil, currency_id: nil, event_type: nil, limit: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
136
136
  #
137
137
  # @param customer_id [String] Query param: Filter by customer ID (required)
138
138
  #
@@ -142,6 +142,8 @@ module Stigg
142
142
  #
143
143
  # @param currency_id [String] Query param: Filter by currency ID
144
144
  #
145
+ # @param event_type [String] Query param: Filter by event type(s), comma-separated
146
+ #
145
147
  # @param limit [Integer] Query param: Maximum number of items to return
146
148
  #
147
149
  # @param resource_id [String] Query param: Filter by resource ID
@@ -156,7 +158,7 @@ module Stigg
156
158
  #
157
159
  # @see Stigg::Models::V1::CreditListLedgerParams
158
160
  def list_ledger(params)
159
- query_params = [:customer_id, :after, :before, :currency_id, :limit, :resource_id]
161
+ query_params = [:customer_id, :after, :before, :currency_id, :event_type, :limit, :resource_id]
160
162
  parsed, options = Stigg::V1::CreditListLedgerParams.dump_request(params)
161
163
  query = Stigg::Internal::Util.encode_query_params(parsed.slice(*query_params))
162
164
  @client.request(
@@ -165,6 +167,7 @@ module Stigg
165
167
  query: query.transform_keys(
166
168
  customer_id: "customerId",
167
169
  currency_id: "currencyId",
170
+ event_type: "eventType",
168
171
  resource_id: "resourceId"
169
172
  ),
170
173
  headers: parsed.except(*query_params).transform_keys(
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.42"
4
+ VERSION = "0.1.0.pre.beta.43"
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 by event type(s), comma-separated
41
+ sig { returns(T.nilable(String)) }
42
+ attr_reader :event_type
43
+
44
+ sig { params(event_type: String).void }
45
+ attr_writer :event_type
46
+
40
47
  # Maximum number of items to return
41
48
  sig { returns(T.nilable(Integer)) }
42
49
  attr_reader :limit
@@ -69,6 +76,7 @@ module Stigg
69
76
  after: String,
70
77
  before: String,
71
78
  currency_id: String,
79
+ event_type: String,
72
80
  limit: Integer,
73
81
  resource_id: String,
74
82
  x_account_id: String,
@@ -85,6 +93,8 @@ module Stigg
85
93
  before: nil,
86
94
  # Filter by currency ID
87
95
  currency_id: nil,
96
+ # Filter by event type(s), comma-separated
97
+ event_type: nil,
88
98
  # Maximum number of items to return
89
99
  limit: nil,
90
100
  # Filter by resource ID
@@ -102,6 +112,7 @@ module Stigg
102
112
  after: String,
103
113
  before: String,
104
114
  currency_id: String,
115
+ event_type: String,
105
116
  limit: Integer,
106
117
  resource_id: String,
107
118
  x_account_id: String,
@@ -104,6 +104,7 @@ module Stigg
104
104
  after: String,
105
105
  before: String,
106
106
  currency_id: String,
107
+ event_type: String,
107
108
  limit: Integer,
108
109
  resource_id: String,
109
110
  x_account_id: String,
@@ -124,6 +125,8 @@ module Stigg
124
125
  before: nil,
125
126
  # Query param: Filter by currency ID
126
127
  currency_id: nil,
128
+ # Query param: Filter by event type(s), comma-separated
129
+ event_type: nil,
127
130
  # Query param: Maximum number of items to return
128
131
  limit: nil,
129
132
  # Query param: Filter by resource ID
@@ -7,6 +7,7 @@ module Stigg
7
7
  after: String,
8
8
  before: String,
9
9
  currency_id: String,
10
+ event_type: String,
10
11
  limit: Integer,
11
12
  resource_id: String,
12
13
  x_account_id: String,
@@ -32,6 +33,10 @@ module Stigg
32
33
 
33
34
  def currency_id=: (String) -> String
34
35
 
36
+ attr_reader event_type: String?
37
+
38
+ def event_type=: (String) -> String
39
+
35
40
  attr_reader limit: Integer?
36
41
 
37
42
  def limit=: (Integer) -> Integer
@@ -53,6 +58,7 @@ module Stigg
53
58
  ?after: String,
54
59
  ?before: String,
55
60
  ?currency_id: String,
61
+ ?event_type: String,
56
62
  ?limit: Integer,
57
63
  ?resource_id: String,
58
64
  ?x_account_id: String,
@@ -65,6 +71,7 @@ module Stigg
65
71
  after: String,
66
72
  before: String,
67
73
  currency_id: String,
74
+ event_type: String,
68
75
  limit: Integer,
69
76
  resource_id: String,
70
77
  x_account_id: String,
@@ -37,6 +37,7 @@ module Stigg
37
37
  ?after: String,
38
38
  ?before: String,
39
39
  ?currency_id: String,
40
+ ?event_type: String,
40
41
  ?limit: Integer,
41
42
  ?resource_id: String,
42
43
  ?x_account_id: String,
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.42
4
+ version: 0.1.0.pre.beta.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-18 00:00:00.000000000 Z
11
+ date: 2026-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi