solidgate-ruby-sdk 0.1.6 → 0.1.8

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: 6805bc1e6550b6d5b4d2ead7727ec29e7d77e52f8310626675703f0011fc6e1b
4
+ data.tar.gz: 52117f9e0258a8e1bdee027c83373f6022503cd18deab671605fb5169dab9013
5
5
  SHA512:
6
- metadata.gz: 8d0d5d0ecf52b46c7226f803167426818399ce4cad0bf5a767ee24556a2918fc1f257085dd0b78e98dd5f025c27dd8ce5b2691d9eb0230e4fdf532570e95fdc3
7
- data.tar.gz: 4fcfff45f0a656903f3c258ffd19e7526d5f5f8283792318cff409517814716561749d2ff849bfd13543387df0c66a990f4218cbfaf2f4d97945999054d28f86
6
+ metadata.gz: dc17597c86ca3a2c2b79032a0f637ee42661ddd6810421d24ec593b7f21c6e0fd679fb316ebac564d4559c461bf899ca86d27f1b6a8bed9e6c8dd0447ad648d2
7
+ data.tar.gz: 3986537e710f2a3cbc0571cbc59f8bd74d4cfcaae5f135767ee40ce6775eb9e30abcbe07141a60e2175daef648be33ae75ac54219b6658e841e6eb19402f4fa2
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.8)
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,22 @@ 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
+
112
+ def cancel_subscription(params)
113
+ post("/api/v1/subscription/cancel", params)
114
+ end
115
+
104
116
  def create_product(params)
105
117
  post("/api/v1/products", params)
106
118
  end
@@ -175,6 +187,10 @@ module Solidgate
175
187
  request(:patch, path, body)
176
188
  end
177
189
 
190
+ def delete(path)
191
+ request(:delete, path)
192
+ end
193
+
178
194
  def request(method, path, body = nil)
179
195
  body_json = body ? JSON.generate(body) : ''
180
196
  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.8"
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hector Carrillo