zuora_api 1.3.9998 → 1.3.9999

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: 019fd712c31f3502a467072c8ce59395c14f2a75
4
- data.tar.gz: b8c4c4504817d387c11e69572e70d51a57bd7d64
3
+ metadata.gz: 04c2d98024dbb2a8780f809cff50aa60801cbad2
4
+ data.tar.gz: 07cbfbc3165f18fd8a3f7bc3fbf9ef4d482b97ee
5
5
  SHA512:
6
- metadata.gz: 23dfa1fa1f99e16ad3a53529964d068aebd9e69a2d6d7477b1ffdba0adcaad4f30054eee8202726fa731d52ae186f1caaad3fd21df54b1ae5a31796b3992a9cd
7
- data.tar.gz: 5b9271a4debd7602c01ebba79a96177267743eb4e7fe11c4a045e6b6536a0b236ff9b48e862297a58e1935d2b9264f3995bfcf7e37c8ea85c4e5402c1c88e097
6
+ metadata.gz: 877d93ac17fc7557db5b1e7918834be543d27c54ae29537c03eda61f0e3d2680ea4e622a0fd2c15c99ab530384a14ca7936f3dfd5b22ef83b6e3105c03654cc1
7
+ data.tar.gz: a2241236f3561c563baf0a97b30d72bf21cdb12171d1d805fabee37f2c061105275c09a7cb1527cbb38b5e348c731b9449fd8118f9639907da75d955fe379aa8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.3.9998)
4
+ zuora_api (1.3.9999)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -310,6 +310,11 @@ module ZuoraAPI
310
310
  raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{messages_array.join(', ')}")
311
311
  end
312
312
 
313
+ #Zuora REST Create Amendment error #Authentication failed
314
+ if body["faultcode"].present? && body["faultcode"] == "fns:INVALID_SESSION"
315
+ raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{body['faultstring']}")
316
+ end
317
+
313
318
  #Request exceeded limit
314
319
  if codes_array.map{|code| code.to_s.slice(6,7).to_i}.include?(70)
315
320
  raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{messages_array.join(', ')}")
@@ -326,8 +331,8 @@ module ZuoraAPI
326
331
  end
327
332
  end
328
333
 
334
+ #Zuora REST Actions error (Create, Update, Delete)
329
335
  if body.class == Array && (!body[0]["Success"])
330
- #Zuora REST Actions error (Create, Update, Delete)
331
336
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body[0]["Errors"][0]["Code"]}::#{body[0]["Errors"][0]["Message"]}")
332
337
  end
333
338
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.9998"
2
+ VERSION = "1.3.9999"
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.3.9998
4
+ version: 1.3.9999
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: 2017-10-06 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler