zuora_api 1.7.56 → 1.7.57a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +2 -2
- data/lib/zuora_api/exceptions.rb +4 -0
- data/lib/zuora_api/login.rb +5 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f48a15a88a6eafff9e1055ed2d908f522b662f5660f6f49622ad71d7a717d724
|
4
|
+
data.tar.gz: 0a0cf9ff9a972445dee9ba38c4cb42dce4a13aafebe92b9dd5549d0fba2a5173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7312bf51c1de67b263cd637807eff552e64d66996801972eb8b57ca2aeca85399b5a3db18fc6be9461ff5d89436f09f8700cb7ca9ec468cea8166902f0760cc
|
7
|
+
data.tar.gz: ba510f3a1376d545f59623d92505617e1467f59840a16ad15d4244e2ba96cc1059cd3f05a6491864ef00d715202e7a91a69be9b92557fd29510fa8ec468618fb
|
data/.gitlab-ci.yml
CHANGED
@@ -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"
|
49
|
-
- if [[ "master"
|
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
|
data/lib/zuora_api/exceptions.rb
CHANGED
@@ -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
|
data/lib/zuora_api/login.rb
CHANGED
@@ -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.
|
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
|
|
data/lib/zuora_api/version.rb
CHANGED
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.
|
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-
|
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:
|
187
|
+
version: 1.3.1
|
188
188
|
requirements: []
|
189
189
|
rubygems_version: 3.0.3
|
190
190
|
signing_key:
|