Class: TripletexRubyClient::ProjectSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/tripletex_ruby_client/models/project_settings.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ProjectSettings

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {}) —

    Model attributes in the form of hash



223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 223

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'approveHourLists')
    self.approve_hour_lists = attributes[:'approveHourLists']
  end

  if attributes.has_key?(:'approveInvoices')
    self.approve_invoices = attributes[:'approveInvoices']
  end

  if attributes.has_key?(:'markReadyForInvoicing')
    self.mark_ready_for_invoicing = attributes[:'markReadyForInvoicing']
  end

  if attributes.has_key?(:'historicalInformation')
    self.historical_information = attributes[:'historicalInformation']
  end

  if attributes.has_key?(:'projectForecast')
    self.project_forecast = attributes[:'projectForecast']
  end

  if attributes.has_key?(:'budgetOnSubcontracts')
    self.budget_on_subcontracts = attributes[:'budgetOnSubcontracts']
  end

  if attributes.has_key?(:'projectCategories')
    self.project_categories = attributes[:'projectCategories']
  end

  if attributes.has_key?(:'referenceFee')
    self.reference_fee = attributes[:'referenceFee']
  end

  if attributes.has_key?(:'sortOrderProjects')
    self.sort_order_projects = attributes[:'sortOrderProjects']
  end

  if attributes.has_key?(:'autoCloseInvoicedProjects')
    self.auto_close_invoiced_projects = attributes[:'autoCloseInvoicedProjects']
  end

  if attributes.has_key?(:'mustApproveRegisteredHours')
    self.must_approve_registered_hours = attributes[:'mustApproveRegisteredHours']
  end

  if attributes.has_key?(:'showProjectOrderLinesToAllProjectParticipants')
    self.show_project_order_lines_to_all_project_participants = attributes[:'showProjectOrderLinesToAllProjectParticipants']
  end

  if attributes.has_key?(:'hourCostPercentage')
    self.hour_cost_percentage = attributes[:'hourCostPercentage']
  end

  if attributes.has_key?(:'fixedPriceProjectsFeeCalcMethod')
    self.fixed_price_projects_fee_calc_method = attributes[:'fixedPriceProjectsFeeCalcMethod']
  end

  if attributes.has_key?(:'fixedPriceProjectsInvoiceByProgress')
    self.fixed_price_projects_invoice_by_progress = attributes[:'fixedPriceProjectsInvoiceByProgress']
  end

  if attributes.has_key?(:'projectBudgetReferenceFee')
    self.project_budget_reference_fee = attributes[:'projectBudgetReferenceFee']
  end

  if attributes.has_key?(:'allowMultipleProjectInvoiceVat')
    self.allow_multiple_project_invoice_vat = attributes[:'allowMultipleProjectInvoiceVat']
  end

  if attributes.has_key?(:'standardReinvoicing')
    self.standard_reinvoicing = attributes[:'standardReinvoicing']
  end

  if attributes.has_key?(:'isCurrentMonthDefaultPeriod')
    self.is_current_month_default_period = attributes[:'isCurrentMonthDefaultPeriod']
  end

  if attributes.has_key?(:'autoGenerateProjectNumber')
    self.auto_generate_project_number = attributes[:'autoGenerateProjectNumber']
  end

  if attributes.has_key?(:'autoGenerateStartingNumber')
    self.auto_generate_starting_number = attributes[:'autoGenerateStartingNumber']
  end

  if attributes.has_key?(:'projectNameScheme')
    self.project_name_scheme = attributes[:'projectNameScheme']
  end

  if attributes.has_key?(:'projectTypeOfContract')
    self.project_type_of_contract = attributes[:'projectTypeOfContract']
  end

  if attributes.has_key?(:'projectOrderLinesSortOrder')
    self.project_order_lines_sort_order = attributes[:'projectOrderLinesSortOrder']
  end

  if attributes.has_key?(:'projectHourlyRateModel')
    self.project_hourly_rate_model = attributes[:'projectHourlyRateModel']
  end

  if attributes.has_key?(:'onlyProjectMembersCanRegisterInfo')
    self.only_project_members_can_register_info = attributes[:'onlyProjectMembersCanRegisterInfo']
  end

  if attributes.has_key?(:'onlyProjectActivitiesTimesheetRegistration')
    self.only_project_activities_timesheet_registration = attributes[:'onlyProjectActivitiesTimesheetRegistration']
  end

  if attributes.has_key?(:'hourlyRateProjectsWriteUpDown')
    self.hourly_rate_projects_write_up_down = attributes[:'hourlyRateProjectsWriteUpDown']
  end

  if attributes.has_key?(:'defaultProjectContractComment')
    self.default_project_contract_comment = attributes[:'defaultProjectContractComment']
  end

  if attributes.has_key?(:'defaultProjectInvoicingComment')
    self.default_project_invoicing_comment = attributes[:'defaultProjectInvoicingComment']
  end

  if attributes.has_key?(:'resourcePlanning')
    self.resource_planning = attributes[:'resourcePlanning']
  end

  if attributes.has_key?(:'resourceGroups')
    self.resource_groups = attributes[:'resourceGroups']
  end

  if attributes.has_key?(:'holidayPlan')
    self.holiday_plan = attributes[:'holidayPlan']
  end

  if attributes.has_key?(:'resourcePlanPeriod')
    self.resource_plan_period = attributes[:'resourcePlanPeriod']
  end

  if attributes.has_key?(:'controlFormsRequiredForInvoicing')
    if (value = attributes[:'controlFormsRequiredForInvoicing']).is_a?(Array)
      self.control_forms_required_for_invoicing = value
    end
  end

  if attributes.has_key?(:'controlFormsRequiredForHourTracking')
    if (value = attributes[:'controlFormsRequiredForHourTracking']).is_a?(Array)
      self.control_forms_required_for_hour_tracking = value
    end
  end

  if attributes.has_key?(:'useLoggedInUserEmailOnProjectBudget')
    self.use_logged_in_user_email_on_project_budget = attributes[:'useLoggedInUserEmailOnProjectBudget']
  end

  if attributes.has_key?(:'emailOnProjectBudget')
    self.email_on_project_budget = attributes[:'emailOnProjectBudget']
  end

  if attributes.has_key?(:'useLoggedInUserEmailOnProjectContract')
    self.use_logged_in_user_email_on_project_contract = attributes[:'useLoggedInUserEmailOnProjectContract']
  end

  if attributes.has_key?(:'emailOnProjectContract')
    self.email_on_project_contract = attributes[:'emailOnProjectContract']
  end

  if attributes.has_key?(:'useLoggedInUserEmailOnDocuments')
    self.use_logged_in_user_email_on_documents = attributes[:'useLoggedInUserEmailOnDocuments']
  end

  if attributes.has_key?(:'emailOnDocuments')
    self.email_on_documents = attributes[:'emailOnDocuments']
  end
