Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
".": "0.2.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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: 7669258168adc5ef60b57841c723d333
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
cloudpayments (0.1.0)
cloudpayments (0.2.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "cloudpayments", "~> 0.1.0"
gem "cloudpayments", "~> 0.2.0"
```

<!-- x-release-please-end -->
Expand Down
1 change: 1 addition & 0 deletions lib/cloudpayments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions lib/cloudpayments/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]`
Expand Down Expand Up @@ -70,6 +73,7 @@ def initialize(
)

@payments = Cloudpayments::Resources::Payments.new(client: self)
@models = Cloudpayments::Resources::Models.new(client: self)
end
end
end
14 changes: 14 additions & 0 deletions lib/cloudpayments/resources/models.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/cloudpayments/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Cloudpayments
VERSION = "0.1.0"
VERSION = "0.2.0"
end
3 changes: 3 additions & 0 deletions rbi/cloudpayments/client.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
12 changes: 12 additions & 0 deletions rbi/cloudpayments/resources/models.rbi
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions sig/cloudpayments/client.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
Expand Down
7 changes: 7 additions & 0 deletions sig/cloudpayments/resources/models.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Cloudpayments
module Resources
class Models
def initialize: (client: Cloudpayments::Client) -> void
end
end
end
6 changes: 6 additions & 0 deletions test/cloudpayments/resources/models_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

require_relative "../test_helper"

class Cloudpayments::Test::Resources::ModelsTest < Cloudpayments::Test::ResourceTest
end
Loading