earnshark_sdk 0.2.6 → 0.2.6.1
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 +2 -2
- data/lib/earnshark_sdk/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffe90d2e9b74f4c2318c649bda6006c36ebd26a8
|
4
|
+
data.tar.gz: 71d5f619bbf4926991096da41aa02b0b3d60d925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fe65f65a5c1376055c74394d48eb3c89e02c266d2de31878cee8d86b37c303b9dc3967fc8ac62dd14605fe300d1ef3c16b25b1a0607b1eed8623334347b9a17
|
7
|
+
data.tar.gz: 28900690101318b68ffb8f0ac0ab711b58473444130fd57b8538766f722f428eefec00e2bab5482a0a9bf19068b31a22a05070b463603d2a1126a894c68c37d8
|
@@ -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
|
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
|
@@ -28,7 +28,7 @@ module EarnShark
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def renewed_subscription_notifier(subscription_id, body)
|
31
|
-
post("#{base_url}notification
|
31
|
+
post("#{base_url}notification/#{@product_id}/subscription/#{subscription_id}?key=#{@key}", body)
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|