end

Instance Attribute Details

#allow_multiple_project_invoice_vat ⇒ Object

Returns the value of attribute allow_multiple_project_invoice_vat.



49
50
51
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 49

def allow_multiple_project_invoice_vat
  @allow_multiple_project_invoice_vat
end

#approve_hour_lists ⇒ Object

Returns the value of attribute approve_hour_lists.



17
18
19
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 17

def approve_hour_lists
  @approve_hour_lists
end

#approve_invoices ⇒ Object

Returns the value of attribute approve_invoices.



19
20
21
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 19

def approve_invoices
  @approve_invoices
end

#auto_close_invoiced_projects ⇒ Object

Returns the value of attribute auto_close_invoiced_projects.



35
36
37
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 35

def auto_close_invoiced_projects
  @auto_close_invoiced_projects
end

#auto_generate_project_number ⇒ Object

Returns the value of attribute auto_generate_project_number.



55
56
57
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 55

def auto_generate_project_number
  @auto_generate_project_number
end

#auto_generate_starting_number ⇒ Object

Returns the value of attribute auto_generate_starting_number.



57
58
59
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 57

def auto_generate_starting_number
  @auto_generate_starting_number
end

#budget_on_subcontracts ⇒ Object

Returns the value of attribute budget_on_subcontracts.



27
28
29
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 27

def budget_on_subcontracts
  @budget_on_subcontracts
end

#control_forms_required_for_hour_tracking ⇒ Object

