From 89d726a0ad3cf7387ddb02ae126176dff1a10d3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:15:23 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1f7c0e2..c9dac95 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 6 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hexlet%2Fcloudpayments-4a7c87f457029686206224a4785cd5e539dd42d905f84a68dbd440f24b3ba055.yml -openapi_spec_hash: ce4157583083d05eaf8e5ec45216c112 -config_hash: d26a7d37520b517e14ffae7f7ab0119b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hexlet%2Fcloudpayments-bfd20159e37ef2468e956064918f7b861d53095aadf70ca3cb440414ff140874.yml +openapi_spec_hash: e9d4e5205df182bde226c51e156fc38d +config_hash: 9c867b41733e1a87468b7cb29e42dac4 From 002e64c4bdf7323a04c9343138703cbc42830eba Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:24:47 +0000 Subject: [PATCH 2/4] feat(api): api update --- .stats.yml | 2 +- lib/cloudpayments.rb | 1 + lib/cloudpayments/client.rb | 4 ++++ lib/cloudpayments/resources/models.rb | 14 ++++++++++++++ rbi/cloudpayments/client.rbi | 3 +++ rbi/cloudpayments/resources/models.rbi | 12 ++++++++++++ sig/cloudpayments/client.rbs | 2 ++ sig/cloudpayments/resources/models.rbs | 7 +++++++ test/cloudpayments/resources/models_test.rb | 6 ++++++ 9 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 lib/cloudpayments/resources/models.rb create mode 100644 rbi/cloudpayments/resources/models.rbi create mode 100644 sig/cloudpayments/resources/models.rbs create mode 100644 test/cloudpayments/resources/models_test.rb diff --git a/.stats.yml b/.stats.yml index c9dac95..d691a76 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 6 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hexlet%2Fcloudpayments-bfd20159e37ef2468e956064918f7b861d53095aadf70ca3cb440414ff140874.yml openapi_spec_hash: e9d4e5205df182bde226c51e156fc38d -config_hash: 9c867b41733e1a87468b7cb29e42dac4 +config_hash: 49c5b2134367097b12981c50c95bbe7d diff --git a/lib/cloudpayments.rb b/lib/cloudpayments.rb index 5a1748e..ad655b9 100644 --- a/lib/cloudpayments.rb +++ b/lib/cloudpayments.rb @@ -65,4 +65,5 @@ require_relative "cloudpayments/models/payment_void_params" require_relative "cloudpayments/models/payment_void_response" require_relative "cloudpayments/models" +require_relative "cloudpayments/resources/models" require_relative "cloudpayments/resources/payments" diff --git a/lib/cloudpayments/client.rb b/lib/cloudpayments/client.rb index 1864564..b9db96b 100644 --- a/lib/cloudpayments/client.rb +++ b/lib/cloudpayments/client.rb @@ -24,6 +24,9 @@ class Client < Cloudpayments::Internal::Transport::BaseClient # @return [Cloudpayments::Resources::Payments] attr_reader :payments + # @return [Cloudpayments::Resources::Models] + attr_reader :models + # Creates and returns a new client for interacting with the API. # # @param public_id [String, nil] Defaults to `ENV["CLOUDPAYMENTS_PUBLIC_ID"]` @@ -70,6 +73,7 @@ def initialize( ) @payments = Cloudpayments::Resources::Payments.new(client: self) + @models = Cloudpayments::Resources::Models.new(client: self) end end end diff --git a/lib/cloudpayments/resources/models.rb b/lib/cloudpayments/resources/models.rb new file mode 100644 index 0000000..429cf0f --- /dev/null +++ b/lib/cloudpayments/resources/models.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Cloudpayments + module Resources + class Models + # @api private + # + # @param client [Cloudpayments::Client] + def initialize(client:) + @client = client + end + end + end +end diff --git a/rbi/cloudpayments/client.rbi b/rbi/cloudpayments/client.rbi index a133162..e3d5def 100644 --- a/rbi/cloudpayments/client.rbi +++ b/rbi/cloudpayments/client.rbi @@ -19,6 +19,9 @@ module Cloudpayments sig { returns(Cloudpayments::Resources::Payments) } attr_reader :payments + sig { returns(Cloudpayments::Resources::Models) } + attr_reader :models + # Creates and returns a new client for interacting with the API. sig do params( diff --git a/rbi/cloudpayments/resources/models.rbi b/rbi/cloudpayments/resources/models.rbi new file mode 100644 index 0000000..5d0b2ec --- /dev/null +++ b/rbi/cloudpayments/resources/models.rbi @@ -0,0 +1,12 @@ +# typed: strong + +module Cloudpayments + module Resources + class Models + # @api private + sig { params(client: Cloudpayments::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end +end diff --git a/sig/cloudpayments/client.rbs b/sig/cloudpayments/client.rbs index 8e291b2..985ba12 100644 --- a/sig/cloudpayments/client.rbs +++ b/sig/cloudpayments/client.rbs @@ -14,6 +14,8 @@ module Cloudpayments attr_reader payments: Cloudpayments::Resources::Payments + attr_reader models: Cloudpayments::Resources::Models + def initialize: ( ?public_id: String?, ?api_secret: String?, diff --git a/sig/cloudpayments/resources/models.rbs b/sig/cloudpayments/resources/models.rbs new file mode 100644 index 0000000..920b4d8 --- /dev/null +++ b/sig/cloudpayments/resources/models.rbs @@ -0,0 +1,7 @@ +module Cloudpayments + module Resources + class Models + def initialize: (client: Cloudpayments::Client) -> void + end + end +end diff --git a/test/cloudpayments/resources/models_test.rb b/test/cloudpayments/resources/models_test.rb new file mode 100644 index 0000000..b21461d --- /dev/null +++ b/test/cloudpayments/resources/models_test.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class Cloudpayments::Test::Resources::ModelsTest < Cloudpayments::Test::ResourceTest +end From c7af2125f02e79e53090c4dc109bc9d60c4725eb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:28:18 +0000 Subject: [PATCH 3/4] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d691a76..82d116e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 6 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hexlet%2Fcloudpayments-bfd20159e37ef2468e956064918f7b861d53095aadf70ca3cb440414ff140874.yml openapi_spec_hash: e9d4e5205df182bde226c51e156fc38d -config_hash: 49c5b2134367097b12981c50c95bbe7d +config_hash: 7669258168adc5ef60b57841c723d333 From 834e84881a9182712e951898d00f1c79813f0c3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:28:31 +0000 Subject: [PATCH 4/4] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/cloudpayments/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3d2ac0b..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f96eb9..4fd0acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 (2026-02-09) + +Full Changelog: [v0.1.0...v0.2.0](https://github.com/Hexlet/cloudpayments-ruby/compare/v0.1.0...v0.2.0) + +### Features + +* **api:** api update ([002e64c](https://github.com/Hexlet/cloudpayments-ruby/commit/002e64c4bdf7323a04c9343138703cbc42830eba)) + ## 0.1.0 (2026-02-09) Full Changelog: [v0.0.2...v0.1.0](https://github.com/Hexlet/cloudpayments-ruby/compare/v0.0.2...v0.1.0) diff --git a/Gemfile.lock b/Gemfile.lock index 037c7bd..d75af0d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - cloudpayments (0.1.0) + cloudpayments (0.2.0) cgi connection_pool diff --git a/README.md b/README.md index a37b523..d918b7c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "cloudpayments", "~> 0.1.0" +gem "cloudpayments", "~> 0.2.0" ``` diff --git a/lib/cloudpayments/version.rb b/lib/cloudpayments/version.rb index e4cb40c..cd4e7a6 100644 --- a/lib/cloudpayments/version.rb +++ b/lib/cloudpayments/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Cloudpayments - VERSION = "0.1.0" + VERSION = "0.2.0" end