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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c8624dd87aa70703a2a83ad936641c50ea170fe9e4d0ae558a05a466afee353
4
- data.tar.gz: d62830fc46d08dfaac01b23831c31ff00626ca03ce5c23b5eb4ff3534edc73ad
3
+ metadata.gz: c298f1215cd968b23577582b5c228f47b43c1d8cdeadcb6db98d229e3f230fd6
4
+ data.tar.gz: c2561072df0e20b187414df8a97fe4db53bed6b6a441a6002bf599f915228387
5
5
  SHA512:
6
- metadata.gz: f0e5fb5c2303b6df5791e7a8b3f2862980b687ae08b6a20ce650fbe835041bff4b7b62a9d3535924980d97186c8b5e0760966fbd8ca987685efb73050d42ccd6
7
- data.tar.gz: de418217fcad0b7ff8bd17cd43a4a24f57962128e15585252b0fa1e9564000c2699ba3a4387b5f3bfceb1e59306d605c33f20659121b7c0edd8a118a374b90fa
6
+ metadata.gz: ca25c8fe36b609779636a0441e78439d1d0edb5d7cfc1568089bad226f2f53f1c2b49a02741125d3cef6ecd59b373a36cf3198eef995423971a7672c5aeda979
7
+ data.tar.gz: 6828a646dc3087180c9363ef77e8830a995ad8dc891ec0d832fec26e61e89283c0cb8d7d8c22e1fd019403f2faad73a766ee31a8b2e19fb5f8962d869b6854c8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- solidgate-ruby-sdk (0.1.2)
4
+ solidgate-ruby-sdk (0.1.3)
5
5
  faraday
6
6
  faraday-multipart
7
7
 
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Solidgate
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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-07 00:00:00.000000000 Z
11
+ date: 2026-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday