zuora_api 1.7.56 → 1.7.57a

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
  SHA256:
3
- metadata.gz: 489e5eec7bf82801cdb5ee5ed72e8de0c16a8a96c2511d5044e3424a89fe9f2a
4
- data.tar.gz: df4b66af8169b6eab63dddde62c82d49a8a7dbc35e066f8e73065e3a1fa670de
3
+ metadata.gz: f48a15a88a6eafff9e1055ed2d908f522b662f5660f6f49622ad71d7a717d724
4
+ data.tar.gz: 0a0cf9ff9a972445dee9ba38c4cb42dce4a13aafebe92b9dd5549d0fba2a5173
5
5
  SHA512:
6
- metadata.gz: dd5830c881d3b2a4b233f84bcdc79db56b7905aeb5250309e71825d00d2fc82cff8e2680f0b1171541d995ab7653f331cfbfbac44f46b5aeae6af78d47d77242
7
- data.tar.gz: e474fb2ad87319d85dd67cd18592751371615cbc144cf813af602a2e6f84e2b5760ff46ec4e4af18ce1682b12a7824d415a7c37e3a2eafc9a82c53f070bbb7f9
6
+ metadata.gz: f7312bf51c1de67b263cd637807eff552e64d66996801972eb8b57ca2aeca85399b5a3db18fc6be9461ff5d89436f09f8700cb7ca9ec468cea8166902f0760cc
7
+ data.tar.gz: ba510f3a1376d545f59623d92505617e1467f59840a16ad15d4244e2ba96cc1059cd3f05a6491864ef00d715202e7a91a69be9b92557fd29510fa8ec468618fb
@@ -45,8 +45,8 @@ rubygems-deploy:
45
45
  - apt-get install -y git
46
46
  - apt-get clean all
47
47
  - gem install dpl
48
- - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
49
- - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
48
+ - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --match "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
49
+ - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
50
50
  - echo $VERSION
51
51
  - sed -i "s/0.0.1/$VERSION/" lib/zuora_api/version.rb
52
52
  - git add lib/zuora_api/version.rb
@@ -15,6 +15,10 @@ module ZuoraAPI
15
15
  @message = "Query failed: #{$1}"
16
16
  when /^Query failed \(#[\d\w_]*\): (.*)$/
17
17
  @message = "Query failed: #{$1}"
18
+ when /^Could not find [\w\d]{32}.$/
19
+ @message = "Could not find object."
20
+ when /^Subscription [\w\d]{32} is in expired status. It is not supported to generate billing documents for expired subscriptions./
21
+ @message = "Subscription is in expired status. It is not supported to generate billing documents for expired subscriptions."
18
22
  else
19
23
  @message = message
20
24
  end
@@ -613,7 +613,7 @@ module ZuoraAPI
613
613
  reason = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
614
614
  if reason.present?
615
615
  message = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
616
- error = message.include?('Unexpected error') ? 'UNEXPECTED_ERROR' : 'FATAL_ERROR'
616
+ error = message.match(/^[\w\d]{16}\: (Unexpected error.|No HTTP Response)/).present? ? 'UNEXPECTED_ERROR' : 'FATAL_ERROR'
617
617
  else
618
618
  error = 'FATAL_ERROR'
619
619
  message = 'Export failed due to unknown reason. Consult api logs.'
@@ -666,6 +666,10 @@ module ZuoraAPI
666
666
  when /^POST::400::\/query\/jobs$/ #Create DQ job
667
667
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response) if body.dig('message').present?
668
668
  end
669
+ when /^\/api\/rest\/v1\/reports.*/ #Reporting Paths
670
+ if body.dig('message') == "com.zuora.rest.RestUsageException: The user does not have permissions for this API."
671
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response)
672
+ end
669
673
  end
670
674
  end
671
675
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.56"
2
+ VERSION = "1.7.57a"
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.56
4
+ version: 1.7.57a
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-03-03 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - ">"
186
186
  - !ruby/object:Gem::Version
187
- version: '0'
187
+ version: 1.3.1
188
188
  requirements: []
189
189
  rubygems_version: 3.0.3
190
190
  signing_key: