solidgate-ruby-sdk 0.1.2 → 0.1.3
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 +11 -1
- 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: c298f1215cd968b23577582b5c228f47b43c1d8cdeadcb6db98d229e3f230fd6
|
|
4
|
+
data.tar.gz: c2561072df0e20b187414df8a97fe4db53bed6b6a441a6002bf599f915228387
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca25c8fe36b609779636a0441e78439d1d0edb5d7cfc1568089bad226f2f53f1c2b49a02741125d3cef6ecd59b373a36cf3198eef995423971a7672c5aeda979
|
|
7
|
+
data.tar.gz: 6828a646dc3087180c9363ef77e8830a995ad8dc891ec0d832fec26e61e89283c0cb8d7d8c22e1fd019403f2faad73a766ee31a8b2e19fb5f8962d869b6854c8
|
data/Gemfile.lock
CHANGED
data/lib/solidgate/client.rb
CHANGED
|
@@ -84,7 +84,17 @@ module Solidgate
|
|
|
84
84
|
# @param subscription_id [String] subscription ID
|
|
85
85
|
# @return [Hash] subscription details
|
|
86
86
|
def subscription_status(subscription_id)
|
|
87
|
-
post("api/v1/subscription/status", { subscription_id: subscription_id })
|
|
87
|
+
post("/api/v1/subscription/status", { subscription_id: subscription_id })
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Update subscription product
|
|
91
|
+
#
|
|
92
|
+
# @param params [Hash] subscription update parameters
|
|
93
|
+
# @return [Hash] update response
|
|
94
|
+
# params = { subscription_id: "sub_12345", new_product_id: "prod_67890" }
|
|
95
|
+
# new product_id is the Solidgate ID of the product to switch to
|
|
96
|
+
def switch_subscription_product(params)
|
|
97
|
+
post("/api/v1/subscription/switch-subscription-product", params)
|
|
88
98
|
end
|
|
89
99
|
|
|
90
100
|
def create_product(params)
|
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.3
|
|
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-01-
|
|
11
|
+
date: 2026-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|