gotransverse-tract-api 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 412b022eed460ee7a6fba9ccea3d6af95de9fb6d
|
4
|
+
data.tar.gz: a9d4498166810fb309ffc9b0e9a39bcb4f7d9299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|