zuora_api 1.7.66j → 1.7.66k

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46c1d463bc291f1e674a92bc6dc28a35cb9df005a5e773124d752f624ebc9890
4
- data.tar.gz: bda2d5483c779155ebffd6e7b7f0472f6a19410f0dc47c168449acd3b31378f8
3
+ metadata.gz: 7fa1187b824462a04a69aedfa13b20c67727e30a8fccef9a62d7c5b5dde77224
4
+ data.tar.gz: ace9bbb9317ac71fecbff5af4fd24509f9698fcd33db71b3330342a4bca8d1aa
5
5
  SHA512:
6
- metadata.gz: a979bfcd6e7e668d0a87f097973b86b174d977862d002e7a2a60413e98d4a7481345a5a318ba5906b69ee0fdd8d9a18a96494ec93b476a7a16a3137a38352ca9
7
- data.tar.gz: 794dd0825636ab56d6aa5008fc9a7d9bd0f5e136db6223d426032b4eee16fd3e942842206c5ad39d50e5fa28aab44f7dc2bfa1f779027e03e6ff2e3fedd81075
6
+ metadata.gz: 9ac138aec48b305c7d3c972f4b533b6e4ab7ff21e937dc9c79992a23b8480542b7bc25449f90365e59509b239e3fa7bad89248b4273337cb8e9d53d6c782ff8b
7
+ data.tar.gz: 037f86064a5ea3434da2d5256d3652c36567036955ca7ebd1b56f50d86593415f615181d23c322b820506ece425f16b531a551073c6aa1517d4b8b7ee6005336
@@ -697,12 +697,12 @@ module ZuoraAPI
697
697
  ).present?
698
698
  result = body.xpath('//ns2:Status', 'ns2' => 'http://object.api.zuora.com/').text
699
699
  if result == 'Failed'
700
- reason = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
701
- if reason.present?
702
- message = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
703
- error = message.match(/^[\w\d]{16}\: (Unexpected error.|No HTTP Response|Socket Timeout|There is an internal error, please try again later)/).present? ? 'UNEXPECTED_ERROR' : 'FATAL_ERROR'
700
+ message = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
701
+ error = 'FATAL_ERROR'
702
+ if message.present?
703
+ identifier, new_message = message.scan(/^([\w\d]{16})\: (.*)/).first
704
+ error, message = ['UNEXPECTED_ERROR', new_message] if new_message.present?
704
705
  else
705
- error = 'FATAL_ERROR'
706
706
  message = 'Export failed due to unknown reason. Consult api logs.'
707
707
  end
708
708
  end
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.66j"
2
+ VERSION = "1.7.66k"
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.7.66j
4
+ version: 1.7.66k
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: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler