gotransverse-tract-api 0.7.3 → 0.7.4

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: 55d484a878c67280004af5c6716a43dc246328c6
4
- data.tar.gz: 095a7793ccb0fb6475c0e5bb9c4a847d5bef12ee
3
+ metadata.gz: 412b022eed460ee7a6fba9ccea3d6af95de9fb6d
4
+ data.tar.gz: a9d4498166810fb309ffc9b0e9a39bcb4f7d9299
5
5
  SHA512:
6
- metadata.gz: 44ff5f925a24282ce277f76f18c9be0c80cc1ca66a4d7e971e4c6ceed6c3a7c2c306f45f63a1a426db7f10544b580183b2f84195db88db92ee73b6eb85fbe9e0
7
- data.tar.gz: 72bf96c6bd4c17cbc83edd09974a60ed1c2742156d76e0ad8d9418b77193ccc7c2492ffbad51e1b1e2cbb26ea589118db35328c0dd166d2dbda6d6e3d852ca11
6
+ metadata.gz: 2d32a86ceb302fe9434cf3cf3c4889f3a9f221caafb1f8a0c786ec6e3a6318e90c7f2cd684213bc9395acc877b3ed2844c58bb3e4cdb79c6f3266785025db0e1
7
+ data.tar.gz: 8fc9410a44a658b0a3826705387f810377f1f3b2d1b6bbb8c6940e5357e42d6a7b9c57685a224135993a218dc0f17dbc0219714d910096c9f06d5993169032ec
@@ -48,7 +48,19 @@ module GoTransverseTractApi
48
48
  end
49
49
 
50
50
  if (address.has_key?(:postal_address))
51
- data.merge!({ postalAddress: address[:postal_address] })
51
+ postal_address = {
52
+ postalAddress: {
53
+ purpose: address[:postal_address][:purpose],
54
+ country: address[:postal_address][:country],
55
+ city: address[:postal_address][:city],
56
+ regionOrState: address[:postal_address][:region_or_state],
57
+ attention: address[:postal_address][:attention],
58
+ postalCode: address[:postal_address][:postal_code],
59
+ line1: address[:postal_address][:line1],
60
+ }.delete_if{|k,v| v.nil?}
61
+ }.delete_if{|k,v| v.nil?}
62
+
63
+ data.merge!({ postalAddress: postal_address[:postalAddress] })
52
64
  end
53
65
  if (address.has_key?(:email_address))
54
66
  data.merge!({ emailAddress: address[:email_address] })
@@ -56,7 +68,7 @@ module GoTransverseTractApi
56
68
  if (address.has_key?(:telecom_address))
57
69
  data.merge!({ telecomAddress: address[:telecom_address] })
58
70
  end
59
-
71
+
60
72
  xml_data = GoTransverseTractApi.generateXML(data, 'addAddressToParty')
61
73
  GoTransverseTractApi.post_request_for(self, {eid: eid}, xml_data, "addAddress")
62
74
  end
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-22 00:00:00.000000000 Z
12
+ date: 2016-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler