zuora_api 1.6.22 → 1.6.23

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: fc92c82d0114c76b73e15fbb32471bdd750f1e26
4
- data.tar.gz: 7a54d2498716694f0c3e9d17569efa7f494599c8
3
+ metadata.gz: 0a5a699a2b70e14169b32f1cdbbf245c4261b24a
4
+ data.tar.gz: 547219eb1aa3f1fb15d69f81c18b74654f751476
5
5
  SHA512:
6
- metadata.gz: 6d6547109b579ab68bd2c902c06eead7491c3940956c03a0ef8cb14af42a4c393d6d53d58325616ed9a5a8df453e6064dfd1b16ee89699855076f878ab37c8c1
7
- data.tar.gz: 1fa703dcbce2c2ca5c699e6ee0a3ba113e1d4618839960d4c619e5a0b27bb7d9eb2e147f9c733dd398a1bbfc9222518695be38db27cd32630a65bf54e5d00722
6
+ metadata.gz: 03371ffc2b01d1f45d06e80bdec51c8cd88f16aa0b0630a8772fd422ac9fd8ac3f2c3461465c3d09b675938016b833a6fc102c5bbc09bd248943043e288f54bf
7
+ data.tar.gz: 5cfdbae2494fb619eec597ce3887fa48538622681a417e482215a0a24959e8c06b3a57ef65a648a81395df86e6e78956ba87225879cf9468a78a14db282064c5
@@ -42,7 +42,7 @@ module InsightsAPI
42
42
  if status['status']== "COMPLETE"
43
43
  signedUrl = status['signedUrl']
44
44
  return status
45
- elsif status['status'] == "FAILED"
45
+ elsif status['status'] == "FAILED" || status['status'] == "ERROR"
46
46
  return status
47
47
  else
48
48
  sleep(60)
@@ -505,6 +505,12 @@ module ZuoraAPI
505
505
  raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{error}::#{message}", body, response.code)
506
506
  when "LOCK_COMPETITION"
507
507
  raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", body, response.code)
508
+ when "BATCH_FAIL_ERROR"
509
+ if message.include?("optimistic locking failed")
510
+ raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", body, response.code)
511
+ else
512
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", body, response.code)
513
+ end
508
514
  when "TEMPORARY_ERROR"
509
515
  raise ZuoraAPI::Exceptions::ZuoraAPITemporaryError.new("#{error}::#{message}", body, response.code)
510
516
  else
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.22"
2
+ VERSION = "1.6.23"
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.6.22
4
+ version: 1.6.23
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: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler