zuora_api 1.7.38 → 1.7.39

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: 245951e70587ae74ff17c01dcb5d8e887f55c6d701fc8bf754b2dd02c016147d
4
- data.tar.gz: 9a779fb7cbe240be90aa53e30de8d9f432e56f68c82d2aee1460c19e5ca5a7b3
3
+ metadata.gz: 8c02a1af0d497a7bed38912ecc58db806d13652bbf9ac9ee064886fa1172b666
4
+ data.tar.gz: 9a7efe4d266d8f9698711c14cb7f3228339c787f90fce8b88acba79f82efa10e
5
5
  SHA512:
6
- metadata.gz: 20a51ad86ce033130aaa911b72703fce1b3ac3a98ff701c15d208b3edb5aaf1465730f78da4648d68b8ff7ef8b085997a82537e515871b5f95e6ea7f4145dfb7
7
- data.tar.gz: 74774a78e29548fb79dec4f5782ce6fd1375a6ac6b5433ebd5cbf434c80488930de039803534fb618af26e244976151a9f2e481eb176dec5b32495458b5da92a
6
+ metadata.gz: 4195b814d27376ad634671925a8924edc7036c042792f73129cc860e83130885ec974817dec2b791bc2b87f7aff238e0ce0b4846aca6ff81e14507c9c68650a3
7
+ data.tar.gz: 4e559c219016a52201ca4d639ae98218cbb9321460b2d26dc0a8275c5c26b0055124ff0e56cc23642f25be63ad0ac3875016377dd80d8c2d76e6a1884ea21ca1
@@ -689,7 +689,11 @@ module ZuoraAPI
689
689
  raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new('Zuora API Internal Server Error', response)
690
690
  end
691
691
  elsif ![200,201].include?(response.code)
692
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{response.message}", response)
692
+ if 403 == response.code && response.body.include?("Forbidden")
693
+ raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(response.body, response)
694
+ else
695
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(response.body, response)
696
+ end
693
697
  end
694
698
  end
695
699
  end
@@ -747,7 +751,7 @@ module ZuoraAPI
747
751
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
748
752
  end
749
753
  when /.*UNKNOWN_ERROR/
750
- if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
754
+ if /payment\/refund|Credit Balance Adjustment|Payment Gateway|ARSettlement permission/.match(message).nil?
751
755
  raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new(message, response, errors, success)
752
756
  else
753
757
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.38"
2
+ VERSION = "1.7.39"
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.38
4
+ version: 1.7.39
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-01-15 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler