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_first_sale ⇒ Object
Returns the value of attribute external_system_calls_on_book_first_sale.
-
#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_open_non_empty_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_open_non_empty_receipt.
-
#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
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.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.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_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
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 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 274 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') self.external_system_calls_on_reject_receipt = attributes[:'external_system_calls_on_reject_receipt'] end if attributes.key?(:'external_system_calls_on_total_receipt') self.external_system_calls_on_total_receipt = attributes[:'external_system_calls_on_total_receipt'] end if attributes.key?(:'external_system_calls_on_void_receipt') self.external_system_calls_on_void_receipt = attributes[:'external_system_calls_on_void_receipt'] end if attributes.key?(:'external_system_calls_on_book_delivery_note') self.external_system_calls_on_book_delivery_note = attributes[:'external_system_calls_on_book_delivery_note'] end if attributes.key?(:'external_system_calls_on_reverse_receipt') self.external_system_calls_on_reverse_receipt = attributes[:'external_system_calls_on_reverse_receipt'] end if attributes.key?(:'external_system_calls_on_login_cashier') self.external_system_calls_on_login_cashier = attributes[:'external_system_calls_on_login_cashier'] end if attributes.key?(:'external_system_calls_on_logout_cashier') self.external_system_calls_on_logout_cashier = attributes[:'external_system_calls_on_logout_cashier'] end if attributes.key?(:'external_system_calls_on_book_first_sale') self.external_system_calls_on_book_first_sale = attributes[:'external_system_calls_on_book_first_sale'] end if attributes.key?(:'external_system_calls_on_open_non_empty_receipt') self.external_system_calls_on_open_non_empty_receipt = attributes[:'external_system_calls_on_open_non_empty_receipt'] 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.
114 115 116 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 114 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.
106 107 108 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 106 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.
96 97 98 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 96 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.
86 87 88 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 86 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.
102 103 104 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 102 def digital_receipt @digital_receipt end |
#digital_signature ⇒ Object
Returns the value of attribute digital_signature.
104 105 106 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 104 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.
88 89 90 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 88 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_first_sale ⇒ Object
Returns the value of attribute external_system_calls_on_book_first_sale.
82 83 84 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 82 def external_system_calls_on_book_first_sale @external_system_calls_on_book_first_sale 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_open_non_empty_receipt ⇒ Object
Returns the value of attribute external_system_calls_on_open_non_empty_receipt.
84 85 86 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 84 def external_system_calls_on_open_non_empty_receipt @external_system_calls_on_open_non_empty_receipt 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.
94 95 96 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 94 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.
110 111 112 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 110 def mandatory_return_reason @mandatory_return_reason end |
#master_data_refresh_interval ⇒ Object
Returns the value of attribute master_data_refresh_interval.
108 109 110 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 108 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.
98 99 100 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 98 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.
116 117 118 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 116 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.
112 113 114 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 112 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.
118 119 120 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 118 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.
100 101 102 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 100 def template_product @template_product end |
#unknown_number_action ⇒ Object
Returns the value of attribute unknown_number_action.
90 91 92 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 90 def unknown_number_action @unknown_number_action end |
#unknown_number_external_system_call ⇒ Object
Returns the value of attribute unknown_number_external_system_call.
92 93 94 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 92 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
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
624 625 626 627 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 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 624 def self._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 |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
198 199 200 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 198 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 190 191 192 193 194 195 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 143 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', :'external_system_calls_on_book_first_sale' => :'externalSystemCallsOnBookFirstSale', :'external_system_calls_on_open_non_empty_receipt' => :'externalSystemCallsOnOpenNonEmptyReceipt', :'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
600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 600 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{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[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 258 def self.openapi_nullable Set.new([ :'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', :'external_system_calls_on_book_first_sale', :'external_system_calls_on_open_non_empty_receipt', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 248 249 250 251 252 253 254 255 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 203 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' => :'Object', :'external_system_calls_on_total_receipt' => :'Object', :'external_system_calls_on_void_receipt' => :'Object', :'external_system_calls_on_book_delivery_note' => :'Object', :'external_system_calls_on_reverse_receipt' => :'Object', :'external_system_calls_on_login_cashier' => :'Object', :'external_system_calls_on_logout_cashier' => :'Object', :'external_system_calls_on_book_first_sale' => :'Object', :'external_system_calls_on_open_non_empty_receipt' => :'Object', :'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.
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 581 582 583 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 531 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 && external_system_calls_on_book_first_sale == o.external_system_calls_on_book_first_sale && external_system_calls_on_open_non_empty_receipt == o.external_system_calls_on_open_non_empty_receipt && 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 |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 695 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 |
#eql?(o) ⇒ Boolean
587 588 589 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 587 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
593 594 595 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 593 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, external_system_calls_on_book_first_sale, external_system_calls_on_open_non_empty_receipt, 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?
492 493 494 495 496 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 492 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
671 672 673 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 671 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 677 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
665 666 667 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 665 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
500 501 502 503 504 505 506 507 |
# File 'lib/korona-cloud-client/models/pos_profile.rb', line 500 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' 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 |