wix-hive-ruby 0.9.2 → 1.0.0

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +38 -11
  4. data/e2e/activities_api_spec.rb +97 -3
  5. data/e2e/contacts_api_spec.rb +74 -28
  6. data/e2e/e2e_helper.rb +7 -3
  7. data/e2e/redirects_api_spec.rb +7 -0
  8. data/e2e/sites_api_spec.rb +11 -0
  9. data/lib/hive/activities/contact/contact_create_activity.rb +1 -11
  10. data/lib/hive/activities/contact/contact_form_activity.rb +2 -2
  11. data/lib/hive/activities/contact/subscription_form_activity.rb +38 -0
  12. data/lib/hive/activities/conversion/conversion_complete_activity.rb +1 -1
  13. data/lib/hive/activities/e_commerce/cart_add_activity.rb +55 -0
  14. data/lib/hive/activities/e_commerce/cart_checkout_activity.rb +18 -0
  15. data/lib/hive/activities/e_commerce/cart_remove_activity.rb +22 -0
  16. data/lib/hive/activities/e_commerce/purchase_activity.rb +17 -1
  17. data/lib/hive/activities/factory.rb +11 -21
  18. data/lib/hive/activities/hotels/hotels_cancel_activity.rb +1 -1
  19. data/lib/hive/activities/hotels/hotels_confirmation_activity.rb +1 -1
  20. data/lib/hive/activities/hotels/hotels_purchase_activity.rb +1 -1
  21. data/lib/hive/activities/hotels/hotels_purchase_failed_activity.rb +1 -1
  22. data/lib/hive/activities/messaging/send_activity.rb +1 -1
  23. data/lib/hive/activities/music/album_fan_activity.rb +1 -1
  24. data/lib/hive/activities/music/album_played_activity.rb +1 -1
  25. data/lib/hive/activities/music/album_share_activity.rb +2 -2
  26. data/lib/hive/activities/music/track_lyrics_activity.rb +1 -1
  27. data/lib/hive/activities/music/track_play_activity.rb +1 -1
  28. data/lib/hive/activities/music/track_played_activity.rb +1 -1
  29. data/lib/hive/activities/music/track_share_activity.rb +2 -2
  30. data/lib/hive/activities/music/track_skipped_activity.rb +1 -1
  31. data/lib/hive/activities/scheduler/scheduler_appointment_activity.rb +12 -1
  32. data/lib/hive/activities/shipping/shipping_delivered_activity.rb +34 -0
  33. data/lib/hive/activities/shipping/shipping_shipped_activity.rb +109 -0
  34. data/lib/hive/activities/shipping/shipping_status_change_activity.rb +51 -0
  35. data/lib/hive/activities/shipping/shipping_status_changed_activity.rb +51 -0
  36. data/lib/hive/redirect.rb +19 -0
  37. data/lib/hive/rest/api.rb +4 -0
  38. data/lib/hive/rest/contacts.rb +2 -4
  39. data/lib/hive/rest/redirects.rb +13 -0
  40. data/lib/hive/rest/sites.rb +17 -0
  41. data/lib/hive/site.rb +33 -0
  42. data/lib/hive/version.rb +3 -3
  43. data/spec/hive/activities/contact/subscription_form_activity_spec.rb +15 -0
  44. data/spec/hive/activities/e_commerce/purchase_activity_spec.rb +4 -0
  45. data/spec/hive/activities/factory_spec.rb +16 -0
  46. data/spec/hive/activities/shipping/shipping_delivered_acitivty_spec.rb +10 -0
  47. data/spec/hive/activities/shipping/shipping_shipped_acitivty_spec.rb +21 -0
  48. data/spec/hive/activities/shipping/shipping_status_changed_acitivty_spec.rb +10 -0
  49. data/spec/hive/rest/contacts_spec.rb +10 -9
  50. data/spec/hive/rest/redirects_spec.rb +12 -0
  51. data/spec/hive/rest/sites_spec.rb +17 -0
  52. metadata +30 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c0a428e9d239062e4bed3ecd09e30c80d5e221
4
- data.tar.gz: 7456a654728360f4c7ecc7d265aab7c862beced0
3
+ metadata.gz: dcaac76a82c3515274db30612aef088800c4e1ea
4
+ data.tar.gz: 7b877ce543e8a2c5b83d012b98f30d61c2bfef9f
5
5
  SHA512:
