earnshark_sdk 0.2.6 → 0.2.6.1

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
  SHA1:
3
- metadata.gz: fcba85fa1aa33674e27b1c7804da7aca545504b9
4
- data.tar.gz: 40885f3569d5be7ca001bc6e1a683833e315eb47
3
+ metadata.gz: ffe90d2e9b74f4c2318c649bda6006c36ebd26a8
4
+ data.tar.gz: 71d5f619bbf4926991096da41aa02b0b3d60d925
5
5
  SHA512:
6
- metadata.gz: c26f0100b37093ac67046ee3cbad08f29c4595814c80c99f465108e591832a4801f4c0ce5b6afa3198b3e82395cad415ec5b64c3c0513597c53cdfff7183d1de
7
- data.tar.gz: 4f9275509bda1c21b7e1ab5f10479f6a0fe7147183052bf7ce38a9e0aa14a878d8739344a5508ecd4e8d89c179fdc7435fb41b75044081f1b630dbbccc4bcba0
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/#@product_id/subscription/#{subscription_id}/apiRenewSubscriptionV2/#{new_license_id}?key=#@key")
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/#@product_id/subscription/#{subscription_id}?key=#@key", body)
31
+ post("#{base_url}notification/#{@product_id}/subscription/#{subscription_id}?key=#{@key}", body)
32
32
  end
33
33
 
34
34
  end
@@ -1,5 +1,5 @@
1
1
  module EarnShark
2
2
  module Api
3
- VERSION = "0.2.6".freeze
3
+ VERSION = "0.2.6.1".freeze
4
4
  end
5
5
  end
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.6
4
+ version: 0.2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chamath Palihawadana