Class: KoronaCloudClient::PosProfile
- Inherits:
-
Object
- Object
- KoronaCloudClient::PosProfile
- Defined in:
- lib/korona-cloud-client/models/pos_profile.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#active ⇒ Object
indicates whether the object is active for use or not.
-
#auto_receipt_print ⇒ Object
Returns the value of attribute auto_receipt_print.
-
#auto_reset_quick_access_pad ⇒ Object
Returns the value of attribute auto_reset_quick_access_pad.
-
#automatic_cashier_logout_interval ⇒ Object
Returns the value of attribute automatic_cashier_logout_interval.
-
#automatic_cashier_logout_lock_cashier ⇒ Object
Returns the value of attribute automatic_cashier_logout_lock_cashier.
-
#automatic_customer_creation_from_customer_order ⇒ Object
Returns the value of attribute automatic_customer_creation_from_customer_order.
-
#automatic_end_of_day_interval ⇒ Object
Returns the value of attribute automatic_end_of_day_interval.
-
#automatic_payment_finalization ⇒ Object
Returns the value of attribute automatic_payment_finalization.
-
#cashier_password_required ⇒ Object
Returns the value of attribute cashier_password_required.
-
#cent_input ⇒ Object
Returns the value of attribute cent_input.
-
#designate_balance_difference ⇒ Object
Returns the value of attribute designate_balance_difference.
-
#device_profile_configurations ⇒ Object
Returns the value of attribute device_profile_configurations.
-
#digital_receipt ⇒ Object
Returns the value of attribute digital_receipt.
-
#digital_signature ⇒ Object
Returns the value of attribute digital_signature.
-
#easy_repeat_product_enabled ⇒ Object
Returns the value of attribute easy_repeat_product_enabled.
-
#end_of_day_report_enabled ⇒ Object
Returns the value of attribute end_of_day_report_enabled.
-
#external_system_calls_on_book_delivery_note ⇒ Object
Returns the value of attribute external_system_calls_on_book_delivery_note.
-
#external_system_calls_on_book_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_book_receipt.
-
#external_system_calls_on_login_cashier ⇒ Object
Returns the value of attribute external_system_calls_on_login_cashier.
-
#external_system_calls_on_logout_cashier ⇒ Object
Returns the value of attribute external_system_calls_on_logout_cashier.
-
#external_system_calls_on_reject_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_reject_receipt.
-
#external_system_calls_on_reverse_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_reverse_receipt.
-
#external_system_calls_on_total_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_total_receipt.
-
#external_system_calls_on_void_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_void_receipt.
-
#force_closed_drawer ⇒ Object
Returns the value of attribute force_closed_drawer.
-
#id ⇒ Object
global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
-
#invoicing_receipt_copies ⇒ Object
Returns the value of attribute invoicing_receipt_copies.
-
#kiosk_mode ⇒ Object
Returns the value of attribute kiosk_mode.
-
#mandatory_return_reason ⇒ Object
Returns the value of attribute mandatory_return_reason.
-
#master_data_refresh_interval ⇒ Object
Returns the value of attribute master_data_refresh_interval.
-
#max_balance_attempts ⇒ Object
Returns the value of attribute max_balance_attempts.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
number of the object, like it is set in backoffice; will be removed when active=false.
-
#order_number_required ⇒ Object
Returns the value of attribute order_number_required.
-
#payment_service_configurations ⇒ Object
Returns the value of attribute payment_service_configurations.
-
#pos_theme ⇒ Object
Returns the value of attribute pos_theme.
-
#receipt_layout_configuration ⇒ Object
Returns the value of attribute receipt_layout_configuration.
-
#report_file ⇒ Object
Returns the value of attribute report_file.
-
#require_payment_amount_input ⇒ Object
Returns the value of attribute require_payment_amount_input.
-
#restrict_to_one_parked_receipt ⇒ Object
Returns the value of attribute restrict_to_one_parked_receipt.
-
#revision ⇒ Object
the revision number of the object.
-
#show_bank_notes_for_payment_denomination_only ⇒ Object
Returns the value of attribute show_bank_notes_for_payment_denomination_only.
-
#table_service_interval ⇒ Object
Returns the value of attribute table_service_interval.
-
#template_product ⇒ Object
Returns the value of attribute template_product.
-
#unknown_number_action ⇒ Object
Returns the value of attribute unknown_number_action.
-
#unknown_number_external_system_call ⇒ Object
Returns the value of attribute unknown_number_external_system_call.
-
#wide_screen_layout ⇒ Object
Returns the value of attribute wide_screen_layout.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PosProfile
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ PosProfile
Initializes the object
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 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 257 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `KoronaCloudClient::PosProfile` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `KoronaCloudClient::PosProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'active') self.active = attributes[:'active'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'revision') self.revision = attributes[:'revision'] end if attributes.key?(:'number') self.number = attributes[:'number'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'automatic_cashier_logout_interval') self.automatic_cashier_logout_interval = attributes[:'automatic_cashier_logout_interval'] end if attributes.key?(:'auto_receipt_print') self.auto_receipt_print = attributes[:'auto_receipt_print'] end if attributes.key?(:'force_closed_drawer') self.force_closed_drawer = attributes[:'force_closed_drawer'] end if attributes.key?(:'max_balance_attempts') self.max_balance_attempts = attributes[:'max_balance_attempts'] end if attributes.key?(:'order_number_required') self.order_number_required = attributes[:'order_number_required'] end if attributes.key?(:'payment_service_configurations') if (value = attributes[:'payment_service_configurations']).is_a?(Array) self.payment_service_configurations = value end end if attributes.key?(:'device_profile_configurations') if (value = attributes[:'device_profile_configurations']).is_a?(Array) self.device_profile_configurations = value end end if attributes.key?(:'table_service_interval') self.table_service_interval = attributes[:'table_service_interval'] end if attributes.key?(:'receipt_layout_configuration') self.receipt_layout_configuration = attributes[:'receipt_layout_configuration'] end if attributes.key?(:'automatic_end_of_day_interval') self.automatic_end_of_day_interval = attributes[:'automatic_end_of_day_interval'] end if attributes.key?(:'cent_input') self.cent_input = attributes[:'cent_input'] end if attributes.key?(:'require_payment_amount_input') self.require_payment_amount_input = attributes[:'require_payment_amount_input'] end if attributes.key?(:'kiosk_mode') self.kiosk_mode = attributes[:'kiosk_mode'] end if attributes.key?(:'wide_screen_layout') self.wide_screen_layout = attributes[:'wide_screen_layout'] end if attributes.key?(:'automatic_payment_finalization') self.automatic_payment_finalization = attributes[:'automatic_payment_finalization'] end if attributes.key?(:'auto_reset_quick_access_pad') self.auto_reset_quick_access_pad = attributes[:'auto_reset_quick_access_pad'] end if attributes.key?(:'easy_repeat_product_enabled') self.easy_repeat_product_enabled = attributes[:'easy_repeat_product_enabled'] end if attributes.key?(:'external_system_calls_on_book_receipt') if (value = attributes[:'external_system_calls_on_book_receipt']).is_a?(Array) self.external_system_calls_on_book_receipt = value end end if attributes.key?(:'external_system_calls_on_reject_receipt') if (value = attributes[:'external_system_calls_on_reject_receipt']).is_a?(Array) self.external_system_calls_on_reject_receipt = value end end if attributes.key?(:'external_system_calls_on_total_receipt') if (value = attributes[:'external_system_calls_on_total_receipt']).is_a?(Array) self.external_system_calls_on_total_receipt = value end end if attributes.key?(:'external_system_calls_on_void_receipt') if (value = attributes[:'external_system_calls_on_void_receipt']).is_a?(Array) self.external_system_calls_on_void_receipt = value end end if attributes.key?(:'external_system_calls_on_book_delivery_note') if (value = attributes[:'external_system_calls_on_book_delivery_note']).is_a?(Array) self.external_system_calls_on_book_delivery_note = value end end if attributes.key?(:'external_system_calls_on_reverse_receipt') if (value = attributes[:'external_system_calls_on_reverse_receipt']).is_a?(Array) self.external_system_calls_on_reverse_receipt = value end end if attributes.key?(:'external_system_calls_on_login_cashier') if (value = attributes[:'external_system_calls_on_login_cashier']).is_a?(Array) self.external_system_calls_on_login_cashier = value end end if attributes.key?(:'external_system_calls_on_logout_cashier') if (value = attributes[:'external_system_calls_on_logout_cashier']).is_a?(Array) self.external_system_calls_on_logout_cashier = value end end if attributes.key?(:'designate_balance_difference') self.designate_balance_difference = attributes[:'designate_balance_difference'] end if attributes.key?(:'end_of_day_report_enabled') self.end_of_day_report_enabled = attributes[:'end_of_day_report_enabled'] end if attributes.key?(:'unknown_number_action') self.unknown_number_action = attributes[:'unknown_number_action'] end if attributes.key?(:'unknown_number_external_system_call') self.unknown_number_external_system_call = attributes[:'unknown_number_external_system_call'] end if attributes.key?(:'invoicing_receipt_copies') self.invoicing_receipt_copies = attributes[:'invoicing_receipt_copies'] end if attributes.key?(:'cashier_password_required') self.cashier_password_required = attributes[:'cashier_password_required'] end if attributes.key?(:'pos_theme') self.pos_theme = attributes[:'pos_theme'] end if attributes.key?(:'template_product') self.template_product = attributes[:'template_product'] end if attributes.key?(:'digital_receipt') self.digital_receipt = attributes[:'digital_receipt'] end if attributes.key?(:'digital_signature') self.digital_signature = attributes[:'digital_signature'] end if attributes.key?(:'automatic_customer_creation_from_customer_order') self.automatic_customer_creation_from_customer_order = attributes[:'automatic_customer_creation_from_customer_order'] end if attributes.key?(:'master_data_refresh_interval') self.master_data_refresh_interval = attributes[:'master_data_refresh_interval'] end if attributes.key?(:'mandatory_return_reason') self.mandatory_return_reason = attributes[:'mandatory_return_reason'] end if attributes.key?(:'restrict_to_one_parked_receipt') self.restrict_to_one_parked_receipt = attributes[:'restrict_to_one_parked_receipt'] end if attributes.key?(:'automatic_cashier_logout_lock_cashier') self.automatic_cashier_logout_lock_cashier = attributes[:'automatic_cashier_logout_lock_cashier'] end if attributes.key?(:'report_file') self.report_file = attributes[:'report_file'] end if attributes.key?(:'show_bank_notes_for_payment_denomination_only') self.show_bank_notes_for_payment_denomination_only = attributes[:'show_bank_notes_for_payment_denomination_only'] end end |
Instance Attribute Details
#active ⇒ Object
indicates whether the object is active for use or not
19 20 21 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 19 def active @active end |
#auto_receipt_print ⇒ Object
Returns the value of attribute auto_receipt_print.
34 35 36 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 34 def auto_receipt_print @auto_receipt_print end |
#auto_reset_quick_access_pad ⇒ Object
Returns the value of attribute auto_reset_quick_access_pad.
62 63 64 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 62 def auto_reset_quick_access_pad @auto_reset_quick_access_pad end |
#automatic_cashier_logout_interval ⇒ Object
Returns the value of attribute automatic_cashier_logout_interval.
32 33 34 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 32 def automatic_cashier_logout_interval @automatic_cashier_logout_interval end |
#automatic_cashier_logout_lock_cashier ⇒ Object
Returns the value of attribute automatic_cashier_logout_lock_cashier.
110 111 112 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 110 def automatic_cashier_logout_lock_cashier @automatic_cashier_logout_lock_cashier end |
#automatic_customer_creation_from_customer_order ⇒ Object
Returns the value of attribute automatic_customer_creation_from_customer_order.
102 103 104 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 102 def automatic_customer_creation_from_customer_order @automatic_customer_creation_from_customer_order end |
#automatic_end_of_day_interval ⇒ Object
Returns the value of attribute automatic_end_of_day_interval.
50 51 52 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 50 def automatic_end_of_day_interval @automatic_end_of_day_interval end |
#automatic_payment_finalization ⇒ Object
Returns the value of attribute automatic_payment_finalization.
60 61 62 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 60 def automatic_payment_finalization @automatic_payment_finalization end |
#cashier_password_required ⇒ Object
Returns the value of attribute cashier_password_required.
92 93 94 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 92 def cashier_password_required @cashier_password_required end |
#cent_input ⇒ Object
Returns the value of attribute cent_input.
52 53 54 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 52 def cent_input @cent_input end |
#designate_balance_difference ⇒ Object
Returns the value of attribute designate_balance_difference.
82 83 84 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 82 def designate_balance_difference @designate_balance_difference end |
#device_profile_configurations ⇒ Object
Returns the value of attribute device_profile_configurations.
44 45 46 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 44 def device_profile_configurations @device_profile_configurations end |
#digital_receipt ⇒ Object
Returns the value of attribute digital_receipt.
98 99 100 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 98 def digital_receipt @digital_receipt end |
#digital_signature ⇒ Object
Returns the value of attribute digital_signature.
100 101 102 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 100 def digital_signature @digital_signature end |
#easy_repeat_product_enabled ⇒ Object
Returns the value of attribute easy_repeat_product_enabled.
64 65 66 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 64 def easy_repeat_product_enabled @easy_repeat_product_enabled end |
#end_of_day_report_enabled ⇒ Object
Returns the value of attribute end_of_day_report_enabled.
84 85 86 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 84 def end_of_day_report_enabled @end_of_day_report_enabled end |
#external_system_calls_on_book_delivery_note ⇒ Object
Returns the value of attribute external_system_calls_on_book_delivery_note.
74 75 76 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 74 def external_system_calls_on_book_delivery_note @external_system_calls_on_book_delivery_note end |
#external_system_calls_on_book_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_book_receipt.
66 67 68 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 66 def external_system_calls_on_book_receipt @external_system_calls_on_book_receipt end |
#external_system_calls_on_login_cashier ⇒ Object
Returns the value of attribute external_system_calls_on_login_cashier.
78 79 80 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 78 def external_system_calls_on_login_cashier @external_system_calls_on_login_cashier end |
#external_system_calls_on_logout_cashier ⇒ Object
Returns the value of attribute external_system_calls_on_logout_cashier.
80 81 82 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 80 def external_system_calls_on_logout_cashier @external_system_calls_on_logout_cashier end |
#external_system_calls_on_reject_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_reject_receipt.
68 69 70 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 68 def external_system_calls_on_reject_receipt @external_system_calls_on_reject_receipt end |
#external_system_calls_on_reverse_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_reverse_receipt.
76 77 78 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 76 def external_system_calls_on_reverse_receipt @external_system_calls_on_reverse_receipt end |
#external_system_calls_on_total_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_total_receipt.
70 71 72 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 70 def external_system_calls_on_total_receipt @external_system_calls_on_total_receipt end |
#external_system_calls_on_void_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_void_receipt.
72 73 74 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 72 def external_system_calls_on_void_receipt @external_system_calls_on_void_receipt end |
#force_closed_drawer ⇒ Object
Returns the value of attribute force_closed_drawer.
36 37 38 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 36 def force_closed_drawer @force_closed_drawer end |
#id ⇒ Object
global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
22 23 24 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 22 def id @id end |
#invoicing_receipt_copies ⇒ Object
Returns the value of attribute invoicing_receipt_copies.
90 91 92 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 90 def invoicing_receipt_copies @invoicing_receipt_copies end |
#kiosk_mode ⇒ Object
Returns the value of attribute kiosk_mode.
56 57 58 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 56 def kiosk_mode @kiosk_mode end |
#mandatory_return_reason ⇒ Object
Returns the value of attribute mandatory_return_reason.
106 107 108 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 106 def mandatory_return_reason @mandatory_return_reason end |
#master_data_refresh_interval ⇒ Object
Returns the value of attribute master_data_refresh_interval.
104 105 106 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 104 def master_data_refresh_interval @master_data_refresh_interval end |
#max_balance_attempts ⇒ Object
Returns the value of attribute max_balance_attempts.
38 39 40 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 38 def max_balance_attempts @max_balance_attempts end |
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 30 def name @name end |
#number ⇒ Object
number of the object, like it is set in backoffice; will be removed when active=false
28 29 30 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 28 def number @number end |
#order_number_required ⇒ Object
Returns the value of attribute order_number_required.
40 41 42 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 40 def order_number_required @order_number_required end |
#payment_service_configurations ⇒ Object
Returns the value of attribute payment_service_configurations.
42 43 44 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 42 def payment_service_configurations @payment_service_configurations end |
#pos_theme ⇒ Object
Returns the value of attribute pos_theme.
94 95 96 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 94 def pos_theme @pos_theme end |
#receipt_layout_configuration ⇒ Object
Returns the value of attribute receipt_layout_configuration.
48 49 50 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 48 def receipt_layout_configuration @receipt_layout_configuration end |
#report_file ⇒ Object
Returns the value of attribute report_file.
112 113 114 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 112 def report_file @report_file end |
#require_payment_amount_input ⇒ Object
Returns the value of attribute require_payment_amount_input.
54 55 56 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 54 def require_payment_amount_input @require_payment_amount_input end |
#restrict_to_one_parked_receipt ⇒ Object
Returns the value of attribute restrict_to_one_parked_receipt.
108 109 110 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 108 def restrict_to_one_parked_receipt @restrict_to_one_parked_receipt end |
#revision ⇒ Object
the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers.
25 26 27 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 25 def revision @revision end |
#show_bank_notes_for_payment_denomination_only ⇒ Object
Returns the value of attribute show_bank_notes_for_payment_denomination_only.
114 115 116 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 114 def show_bank_notes_for_payment_denomination_only @show_bank_notes_for_payment_denomination_only end |
#table_service_interval ⇒ Object
Returns the value of attribute table_service_interval.
46 47 48 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 46 def table_service_interval @table_service_interval end |
#template_product ⇒ Object
Returns the value of attribute template_product.
96 97 98 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 96 def template_product @template_product end |
#unknown_number_action ⇒ Object
Returns the value of attribute unknown_number_action.
86 87 88 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 86 def unknown_number_action @unknown_number_action end |
#unknown_number_external_system_call ⇒ Object
Returns the value of attribute unknown_number_external_system_call.
88 89 90 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 88 def unknown_number_external_system_call @unknown_number_external_system_call end |
#wide_screen_layout ⇒ Object
Returns the value of attribute wide_screen_layout.
58 59 60 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 58 def wide_screen_layout @wide_screen_layout end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
192 193 194 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 192 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 139 def self.attribute_map { :'active' => :'active', :'id' => :'id', :'revision' => :'revision', :'number' => :'number', :'name' => :'name', :'automatic_cashier_logout_interval' => :'automaticCashierLogoutInterval', :'auto_receipt_print' => :'autoReceiptPrint', :'force_closed_drawer' => :'forceClosedDrawer', :'max_balance_attempts' => :'maxBalanceAttempts', :'order_number_required' => :'orderNumberRequired', :'payment_service_configurations' => :'paymentServiceConfigurations', :'device_profile_configurations' => :'deviceProfileConfigurations', :'table_service_interval' => :'tableServiceInterval', :'receipt_layout_configuration' => :'receiptLayoutConfiguration', :'automatic_end_of_day_interval' => :'automaticEndOfDayInterval', :'cent_input' => :'centInput', :'require_payment_amount_input' => :'requirePaymentAmountInput', :'kiosk_mode' => :'kioskMode', :'wide_screen_layout' => :'wideScreenLayout', :'automatic_payment_finalization' => :'automaticPaymentFinalization', :'auto_reset_quick_access_pad' => :'autoResetQuickAccessPad', :'easy_repeat_product_enabled' => :'easyRepeatProductEnabled', :'external_system_calls_on_book_receipt' => :'externalSystemCallsOnBookReceipt', :'external_system_calls_on_reject_receipt' => :'externalSystemCallsOnRejectReceipt', :'external_system_calls_on_total_receipt' => :'externalSystemCallsOnTotalReceipt', :'external_system_calls_on_void_receipt' => :'externalSystemCallsOnVoidReceipt', :'external_system_calls_on_book_delivery_note' => :'externalSystemCallsOnBookDeliveryNote', :'external_system_calls_on_reverse_receipt' => :'externalSystemCallsOnReverseReceipt', :'external_system_calls_on_login_cashier' => :'externalSystemCallsOnLoginCashier', :'external_system_calls_on_logout_cashier' => :'externalSystemCallsOnLogoutCashier', :'designate_balance_difference' => :'designateBalanceDifference', :'end_of_day_report_enabled' => :'endOfDayReportEnabled', :'unknown_number_action' => :'unknownNumberAction', :'unknown_number_external_system_call' => :'unknownNumberExternalSystemCall', :'invoicing_receipt_copies' => :'invoicingReceiptCopies', :'cashier_password_required' => :'cashierPasswordRequired', :'pos_theme' => :'posTheme', :'template_product' => :'templateProduct', :'digital_receipt' => :'digitalReceipt', :'digital_signature' => :'digitalSignature', :'automatic_customer_creation_from_customer_order' => :'automaticCustomerCreationFromCustomerOrder', :'master_data_refresh_interval' => :'masterDataRefreshInterval', :'mandatory_return_reason' => :'mandatoryReturnReason', :'restrict_to_one_parked_receipt' => :'restrictToOneParkedReceipt', :'automatic_cashier_logout_lock_cashier' => :'automaticCashierLogoutLockCashier', :'report_file' => :'reportFile', :'show_bank_notes_for_payment_denomination_only' => :'showBankNotesForPaymentDenominationOnly' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
597 598 599 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 597 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
250 251 252 253 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 250 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 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 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 197 def self.openapi_types { :'active' => :'Boolean', :'id' => :'String', :'revision' => :'Integer', :'number' => :'String', :'name' => :'String', :'automatic_cashier_logout_interval' => :'TimePeriod', :'auto_receipt_print' => :'Boolean', :'force_closed_drawer' => :'Boolean', :'max_balance_attempts' => :'Integer', :'order_number_required' => :'Boolean', :'payment_service_configurations' => :'Array<PaymentServiceConfiguration>', :'device_profile_configurations' => :'Array<DeviceConfiguration>', :'table_service_interval' => :'TimePeriod', :'receipt_layout_configuration' => :'ModelReference', :'automatic_end_of_day_interval' => :'TimePeriod', :'cent_input' => :'Boolean', :'require_payment_amount_input' => :'Boolean', :'kiosk_mode' => :'Boolean', :'wide_screen_layout' => :'Boolean', :'automatic_payment_finalization' => :'Boolean', :'auto_reset_quick_access_pad' => :'Boolean', :'easy_repeat_product_enabled' => :'Boolean', :'external_system_calls_on_book_receipt' => :'Array<ModelReference>', :'external_system_calls_on_reject_receipt' => :'Array<ModelReference>', :'external_system_calls_on_total_receipt' => :'Array<ModelReference>', :'external_system_calls_on_void_receipt' => :'Array<ModelReference>', :'external_system_calls_on_book_delivery_note' => :'Array<ModelReference>', :'external_system_calls_on_reverse_receipt' => :'Array<ModelReference>', :'external_system_calls_on_login_cashier' => :'Array<ModelReference>', :'external_system_calls_on_logout_cashier' => :'Array<ModelReference>', :'designate_balance_difference' => :'Boolean', :'end_of_day_report_enabled' => :'Boolean', :'unknown_number_action' => :'String', :'unknown_number_external_system_call' => :'ModelReference', :'invoicing_receipt_copies' => :'Integer', :'cashier_password_required' => :'Boolean', :'pos_theme' => :'String', :'template_product' => :'ModelReference', :'digital_receipt' => :'Boolean', :'digital_signature' => :'Boolean', :'automatic_customer_creation_from_customer_order' => :'Boolean', :'master_data_refresh_interval' => :'TimePeriod', :'mandatory_return_reason' => :'Boolean', :'restrict_to_one_parked_receipt' => :'Boolean', :'automatic_cashier_logout_lock_cashier' => :'Boolean', :'report_file' => :'ModelReference', :'show_bank_notes_for_payment_denomination_only' => :'Boolean' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 530 def ==(o) return true if self.equal?(o) self.class == o.class && active == o.active && id == o.id && revision == o.revision && number == o.number && name == o.name && automatic_cashier_logout_interval == o.automatic_cashier_logout_interval && auto_receipt_print == o.auto_receipt_print && force_closed_drawer == o.force_closed_drawer && max_balance_attempts == o.max_balance_attempts && order_number_required == o.order_number_required && payment_service_configurations == o.payment_service_configurations && device_profile_configurations == o.device_profile_configurations && table_service_interval == o.table_service_interval && receipt_layout_configuration == o.receipt_layout_configuration && automatic_end_of_day_interval == o.automatic_end_of_day_interval && cent_input == o.cent_input && require_payment_amount_input == o.require_payment_amount_input && kiosk_mode == o.kiosk_mode && wide_screen_layout == o.wide_screen_layout && automatic_payment_finalization == o.automatic_payment_finalization && auto_reset_quick_access_pad == o.auto_reset_quick_access_pad && easy_repeat_product_enabled == o.easy_repeat_product_enabled && external_system_calls_on_book_receipt == o.external_system_calls_on_book_receipt && external_system_calls_on_reject_receipt == o.external_system_calls_on_reject_receipt && external_system_calls_on_total_receipt == o.external_system_calls_on_total_receipt && external_system_calls_on_void_receipt == o.external_system_calls_on_void_receipt && external_system_calls_on_book_delivery_note == o.external_system_calls_on_book_delivery_note && external_system_calls_on_reverse_receipt == o.external_system_calls_on_reverse_receipt && external_system_calls_on_login_cashier == o.external_system_calls_on_login_cashier && external_system_calls_on_logout_cashier == o.external_system_calls_on_logout_cashier && designate_balance_difference == o.designate_balance_difference && end_of_day_report_enabled == o.end_of_day_report_enabled && unknown_number_action == o.unknown_number_action && unknown_number_external_system_call == o.unknown_number_external_system_call && invoicing_receipt_copies == o.invoicing_receipt_copies && cashier_password_required == o.cashier_password_required && pos_theme == o.pos_theme && template_product == o.template_product && digital_receipt == o.digital_receipt && digital_signature == o.digital_signature && automatic_customer_creation_from_customer_order == o.automatic_customer_creation_from_customer_order && master_data_refresh_interval == o.master_data_refresh_interval && mandatory_return_reason == o.mandatory_return_reason && restrict_to_one_parked_receipt == o.restrict_to_one_parked_receipt && automatic_cashier_logout_lock_cashier == o.automatic_cashier_logout_lock_cashier && report_file == o.report_file && show_bank_notes_for_payment_denomination_only == o.show_bank_notes_for_payment_denomination_only end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 628 def _deserialize(type, value) case type.to_sym when :Time Time.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 # models (e.g. Pet) or oneOf klass = KoronaCloudClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
699 700 701 702 703 704 705 706 707 708 709 710 711 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 699 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
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 604 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif 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 end self end |
#eql?(o) ⇒ Boolean
584 585 586 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 584 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
590 591 592 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 590 def hash [active, id, revision, number, name, automatic_cashier_logout_interval, auto_receipt_print, force_closed_drawer, max_balance_attempts, order_number_required, payment_service_configurations, device_profile_configurations, table_service_interval, receipt_layout_configuration, automatic_end_of_day_interval, cent_input, require_payment_amount_input, kiosk_mode, wide_screen_layout, automatic_payment_finalization, auto_reset_quick_access_pad, easy_repeat_product_enabled, external_system_calls_on_book_receipt, external_system_calls_on_reject_receipt, external_system_calls_on_total_receipt, external_system_calls_on_void_receipt, external_system_calls_on_book_delivery_note, external_system_calls_on_reverse_receipt, external_system_calls_on_login_cashier, external_system_calls_on_logout_cashier, designate_balance_difference, end_of_day_report_enabled, unknown_number_action, unknown_number_external_system_call, invoicing_receipt_copies, cashier_password_required, pos_theme, template_product, digital_receipt, digital_signature, automatic_customer_creation_from_customer_order, master_data_refresh_interval, mandatory_return_reason, restrict_to_one_parked_receipt, automatic_cashier_logout_lock_cashier, report_file, show_bank_notes_for_payment_denomination_only].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
481 482 483 484 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 481 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
675 676 677 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 675 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
681 682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 681 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
669 670 671 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 669 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
488 489 490 491 492 493 494 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 488 def valid? unknown_number_action_validator = EnumAttributeValidator.new('String', ["CARRY_ON_WITH_MESSAGE", "HOLD_ON_WITH_DIALOG", "EXTERNAL_SYSTEM_CALL"]) return false unless unknown_number_action_validator.valid?(@unknown_number_action) pos_theme_validator = EnumAttributeValidator.new('String', ["CLASSIC", "FLAT"]) return false unless pos_theme_validator.valid?(@pos_theme) true end |