zuora_connect 3.2.9 → 3.2.11

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: 0452ecb76f32eef54e589335f091fe184ada0ba9b8ad1871f1a1b1e9829b1f18
4
- data.tar.gz: 31ff0fe165db7d17ed46c07ed19df02dbb29dd5289cfa06269819a9b5a7e6e69
3
+ metadata.gz: 7efc37130319f941b541835b6b7186c2638d24b0e5cf64c239d53a5aecf1eb3e
4
+ data.tar.gz: ffbe881cbf369a0091b5f2d001344ed9a943cf8828f64b0f97e7fa79161ac60b
5
5
  SHA512:
6
- metadata.gz: 8f59ea3a89c52828218fc69f578aba03f3f072c3c2ec1595643f8c77e49234b5d9fd93645d9a6a930b563e0e73c72fddbf87b2ce1ed831301d08d5137ab5653e
7
- data.tar.gz: fa86e877ae6f0b8d6f4f422a307c2e772a7a6406f904fa9f1b34be8060ceffd5889ba1af501276be2630859890df526d48c3e12269e6a034f430eecb5682996c
6
+ metadata.gz: 24eda6ee0b68e6fbaa7a34825fa82fad61bba1cd514396ba54690478335f9d11169c863f77b5e9bad3b5a28544a93a69e5dbb4c1e51b553917c7bd3b5fc3e967
7
+ data.tar.gz: 75c2f63d6fc26ead3c21ed85547843ef601726c8f81af49b871d822a290ac6d3cb387853e70f06453ee9b042de6c9c2c17611135da2bfc65a7b8b22b6a5f78c8
@@ -44,7 +44,7 @@ module ZuoraConnect
44
44
  end
45
45
 
46
46
  if appinstances.size == 0
47
- render json: {"status": 401, "message": "Missing mapping or no deployment for '#{zuora_host}-#{zuora_entity_id}' ."}, status: :unauthorized
47
+ render json: {"status": 404, "message": "Missing mapping or no deployment for '#{zuora_host}-#{zuora_entity_id}' ."}, status: 404
48
48
  return
49
49
  elsif appinstances.size > 1
50
50
  render json: {"status": 401, "message": "More than one app instance binded to host and entity ids. Please indicate correct instance via 'zuora-instance-id' header", "instances": appinstances.map {|instance| instance.id }.sort }, status: :unauthorized
@@ -71,6 +71,12 @@ module ZuoraConnect
71
71
  ZuoraConnect::ZuoraUser.current_org_ids = zuora_org_ids.split(',') if zuora_org_ids
72
72
 
73
73
  end
74
+ rescue ZuoraConnect::Exceptions::ConnectCommunicationError => ex
75
+ render json: {"status": 400, "message": ex.message}, status: 400
76
+ return
77
+ rescue ZuoraAPI::Exceptions::ZuoraAPIInternalServerError => ex
78
+ render json: {"status": 500, "message": ex.message}, status: 500
79
+ return
74
80
  end
75
81
 
76
82
  #API ONLY
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnect
4
- VERSION = "3.2.9"
4
+ VERSION = "3.2.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-04 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment