aho-sdk 0.1.1 → 0.1.2

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: c196d6f8508fab43b9eba6b5ae25186cd1b886c46d0de4e6c1caf7076fe7c42f
4
- data.tar.gz: 32aba973775471eb93d0c3ec3829a7e3ad9a245829e1dd5fb6d276b329dc447d
3
+ metadata.gz: c840f57484d2a450464f827bde3830fef0a36bdbebbf6a670d1dff76b9b4916f
4
+ data.tar.gz: 3b5c236645da59df64fc67eb3837407131f32fc68a4e6964925777a4a3bb9d11
5
5
  SHA512:
6
- metadata.gz: c6f485cbe1ae666eac7ee3b76bcea05199b8b25051e5e11d1db41bfbf1399d54b9a176644104d29afaa97e2e193250d465ead4c6c05790eab97132fdb9f26e67
7
- data.tar.gz: 5f0af391ed4fd1a577ec2576b4b2770f944cf94ca5d7d55d46e3ea01d4e165a026a382aa09f36ebb4097213de2621ee667c196d9393aa68047d70621f0ea8ba3
6
+ metadata.gz: 275e285971035dfafa7e284fe7fc3b0e0b96281dfa0465e93d451fd9d6f68a6ab5b11e16b77b430bfd2b4afb6df67deddd79ceb22972f1cfff5eb349eb2db544
7
+ data.tar.gz: f55b0e4a0cdb133e5642c20759b3373727eec4b0a139d9deccb86784044c64e8ba9856df29a1dfcf2e23aa7fd50d93f4d032d48eb24108bf83c88b13fcb5dc47
data/CHANGELOG.md CHANGED
@@ -5,7 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.1.1] - 2026-04-17
8
+ ## [0.1.2] - 2026-05-05
9
+
10
+ ### Changed
11
+
12
+ - **Breaking:** Batch credential operations moved from separate resources to `credentials` resource
13
+ - `client.revoke_batch.create` → `client.credentials.revoke_batch`
14
+ - `client.suspend_batch.create` → `client.credentials.suspend_batch`
15
+ - `client.reinstate_batch.create` → `client.credentials.reinstate_batch`
16
+
17
+ ## [0.1.1] - 2026-05-05
9
18
 
10
19
  ### Changed
11
20
 
@@ -13,9 +13,6 @@ module AhoSdk
13
13
  # client = AhoSdk::Issuer.new(api_key: ENV["AHO_ISSUER_API_KEY"])
14
14
  # client.automations.list
15
15
  # client.credentials.list
16
- # client.revoke_batch.list
17
- # client.suspend_batch.list
18
- # client.reinstate_batch.list
19
16
  # client.data_source_mappings.list
20
17
  # client.data_sources.list
21
18
  # client.offers.list
@@ -31,9 +28,6 @@ module AhoSdk
31
28
  @client = HttpClient.new(api_key: api_key, base_url: base_url, timeout: timeout, logger: logger)
32
29
  @automations = AutomationsResource.new(@client)
33
30
  @credentials = CredentialsResource.new(@client)
34
- @revoke_batch = RevokeBatchResource.new(@client)
35
- @suspend_batch = SuspendBatchResource.new(@client)
36
- @reinstate_batch = ReinstateBatchResource.new(@client)
37
31
  @data_source_mappings = DataSourceMappingsResource.new(@client)
38
32
  @data_sources = DataSourcesResource.new(@client)
39
33
  @offers = OffersResource.new(@client)
@@ -45,12 +39,6 @@ module AhoSdk
45
39
  attr_reader :automations
46
40
  # @return [CredentialsResource]
47
41
  attr_reader :credentials
48
- # @return [RevokeBatchResource]
49
- attr_reader :revoke_batch
50
- # @return [SuspendBatchResource]
51
- attr_reader :suspend_batch
52
- # @return [ReinstateBatchResource]
53
- attr_reader :reinstate_batch
54
42
  # @return [DataSourceMappingsResource]
55
43
  attr_reader :data_source_mappings
56
44
  # @return [DataSourcesResource]
@@ -220,52 +208,25 @@ module AhoSdk
220
208
  def history(uuid:)
221
209
  @client.get("/v1/issuer/credentials/#{uuid}/history")
222
210
  end
223
- end
224
-
225
- # Revoke_batch resource operations
226
- # @api private
227
- class RevokeBatchResource
228
- # @api private
229
- def initialize(client)
230
- @client = client
231
- end
232
211
 
233
212
  # Revoke multiple credentials
234
213
  #
235
214
  # @return [Hash]
236
- def create(body: nil, idempotency_key: nil)
215
+ def revoke_batch(body: nil, idempotency_key: nil)
237
216
  @client.post("/v1/issuer/credentials/revoke_batch", body: body, idempotency_key: idempotency_key)
238
217
  end
239
- end
240
-
241
- # Suspend_batch resource operations
242
- # @api private
243
- class SuspendBatchResource
244
- # @api private
245
- def initialize(client)
246
- @client = client
247
- end
248
218
 
249
219
  # Suspend multiple credentials
250
220
  #
251
221
  # @return [Hash]
252
- def create(body: nil, idempotency_key: nil)
222
+ def suspend_batch(body: nil, idempotency_key: nil)
253
223
  @client.post("/v1/issuer/credentials/suspend_batch", body: body, idempotency_key: idempotency_key)
254
224
  end
255
- end
256
-
257
- # Reinstate_batch resource operations
258
- # @api private
259
- class ReinstateBatchResource
260
- # @api private
261
- def initialize(client)
262
- @client = client
263
- end
264
225
 
265
226
  # Reinstate multiple credentials
266
227
  #
267
228
  # @return [Hash]
268
- def create(body: nil, idempotency_key: nil)
229
+ def reinstate_batch(body: nil, idempotency_key: nil)
269
230
  @client.post("/v1/issuer/credentials/reinstate_batch", body: body, idempotency_key: idempotency_key)
270
231
  end
271
232
  end
@@ -3,5 +3,5 @@
3
3
  # Auto-generated by bin/generate_sdks.rb - DO NOT EDIT
4
4
 
5
5
  module AhoSdk
6
- VERSION = "0.1.1"
6
+ VERSION = "0.1.2"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aho-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aho
@@ -53,7 +53,7 @@ metadata:
53
53
  homepage_uri: https://aho.com
54
54
  source_code_uri: https://github.com/aho-hq/aho-ruby
55
55
  changelog_uri: https://github.com/aho-hq/aho-ruby/blob/main/CHANGELOG.md
56
- documentation_uri: https://aho.com/developers/ruby-sdk
56
+ documentation_uri: https://aho.com/docs/sdks/api/ruby
57
57
  rdoc_options: []
58
58
  require_paths:
59
59
  - lib