Control forms required for hour tracking



89
90
91
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 89

def control_forms_required_for_hour_tracking
  @control_forms_required_for_hour_tracking
end

#control_forms_required_for_invoicing ⇒ Object

Control forms required for invoicing



86
87
88
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 86

def control_forms_required_for_invoicing
  @control_forms_required_for_invoicing
end

#default_project_contract_comment ⇒ Object

Returns the value of attribute default_project_contract_comment.



73
74
75
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 73

def default_project_contract_comment
  @default_project_contract_comment
end

#default_project_invoicing_comment ⇒ Object

Returns the value of attribute default_project_invoicing_comment.



75
76
77
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 75

def default_project_invoicing_comment
  @default_project_invoicing_comment
end

#email_on_documents ⇒ Object

Returns the value of attribute email_on_documents.



101
102
103
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 101

def email_on_documents
  @email_on_documents
end

#email_on_project_budget ⇒ Object

Returns the value of attribute email_on_project_budget.



93
94
95
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 93

def email_on_project_budget
  @email_on_project_budget
end

#email_on_project_contract ⇒ Object

Returns the value of attribute email_on_project_contract.



97
98
99
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 97

def email_on_project_contract
  @email_on_project_contract
end

#fixed_price_projects_fee_calc_method ⇒ Object

Returns the value of attribute fixed_price_projects_fee_calc_method.



43
44
45
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 43

def fixed_price_projects_fee_calc_method
  @fixed_price_projects_fee_calc_method
end

#fixed_price_projects_invoice_by_progress ⇒ Object

Returns the value of attribute fixed_price_projects_invoice_by_progress.



45
46
47
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 45

def fixed_price_projects_invoice_by_progress
  @fixed_price_projects_invoice_by_progress
end

#historical_information ⇒ Object

Returns the value of attribute historical_information.



23
24
25
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 23

def historical_information
  @historical_information
end

#holiday_plan ⇒ Object

Returns the value of attribute holiday_plan.



81
82
83
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 81

def holiday_plan
  @holiday_plan
end

#hour_cost_percentage ⇒ Object

Returns the value of attribute hour_cost_percentage.



41
42
43
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 41

def hour_cost_percentage
  @hour_cost_percentage
end

#hourly_rate_projects_write_up_down ⇒ Object

Returns the value of attribute hourly_rate_projects_write_up_down.



71
72
73
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 71

def hourly_rate_projects_write_up_down
  @hourly_rate_projects_write_up_down
end

#is_current_month_default_period ⇒ Object

Returns the value of attribute is_current_month_default_period.



53
54
55
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 53

def is_current_month_default_period
  @is_current_month_default_period
end

#mark_ready_for_invoicing ⇒ Object

Returns the value of attribute mark_ready_for_invoicing.



21
22
23
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 21

def mark_ready_for_invoicing
  @mark_ready_for_invoicing
end

#must_approve_registered_hours ⇒ Object

Returns the value of attribute must_approve_registered_hours.



37
38
39
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 37

def must_approve_registered_hours
  @must_approve_registered_hours
end

#only_project_activities_timesheet_registration ⇒ Object

Returns the value of attribute only_project_activities_timesheet_registration.



69
70
71
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 69

def only_project_activities_timesheet_registration
  @only_project_activities_timesheet_registration
end

#only_project_members_can_register_info ⇒ Object

Returns the value of attribute only_project_members_can_register_info.



67
68
69
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 67

def only_project_members_can_register_info
  @only_project_members_can_register_info
end

#project_budget_reference_fee ⇒ Object

Returns the value of attribute project_budget_reference_fee.



47
48
49
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 47

def project_budget_reference_fee
  @project_budget_reference_fee
end

#project_categories ⇒ Object

Returns the value of attribute project_categories.



29
30
31
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 29

def project_categories
  @project_categories
end

#project_forecast ⇒ Object

Returns the value of attribute project_forecast.



25
26
27
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 25

def project_forecast
  @project_forecast
end

#project_hourly_rate_model ⇒ Object

Returns the value of attribute project_hourly_rate_model.



65
66
67
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 65

def project_hourly_rate_model
  @project_hourly_rate_model
end

