tessitura_rest 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessitura_rest/crm/addresses.rb +2 -5
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/session.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7239ac63fd5ea2459d26841cba74221de7f013e635e00db2478c535b9cc85531
|
4
|
+
data.tar.gz: 00cdbe05d03912367b86a2aae70995ef5a422c502a255c2abbaf54946d6af378
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd0fe8dc368d3595c366fe977da6c21784dd5e8af6fda3779fc2190c3b221a69250818b679ee828351deefb71eaee3a5d06112ec44cc99a768f7b6e1a96e8b25
|
7
|
+
data.tar.gz: 3885207317af26ed97bf5b1f338bf5ae18dc3eefbcca5c71fcd087f85e26e12817e85fa0e8a59e0436f8d194c64511455969dff522d490309f9e9f5cf03e0492
|
@@ -6,12 +6,9 @@ module Addresses
|
|
6
6
|
JSON.parse(response.body)
|
7
7
|
end
|
8
8
|
|
9
|
-
def get_all_addresses(constituent_id,
|
9
|
+
def get_all_addresses(constituent_id, options={})
|
10
10
|
options.merge!(basic_auth: @auth, headers: @headers)
|
11
|
-
response = self.class.get(base_api_endpoint("CRM/Addresses?constituentId=#{constituent_id}
|
12
|
-
includeInactive=#{inactive}&includeAffiliates=#{include_affiliate}
|
13
|
-
&primaryOnly=#{primary_only}&includeFromAffiliations=
|
14
|
-
#{include_from_affiliations}"), options)
|
11
|
+
response = self.class.get(base_api_endpoint("CRM/Addresses?constituentId=#{constituent_id}"), options)
|
15
12
|
JSON.parse(response.body)
|
16
13
|
end
|
17
14
|
|
@@ -70,4 +70,10 @@ module Session
|
|
70
70
|
options.merge!(:body => parameters)
|
71
71
|
self.class.post(base_api_endpoint("/Web/Session/#{key}/Login/SendCredentials"), options)
|
72
72
|
end
|
73
|
+
|
74
|
+
def get_shipping_methods(key, options={})
|
75
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
76
|
+
response = self.class.get(base_api_endpoint("Web/Session/#{key}/DeliveryMethods"), options)
|
77
|
+
JSON.parse(response.body)
|
78
|
+
end
|
73
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessitura_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|