solidgate-ruby-sdk 0.1.16 → 0.1.17
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 +4 -4
- data/AGENTS.md +2 -2
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +1 -1
- data/README.md +6 -0
- data/lib/solidgate/client.rb +15 -0
- data/lib/solidgate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b83cbd4040caae35563e9c6ee94f0c1b7527f8bc20860a5590db41cfd4f863c1
|
|
4
|
+
data.tar.gz: 2d9d52fe8fcb04ecf1e61a3349383958af3a615a01970318acbf34be9d141e44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fbf089574bf7a8e1dd1215708bea4326d5efaca50189d1bf9962924c60f655c3a6be5b60e8fe5a0f54978a4b70c4e7afb67be1ef0526a815f97f671d331f5bc
|
|
7
|
+
data.tar.gz: f34708de83f200743353cd76276c0208cebb0750c620abe63506027ad229f57702da85e319afd798808aeb46b564a13decd50ecffed438c399c2bb8ab424a28e
|
data/AGENTS.md
CHANGED
|
@@ -33,7 +33,7 @@ It provides a clean, object-oriented interface for payment processing, subscript
|
|
|
33
33
|
- Provides methods for all Solidgate API endpoints:
|
|
34
34
|
- Payment operations: `create_payment`, `get_payment`, `capture_payment`, `void_payment`, `refund_payment`, `settle_payment`
|
|
35
35
|
- Subscription operations: `create_subscription`, `subscription_status`, `switch_subscription_product`, `update_subscription_pause`, `create_subscription_pause`, `delete_subscription_pause`, `cancel_subscription`, `restore_subscription`
|
|
36
|
-
- Product operations: `create_product`, `create_price`, `products`, `product_prices`, `update_product_price`
|
|
36
|
+
- Product operations: `create_product`, `update_product`, `create_price`, `products`, `product_prices`, `update_product_price`
|
|
37
37
|
- Utility methods: `generate_intent`, `generate_signature`, `refund`, `order_status`
|
|
38
38
|
- Private methods for HTTP operations: `get`, `post`, `patch`, `delete`, `request`
|
|
39
39
|
- Encryption: `encrypt_payload` for payment intent generation (AES-256-CBC)
|
|
@@ -62,7 +62,7 @@ It provides a clean, object-oriented interface for payment processing, subscript
|
|
|
62
62
|
- `Solidgate::ValidationError` - Parameter validation (includes errors hash)
|
|
63
63
|
|
|
64
64
|
#### `lib/solidgate/version.rb`
|
|
65
|
-
- Version constant: `Solidgate::VERSION = "0.1.
|
|
65
|
+
- Version constant: `Solidgate::VERSION = "0.1.17"`
|
|
66
66
|
|
|
67
67
|
### Test Structure
|
|
68
68
|
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.17] - 2026-03-03
|
|
11
|
+
### Added
|
|
12
|
+
- `update_product` endpoint (`Solidgate::Client#update_product`) to modify product attributes.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Bumped SDK version to `0.1.17`.
|
|
16
|
+
|
|
10
17
|
## [0.1.16] - 2026-02-23
|
|
11
18
|
### Added
|
|
12
19
|
- `alt_refund` endpoint to create refunds using an alternative payment method (`Solidgate::Client#alt_refund`).
|
|
@@ -68,7 +75,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
68
75
|
- Thread-safe configuration
|
|
69
76
|
- Comprehensive documentation and examples
|
|
70
77
|
|
|
71
|
-
[Unreleased]: https://github.com/carrfane/solidgate-ruby-sdk/compare/v0.1.
|
|
78
|
+
[Unreleased]: https://github.com/carrfane/solidgate-ruby-sdk/compare/v0.1.17...HEAD
|
|
79
|
+
[0.1.17]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.17
|
|
80
|
+
[0.1.16]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.16
|
|
72
81
|
[0.1.13]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.13
|
|
73
82
|
[0.1.12]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.12
|
|
74
83
|
[0.1.11]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.11
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -202,6 +202,12 @@ product = client.create_product(
|
|
|
202
202
|
type: 'subscription'
|
|
203
203
|
)
|
|
204
204
|
|
|
205
|
+
# Update an existing product
|
|
206
|
+
client.update_product('product_id_123',
|
|
207
|
+
name: 'Premium Plan Plus',
|
|
208
|
+
description: 'Updated product description'
|
|
209
|
+
)
|
|
210
|
+
|
|
205
211
|
# Create a price for a product
|
|
206
212
|
price = client.create_price('product_id_123',
|
|
207
213
|
amount: 1999, # $19.99 in cents
|
data/lib/solidgate/client.rb
CHANGED
|
@@ -305,6 +305,21 @@ module Solidgate
|
|
|
305
305
|
patch("/api/v1/products/#{product_id}/prices/#{price_id}", body: params)
|
|
306
306
|
end
|
|
307
307
|
|
|
308
|
+
# Updates an existing price for a product.
|
|
309
|
+
# Use this to modify the amount, currency, or billing interval of a price.
|
|
310
|
+
#
|
|
311
|
+
# @param product_id [String] the product identifier that owns the price
|
|
312
|
+
# @param params [Hash] price update parameters:
|
|
313
|
+
# @return [Hash] updated price details including price_id
|
|
314
|
+
# @raise [InvalidRequestError] if product_id, or params are invalid
|
|
315
|
+
#
|
|
316
|
+
# @example Update a price amount
|
|
317
|
+
# client.update_product('prod_123', { description: 'wepale' })
|
|
318
|
+
#
|
|
319
|
+
def update_product(product_id, params)
|
|
320
|
+
patch("/api/v1/products/#{product_id}", body: params)
|
|
321
|
+
end
|
|
322
|
+
|
|
308
323
|
# Generates an HMAC-SHA512 signature for API request authentication.
|
|
309
324
|
# The signature is required for all API requests and webhook validation.
|
|
310
325
|
#
|
data/lib/solidgate/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidgate-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hector Carrillo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|