#project_name_scheme ⇒ Object

Returns the value of attribute project_name_scheme.



59
60
61
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 59

def project_name_scheme
  @project_name_scheme
end

#project_order_lines_sort_order ⇒ Object

Returns the value of attribute project_order_lines_sort_order.



63
64
65
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 63

def project_order_lines_sort_order
  @project_order_lines_sort_order
end

#project_type_of_contract ⇒ Object

Returns the value of attribute project_type_of_contract.



61
62
63
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 61

def project_type_of_contract
  @project_type_of_contract
end

#reference_fee ⇒ Object

Returns the value of attribute reference_fee.



31
32
33
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 31

def reference_fee
  @reference_fee
end

#resource_groups ⇒ Object

Returns the value of attribute resource_groups.



79
80
81
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 79

def resource_groups
  @resource_groups
end

#resource_plan_period ⇒ Object

Returns the value of attribute resource_plan_period.



83
84
85
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 83

def resource_plan_period
  @resource_plan_period
end

#resource_planning ⇒ Object

Returns the value of attribute resource_planning.



77
78
79
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 77

def resource_planning
  @resource_planning
end

#show_project_order_lines_to_all_project_participants ⇒ Object

Returns the value of attribute show_project_order_lines_to_all_project_participants.



39
40
41
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 39

def show_project_order_lines_to_all_project_participants
  @show_project_order_lines_to_all_project_participants
end

#sort_order_projects ⇒ Object

Returns the value of attribute sort_order_projects.



33
34
35
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 33

def sort_order_projects
  @sort_order_projects
end

#standard_reinvoicing ⇒ Object

Returns the value of attribute standard_reinvoicing.



51
52
53
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 51

def standard_reinvoicing
  @standard_reinvoicing
end

#use_logged_in_user_email_on_documents ⇒ Object

Returns the value of attribute use_logged_in_user_email_on_documents.



99
100
101
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 99

def use_logged_in_user_email_on_documents
  @use_logged_in_user_email_on_documents
end

#use_logged_in_user_email_on_project_budget ⇒ Object

Returns the value of attribute use_logged_in_user_email_on_project_budget.



91
92
93
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 91

def use_logged_in_user_email_on_project_budget
  @use_logged_in_user_email_on_project_budget
end

#use_logged_in_user_email_on_project_contract ⇒ Object

Returns the value of attribute use_logged_in_user_email_on_project_contract.



95
96
97
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 95

def use_logged_in_user_email_on_project_contract
  @use_logged_in_user_email_on_project_contract
end

Class Method Details

.attribute_map ⇒ Object

Attribute mapping from ruby-style variable name to JSON key.



126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 126

