solidgate-ruby-sdk 0.1.5 → 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: 8c6c98b7a85c9c0baa429bbabba28ab8b4ee5bc214315209090c79a43e1b1722
4
- data.tar.gz: 1bc4f515ea8b93f8f2c1058b693ac0edcfa32c465c96836b142cd85891b62143
3
+ metadata.gz: '0191a13b89f67dccdf151792e16df67b2cbacec62753c73c8f82fdcd088b2fda'
4
+ data.tar.gz: 968ee7e3692712158bfeea3c8582f0f8b5d3c04956a7fe9b70fdc61a852e13bf
5
5
  SHA512:
6
- metadata.gz: da2edaaf75d59d9160200c75dbadc5914f811491412828a270e928c8385f796fab76cf233c17c41c1ed0c1f33f4df91a609047962298eb5113e4c111dd0e4f70
7
- data.tar.gz: e3696bbccbfa90c308dd6ad07e444b4f917216ef7edeadeb144979c5b2c8c2adff7f838eff06e0d2e42ffa92233cea1ec319333cc1da3ecf37f8c126300b5e1f
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.5)
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,8 +97,16 @@ module Solidgate
97
97
  post("/api/v1/subscription/switch-subscription-product", params)
98
98
  end
99
99
 
100
- def pause_subscription(subscription_id, params)
101
- patch("/api/v1/subscriptions/{subscription_id}/pause-schedule", params)
100
+ def update_subscription_pause(subscription_id, params)
101
+ patch("/api/v1/subscriptions/#{subscription_id}/pause-schedule", params)
102
+ end
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")
102
110
  end
103
111
 
104
112
  def create_product(params)
@@ -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.5"
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hector Carrillo