moxiworks_platform 0.10.4 → 0.11.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3fe438b73c550ab34b50f562a7bae4c7d0e2091
4
- data.tar.gz: b21715a1053bcf39630c9043a39cb968e5d68fde
3
+ metadata.gz: 7431c848e4b2dd54bc300f9cb1c97347d1a43b5f
4
+ data.tar.gz: 49b6e68c84afd0d7ed8fb6b2bce9b08ea62db8d3
5
5
  SHA512:
6
- metadata.gz: 398d1f63a98060ab5d5cd0e7bce1f958c8b65158aa2345d96f3cb9c0b317dc0aab6eed29f509fc14d6e7a420128f0ef292529baf1e9eb161d6eaa75632e189f4
7
- data.tar.gz: f11f7d012d05c731ab8f3a9614e0800b2d69fcd2569358ead129096a1b157372e263a378e6bb12f556162ff74eac273f83fdacadc95551cd7a92999d45831ecc
6
+ metadata.gz: 7344c9f350a6822776fbc9fe0a1202876e2a85e5b4af416ec2f7863e6a31ba816c1765538e6a6f0027a0a506e470c56a5c60f66c99f43951a87293a1f5974594
7
+ data.tar.gz: 19bccbec76e8ff2bbeac644fd3d33ede25a48463b257b08a2d8916021a4e010a2066b885903b35597239558b997f54e6fd06d343efb15b9de24e36c701483b21
@@ -16,6 +16,7 @@ require 'moxiworks_platform/listing'
16
16
  require 'moxiworks_platform/office'
17
17
  require 'moxiworks_platform/buyer_transaction'
18
18
  require 'moxiworks_platform/seller_transaction'
19
+ require 'moxiworks_platform/brand'
19
20
 
20
21
 
21
22
  module MoxiworksPlatform
@@ -16,6 +16,21 @@ module MoxiworksPlatform
16
16
  # @return [String] the UUID of the office which the Agent is associated
17
17
  attr_accessor :moxi_works_office_id
18
18
 
19
+ # @!attribute string the id of the agent used by the company of the agent
20
+ #
21
+ # @return [String] the UUID of the office which the Agent is associated
22
+ attr_accessor :client_agent_id
23
+
24
+ # @!attribute string the id office used by the company of the agent
25
+ #
26
+ # @return [String] the internal of the office which the Agent is associated used by the company
27
+ attr_accessor :client_office_id
28
+
29
+ # @!attribute string the id of the company used by the company of the agent
30
+ #
31
+ # @return [String] the UUID of the office which the Agent is associated
32
+ attr_accessor :client_company_id
33
+
19
34
  # @!attribute address_street
20
35
  #
21
36
  # @return [String] the agent's address, street and number