def self.attribute_map
  {
    :'approve_hour_lists' => :'approveHourLists',
    :'approve_invoices' => :'approveInvoices',
    :'mark_ready_for_invoicing' => :'markReadyForInvoicing',
    :'historical_information' => :'historicalInformation',
    :'project_forecast' => :'projectForecast',
    :'budget_on_subcontracts' => :'budgetOnSubcontracts',
    :'project_categories' => :'projectCategories',
    :'reference_fee' => :'referenceFee',
    :'sort_order_projects' => :'sortOrderProjects',
    :'auto_close_invoiced_projects' => :'autoCloseInvoicedProjects',
    :'must_approve_registered_hours' => :'mustApproveRegisteredHours',
    :'show_project_order_lines_to_all_project_participants' => :'showProjectOrderLinesToAllProjectParticipants',
    :'hour_cost_percentage' => :'hourCostPercentage',
    :'fixed_price_projects_fee_calc_method' => :'fixedPriceProjectsFeeCalcMethod',
    :'fixed_price_projects_invoice_by_progress' => :'fixedPriceProjectsInvoiceByProgress',
    :'project_budget_reference_fee' => :'projectBudgetReferenceFee',
    :'allow_multiple_project_invoice_vat' => :'allowMultipleProjectInvoiceVat',
    :'standard_reinvoicing' => :'standardReinvoicing',
    :'is_current_month_default_period' => :'isCurrentMonthDefaultPeriod',
    :'auto_generate_project_number' => :'autoGenerateProjectNumber',
    :'auto_generate_starting_number' => :'autoGenerateStartingNumber',
    :'project_name_scheme' => :'projectNameScheme',
    :'project_type_of_contract' => :'projectTypeOfContract',
    :'project_order_lines_sort_order' => :'projectOrderLinesSortOrder',
    :'project_hourly_rate_model' => :'projectHourlyRateModel',
    :'only_project_members_can_register_info' => :'onlyProjectMembersCanRegisterInfo',
    :'only_project_activities_timesheet_registration' => :'onlyProjectActivitiesTimesheetRegistration',
    :'hourly_rate_projects_write_up_down' => :'hourlyRateProjectsWriteUpDown',
    :'default_project_contract_comment' => :'defaultProjectContractComment',
    :'default_project_invoicing_comment' => :'defaultProjectInvoicingComment',
    :'resource_planning' => :'resourcePlanning',
    :'resource_groups' => :'resourceGroups',
    :'holiday_plan' => :'holidayPlan',
    :'resource_plan_period' => :'resourcePlanPeriod',
    :'control_forms_required_for_invoicing' => :'controlFormsRequiredForInvoicing',
    :'control_forms_required_for_hour_tracking' => :'controlFormsRequiredForHourTracking',
    :'use_logged_in_user_email_on_project_budget' => :'useLoggedInUserEmailOnProjectBudget',
    :'email_on_project_budget' => :'emailOnProjectBudget',
    :'use_logged_in_user_email_on_project_contract' => :'useLoggedInUserEmailOnProjectContract',
    :'email_on_project_contract' => :'emailOnProjectContract',
    :'use_logged_in_user_email_on_documents' => :'useLoggedInUserEmailOnDocuments',
    :'email_on_documents' => :'emailOnDocuments'
  }
end

.swagger_types ⇒ Object

Attribute type mapping.



174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 174

