tessitura_rest 0.7.9 → 0.8

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
  SHA256:
3
- metadata.gz: 3ceea7ad3329bc14ce2cb3227f84a6169102a15b475deb8a909b81d47bb1de7d
4
- data.tar.gz: 1f8e1059a28a178259cc459817d1c90ccd99f90fd694223f0a011efc1e8163ec
3
+ metadata.gz: 13604ccbc3d66c08e47b8c0478f289d413bb54f65c5bd41e6b3ea8e96de234de
4
+ data.tar.gz: 9320bdfe4d3516ce09297c82bbe81d2cd70bbee81492159feda889049f261a20
5
5
  SHA512:
6
- metadata.gz: 77a696486fa373479de3d2ae1916d2bee9c9001c86d8dc5b72fc4115e4265996e74b8a21da05b15a4636b56f5f9d9cd50cc31e7affb25685d34fc0d23edb3b00
7
- data.tar.gz: a31ec251bf695c1bb2d7a60ef5176f5d16a379953c15ea94364b237aa63d739289a9560a35cc4c6fe56ad977863335be11f2b7238333e8e5ef2a8131c856986e
6
+ metadata.gz: d86d5b7239fbef5f40a4396243a6e7120a7125469947d3c49a8304f44f818bacc9c8296a96bed46104143c4654a677a4e9e48a4f700115e14af68755f7cd139b
7
+ data.tar.gz: 7c7b45987db21ed4edf25b59ceaaa86a766e572ffb45a1d5bf68f9b12f27de0b078c57b0e255c570aa8ffb481583bb59d98d026f1bf53af71a1fb423162b1a60
@@ -31,6 +31,7 @@ class TessituraRest
31
31
  include ProductionExtension
32
32
  include ProductKeywords
33
33
  include ProductionSeason
34
+ include Registration
34
35
  include Sections
35
36
  include Session
36
37
  include SecurityUserGroups
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.9'
2
+ VERSION = '0.8'
3
3
  end
@@ -0,0 +1,40 @@
1
+ module Registration
2
+
3
+ def register_user(session_key, address, first_name, last_name, email, password, special_offer, phone, options={})
4
+ parameters =
5
+ {
6
+ 'FirstName': first_name,
7
+ 'LastName': last_name,
8
+ 'ElectronicAddress': {
9
+ 'Address': email,
10
+ },
11
+ 'EmarketIndicatorId': special_offer,
12
+ 'WebLogin': {
13
+ 'Login': email,
14
+ 'LoginTypeId': 1,
15
+ 'Password': password
16
+ },
17
+ 'Address': {
18
+ 'AddressTypeId': 3,
19
+ 'City': address.city,
20
+ 'PostalCode': address.postal_code,
21
+ 'StateId': address.state,
22
+ 'Street1': address.street1,
23
+ 'Street2': address.street2,
24
+ 'CountryId': address.country
25
+ },
26
+ 'ConstituentTypeId': 1,
27
+ 'OriginalSourceId': 3,
28
+ 'Phones': [
29
+ {
30
+ 'PhoneNumber': phone,
31
+ 'PhoneTypeId': 1
32
+ },
33
+ ],
34
+ }
35
+ options.merge!(basic_auth: @auth, headers: @headers)
36
+ options.merge!(body: parameters)
37
+ self.class.post(base_api_endpoint("Web/Registration/#{session_key}/Register"), options)
38
+ end
39
+
40
+ 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.7.9
4
+ version: '0.8'
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-11-11 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -161,6 +161,7 @@ files:
161
161
  - lib/tessitura_rest/web/cart.rb
162
162
  - lib/tessitura_rest/web/login.rb
163
163
  - lib/tessitura_rest/web/payment_plan_extension.rb
164
+ - lib/tessitura_rest/web/registration.rb
164
165
  - lib/tessitura_rest/web/session.rb
165
166
  - tessitura_rest.gemspec
166
167
  homepage: https://github.com/pgharts/tessitura