solidgate-ruby-sdk 0.1.6 → 0.1.7

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: 1769fc2989449274d20a02055dac5abcee103d79d92f4df66a6bc3bb9bf59a59
4
- data.tar.gz: 96a7fadb8205253e9d24c314a6699bf5e86c901eea69c7cb218468c65eb7fb84
3
+ metadata.gz: '0191a13b89f67dccdf151792e16df67b2cbacec62753c73c8f82fdcd088b2fda'
4
+ data.tar.gz: 968ee7e3692712158bfeea3c8582f0f8b5d3c04956a7fe9b70fdc61a852e13bf
5
5
  SHA512:
6
- metadata.gz: 8d0d5d0ecf52b46c7226f803167426818399ce4cad0bf5a767ee24556a2918fc1f257085dd0b78e98dd5f025c27dd8ce5b2691d9eb0230e4fdf532570e95fdc3
7
- data.tar.gz: 4fcfff45f0a656903f3c258ffd19e7526d5f5f8283792318cff409517814716561749d2ff849bfd13543387df0c66a990f4218cbfaf2f4d97945999054d28f86
6
+ metadata.gz: 02ac13c428db68b9f07765be5b819fb89817a2984d943a4f01f943ae8a154ff2dfbba7cb1f0bc5d185f59eff065e868fd28b64f7f8206acd8f4515f858d9b044
7
+ data.tar.gz: 2b33ed6cf554668c334a9f88395e10c3c1f800e7c72b807351f1149f49827e2ff2e492a1a3ecb07283151278773de02838f0e68d557840b757ebd9d57e112639
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- solidgate-ruby-sdk (0.1.6)
4
+ solidgate-ruby-sdk (0.1.7)
5
5
  faraday
6
6
  faraday-multipart
7
7
 
@@ -22,7 +22,7 @@ GEM
22
22
  base64
23
23
  faraday-net_http (>= 2.0, < 3.1)
24
24
  ruby2_keywords (>= 0.0.4)
25
- faraday-multipart (1.1.1)
25
+ faraday-multipart (1.2.0)
26
26
  multipart-post (~> 2.0)
27
27
  faraday-net_http (3.0.2)
28
28
  hashdiff (1.2.1)
@@ -97,10 +97,18 @@ module Solidgate
97
97
  post("/api/v1/subscription/switch-subscription-product", params)
98
98
  end
99
99
 
100
- def pause_subscription(subscription_id, params)
100
+ def update_subscription_pause(subscription_id, params)
101
101
  patch("/api/v1/subscriptions/#{subscription_id}/pause-schedule", params)
102
102
  end
103
103
 
104
+ def create_subscription_pause(subscription_id, params)
105
+ post("/api/v1/subscriptions/#{subscription_id}/pause-schedule", params)
106
+ end
107
+
108
+ def delete_subscription_pause(subscription_id)
109
+ delete("/api/v1/subscriptions/#{subscription_id}/pause-schedule")
110
+ end
111
+
104
112
  def create_product(params)
105
113
  post("/api/v1/products", params)
106
114
  end
@@ -175,6 +183,10 @@ module Solidgate
175
183
  request(:patch, path, body)
176
184
  end
177
185
 
186
+ def delete(path)
187
+ request(:delete, path)
188
+ end
189
+
178
190
  def request(method, path, body = nil)
179
191
  body_json = body ? JSON.generate(body) : ''
180
192
  signature = generate_signature(body_json)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Solidgate
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidgate-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hector Carrillo