6
- metadata.gz: 17922239717fc4db75d6c06a2190491e5a3ab903abd80d4bfca7ecccaf8ec9478c2d6fabdc7e53f070a5d29a926214a5914524a0935d599bc97154611491ce07
7
- data.tar.gz: fef830329b8e23d4284a3af80adc5c6822a5c70cb535ae708bfdca4ef38464d60cac0849f6c2a3fc27721c8d87aefd10ad91e8cd5916e0751274c08e749a75ee
6
+ metadata.gz: 5f09738bb2d9404c63299530dc8a4c6d2f2799decd12a220e58171957da5e0d0d80a54958063a38bd254e241ea242efaaefa517201898de2d5ed56889da8d407
7
+ data.tar.gz: 2da22c5af6291f5076d836297c82c070230a4b1bd2744ce600829fa7111b1dfbfe3a922bb9a429c2631a17823be6fe5a012919a3c006d1023a18df00462857d1
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 David Zuckerman
1
+ Copyright (c) 2014 Wix.com, Inc
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -54,13 +54,18 @@ A Ruby interface to the Wix Hive API.
54
54
  * **[Insights API](#insights-api)**
55
55
  * **[client.activities_summary](#clientactivities_summary)**
56
56
  * **[client.contact_activities_summary](#clientcontact_activities_summary)**
57
+ * **[Sites API](#sites-api)**
58
+ * **[client.sites_site](#clientsites_site)**
59
+ * **[client.sites_site_pages](#clientsites_site_pages)**
60
+ * **[Redirects API](#insights-api)**
61
+ * **[client.redirects](#clientredirects)**
57
62
  5. **[Contributing](#contributing)**
58
63
  * **[Submitting an Issue](#submitting-an-issue)**
59
64
  * **[Submitting a Pull Request](#submitting-a-pull-request)**
60
65
 
61
66
  ## Prerequisites
62
- - **Read about** [developing a third party app for the Wix platform](http://dev.wix.com/docs/display/DRAF/Third+Party+Apps+-+Introduction).
63
- - **Register your app** [here](http://dev.wix.com/docs/display/DRAF/Dev+Center+Registration+Guide) to **obtain** your **APP_KEY** and **APP_SECRET**
67
+ - **Read about** [developing a third party app for the Wix platform](http://dev.wix.com/docs/getting-started).
68
+ - **Register your app** [here](http://dev.wix.com/docs/publish/registration) to **obtain** your **APP_KEY** and **APP_SECRET**
64
69
 
65
70
  ## Installation
66
71
 
@@ -143,8 +148,8 @@ Hive::Client.new do |config|
143
148
  end
144
149
  ```
145
150
 
146
- 1. The `config.secret_key` and `config.app_id` are obtained by registering an app as it is outlined [here](http://dev.wix.com/docs/display/DRAF/Dev+Center+Registration+Guide)
147
- 2. The `config.instance_id` is obtained by decoding the signed app instance. Learn more about this [here](http://dev.wix.com/docs/display/DRAF/Using+the+Signed+App+Instance)
151
+ 1. The `config.secret_key` and `config.app_id` are obtained by registering an app as it is outlined [here](http://dev.wix.com/docs/publish/registration)
152
+ 2. The `config.instance_id` is obtained by decoding the signed app instance. Learn more about this [here](http://dev.wix.com/docs/infrastructure/app-instance#overview)
148
153
  * Note: The Hive client has a utility method that parses the instance data. Example usage:
149
154
  ``` ruby
150
155
  wixInstance = Hive::Client.parse_instance_data(INSTANCE, SECRET-KEY)
@@ -349,10 +354,11 @@ contact = Hive::Contact.new
349
354
  ```
350
355
 
351
356
  #### client.contact
357
+ Get a Contact by ID
352
358
 
353
359
  **Example:**
354
360
  ``` ruby
355
- client.contact(CONTACT_ID)
361
+ contact = client.contact(CONTACT_ID)
356
362
  ```
357
363
 
358
364
  #### client.update_contact (PENDING)
@@ -563,11 +569,6 @@ client.contact_activities(CONTACT_ID)
563
569
  ``` ruby
564
570
  client.contacts
565
571
  client.contacts( pageSize: 50 )
566
- client.contacts( tag: 'contacts_server/new' )
567
- client.contacts( email: 'alex@example.com' )
568
- client.contacts( phone: '123456789' )
569
- client.contacts( firstName: 'E2E' )
570
- client.contacts( lastName:'Cool' )
571
572
  ```
572
573
 
573
574
  #### client.upsert_contact
@@ -626,7 +627,33 @@ client.upsert_contact( phone: '123456789', email: 'alex@example.com' )
626
627
  **Example:**
627
628
  ``` ruby
628
629
  client.contact_activities_summary(CONTACT_ID)
630
+ ```
631
+
632
+ ### Sites API
633
+
634
+ #### client.sites_site
635
+
636
+ **Example:**
637
+ ``` ruby
638
+ client.sites_site
629
639
  ```
640
+
641
+ #### client.sites_site_pages
642
+
643
+ **Example:**
644
+ ``` ruby
645
+ client.sites_site_pages
646
+ ```
647
+
648
+ ### Redirects API
649
+
650
+ #### client.redirects
651
+
652
+ **Example:**
653
+ ``` ruby
654
+ client.redirects
655
+ ```
656
+
630
657
  ## Contributing
631
658
 
632
659
  **Everyone** is encouraged to help **improve** this gem. Some of the ways you can contribute include:
@@ -639,7 +666,7 @@ client.upsert_contact( phone: '123456789', email: 'alex@example.com' )
639
666
  6. Write code (**no patch is too small**: fix typos, clean up inconsistent whitespace).
640
667
  7. Refactor code.
641
668
  8. Fix [issues](https://github.com/wix/wix-hive-ruby/issues).
642
- 9. Submitt an Issue
669
+ 9. Submit an Issue
643
670
 
644
671
  ### Submitting an Issue
645
672
 
@@ -62,20 +62,44 @@ describe 'Activities API' do
62
62
  context 'create activities' do
63
63
  it 'CONTACT_CONTACT_FORM' do
64
64
 
65
- contacts_create = FACTORY::CONTACT_CONTACT_FORM.klass.new
66
- contacts_create.add_field(name: 'name', value: 'value')
65
+ contact_form = FACTORY::CONTACT_CONTACT_FORM.klass.new
66
+ contact_form.add_field(name: 'name', value: 'value')
67
67
 
68
68
  activity = Hive::Activity.new(
69
69
  type: FACTORY::CONTACT_CONTACT_FORM.type,
70
70
  locationUrl: 'http://www.wix.com',
71
71
  details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
72
- info: contacts_create)
72
+ info: contact_form)
73
73
 
74
74
  new_activity_result = client.new_activity(session_id, activity)
75
75
 
76
76
  expect(new_activity_result.activityId).to be_truthy
77
77
  end
78
78
 
79
+ it 'CONTACT_SUBSCRIPTION_FORM' do
80
+
81
+ email = 'karen@meep.com'
82
+ phone = '+1-555-555-555'
83
+ name = {prefix: 'sir', first: 'mix', middle: 'a lot', last: 'the', suffix: 'III'}
84
+
85
+ sub_form = FACTORY::CONTACT_SUBSCRIPTION_FORM.klass.new(email: email,
86
+ phone: phone,
87
+ name: name)
88
+
89
+ sub_form.add_field(name: 'name', value: 'value')
90
+ activity = Hive::Activity.new(
91
+ type: FACTORY::CONTACT_SUBSCRIPTION_FORM.type,
92
+ locationUrl: 'http://www.wix.com',
93
+ details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
94
+ info: sub_form
95
+ )
96
+
97
+
98
+ new_activity_result = client.new_activity(session_id, activity)
99
+
100
+ expect(new_activity_result.activityId).to be_truthy
101
+ end
102
+
79
103
  it 'CONVERSION_COMPLETE' do
80
104
  activity = Hive::Activity.new(
81
105
  type: FACTORY::CONVERSION_COMPLETE.type,
@@ -356,5 +380,75 @@ describe 'Activities API' do
356
380
 
357
381
  expect(new_activity_result.activityId).to be_truthy
358
382
  end
383
+
384
+ it 'SHIPPING_DELIVERED' do
385
+ item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
386
+
387
+ delivered = FACTORY::SHIPPING_DELIVERED.klass.new(orderId: '11111',
388
+ items: [item],
389
+ shippingDetails: {tracking: '123456'},
390
+ note: 'Note')
391
+
392
+ activity = Hive::Activity.new(
393
+ type: FACTORY::SHIPPING_DELIVERED.type,
394
+ locationUrl: 'http://www.wix.com',
395
+ details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
396
+ info: delivered)
397
+
398
+ new_activity_result = client.new_activity(session_id, activity)
399
+
400
+ expect(new_activity_result.activityId).to be_truthy
401
+ end
402
+
403
+ it 'SHIPPING_SHIPPED' do
404
+ shipping_address = {firstName: 'Wix' , lastName: 'Cool', email: 'wix@example.com', phone: '12345566', country: 'Macedonia', countryCode: 'MK', region: 'Bitola', regionCode: '7000', city: 'Bitola', address1: 'Marshal Tito', address2: 'Marshal Tito', zip: '7000', company: 'Wix.com'}
405
+ day_ago = (Time.now - (60 * 60 * 24)).iso8601(3)
406
+ delivery_estimate = { start: day_ago, end: Time.now.iso8601(3) }
407
+
408
+ shipping_details = {method: 'USPS', tracking: '123456', deliveryEstimate: delivery_estimate}
409
+ item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
410
+
411
+ delivered = FACTORY::SHIPPING_SHIPPED.klass.new(orderId: '11111',
412
+ items: [item],
413
+ shippingDetails: shipping_details,
414
+ shippingAddress: shipping_address,
415
+ note: 'Note')
416
+
417
+ activity = Hive::Activity.new(
418
+ type: FACTORY::SHIPPING_SHIPPED.type,
419
+ locationUrl: 'http://www.wix.com',
420
+ details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
421
+ info: delivered)
422
+
423
+ new_activity_result = client.new_activity(session_id, activity)
424
+
425
+ expect(new_activity_result.activityId).to be_truthy
426
+ end
427
+
428
+ it 'SHIPPING_STATUS_CHANGED' do
429
+ shipping_address = {firstName: 'Wix' , lastName: 'Cool', email: 'wix@example.com', phone: '12345566', country: 'Macedonia', countryCode: 'MK', region: 'Bitola', regionCode: '7000', city: 'Bitola', address1: 'Marshal Tito', address2: 'Marshal Tito', zip: '7000', company: 'Wix.com'}
430
+ day_ago = (Time.now - (60 * 60 * 24)).iso8601(3)
431
+ delivery_estimate = { start: day_ago, end: Time.now.iso8601(3) }
432
+
433
+ shipping_details = {method: 'USPS', tracking: '123456', deliveryEstimate: delivery_estimate}
434
+ item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
435
+
436
+ delivered = FACTORY::SHIPPING_STATUS_CHANGED.klass.new(orderId: '11111',
437
+ status: 'AWAITING_FULFILMENT',
438
+ items: [item],
439
+ shippingDetails: shipping_details,
440
+ shippingAddress: shipping_address,
441
+ note: 'Note')
442
+
443
+ activity = Hive::Activity.new(
444
+ type: FACTORY::SHIPPING_STATUS_CHANGED.type,
445
+ locationUrl: 'http://www.wix.com',
446
+ details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
447
+ info: delivered)
448
+
449
+ new_activity_result = client.new_activity(session_id, activity)
450
+
451
+ expect(new_activity_result.activityId).to be_truthy
452
+ end
359
453
  end
360
454
  end
@@ -53,29 +53,10 @@ describe 'Contacts API' do
53
53
  expect(client.contacts( pageSize: 50 ).results.size).to eq 50
54
54
  end
55
55
 
56
- it 'should be able to query by tag' do
57
- expect(client.contacts( tag: 'contacts_server/new' ).results.size).to be > 0
58
- end
59
-
60
- it 'should be able to query by email' do
61
- expect(client.contacts( email: 'alext@wix.com' ).results.size).to be > 0
62
- end
63
-
64
- it 'should be able to query by phone' do
65
- expect(client.contacts( phone: '123456789' ).results.size).to be > 0
66
- end
67
-
68
- it 'should be able to query by firstName' do
69
- expect(client.contacts( firstName: 'E2E' ).results.size).to be > 0
70
- end
71
-
72
- it 'should be able to query by lastName' do
73
- expect(client.contacts( lastName:'Cool' ).results.size).to be > 0
74
- end
75
56
  end
76
57
 
77
58
  it '.update_contact' do
78
- pending('HIVE-3')
59
+ pending('HAPI-3')
79
60
  contact = Hive::Contact.new
80
61
  contact.name.first = 'E2E'
81
62
  contact.name.last = 'Cool'
@@ -105,20 +86,85 @@ describe 'Contacts API' do
105
86
  end
106
87
 
107
88
  context '.upsert_contact' do
108
- it 'should upsert a contact given a phone' do
109
- expect(client.upsert_contact(phone: rand(10**10))).to include :contactId
89
+ it 'should return an existing Contact given its phone' do
90
+ contact = create_base_contact_and_return
91
+
92
+ phone = rand(10**10)
93
+ updated_phone = Hive::Phone.new
94
+ updated_phone.tag = 'test'
95
+ updated_phone.phone = phone
96
+
97
+ client.update_contact_phone(contact.id, contact.phones.first.id, updated_phone, contact.modifiedAt)
98
+
99
+ upsert_result = client.upsert_contact(phone: phone)
100
+
101
+ expect(upsert_result).to include :contactId
102
+ expect(upsert_result.contactId).to eq contact.id
110
103
  end
111
104
 
112
- it 'should upsert a contact given a email' do
113
- expect(client.upsert_contact(email: rand(36**10).to_s(36))).to include :contactId
105
+ it 'should return an existing Contact given its email' do
106
+ contact = create_base_contact_and_return
107
+
108
+ email = rand(36**10).to_s(36)
109
+ updated_email = Hive::Email.new
110
+ updated_email.tag = 'work'
111
+ updated_email.email = email
112
+ updated_email.emailStatus = 'optOut'
113
+
114
+ client.update_contact_email(contact.id, contact.emails.first.id, updated_email, contact.modifiedAt)
115
+
116
+ upsert_result = client.upsert_contact(email: email)
117
+
118
+ expect(upsert_result).to include :contactId
119
+ expect(upsert_result.contactId).to eq contact.id
114
120
  end
115
121
 
116
- it 'should upsert a contact given a email and phone' do
117
- expect(client.upsert_contact(phone: rand(10**10), email: rand(36**10).to_s(36))).to include :contactId
122
+ it 'should return the same Contact every time given same phone and userSessionToken' do
123
+
124
+ contact_phone_for_session = USER_SESSION_PHONE
125
+ token = USER_SESSION_TOKEN
126
+ upsert1_result = client.upsert_contact(phone: contact_phone_for_session, userSessionToken: token)
127
+ expect(upsert1_result).to include :contactId
128
+
129
+ upsert2_result = client.upsert_contact(phone: contact_phone_for_session, userSessionToken: token)
130
+ expect(upsert2_result).to include :contactId
131
+ expect(upsert2_result.contact_id).to eq upsert1_result.contact_id
132
+ end
133
+
134
+ it 'should return the same Contact every time given same email and userSessionToken' do
135
+
136
+ contact_email_for_session = USER_SESSION_EMAIL
137
+ token = USER_SESSION_TOKEN
138
+ upsert1_result = client.upsert_contact(email: contact_email_for_session, userSessionToken: token)
139
+ expect(upsert1_result).to include :contactId
140
+
141
+ upsert2_result = client.upsert_contact(email: contact_email_for_session, userSessionToken: token)
142
+ expect(upsert2_result).to include :contactId
143
+ expect(upsert2_result.contact_id).to eq upsert1_result.contact_id
118
144
  end
119
145
 
120
- it 'should return a contact given a exiting phone' do
121
- expect(client.upsert_contact(phone: '123456789', email: 'alext@wix.com')).to include :contactId
146
+ it 'should return an existing Contact given its email and phone' do
147
+ contact = create_base_contact_and_return
148
+
149
+ phone = rand(10**10)
150
+ updated_phone = Hive::Phone.new
151
+ updated_phone.tag = 'test'
152
+ updated_phone.phone = phone
153
+
154
+ client.update_contact_phone(contact.id, contact.phones.first.id, updated_phone, contact.modifiedAt)
155
+
156
+ email = rand(36**10).to_s(36)
157
+ updated_email = Hive::Email.new
158
+ updated_email.tag = 'work'
159
+ updated_email.email = email
160
+ updated_email.emailStatus = 'optOut'
161
+
162
+ client.update_contact_email(contact.id, contact.emails.first.id, updated_email, contact.modifiedAt)
163
+
164
+ upsert_result = client.upsert_contact(phone: phone, email: email)
165
+
166
+ expect(upsert_result).to include :contactId
167
+ expect(upsert_result.contactId).to eq contact.id
122
168
  end
123
169
  end
124
170
 
data/e2e/e2e_helper.rb CHANGED
@@ -3,6 +3,9 @@ require 'time'
3
3
  require 'vcr'
4
4
 
5
5
  RECORD_MODE = ENV['ACCEPTANCE'] ? :all : :new_episodes
6
+ USER_SESSION_EMAIL = 'USER_SESSION_EMAIL'
7
+ USER_SESSION_PHONE = 'USER_SESSION_PHONE'
8
+ USER_SESSION_TOKEN = 'USER_SESSION_TOKEN'
6
9
 
7
10
  VCR.configure do |c|
8
11
  c.cassette_library_dir = 'e2e/fixtures/vcr_cassettes'
@@ -24,8 +27,9 @@ end
24
27
 
25
28
  def client
26
29
  Hive::Client.new do |config|
27
- config.secret_key = 'YOUR_SECRET_KEY'
28
- config.app_id = 'YOUR_APP_ID'
29
- config.instance_id = 'YOUR_INSTANCE_ID'
30
+ config.secret_key = 'ffedea93-cd67-44d9-9784-f1ca39a001e9'
31
+ config.app_id = '13950910-451e-3d31-14ef-9e2901a24f8a'
32
+ config.instance_id = '13950958-34f4-65d3-1c4c-08cdf91b45a2'
33
+ #config.api_base = 'http://apu1.aus.wixpress.com:25780/app-integration-bus-web/backend'
30
34
  end
31
35
  end
@@ -0,0 +1,7 @@
1
+ require_relative './e2e_helper'
2
+
3
+ describe 'Redirects API' do
4
+ it '.redirects' do
5
+ expect(client.redirects).to be_a Hive::Redirects
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ require_relative './e2e_helper'
2
+
3
+ describe 'Sites API' do
4
+ it '.sites_site' do
5
+ expect(client.sites_site).to be_a Hive::Site
6
+ end
7
+
8
+ it '.sites_site_pages' do
9
+ expect(client.sites_site_pages).to be_a Hive::SitePages
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # THIS IS A GENERATED FILE, DO NOT EDIT THIS
2
- # Generated on 2014-10-01T07:31:22.131Z
2
+ # Generated on 2015-02-19T18:01:11.081Z
3
3
 
4
4
  require 'hashie'
5
5
  require 'hive/extensions/hashie_validate_enum'
@@ -7,16 +7,6 @@ require 'hive/extensions/hashie_validate_enum'
7
7
  module Hive
8
8
  module Activities
9
9
  module Contact
10
- class Name < Hashie::Trash
11
- include Hashie::Extensions::IgnoreUndeclared
12
-
13
- property :prefix
14
- property :first
15
- property :middle
16
- property :last
17
- property :suffix
18
- end
19
-
20
10
  class Company < Hashie::Trash
21
11
  include Hashie::Extensions::IgnoreUndeclared
22
12
 
@@ -1,5 +1,5 @@
1
1
  # THIS IS A GENERATED FILE, DO NOT EDIT THIS
2
- # Generated on 2014-10-01T07:31:22.097Z
2
+ # Generated on 2015-02-19T18:01:10.985Z
3
3
 
4
4
  require 'hashie'
5
5
  require 'hive/extensions/hashie_validate_enum'
@@ -14,7 +14,7 @@ module Hive
14
14
  property :value, required: true
15
15
  end
16
16
 
17
- class FormActivity < Hashie::Trash
17
+ class ContactFormActivity < Hashie::Trash
18
18
  include Hashie::Extensions::IgnoreUndeclared
19
19
  include Hashie::Extensions::Coercion
20
20