@@ -0,0 +1,135 @@
1
+ module MoxiworksPlatform
2
+ # = Moxi Works Platform Brand
3
+ class Brand < MoxiworksPlatform::Resource
4
+
5
+ # @!attribute URL to logo for the company
6
+ #
7
+ # @return [String]
8
+ attr_accessor :image_logo
9
+
10
+ # @!attribute HTML hexadecimal color code of the presentation accent color for the company
11
+ #
12
+ # @return [String]
13
+ attr_accessor :cma_authoring_color
14
+
15
+ # @!attribute HTML hexadecimal color code of the background color for the company
16
+ #
17
+ # @return [String]
18
+ attr_accessor :background_color
19
+
20
+ # @!attribute HTML hexadecimal color code of the background font color for the company
21
+ #
22
+ # @return [String]
23
+ attr_accessor :background_font_color_primary
24
+
25
+ # @!attribute HTML hexadecimal color code of the background color for buttons displayed
26
+ #
27
+ # @return [String]
28
+ attr_accessor :button_background_color
29
+
30
+ # @!attribute HTML hexadecimal color code of the font color for buttons displayed
31
+ #
32
+ # @return [String]
33
+ attr_accessor :button_font_color
34
+
35
+ # @!attribute copyright declaration for the company. This could include embedded HTML and so should be rendered as if it did.
36
+ #
37
+ # @return [String]
38
+ attr_accessor :copyright
39
+
40
+ # @!attribute HTML the display name for the company as to be presented to end users
41
+ #
42
+ # @return [String]
43
+ attr_accessor :display_name
44
+
45
+ # @!attribute HTML hexadecimal color code of the background color of email elements for the company
46
+ #
47
+ # @return [String]
48
+ attr_accessor :email_element_background_color
49
+
50
+ # @!attribute URL to a logo suitable for placement on a white background (i.e. printing)
51
+ #
52
+ # @return [String]
53
+ attr_accessor :image_cma_pdf_logo_header
54
+
55
+ # @!attribute URL to a logo suitable for placement over the company's email element background color
56
+ #
57
+ # @return [String]
58
+ attr_accessor :image_email_logo_alt
59
+
60
+ # @!attribute URL to a favicon image
61
+ #
62
+ # @return [String]
63
+ attr_accessor :image_favicon
64
+
65
+ # @!attribute URL to a logo suitable for placement over $pres_block_background_color
66
+ #
67
+ # @return [String]
68
+ attr_accessor :image_pres_cover_logo
69
+
70
+ # @!attribute HTML hexadecimal color code of the background color for the company used in block elements of the company's presentations
71
+ #
72
+ # @return [String]
73
+ attr_accessor :pres_block_background_color
74
+
75
+ # @!attribute HTML hexadecimal color code of a text color suitable for placement over $pres_block_background_color
76
+ #
77
+ # @return [String]
78
+ attr_accessor :pres_block_text_color
79
+
80
+ # Find an Brand on the Moxi Works Platform
81
+ # @param [Hash] opts named parameter Hash
82
+ # @option opts [String] :moxi_works_company_id *REQUIRED* The Moxi Works Brand ID for the brand
83
+ #
84
+ # @return [MoxiworksPlatform::Brand]
85
+ #
86
+ # @raise ::MoxiworksPlatform::Exception::ArgumentError if required
87
+ # named parameters aren't included
88
+ #
89
+ def self.find(opts={})
90
+ required_opts = [:moxi_works_company_id]
91
+ raise ::MoxiworksPlatform::Exception::ArgumentError,
92
+ 'arguments must be passed as named parameters' unless opts.is_a? Hash
93
+ required_opts.each do |opt|
94
+ raise ::MoxiworksPlatform::Exception::ArgumentError, "#{opt} required" if
95
+ opts[opt].nil? or opts[opt].to_s.empty?
96
+ end
97
+ url = "#{MoxiworksPlatform::Config.url}/api/brands/#{opts[:moxi_works_company_id]}"
98
+ self.send_request(:get, opts, url)
99
+ end
100
+
101
+
102
+ # Search For Brands in Moxi Works Platform
103
+ # @param [Hash] opts named parameter Hash
104
+ # @option opts [String] :moxi_works_company_id The Moxi Works Company ID For the search (use Company.search to determine available moxi_works_company_id)
105
+ # @option opts [String] :moxi_works_agent_id The Moxi Works Agent ID For the search (use Agent.search to determine available moxi_works_agent_id)
106
+ #
107
+ #
108
+ # optional Search parameters
109
+ #
110
+ # @option opts [Integer] :page_number the page of results to return
111
+ #
112
+ # @return [MoxiworksPlatform::Brand]
113
+ #
114
+ # @raise ::MoxiworksPlatform::Exception::ArgumentError if required
115
+ # named parameters aren't included
116
+ #
117
+ # @example
118
+ # results = MoxiworksPlatform::Brand.search(
119
+ # moxi_works_company_id: 'the_company',
120
+ # )
121
+ #
122
+ def self.search(opts={})
123
+ self.send_request(:get, opts)
124
+ end
125
+
126
+
127
+ def self.send_request(method, opts={}, url=nil)
128
+ url ||= "#{MoxiworksPlatform::Config.url}/api/brands"
129
+ super(method, opts, url)
130
+ end
131
+
132
+
133
+ end
134
+ end
135
+
@@ -116,6 +116,41 @@ module MoxiworksPlatform
116
116
  # @return [String] -- Default ''
117
117
  attr_accessor :occupation
118
118
 
119
+ # @!attribute is_new_contact
120
+ # Whether the contact was recently added to the Agent's database.
121
+ #
122
+ # @return [Boolean]
123
+ attr_accessor :is_new_contact
124
+
125
+ # @!attribute birthday
126
+ # Birthday of the contact represented as a Unix Timestamp.
127
+ #
128
+ # @return [Integer]
129
+ attr_accessor :birthday
130
+
131
+ # @!attribute anniversary
132
+ # Anniversary of the contact represented as a Unix Timestamp.
133
+ #
134
+ # @return [Integer]
135
+ attr_accessor :anniversary
136
+
137
+ # @!attribute home_purchase_anniversary
138
+ # Anniversary of the contact's home purchase represented as a Unix Timestamp.
139
+ #
140
+ # @return [Integer]
141
+ attr_accessor :home_purchase_anniversary
142
+
143
+ # @!attribute social_media_profiles
144
+ # URLs to any social media profiles that the agent has defined.
145
+ #
146
+ # The structure of each social media profile entry will be a Hash with the following
147
+ # format
148
+ #
149
+ # { 'key': 'KEY_VAL_AS_STRING', 'url': 'URL_OF_SOCIAL_MEDIA_PROFILE' }
150
+ #
151
+ # @return [Array]
152
+ attr_accessor :social_media_profiles
153
+
119
154
  # @!attribute partner_agent_id
120
155
  # your system's unique identifier for the agent that this contact will be associated with
121
156
  #
@@ -478,6 +513,7 @@ module MoxiworksPlatform
478
513
  # @option opts [String] :contact_name full name of the contact
479
514
  # @option opts [String] :email_address full email address of the contact
480
515
  # @option opts [String] :phone_number full phone number of the contact
516
+ # @option opts [Integer] :updated_since return all Contacts updated after this Unix timestamp
481
517
  #
482
518
  # @return [Array] containing MoxiworkPlatform::Contact objects
483
519
  #
@@ -1,3 +1,3 @@
1
1
  module MoxiworksPlatform
2
- VERSION = '0.10.4'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxiworks_platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tres Wong-Godfrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -85,6 +85,7 @@ files:
85
85
  - lib/moxiworks_platform.rb
86
86
  - lib/moxiworks_platform/action_log.rb
87
87
  - lib/moxiworks_platform/agent.rb
88
+ - lib/moxiworks_platform/brand.rb
88
89
  - lib/moxiworks_platform/buyer_transaction.rb
89
90
  - lib/moxiworks_platform/company.rb
90
91
  - lib/moxiworks_platform/config.rb