def self.swagger_types
  {
    :'approve_hour_lists' => :'BOOLEAN',
    :'approve_invoices' => :'BOOLEAN',
    :'mark_ready_for_invoicing' => :'BOOLEAN',
    :'historical_information' => :'BOOLEAN',
    :'project_forecast' => :'BOOLEAN',
    :'budget_on_subcontracts' => :'BOOLEAN',
    :'project_categories' => :'BOOLEAN',
    :'reference_fee' => :'BOOLEAN',
    :'sort_order_projects' => :'String',
    :'auto_close_invoiced_projects' => :'BOOLEAN',
    :'must_approve_registered_hours' => :'BOOLEAN',
    :'show_project_order_lines_to_all_project_participants' => :'BOOLEAN',
    :'hour_cost_percentage' => :'BOOLEAN',
    :'fixed_price_projects_fee_calc_method' => :'String',
    :'fixed_price_projects_invoice_by_progress' => :'BOOLEAN',
    :'project_budget_reference_fee' => :'BOOLEAN',
    :'allow_multiple_project_invoice_vat' => :'BOOLEAN',
    :'standard_reinvoicing' => :'BOOLEAN',
    :'is_current_month_default_period' => :'BOOLEAN',
    :'auto_generate_project_number' => :'BOOLEAN',
    :'auto_generate_starting_number' => :'Integer',
    :'project_name_scheme' => :'String',
    :'project_type_of_contract' => :'String',
    :'project_order_lines_sort_order' => :'String',
    :'project_hourly_rate_model' => :'String',
    :'only_project_members_can_register_info' => :'BOOLEAN',
    :'only_project_activities_timesheet_registration' => :'BOOLEAN',
    :'hourly_rate_projects_write_up_down' => :'BOOLEAN',
    :'default_project_contract_comment' => :'String',
    :'default_project_invoicing_comment' => :'String',
    :'resource_planning' => :'BOOLEAN',
    :'resource_groups' => :'BOOLEAN',
    :'holiday_plan' => :'BOOLEAN',
    :'resource_plan_period' => :'String',
    :'control_forms_required_for_invoicing' => :'Array<ProjectControlFormType>',
    :'control_forms_required_for_hour_tracking' => :'Array<ProjectControlFormType>',
    :'use_logged_in_user_email_on_project_budget' => :'BOOLEAN',
    :'email_on_project_budget' => :'String',
    :'use_logged_in_user_email_on_project_contract' => :'BOOLEAN',
    :'email_on_project_contract' => :'String',
    :'use_logged_in_user_email_on_documents' => :'BOOLEAN',
    :'email_on_documents' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object) —

    to be compared



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 516

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      approve_hour_lists == o.approve_hour_lists &&
      approve_invoices == o.approve_invoices &&
      mark_ready_for_invoicing == o.mark_ready_for_invoicing &&
      historical_information == o.historical_information &&
      project_forecast == o.project_forecast &&
      budget_on_subcontracts == o.budget_on_subcontracts &&
      project_categories == o.project_categories &&
      reference_fee == o.reference_fee &&
      sort_order_projects == o.sort_order_projects &&
      auto_close_invoiced_projects == o.auto_close_invoiced_projects &&
      must_approve_registered_hours == o.must_approve_registered_hours &&
      show_project_order_lines_to_all_project_participants == o.show_project_order_lines_to_all_project_participants &&
      hour_cost_percentage == o.hour_cost_percentage &&
      fixed_price_projects_fee_calc_method == o.fixed_price_projects_fee_calc_method &&
      fixed_price_projects_invoice_by_progress == o.fixed_price_projects_invoice_by_progress &&
      project_budget_reference_fee == o.project_budget_reference_fee &&
      allow_multiple_project_invoice_vat == o.allow_multiple_project_invoice_vat &&
      standard_reinvoicing == o.standard_reinvoicing &&
      is_current_month_default_period == o.is_current_month_default_period &&
      auto_generate_project_number == o.auto_generate_project_number &&
      auto_generate_starting_number == o.auto_generate_starting_number &&
      project_name_scheme == o.project_name_scheme &&
      project_type_of_contract == o.project_type_of_contract &&
      project_order_lines_sort_order == o.project_order_lines_sort_order &&
      project_hourly_rate_model == o.project_hourly_rate_model &&
      only_project_members_can_register_info == o.only_project_members_can_register_info &&
      only_project_activities_timesheet_registration == o.only_project_activities_timesheet_registration &&
      hourly_rate_projects_write_up_down == o.hourly_rate_projects_write_up_down &&
      default_project_contract_comment == o.default_project_contract_comment &&
      default_project_invoicing_comment == o.default_project_invoicing_comment &&
      resource_planning == o.resource_planning &&
      resource_groups == o.resource_groups &&
      holiday_plan == o.holiday_plan &&
      resource_plan_period == o.resource_plan_period &&
      control_forms_required_for_invoicing == o.control_forms_required_for_invoicing &&
      control_forms_required_for_hour_tracking == o.control_forms_required_for_hour_tracking &&
      use_logged_in_user_email_on_project_budget == o.use_logged_in_user_email_on_project_budget &&
      email_on_project_budget == o.email_on_project_budget &&
      use_logged_in_user_email_on_project_contract == o.use_logged_in_user_email_on_project_contract &&
      email_on_project_contract == o.email_on_project_contract &&
      use_logged_in_user_email_on_documents == o.use_logged_in_user_email_on_documents &&
      email_on_documents == o.email_on_documents
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string —

    type Data type

  • string —

    value Value to be deserialized

Returns:

  • (Object) —

    Deserialized data



599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 599

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = TripletexRubyClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object) —

    Any valid value

Returns:

  • (Hash) —

    Returns the value in the form of hash



665
666
667
668
669
670
671
672
673
674
675
676
677
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 665

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash) —

    Model attributes in the form of hash

Returns:

  • (Object) —

    Returns the model itself



578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 578

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object) —

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


565
566
567
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 565

def eql?(o)
  self == o
end

#hash ⇒ Fixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum) —

    Hash code



571
572
573
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 571

