alula-ruby 0.50.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +14 -0
- data/.env.example +8 -0
- data/.github/workflows/gem-push.yml +45 -0
- data/.gitignore +23 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Dockerfile +6 -0
- data/Gemfile +12 -0
- data/Guardfile +42 -0
- data/README.md +423 -0
- data/Rakefile +6 -0
- data/VERSION.md +84 -0
- data/alula-docker-compose.yml +80 -0
- data/alula.gemspec +38 -0
- data/bin/console +15 -0
- data/bin/docparse +36 -0
- data/bin/genresource +79 -0
- data/bin/setup +8 -0
- data/bin/testauth +24 -0
- data/bin/testprep +9 -0
- data/data/docs/Alula_API_Documentation_2021-04-06.html +16240 -0
- data/docker-compose.yml +11 -0
- data/lib/alula/alula_response.rb +20 -0
- data/lib/alula/api_operations/delete.rb +52 -0
- data/lib/alula/api_operations/list.rb +45 -0
- data/lib/alula/api_operations/request.rb +44 -0
- data/lib/alula/api_operations/save.rb +81 -0
- data/lib/alula/api_resource.rb +196 -0
- data/lib/alula/client.rb +142 -0
- data/lib/alula/errors.rb +169 -0
- data/lib/alula/filter_builder.rb +271 -0
- data/lib/alula/helpers/device_attribute_translations.rb +68 -0
- data/lib/alula/list_object.rb +64 -0
- data/lib/alula/meta.rb +16 -0
- data/lib/alula/monkey_patches.rb +24 -0
- data/lib/alula/oauth.rb +118 -0
- data/lib/alula/pagination.rb +25 -0
- data/lib/alula/procedures/dealer_device_stats_proc.rb +16 -0
- data/lib/alula/procedures/dealer_restore_proc.rb +25 -0
- data/lib/alula/procedures/dealer_suspend_proc.rb +25 -0
- data/lib/alula/procedures/device_assign_proc.rb +23 -0
- data/lib/alula/procedures/device_cellular_history_proc.rb +33 -0
- data/lib/alula/procedures/device_rateplan_get_proc.rb +21 -0
- data/lib/alula/procedures/device_register_proc.rb +31 -0
- data/lib/alula/procedures/device_signal_add_proc.rb +42 -0
- data/lib/alula/procedures/device_signal_delivered_proc.rb +31 -0
- data/lib/alula/procedures/device_signal_update_proc.rb +32 -0
- data/lib/alula/procedures/device_unassign_proc.rb +16 -0
- data/lib/alula/procedures/device_unregister_proc.rb +21 -0
- data/lib/alula/procedures/upload_touchpad_branding_proc.rb +24 -0
- data/lib/alula/procedures/user_plansvideo_price_get.rb +21 -0
- data/lib/alula/procedures/user_transfer_accept.rb +19 -0
- data/lib/alula/procedures/user_transfer_authorize.rb +18 -0
- data/lib/alula/procedures/user_transfer_cancel.rb +18 -0
- data/lib/alula/procedures/user_transfer_deny.rb +19 -0
- data/lib/alula/procedures/user_transfer_reject.rb +19 -0
- data/lib/alula/procedures/user_transfer_request.rb +19 -0
- data/lib/alula/query_interface.rb +142 -0
- data/lib/alula/rate_limit.rb +11 -0
- data/lib/alula/relationship_attributes.rb +107 -0
- data/lib/alula/resource_attributes.rb +206 -0
- data/lib/alula/resources/admin_user.rb +207 -0
- data/lib/alula/resources/billing_program.rb +41 -0
- data/lib/alula/resources/dealer.rb +218 -0
- data/lib/alula/resources/dealer_account_transfer.rb +172 -0
- data/lib/alula/resources/dealer_address.rb +89 -0
- data/lib/alula/resources/dealer_branding.rb +226 -0
- data/lib/alula/resources/dealer_program.rb +75 -0
- data/lib/alula/resources/dealer_suspension_log.rb +49 -0
- data/lib/alula/resources/device.rb +716 -0
- data/lib/alula/resources/device_cellular_status.rb +134 -0
- data/lib/alula/resources/device_charge.rb +70 -0
- data/lib/alula/resources/device_event_log.rb +167 -0
- data/lib/alula/resources/device_program.rb +54 -0
- data/lib/alula/resources/event_trigger.rb +75 -0
- data/lib/alula/resources/event_webhook.rb +47 -0
- data/lib/alula/resources/feature_bysubject.rb +74 -0
- data/lib/alula/resources/feature_plan.rb +57 -0
- data/lib/alula/resources/feature_planvideo.rb +54 -0
- data/lib/alula/resources/feature_price.rb +46 -0
- data/lib/alula/resources/receiver_connection.rb +95 -0
- data/lib/alula/resources/receiver_group.rb +74 -0
- data/lib/alula/resources/revision.rb +91 -0
- data/lib/alula/resources/self.rb +61 -0
- data/lib/alula/resources/station.rb +130 -0
- data/lib/alula/resources/token_exchange.rb +34 -0
- data/lib/alula/resources/user.rb +229 -0
- data/lib/alula/resources/user_address.rb +121 -0
- data/lib/alula/resources/user_phone.rb +116 -0
- data/lib/alula/resources/user_preferences.rb +57 -0
- data/lib/alula/resources/user_pushtoken.rb +75 -0
- data/lib/alula/resources/user_videoprofile.rb +38 -0
- data/lib/alula/rest_resource.rb +17 -0
- data/lib/alula/rpc_resource.rb +40 -0
- data/lib/alula/rpc_response.rb +14 -0
- data/lib/alula/singleton_rest_resource.rb +26 -0
- data/lib/alula/util.rb +107 -0
- data/lib/alula/version.rb +5 -0
- data/lib/alula.rb +135 -0
- data/lib/parser.rb +199 -0
- metadata +282 -0
@@ -0,0 +1,218 @@
|
|
1
|
+
module Alula
|
2
|
+
class Dealer < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::List
|
7
|
+
extend Alula::ApiOperations::Save
|
8
|
+
|
9
|
+
resource_path 'dealers'
|
10
|
+
type 'dealers'
|
11
|
+
|
12
|
+
# Relationships
|
13
|
+
relationship :devices, type: 'devices', cardinality: 'To-many'
|
14
|
+
relationship :users, type: 'users', cardinality: 'To-many'
|
15
|
+
relationship :address, type: 'dealers-addresses', cardinality: 'To-one'
|
16
|
+
# relationship :phone, type: 'dealers-phones', cardinality: 'To-one'
|
17
|
+
|
18
|
+
# Resource Fields
|
19
|
+
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
20
|
+
# on how params are parsed,
|
21
|
+
field :id,
|
22
|
+
type: :string,
|
23
|
+
sortable: false,
|
24
|
+
filterable: false,
|
25
|
+
creatable_by: [],
|
26
|
+
patchable_by: []
|
27
|
+
|
28
|
+
field :station_id,
|
29
|
+
type: :string,
|
30
|
+
sortable: false,
|
31
|
+
filterable: true,
|
32
|
+
creatable_by: [:system, :station],
|
33
|
+
patchable_by: [:system]
|
34
|
+
|
35
|
+
field :company_name,
|
36
|
+
type: :string,
|
37
|
+
sortable: true,
|
38
|
+
filterable: true,
|
39
|
+
creatable_by: [:system, :station],
|
40
|
+
patchable_by: [:system, :station, :dealer]
|
41
|
+
|
42
|
+
field :date_entered,
|
43
|
+
type: :date,
|
44
|
+
sortable: true,
|
45
|
+
filterable: true,
|
46
|
+
creatable_by: [],
|
47
|
+
patchable_by: []
|
48
|
+
|
49
|
+
field :date_modified,
|
50
|
+
type: :date,
|
51
|
+
sortable: true,
|
52
|
+
filterable: true,
|
53
|
+
creatable_by: [],
|
54
|
+
patchable_by: [:system, :station, :dealer]
|
55
|
+
|
56
|
+
field :modified_by,
|
57
|
+
type: :string,
|
58
|
+
sortable: false,
|
59
|
+
filterable: false,
|
60
|
+
creatable_by: [],
|
61
|
+
patchable_by: [:system, :station, :dealer]
|
62
|
+
|
63
|
+
field :entered_by,
|
64
|
+
type: :string,
|
65
|
+
sortable: false,
|
66
|
+
filterable: false,
|
67
|
+
creatable_by: [],
|
68
|
+
patchable_by: []
|
69
|
+
|
70
|
+
field :network_trouble_timeout,
|
71
|
+
type: :string,
|
72
|
+
sortable: false,
|
73
|
+
filterable: false,
|
74
|
+
creatable_by: [],
|
75
|
+
patchable_by: [:system, :station, :dealer]
|
76
|
+
|
77
|
+
field :acnt_no,
|
78
|
+
type: :string,
|
79
|
+
sortable: false,
|
80
|
+
filterable: true,
|
81
|
+
creatable_by: [:system, :station],
|
82
|
+
patchable_by: [:system, :station, :dealer]
|
83
|
+
|
84
|
+
field :name_first,
|
85
|
+
type: :string,
|
86
|
+
sortable: false,
|
87
|
+
filterable: false,
|
88
|
+
creatable_by: [:system, :station],
|
89
|
+
patchable_by: [:system, :station, :dealer]
|
90
|
+
|
91
|
+
field :name_last,
|
92
|
+
type: :string,
|
93
|
+
sortable: false,
|
94
|
+
filterable: false,
|
95
|
+
creatable_by: [:system, :station],
|
96
|
+
patchable_by: [:system, :station, :dealer]
|
97
|
+
|
98
|
+
field :email,
|
99
|
+
type: :string,
|
100
|
+
sortable: false,
|
101
|
+
filterable: false,
|
102
|
+
creatable_by: [:system, :station],
|
103
|
+
patchable_by: [:system, :station, :dealer]
|
104
|
+
|
105
|
+
field :relay_group_all_enabled,
|
106
|
+
type: :string,
|
107
|
+
sortable: false,
|
108
|
+
filterable: false,
|
109
|
+
creatable_by: [],
|
110
|
+
patchable_by: [:system, :station, :dealer]
|
111
|
+
|
112
|
+
field :relay_group_enabled,
|
113
|
+
type: :string,
|
114
|
+
sortable: false,
|
115
|
+
filterable: false,
|
116
|
+
creatable_by: [],
|
117
|
+
patchable_by: [:system, :station, :dealer]
|
118
|
+
|
119
|
+
field :push_notification_enabled,
|
120
|
+
type: :string,
|
121
|
+
sortable: false,
|
122
|
+
filterable: false,
|
123
|
+
creatable_by: [],
|
124
|
+
patchable_by: [:system, :station, :dealer]
|
125
|
+
|
126
|
+
field :remote_user_logging_feature_enabled,
|
127
|
+
type: :string,
|
128
|
+
sortable: false,
|
129
|
+
filterable: false,
|
130
|
+
creatable_by: [:system, :station],
|
131
|
+
patchable_by: [:system, :station, :dealer]
|
132
|
+
|
133
|
+
field :station_billing,
|
134
|
+
type: :string,
|
135
|
+
sortable: false,
|
136
|
+
filterable: false,
|
137
|
+
creatable_by: [],
|
138
|
+
patchable_by: [:system, :station]
|
139
|
+
|
140
|
+
field :prefer_station_voice_channels,
|
141
|
+
type: :string,
|
142
|
+
sortable: false,
|
143
|
+
filterable: false,
|
144
|
+
creatable_by: [],
|
145
|
+
patchable_by: [:system, :station, :dealer]
|
146
|
+
|
147
|
+
field :timezone,
|
148
|
+
type: :string,
|
149
|
+
sortable: false,
|
150
|
+
filterable: false,
|
151
|
+
creatable_by: [:system, :station],
|
152
|
+
patchable_by: [:system, :station, :dealer]
|
153
|
+
|
154
|
+
field :mobile_branding,
|
155
|
+
type: :string,
|
156
|
+
sortable: false,
|
157
|
+
filterable: false,
|
158
|
+
creatable_by: [:system, :station],
|
159
|
+
patchable_by: [:system, :station]
|
160
|
+
|
161
|
+
field :default_features_selected,
|
162
|
+
type: :string,
|
163
|
+
sortable: false,
|
164
|
+
filterable: false,
|
165
|
+
creatable_by: [],
|
166
|
+
patchable_by: [:system, :station, :dealer]
|
167
|
+
|
168
|
+
field :signal_suppress_open_close,
|
169
|
+
type: :string,
|
170
|
+
sortable: false,
|
171
|
+
filterable: false,
|
172
|
+
creatable_by: [],
|
173
|
+
patchable_by: [:system, :station, :dealer]
|
174
|
+
|
175
|
+
field :signal_suppress_bypass,
|
176
|
+
type: :string,
|
177
|
+
sortable: false,
|
178
|
+
filterable: false,
|
179
|
+
creatable_by: [],
|
180
|
+
patchable_by: [:system, :station, :dealer]
|
181
|
+
|
182
|
+
field :hidden,
|
183
|
+
type: :string,
|
184
|
+
sortable: false,
|
185
|
+
filterable: true,
|
186
|
+
creatable_by: [],
|
187
|
+
patchable_by: []
|
188
|
+
|
189
|
+
field :username,
|
190
|
+
type: :string,
|
191
|
+
sortable: false,
|
192
|
+
filterable: false,
|
193
|
+
creatable_by: [:system, :station],
|
194
|
+
patchable_by: []
|
195
|
+
|
196
|
+
field :password,
|
197
|
+
type: :string,
|
198
|
+
sortable: false,
|
199
|
+
filterable: false,
|
200
|
+
creatable_by: [:system, :station],
|
201
|
+
patchable_by: []
|
202
|
+
|
203
|
+
field :u_type,
|
204
|
+
type: :string,
|
205
|
+
sortable: false,
|
206
|
+
filterable: false,
|
207
|
+
creatable_by: [:system, :station],
|
208
|
+
patchable_by: []
|
209
|
+
|
210
|
+
field :show_prices,
|
211
|
+
type: :boolean,
|
212
|
+
sortable: false,
|
213
|
+
filterable: true,
|
214
|
+
creatable_by: [:system],
|
215
|
+
patchable_by: [:system]
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|
@@ -0,0 +1,172 @@
|
|
1
|
+
module Alula
|
2
|
+
class DealerAccountTransfer < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::ApiOperations::Request
|
5
|
+
extend Alula::ApiOperations::List
|
6
|
+
|
7
|
+
resource_path 'dealers/accounts/transfers'
|
8
|
+
type 'dealers-accounts-transfers'
|
9
|
+
|
10
|
+
# Relationships
|
11
|
+
# None
|
12
|
+
|
13
|
+
# Resource Fields
|
14
|
+
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
15
|
+
# on how params are parsed,
|
16
|
+
field :id,
|
17
|
+
type: :string,
|
18
|
+
sortable: true,
|
19
|
+
filterable: true,
|
20
|
+
creatable_by: [],
|
21
|
+
patchable_by: []
|
22
|
+
|
23
|
+
field :dealer_id_src,
|
24
|
+
type: :string,
|
25
|
+
sortable: true,
|
26
|
+
filterable: true,
|
27
|
+
creatable_by: [],
|
28
|
+
patchable_by: []
|
29
|
+
|
30
|
+
field :dealer_id_dst,
|
31
|
+
type: :string,
|
32
|
+
sortable: true,
|
33
|
+
filterable: true,
|
34
|
+
creatable_by: [],
|
35
|
+
patchable_by: []
|
36
|
+
|
37
|
+
field :date_modified,
|
38
|
+
type: :date,
|
39
|
+
sortable: true,
|
40
|
+
filterable: true,
|
41
|
+
creatable_by: [],
|
42
|
+
patchable_by: []
|
43
|
+
|
44
|
+
field :date_entered,
|
45
|
+
type: :date,
|
46
|
+
sortable: true,
|
47
|
+
filterable: true,
|
48
|
+
creatable_by: [],
|
49
|
+
patchable_by: []
|
50
|
+
|
51
|
+
field :date_completed,
|
52
|
+
type: :date,
|
53
|
+
sortable: true,
|
54
|
+
filterable: true,
|
55
|
+
creatable_by: [],
|
56
|
+
patchable_by: []
|
57
|
+
|
58
|
+
field :company_name_src,
|
59
|
+
type: :string,
|
60
|
+
sortable: true,
|
61
|
+
filterable: true,
|
62
|
+
creatable_by: [],
|
63
|
+
patchable_by: []
|
64
|
+
|
65
|
+
field :company_name_dst,
|
66
|
+
type: :string,
|
67
|
+
sortable: true,
|
68
|
+
filterable: true,
|
69
|
+
creatable_by: [],
|
70
|
+
patchable_by: []
|
71
|
+
|
72
|
+
field :customer_id,
|
73
|
+
type: :string,
|
74
|
+
sortable: true,
|
75
|
+
filterable: true,
|
76
|
+
creatable_by: [],
|
77
|
+
patchable_by: []
|
78
|
+
|
79
|
+
field :customer_name,
|
80
|
+
type: :string,
|
81
|
+
sortable: true,
|
82
|
+
filterable: true,
|
83
|
+
creatable_by: [],
|
84
|
+
patchable_by: []
|
85
|
+
|
86
|
+
field :contact_name,
|
87
|
+
type: :string,
|
88
|
+
sortable: true,
|
89
|
+
filterable: true,
|
90
|
+
creatable_by: [],
|
91
|
+
patchable_by: []
|
92
|
+
|
93
|
+
field :contact_email,
|
94
|
+
type: :string,
|
95
|
+
sortable: true,
|
96
|
+
filterable: true,
|
97
|
+
creatable_by: [],
|
98
|
+
patchable_by: []
|
99
|
+
|
100
|
+
field :cancelled,
|
101
|
+
type: :boolean,
|
102
|
+
sortable: true,
|
103
|
+
filterable: true,
|
104
|
+
creatable_by: [],
|
105
|
+
patchable_by: []
|
106
|
+
|
107
|
+
field :modified_by,
|
108
|
+
type: :string,
|
109
|
+
sortable: true,
|
110
|
+
filterable: true,
|
111
|
+
creatable_by: [],
|
112
|
+
patchable_by: []
|
113
|
+
|
114
|
+
field :entered_by,
|
115
|
+
type: :string,
|
116
|
+
sortable: true,
|
117
|
+
filterable: true,
|
118
|
+
creatable_by: [],
|
119
|
+
patchable_by: []
|
120
|
+
|
121
|
+
field :authorized,
|
122
|
+
type: :boolean,
|
123
|
+
sortable: true,
|
124
|
+
filterable: true,
|
125
|
+
creatable_by: [],
|
126
|
+
patchable_by: []
|
127
|
+
|
128
|
+
field :denied,
|
129
|
+
type: :boolean,
|
130
|
+
sortable: true,
|
131
|
+
filterable: true,
|
132
|
+
creatable_by: [],
|
133
|
+
patchable_by: []
|
134
|
+
|
135
|
+
field :rejected,
|
136
|
+
type: :boolean,
|
137
|
+
sortable: true,
|
138
|
+
filterable: true,
|
139
|
+
creatable_by: [],
|
140
|
+
patchable_by: []
|
141
|
+
|
142
|
+
field :reason,
|
143
|
+
type: :string,
|
144
|
+
sortable: true,
|
145
|
+
filterable: true,
|
146
|
+
creatable_by: [],
|
147
|
+
patchable_by: []
|
148
|
+
|
149
|
+
def state
|
150
|
+
if !self.date_completed.nil?
|
151
|
+
:completed
|
152
|
+
elsif self.cancelled
|
153
|
+
:cancelled
|
154
|
+
elsif self.rejected
|
155
|
+
:rejected
|
156
|
+
elsif self.denied
|
157
|
+
:denied
|
158
|
+
elsif self.authorized
|
159
|
+
:authorized
|
160
|
+
else
|
161
|
+
:requested
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
def admin_actionable?
|
166
|
+
self.date_completed.nil? &&
|
167
|
+
!self.authorized &&
|
168
|
+
!self.denied &&
|
169
|
+
!self.cancelled
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
module Alula
|
2
|
+
class DealerAddress < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::List
|
7
|
+
extend Alula::ApiOperations::Save
|
8
|
+
|
9
|
+
resource_path 'dealers/addresses'
|
10
|
+
type 'dealers-addresses'
|
11
|
+
|
12
|
+
# Relationships
|
13
|
+
# None
|
14
|
+
|
15
|
+
# Resource Fields
|
16
|
+
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
17
|
+
# on how params are parsed,
|
18
|
+
field :id,
|
19
|
+
type: :string,
|
20
|
+
sortable: false,
|
21
|
+
filterable: false,
|
22
|
+
creatable_by: [],
|
23
|
+
patchable_by: []
|
24
|
+
|
25
|
+
field :company_name,
|
26
|
+
type: :string,
|
27
|
+
sortable: true,
|
28
|
+
filterable: true,
|
29
|
+
creatable_by: [],
|
30
|
+
patchable_by: []
|
31
|
+
|
32
|
+
field :address1,
|
33
|
+
type: :string,
|
34
|
+
sortable: false,
|
35
|
+
filterable: false,
|
36
|
+
creatable_by: [],
|
37
|
+
patchable_by: [:system, :station, :dealer]
|
38
|
+
|
39
|
+
field :address2,
|
40
|
+
type: :string,
|
41
|
+
sortable: false,
|
42
|
+
filterable: false,
|
43
|
+
creatable_by: [],
|
44
|
+
patchable_by: [:system, :station, :dealer]
|
45
|
+
|
46
|
+
field :st_number,
|
47
|
+
type: :string,
|
48
|
+
sortable: false,
|
49
|
+
filterable: false,
|
50
|
+
creatable_by: [],
|
51
|
+
patchable_by: [:system, :station, :dealer]
|
52
|
+
|
53
|
+
field :st_name,
|
54
|
+
type: :string,
|
55
|
+
sortable: false,
|
56
|
+
filterable: false,
|
57
|
+
creatable_by: [],
|
58
|
+
patchable_by: [:system, :station, :dealer]
|
59
|
+
|
60
|
+
field :st_direction,
|
61
|
+
type: :string,
|
62
|
+
sortable: false,
|
63
|
+
filterable: false,
|
64
|
+
creatable_by: [],
|
65
|
+
patchable_by: [:system, :station, :dealer]
|
66
|
+
|
67
|
+
field :city,
|
68
|
+
type: :string,
|
69
|
+
sortable: false,
|
70
|
+
filterable: false,
|
71
|
+
creatable_by: [],
|
72
|
+
patchable_by: [:system, :station, :dealer]
|
73
|
+
|
74
|
+
field :state,
|
75
|
+
type: :string,
|
76
|
+
sortable: false,
|
77
|
+
filterable: false,
|
78
|
+
creatable_by: [],
|
79
|
+
patchable_by: [:system, :station, :dealer]
|
80
|
+
|
81
|
+
field :zip_code,
|
82
|
+
type: :string,
|
83
|
+
sortable: false,
|
84
|
+
filterable: false,
|
85
|
+
creatable_by: [],
|
86
|
+
patchable_by: [:system, :station, :dealer]
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,226 @@
|
|
1
|
+
module Alula
|
2
|
+
class DealerBranding < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::Save
|
7
|
+
|
8
|
+
resource_path 'dealers/branding'
|
9
|
+
type 'dealers-branding'
|
10
|
+
|
11
|
+
# Relationships
|
12
|
+
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
13
|
+
|
14
|
+
# Resource Fields
|
15
|
+
field :published_revision,
|
16
|
+
type: :string,
|
17
|
+
sortable: false,
|
18
|
+
filterable: false,
|
19
|
+
creatable_by: [:system],
|
20
|
+
patchable_by: [:system]
|
21
|
+
|
22
|
+
field :company_name_short,
|
23
|
+
type: :string,
|
24
|
+
sortable: false,
|
25
|
+
filterable: false,
|
26
|
+
creatable_by: [:system, :station, :dealer],
|
27
|
+
patchable_by: [:system, :station, :dealer]
|
28
|
+
|
29
|
+
field :company_name_long,
|
30
|
+
type: :string,
|
31
|
+
sortable: false,
|
32
|
+
filterable: false,
|
33
|
+
creatable_by: [:system, :station, :dealer],
|
34
|
+
patchable_by: [:system, :station, :dealer]
|
35
|
+
|
36
|
+
field :central_station_phone,
|
37
|
+
type: :string,
|
38
|
+
sortable: false,
|
39
|
+
filterable: false,
|
40
|
+
creatable_by: [:system, :station, :dealer],
|
41
|
+
patchable_by: [:system, :station, :dealer]
|
42
|
+
|
43
|
+
field :image_url,
|
44
|
+
type: :string,
|
45
|
+
sortable: false,
|
46
|
+
filterable: false,
|
47
|
+
creatable_by: [:system, :station, :dealer],
|
48
|
+
patchable_by: [:system, :station, :dealer]
|
49
|
+
|
50
|
+
field :support_url,
|
51
|
+
type: :string,
|
52
|
+
sortable: false,
|
53
|
+
filterable: false,
|
54
|
+
creatable_by: [:system, :station, :dealer],
|
55
|
+
patchable_by: [:system, :station, :dealer]
|
56
|
+
|
57
|
+
field :is_image_splash,
|
58
|
+
type: :string,
|
59
|
+
sortable: false,
|
60
|
+
filterable: false,
|
61
|
+
creatable_by: [:system, :station, :dealer],
|
62
|
+
patchable_by: [:system, :station, :dealer]
|
63
|
+
|
64
|
+
field :splash_bg,
|
65
|
+
type: :string,
|
66
|
+
sortable: false,
|
67
|
+
filterable: false,
|
68
|
+
creatable_by: [:system, :station, :dealer],
|
69
|
+
patchable_by: [:system, :station, :dealer]
|
70
|
+
|
71
|
+
field :logo_url,
|
72
|
+
type: :string,
|
73
|
+
sortable: false,
|
74
|
+
filterable: false,
|
75
|
+
creatable_by: [:system, :station, :dealer],
|
76
|
+
patchable_by: [:system, :station, :dealer]
|
77
|
+
|
78
|
+
field :logo_border_enabled,
|
79
|
+
type: :string,
|
80
|
+
sortable: false,
|
81
|
+
filterable: false,
|
82
|
+
creatable_by: [:system, :station, :dealer],
|
83
|
+
patchable_by: [:system, :station, :dealer]
|
84
|
+
|
85
|
+
field :enable_splash,
|
86
|
+
type: :string,
|
87
|
+
sortable: false,
|
88
|
+
filterable: false,
|
89
|
+
creatable_by: [:system, :station, :dealer],
|
90
|
+
patchable_by: [:system, :station, :dealer]
|
91
|
+
|
92
|
+
field :enable_keypad_logo,
|
93
|
+
type: :string,
|
94
|
+
sortable: false,
|
95
|
+
filterable: false,
|
96
|
+
creatable_by: [:system, :station, :dealer],
|
97
|
+
patchable_by: [:system, :station, :dealer]
|
98
|
+
|
99
|
+
field :contact_name,
|
100
|
+
type: :string,
|
101
|
+
sortable: false,
|
102
|
+
filterable: false,
|
103
|
+
creatable_by: [:system, :station, :dealer],
|
104
|
+
patchable_by: [:system, :station, :dealer]
|
105
|
+
|
106
|
+
field :contact_email,
|
107
|
+
type: :string,
|
108
|
+
sortable: false,
|
109
|
+
filterable: false,
|
110
|
+
creatable_by: [:system, :station, :dealer],
|
111
|
+
patchable_by: [:system, :station, :dealer]
|
112
|
+
|
113
|
+
field :logo_favicon_url,
|
114
|
+
type: :string,
|
115
|
+
sortable: false,
|
116
|
+
filterable: false,
|
117
|
+
creatable_by: [:system, :station, :dealer],
|
118
|
+
patchable_by: [:system, :station, :dealer]
|
119
|
+
|
120
|
+
field :primary_logo_url,
|
121
|
+
type: :string,
|
122
|
+
sortable: false,
|
123
|
+
filterable: false,
|
124
|
+
creatable_by: [:system, :station, :dealer],
|
125
|
+
patchable_by: [:system, :station, :dealer]
|
126
|
+
|
127
|
+
field :web_splash_url,
|
128
|
+
type: :string,
|
129
|
+
sortable: false,
|
130
|
+
filterable: false,
|
131
|
+
creatable_by: [:system, :station, :dealer],
|
132
|
+
patchable_by: [:system, :station, :dealer]
|
133
|
+
|
134
|
+
field :primary_color,
|
135
|
+
type: :string,
|
136
|
+
sortable: false,
|
137
|
+
filterable: false,
|
138
|
+
creatable_by: [:system, :station, :dealer],
|
139
|
+
patchable_by: [:system, :station, :dealer]
|
140
|
+
|
141
|
+
field :secondary_color,
|
142
|
+
type: :string,
|
143
|
+
sortable: false,
|
144
|
+
filterable: false,
|
145
|
+
creatable_by: [:system, :station, :dealer],
|
146
|
+
patchable_by: [:system, :station, :dealer]
|
147
|
+
|
148
|
+
field :touchpad_header_url,
|
149
|
+
type: :string,
|
150
|
+
sortable: false,
|
151
|
+
filterable: false,
|
152
|
+
creatable_by: [:system, :station, :dealer],
|
153
|
+
patchable_by: [:system, :station, :dealer]
|
154
|
+
|
155
|
+
field :touchpad_package_url,
|
156
|
+
type: :string,
|
157
|
+
sortable: false,
|
158
|
+
filterable: false,
|
159
|
+
creatable_by: [:system, :station, :dealer],
|
160
|
+
patchable_by: [:system, :station, :dealer]
|
161
|
+
|
162
|
+
field :contact_phone,
|
163
|
+
type: :string,
|
164
|
+
sortable: false,
|
165
|
+
filterable: false,
|
166
|
+
creatable_by: [:system, :station, :dealer],
|
167
|
+
patchable_by: [:system, :station, :dealer]
|
168
|
+
|
169
|
+
field :nav_style,
|
170
|
+
type: :string,
|
171
|
+
sortable: false,
|
172
|
+
filterable: false,
|
173
|
+
creatable_by: [:system, :station, :dealer],
|
174
|
+
patchable_by: [:system, :station, :dealer]
|
175
|
+
|
176
|
+
field :id,
|
177
|
+
type: :string,
|
178
|
+
sortable: false,
|
179
|
+
filterable: false,
|
180
|
+
creatable_by: [:system, :station, :dealer],
|
181
|
+
patchable_by: []
|
182
|
+
|
183
|
+
field :entered_by,
|
184
|
+
type: :string,
|
185
|
+
sortable: false,
|
186
|
+
filterable: false,
|
187
|
+
creatable_by: [],
|
188
|
+
patchable_by: []
|
189
|
+
|
190
|
+
field :date_created,
|
191
|
+
type: :date,
|
192
|
+
sortable: false,
|
193
|
+
filterable: false,
|
194
|
+
creatable_by: [],
|
195
|
+
patchable_by: []
|
196
|
+
|
197
|
+
field :modified_by,
|
198
|
+
type: :string,
|
199
|
+
sortable: false,
|
200
|
+
filterable: false,
|
201
|
+
creatable_by: [],
|
202
|
+
patchable_by: []
|
203
|
+
|
204
|
+
field :date_modified,
|
205
|
+
type: :date,
|
206
|
+
sortable: false,
|
207
|
+
filterable: false,
|
208
|
+
creatable_by: [],
|
209
|
+
patchable_by: []
|
210
|
+
|
211
|
+
field :is_enabled,
|
212
|
+
type: :string,
|
213
|
+
sortable: false,
|
214
|
+
filterable: false,
|
215
|
+
creatable_by: [],
|
216
|
+
patchable_by: []
|
217
|
+
|
218
|
+
field :revision,
|
219
|
+
type: :string,
|
220
|
+
sortable: false,
|
221
|
+
filterable: false,
|
222
|
+
creatable_by: [],
|
223
|
+
patchable_by: []
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|