earnshark_sdk 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/earnshark_sdk/api/subscription.rb +1 -1
- data/lib/earnshark_sdk/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b293bceb20380d0e4a3629399e707278f19f892
|
4
|
+
data.tar.gz: 2aad3d55e3fd4f20f305e77b0597c06b474bf9e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2fd7606875832af9dd12301d0f409757d646e5c96d81a11a6cf00d9a044ee091ca92da93041c18796581333f8708bf4127f5ea690e7d71252171f8103c532d8
|
7
|
+
data.tar.gz: a5dca33f11d64c7149cfa62c4833abaf480f306befeea06dcb1e3a6b3a8672759afc1cbac0ee768e8649a05d03f81d0f810830ff89d11d64fc837a6204006862
|
@@ -11,7 +11,7 @@ module EarnShark
|
|
11
11
|
# Example response:
|
12
12
|
# { "Date":"01/01/2016", "Cost":{ "value":"100", "currency":"USD" }, "Name":"5 Users Plan", "Product_ID":1, "Customer_ID":1, "Customer_Name":"Customer Name", "Account_ID":"123456", "Metadata":"{\"users\":\"10 users\"}", "Subscription_ID":1, "Tags":[ "10users" ], "License_ID":1, "Invalid":false, "Expired":false, "Billing_Cycle":{ "value":1, "type":"Monthly" }, "Description":"10 Users per month / 100", "Tenant_ID":"eu-west-1:00000000-0000-0000-0000-000000000000" }
|
13
13
|
def renew_subscription(subscription_id, new_license_id)
|
14
|
-
get("#{base_url}product/#@product_id/subscription/#{subscription_id}/
|
14
|
+
get("#{base_url}product/#@product_id/subscription/#{subscription_id}/apiRenewSubscriptionV2/#{new_license_id}?key=#@key")
|
15
15
|
end
|
16
16
|
|
17
17
|
# Get payment URL
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earnshark_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chamath Palihawadana
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|