def hash
  [approve_hour_lists, approve_invoices, mark_ready_for_invoicing, historical_information, project_forecast, budget_on_subcontracts, project_categories, reference_fee, sort_order_projects, auto_close_invoiced_projects, must_approve_registered_hours, show_project_order_lines_to_all_project_participants, hour_cost_percentage, fixed_price_projects_fee_calc_method, fixed_price_projects_invoice_by_progress, project_budget_reference_fee, allow_multiple_project_invoice_vat, standard_reinvoicing, is_current_month_default_period, auto_generate_project_number, auto_generate_starting_number, project_name_scheme, project_type_of_contract, project_order_lines_sort_order, project_hourly_rate_model, only_project_members_can_register_info, only_project_activities_timesheet_registration, hourly_rate_projects_write_up_down, default_project_contract_comment, default_project_invoicing_comment, resource_planning, resource_groups, holiday_plan, resource_plan_period, control_forms_required_for_invoicing, control_forms_required_for_hour_tracking, use_logged_in_user_email_on_project_budget, email_on_project_budget, use_logged_in_user_email_on_project_contract, email_on_project_contract, use_logged_in_user_email_on_documents, email_on_documents].hash
end

#list_invalid_properties ⇒ Object

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



404
405
406
407
408
409
410
411
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 404

def list_invalid_properties
  invalid_properties = Array.new
  if !@auto_generate_starting_number.nil? && @auto_generate_starting_number < 0
    invalid_properties.push('invalid value for "auto_generate_starting_number", must be greater than or equal to 0.')
  end

  invalid_properties
end

#to_body ⇒ Hash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash) —

    Returns the object in the form of hash



645
646
647
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 645

def to_body
  to_hash
end

#to_hash ⇒ Hash

Returns the object in the form of hash

Returns:

  • (Hash) —

    Returns the object in the form of hash



651
652
653
654
655
656
657
658
659
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 651

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_s ⇒ String

Returns the string representation of the object

Returns:

  • (String) —

    String presentation of the object



639
640
641
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 639

def to_s
  to_hash.to_s
end

#valid? ⇒ Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean) —

    true if the model is valid



415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
# File 'lib/tripletex_ruby_client/models/project_settings.rb', line 415

def valid?
  sort_order_projects_validator = EnumAttributeValidator.new('String', ['SORT_ORDER_NAME_AND_NUMBER', 'SORT_ORDER_NAME'])
  return false unless sort_order_projects_validator.valid?(@sort_order_projects)
  fixed_price_projects_fee_calc_method_validator = EnumAttributeValidator.new('String', ['FIXED_PRICE_PROJECTS_CALC_METHOD_INVOICED_FEE', 'FIXED_PRICE_PROJECTS_CALC_METHOD_PERCENT_COMPLETED'])
  return false unless fixed_price_projects_fee_calc_method_validator.valid?(@fixed_price_projects_fee_calc_method)
  return false if !@auto_generate_starting_number.nil? && @auto_generate_starting_number < 0
  project_name_scheme_validator = EnumAttributeValidator.new('String', ['NAME_STANDARD', 'NAME_INCL_CUSTOMER_NAME', 'NAME_INCL_PARENT_NAME', 'NAME_INCL_PARENT_NUMBER', 'NAME_INCL_PARENT_NAME_AND_NUMBER'])
  return false unless project_name_scheme_validator.valid?(@project_name_scheme)
  project_type_of_contract_validator = EnumAttributeValidator.new('String', ['PROJECT_FIXED_PRICE', 'PROJECT_HOUR_RATES'])
  return false unless project_type_of_contract_validator.valid?(@project_type_of_contract)
  project_order_lines_sort_order_validator = EnumAttributeValidator.new('String', ['SORT_ORDER_ID', 'SORT_ORDER_DATE', 'SORT_ORDER_PRODUCT', 'SORT_ORDER_CUSTOM'])
  return false unless project_order_lines_sort_order_validator.valid?(@project_order_lines_sort_order)
  project_hourly_rate_model_validator = EnumAttributeValidator.new('String', ['TYPE_PREDEFINED_HOURLY_RATES', 'TYPE_PROJECT_SPECIFIC_HOURLY_RATES', 'TYPE_FIXED_HOURLY_RATE'])
  return false unless project_hourly_rate_model_validator.valid?(@project_hourly_rate_model)
  resource_plan_period_validator = EnumAttributeValidator.new('String', ['PERIOD_MONTH', 'PERIOD_WEEK', 'PERIOD_DAY'])
  return false unless resource_plan_period_validator.valid?(@resource_plan_period)
  true
end