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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/solidgate/client.rb +13 -1
- data/lib/solidgate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0191a13b89f67dccdf151792e16df67b2cbacec62753c73c8f82fdcd088b2fda'
|
|
4
|
+
data.tar.gz: 968ee7e3692712158bfeea3c8582f0f8b5d3c04956a7fe9b70fdc61a852e13bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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)
|
data/lib/solidgate/client.rb
CHANGED
|
@@ -97,10 +97,18 @@ module Solidgate
|
|
|
97
97
|
post("/api/v1/subscription/switch-subscription-product", params)
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
def
|
|
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)
|
data/lib/solidgate/version.rb
CHANGED