zuora_api 1.3.99998 → 1.3.99999

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: e9a7469833b4db086c33bbf5470e718c01b9d677
4
- data.tar.gz: 9492b8bd10418291c77f137c46b3c1818a8006ad
3
+ metadata.gz: ed2b0077169532a250a0324b07a15bfbb1fbb682
4
+ data.tar.gz: 88de2efbd9ac8161c67039ea624a1881ad0acf93
5
5
  SHA512:
6
- metadata.gz: 25357dce0d2ee90ab4de5f09371727d8ef2f744d13b99667e833354311bd2729eb40b036ecbe9a3582d93ecd581be471e83076e076e1b3139672862c68409dce
7
- data.tar.gz: ed681f2044cd0f39903bbbeac926126656e8eac665713268624bc7f2c6e85b233bad94e179b2d6915e82deb2eca4ddf29de25b2101392c60f432314b66d8afc0
6
+ metadata.gz: 4c1be1e2ef1da29ecd31f3084e1cc477be1a61d197d86d982ffe6fb7ecedf252a6cb05a9f4fe2565c401c6832fdf3a914968373c0cbba451da4f1463b7e36595
7
+ data.tar.gz: 0f54362b668bac87f9e4e9df4b8248ebc94cd5a59533e96b40fd1e452bcea68cf4577f46d6a2f7a4394bc36268710f362c144354b0514eccbb4b2a28a77ae9d0
@@ -340,7 +340,18 @@ module ZuoraAPI
340
340
 
341
341
  #Zuora REST Query Errors
342
342
  if body["faultcode"].present?
343
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
343
+ case body["faultcode"]
344
+ when "fns:MALFORMED_QUERY"
345
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
346
+ when "fns:REQUEST_EXCEEDED_LIMIT"
347
+ raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{body["faultcode"]}::#{body["faultstring"]}")
348
+ when "fns:LOCK_COMPETITION"
349
+ raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{body["faultcode"]}::#{body["faultstring"]}")
350
+ when "INVALID_SESSION"
351
+ raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{body["faultcode"]}::#{body["faultstring"]}")
352
+ else
353
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
354
+ end
344
355
  end
345
356
  end
346
357
 
@@ -349,7 +360,7 @@ module ZuoraAPI
349
360
  all_errors = body.select {|obj| !obj['Success']}.map {|obj| obj['Errors']}
350
361
  all_success = body.select {|obj| obj['Success']}
351
362
  if all_errors.size > 0
352
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("There were #{all_errors.size} failures and #{all_success.size} successes.", nil, nil, all_errors, all_success )
363
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{all_errors.flatten.group_by {|error| error['Message']}.keys.join(',')}", nil, nil, all_errors, all_success )
353
364
  end
354
365
  end
355
366
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.99998"
2
+ VERSION = "1.3.99999"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.99998
4
+ version: 1.3.99999
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler