zuora_api 1.7.30 → 1.7.31

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: '088c69a0893c51d7bb989964195a37e91f83f986ea868f731ca95f40955cd766'
4
- data.tar.gz: 32b45fea982e3d2cef187204de2a79d0c4675fb9cfbf650aefd8fab93352e275
3
+ metadata.gz: 8f8c03b987d9c65956ade827116a216125ad9f90f2ff55d2a1f056bfe39333c0
4
+ data.tar.gz: c67adb9206b235ec4fee409127208d026264832d948a3871b8c132e0bbc90166
5
5
  SHA512:
6
- metadata.gz: 47fe26f1a93d812899e64b2538df370079796a8a24cb07af26bb06d9433540bf0c9bd72e3c7433bcc720e3fe6a25e5ab3ebcc89a2e5a051e090212c21b6edc9c
7
- data.tar.gz: 71836a1d0decc3efdd966fb3b858a3eddddf4e04e66db04288ca03b48f1b37fbae939846381eb48ae86585c611c2fe4e054696ed78b18380fbeacf3afb622587
6
+ metadata.gz: f23b6d8c53ba1b77f89ab471aa1b58715e213f365a9ffe03b25aa64f3817dfd4b6fd854ab286dc7fe6a279a62fc87664bd41513ea130fcb793128e2daabd9a55
7
+ data.tar.gz: a844da8425af9f42fb02a3dbff726709f475d8f2971cf7bc6a5d30e457707ff9eff32115b67d56483abe04ae2ba3bec696d8cae3aa3754b67bc00a905745d74c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.7.30)
4
+ zuora_api (1.7.31)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 6)
@@ -39,7 +39,7 @@ GEM
39
39
  docile (1.3.1)
40
40
  erubi (1.9.0)
41
41
  hashdiff (0.3.7)
42
- httparty (0.17.1)
42
+ httparty (0.17.3)
43
43
  mime-types (~> 3.0)
44
44
  multi_xml (>= 0.5.2)
45
45
  i18n (1.7.0)
@@ -49,6 +49,8 @@ module ZuoraAPI
49
49
  @message = "Payment status should be Processed."
50
50
  when /Adjustment cannot be created for invoice(.*) with a zero balance./
51
51
  @message = "Adjustment cannot be created for invoice with a zero balance."
52
+ when /The balance of all the invoice items and tax items is 0. No write-off is needed for the invoice .*./
53
+ @message = "The balance of all the invoice items and tax items is 0. No write-off is needed for the invoice."
52
54
  else
53
55
  @message = message
54
56
  end
@@ -716,7 +716,7 @@ module ZuoraAPI
716
716
  if message.include?("optimistic locking failed")
717
717
  raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(message, response, errors, success)
718
718
  else
719
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success)
719
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
720
720
  end
721
721
  when /.*TEMPORARY_ERROR/
722
722
  raise ZuoraAPI::Exceptions::ZuoraAPITemporaryError.new("#{error}::#{message}", response, errors, success)
@@ -728,11 +728,11 @@ module ZuoraAPI
728
728
  end
729
729
  when /.*UNKNOWN_ERROR/
730
730
  if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
731
- raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new("#{error}::#{message}", response, errors, success)
731
+ raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new(message, response, errors, success)
732
732
  else
733
733
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
734
734
  end
735
- when /INVALID_ID/, /MAX_RECORDS_EXCEEDED/, /INVALID_FIELD/, /MALFORMED_QUERY/, /NO_PERMISSION/, /PDF_QUERY_ERROR/, /MISSING_REQUIRED_VALUE/, /INVALID_TYPE/
735
+ when /INVALID_ID/, /MAX_RECORDS_EXCEEDED/, /INVALID_FIELD/, /MALFORMED_QUERY/, /NO_PERMISSION/, /PDF_QUERY_ERROR/, /MISSING_REQUIRED_VALUE/, /INVALID_TYPE/, /TRANSACTION_FAILED/
736
736
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
737
737
  when /.*soapenv:Server.*/
738
738
  raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("#{error}::#{message}", response, errors, success)
@@ -89,7 +89,7 @@ module ZuoraAPI
89
89
 
90
90
  return self.status
91
91
 
92
- rescue ZuoraAPI::Exceptions::ZuoraUnexpectedError => ex
92
+ rescue ZuoraAPI::Exceptions::ZuoraAPIInternalServerError => ex
93
93
  raise ex if tries.zero?
94
94
 
95
95
  tries -= 1
@@ -101,7 +101,7 @@ module ZuoraAPI
101
101
  self.current_error = ex.message
102
102
  case ex.message
103
103
  when "Forbidden"
104
- self.current_error = "The user associated to OAuth credential, '#{self.oauth_client_id}', set has been deactivated."
104
+ self.current_error = "The user associated to OAuth credential set has been deactivated."
105
105
  self.status = 'Deactivated'
106
106
  else
107
107
  self.current_error = "Invalid login, please check client ID and Client Secret or URL endpoint"
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.30"
2
+ VERSION = "1.7.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.30
4
+ version: 1.7.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group