zuora_api 1.3.0a → 1.3.0c
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +4 -3
- data/lib/zuora_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: 084e60e18d06145c090068c2b91f535e1454c59b
|
|
4
|
+
data.tar.gz: 816edf7969f10ffe38ae2a6b2cb47a5c97588ddc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 455e505d4f67fcbdd0f4fd1a05761ab2c789f90c43292e7e3bb0e09f948101383d45cb316036089659bb51ac9e7d074ca71b99d58d8123619b60f032c63fefbc
|
|
7
|
+
data.tar.gz: befb2d439285ad77c6bbf86199a4cf335cd3442949723c5d80255a8dff987af992a61a20f80f436ba48b73e09c1f6efd5843446a4d7bf63c418522c050c95196
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -77,7 +77,8 @@ module ZuoraAPI
|
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
def fileURL
|
|
80
|
-
return self.url.split(".com").first.concat("
|
|
80
|
+
return self.url.split(".com").first.concat("
|
|
81
|
+
/apps/api/file/")
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
def dateFormat
|
|
@@ -281,8 +282,8 @@ module ZuoraAPI
|
|
|
281
282
|
|
|
282
283
|
def describe_call(object = nil)
|
|
283
284
|
self.get_session
|
|
284
|
-
base = self.url.include?(".com") ? self.url.split(".com")[0] : self.url.split(".eu")[0]
|
|
285
|
-
url = object ? "#{base}
|
|
285
|
+
base = self.url.include?(".com") ? self.url.split(".com")[0].concat(".com") : self.url.split(".eu")[0].concat(".eu")
|
|
286
|
+
url = object ? "#{base}/apps/api/describe/#{object}" : "#{base}/apps/api/describe/"
|
|
286
287
|
headers = !self.entity_id.blank? ? {"entityId" => self.entity_id, 'Content-Type' => "text/xml; charset=utf-8"} : {'Content-Type' => "text/xml; charset=utf-8"}
|
|
287
288
|
response = HTTParty.get(url, :headers => headers , basic_auth: {:username => self.username, :password => self.password})
|
|
288
289
|
output_xml = Nokogiri::XML(response.body)
|
data/lib/zuora_api/version.rb
CHANGED