zuora_api 1.1.6 → 1.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 +4 -4
- data/lib/zuora_api/login.rb +6 -6
- 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: e37603036a86f2888c98016dbea6af0a743f2e1d
|
|
4
|
+
data.tar.gz: 322501fde4618e25d1c20cffa13f4fe51d963c84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a254f20f2f7730667956531c6ba7af728e46ba0135cd2f0d1b043af9d589998c583fb60db468337e7a6a0b8f88c9e712833541baf218be618fe101129bab0a6
|
|
7
|
+
data.tar.gz: c0b451e6b9634a9737b4824db64dfd679f4b6cba1142ed50110c7596c2fafac911bdca93257778aca2a833fd1b4f02c19e95beaccae15f54eb9274498c7b525c
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -251,21 +251,21 @@ module ZuoraAPI
|
|
|
251
251
|
"type" => 'zoqlexport'
|
|
252
252
|
}]
|
|
253
253
|
}
|
|
254
|
-
response = self.rest_call(method: :post, body: params.to_json, url: self.
|
|
254
|
+
response = self.rest_call(method: :post, body: params.to_json, url: self.aqua_endpoint("batch-query/"))
|
|
255
255
|
if(response[0]["id"].nil?)
|
|
256
|
-
|
|
257
|
-
raise "Error in AQuA Process. ID was not found."
|
|
256
|
+
raise "Error in AQuA Process. #{response}"
|
|
258
257
|
end
|
|
259
258
|
return getFileById(id: response[0]["id"])
|
|
260
259
|
end
|
|
261
260
|
|
|
262
261
|
def getFileById(id: "")
|
|
263
262
|
response = nil
|
|
264
|
-
|
|
263
|
+
result = "new"
|
|
264
|
+
while result != "completed" do
|
|
265
265
|
sleep(2)#sleep 2 seconds
|
|
266
266
|
response, fullResponse = self.rest_call(method: :get, body: {}, url: self.aqua_endpoint("batch-query/jobs/#{id}"), debug: false)
|
|
267
|
-
|
|
268
|
-
if
|
|
267
|
+
result == response["batches"][0]["status"]
|
|
268
|
+
if result == "error"
|
|
269
269
|
raise "Aqua Error: #{response}"
|
|
270
270
|
break
|
|
271
271
|
end
|
data/lib/zuora_api/version.rb
CHANGED