zuora_connect 3.0.2.pre.b → 3.0.2.pre.c

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: 88383fb37eab881d442eb16520cc71cf11c98456c4b66e6cc59bc46f8f60e625
4
- data.tar.gz: 741a1f55b33c8045d57902ed937fe98cfbfb63fa422f109228ac4d4bebef5cc8
3
+ metadata.gz: b0e687018b2dd593320481ce15b4e534d3e6c4225ed04347c1cfc14c3a701ec7
4
+ data.tar.gz: 84da0a199d5979deb74b1406fc10cdc823c6a4d12912b5a91151b01fa3af06d7
5
5
  SHA512:
6
- metadata.gz: 7d23d6d4c59108331e07c2e7c2003fa2c297ae166b5b7317d982220dff5a1845e99adc30cb93ff6d93976c5eec6442b6986e1db318e5f8f3353746d4d2d66704
7
- data.tar.gz: 6954dee8718c38bce95971b3f31e91cc377392bc83019ff6b0ca1964baaf91890c2b57a319edf208051b725b79a11a7dc44fb64ad54792f23c6733cf4b910373
6
+ metadata.gz: 64814f726751a7bb7101eb6ed45906af0a32de3f147de994eb2ffa9495a327f7650b4008477dbdcc745c97404ebf061c8a5802a4b6112dd438a881e38c753f7e
7
+ data.tar.gz: 6a82003bb099575c1f60f2f38ffbe5a0e17e0465b9f021b767ed92cd940750814324b3dcc395f00466e67b6bcecdf9e51aedc089894ca1b490bb7acb4c654bbb
@@ -28,6 +28,8 @@ module ZuoraConnect
28
28
  check_instance
29
29
  elsif ZuoraConnect::AppInstance::INTERNAL_HOSTS.include?(request.headers.fetch("HOST", nil)) && request.headers['zuora-host'].present?
30
30
  zuora_host, zuora_entity_id, zuora_instance_id = [request.headers['zuora-host'], (request.headers['zuora-entity-ids'] || "").gsub('-',''), request.headers['zuora-instance-id']]
31
+ zuora_host_mapping = {'origin-gateway.sbx.auw2.zuora.com' => 'rest.apisandbox.zuora.com', 'origin-gateway.prod.auw2.zuora.com' => 'rest.zuora.com'}
32
+ zuora_host = zuora_host_mapping[zuora_host] if zuora_host_mapping.keys.include?(zuora_host)
31
33
 
32
34
  #Validate entity-ids present
33
35
  if zuora_entity_id.blank?
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "3.0.2-b"
2
+ VERSION = "3.0.2-c"
3
3
  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.0.2.pre.b
4
+ version: 3.0.2.pre.c
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-27 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment