solidgate-ruby-sdk 0.1.11 → 0.1.12
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/Gemfile.lock +1 -1
- data/lib/solidgate/client.rb +16 -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: 4128217c38f32fdd711b9730aee7aabb85e43f24634bac4b8233ff4f1dfd900f
|
|
4
|
+
data.tar.gz: 6d3917d1111b2043f1c9aa008364c2d4c09d75123ca59bbed6fb959c28add824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 900f118702889d575cb369cac9f57ed75ea43c21ef4706971d1588354d62e24014170768cb124550a9ab633d5e67c5d5bc9c0101ad40c9e67bab78e8d4d2b58f
|
|
7
|
+
data.tar.gz: b696bb31ff5eb9676dd97a00c289d8fef9d6ae0ac4def587b8fbbbe33e635e454b34b03149fd755d1c3b6b475057ab3c16fa31dc06f99c1989fcf6a6738db7a4
|
data/Gemfile.lock
CHANGED
data/lib/solidgate/client.rb
CHANGED
|
@@ -289,6 +289,22 @@ module Solidgate
|
|
|
289
289
|
encrypt_payload(params)
|
|
290
290
|
end
|
|
291
291
|
|
|
292
|
+
# Updates an existing price for a product.
|
|
293
|
+
# Use this to modify the amount, currency, or billing interval of a price.
|
|
294
|
+
#
|
|
295
|
+
# @param product_id [String] the product identifier that owns the price
|
|
296
|
+
# @param price_id [String] the price identifier to update
|
|
297
|
+
# @param params [Hash] price update parameters:
|
|
298
|
+
# @return [Hash] updated price details including price_id
|
|
299
|
+
# @raise [InvalidRequestError] if product_id, price_id, or params are invalid
|
|
300
|
+
#
|
|
301
|
+
# @example Update a price amount
|
|
302
|
+
# client.update_product_price('prod_123', 'price_456', amount: 2000)
|
|
303
|
+
#
|
|
304
|
+
def update_product_price(product_id, price_id, params)
|
|
305
|
+
patch("/api/v1/products/#{product_id}/prices/#{price_id}", body: params)
|
|
306
|
+
end
|
|
307
|
+
|
|
292
308
|
# Generates an HMAC-SHA512 signature for API request authentication.
|
|
293
309
|
# The signature is required for all API requests and webhook validation.
|
|
294
310
|
#
|
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.12
|
|
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-02-
|
|
11
|
+
date: 2026-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|