Class: CyberSource::Ucv1sessionsAppearanceVariables
- Inherits:
-
Object
- Object
- CyberSource::Ucv1sessionsAppearanceVariables
- Defined in:
- lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb
Overview
CSS appearance variables. All variables optional.
Instance Attribute Summary collapse
-
#background_color ⇒ Object
Main background color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. -
#border_radius ⇒ Object
Global border radius
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_active_background ⇒ Object
Background when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_active_border_color ⇒ Object
Border color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_active_border_style ⇒ Object
Border style when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_active_foreground ⇒ Object
Text color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_background ⇒ Object
Button background
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#button_border_color ⇒ Object
Button border color
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#button_border_radius ⇒ Object
Border radius with unit
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#button_border_style ⇒ Object
Border Style
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_disabled_background ⇒ Object
Background color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_disabled_border_color ⇒ Object
Border color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_disabled_foreground ⇒ Object
Text color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_focus_background ⇒ Object
Background when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_focus_border_color ⇒ Object
Border color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_focus_foreground ⇒ Object
Text color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_foreground ⇒ Object
Button text/icon color
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#button_hover_background ⇒ Object
Background on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_hover_border_color ⇒ Object
Border color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_hover_border_style ⇒ Object
Border style on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_hover_foreground ⇒ Object
Text color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#button_shape ⇒ Object
Button shape
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#font_family ⇒ Object
Font Family
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#header_avatar_background_color ⇒ Object
Avatar background in header
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. -
#header_avatar_foreground_color ⇒ Object
Avatar text/icon color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. -
#header_background ⇒ Object
Header background color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. -
#header_foreground ⇒ Object
Header text/icon color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. -
#input_active_background ⇒ Object
Background when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_active_border_color ⇒ Object
Border color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_active_border_style ⇒ Object
Border style when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_active_color ⇒ Object
Text color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_active_placeholder_color ⇒ Object
Placeholder color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_background ⇒ Object
Input field background
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_border_color ⇒ Object
Input border color
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_border_radius ⇒ Object
Border radius with CSS unit
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_border_style ⇒ Object
Border style (solid, dashed, dotted)
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_color ⇒ Object
Input text color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_error_background ⇒ Object
Background on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_error_border_color ⇒ Object
Border color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_error_border_style ⇒ Object
Border style on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_error_color ⇒ Object
Text color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_error_placeholder_color ⇒ Object
Placeholder color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_focused_background ⇒ Object
Background when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_focused_border_color ⇒ Object
Border color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_focused_border_style ⇒ Object
Border style when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_focused_color ⇒ Object
Text color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_focused_placeholder_color ⇒ Object
Placeholder color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_hover_background ⇒ Object
Background on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_hover_border_color ⇒ Object
Border color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_hover_border_style ⇒ Object
Border style on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_hover_color ⇒ Object
Text color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_hover_placeholder_color ⇒ Object
Placeholder color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_placeholder_color ⇒ Object
Placeholder text color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_pressed_background ⇒ Object
Background when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_pressed_border_color ⇒ Object
Border color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_pressed_border_style ⇒ Object
Border style when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_pressed_color ⇒ Object
Text color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_pressed_placeholder_color ⇒ Object
Placeholder color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_valid_background ⇒ Object
Background when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_valid_border_color ⇒ Object
Border color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_valid_border_style ⇒ Object
Border style when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_valid_color ⇒ Object
Text color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#input_valid_placeholder_color ⇒ Object
Placeholder color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. -
#payment_selection_background ⇒ Object
Background for payment method list
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. -
#text_color ⇒ Object
Main text color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
-
.swagger_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 ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Ucv1sessionsAppearanceVariables
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 = {}) ⇒ Ucv1sessionsAppearanceVariables
Initializes the object
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 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 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 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 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 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 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 427 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?(:'backgroundColor') self.background_color = attributes[:'backgroundColor'] end if attributes.has_key?(:'textColor') self.text_color = attributes[:'textColor'] end if attributes.has_key?(:'headerBackground') self.header_background = attributes[:'headerBackground'] end if attributes.has_key?(:'headerForeground') self.header_foreground = attributes[:'headerForeground'] end if attributes.has_key?(:'headerAvatarBackgroundColor') self.header_avatar_background_color = attributes[:'headerAvatarBackgroundColor'] end if attributes.has_key?(:'headerAvatarForegroundColor') self.header_avatar_foreground_color = attributes[:'headerAvatarForegroundColor'] end if attributes.has_key?(:'inputBackground') self.input_background = attributes[:'inputBackground'] end if attributes.has_key?(:'inputColor') self.input_color = attributes[:'inputColor'] end if attributes.has_key?(:'inputPlaceholderColor') self.input_placeholder_color = attributes[:'inputPlaceholderColor'] end if attributes.has_key?(:'inputBorderColor') self.input_border_color = attributes[:'inputBorderColor'] end if attributes.has_key?(:'inputBorderStyle') self.input_border_style = attributes[:'inputBorderStyle'] end if attributes.has_key?(:'inputBorderRadius') self.input_border_radius = attributes[:'inputBorderRadius'] end if attributes.has_key?(:'inputHoverBackground') self.input_hover_background = attributes[:'inputHoverBackground'] end if attributes.has_key?(:'inputHoverColor') self.input_hover_color = attributes[:'inputHoverColor'] end if attributes.has_key?(:'inputHoverPlaceholderColor') self.input_hover_placeholder_color = attributes[:'inputHoverPlaceholderColor'] end if attributes.has_key?(:'inputHoverBorderColor') self.input_hover_border_color = attributes[:'inputHoverBorderColor'] end if attributes.has_key?(:'inputHoverBorderStyle') self.input_hover_border_style = attributes[:'inputHoverBorderStyle'] end if attributes.has_key?(:'inputFocusedBackground') self.input_focused_background = attributes[:'inputFocusedBackground'] end if attributes.has_key?(:'inputFocusedColor') self.input_focused_color = attributes[:'inputFocusedColor'] end if attributes.has_key?(:'inputFocusedPlaceholderColor') self.input_focused_placeholder_color = attributes[:'inputFocusedPlaceholderColor'] end if attributes.has_key?(:'inputFocusedBorderColor') self.input_focused_border_color = attributes[:'inputFocusedBorderColor'] end if attributes.has_key?(:'inputFocusedBorderStyle') self.input_focused_border_style = attributes[:'inputFocusedBorderStyle'] end if attributes.has_key?(:'inputActiveBackground') self.input_active_background = attributes[:'inputActiveBackground'] end if attributes.has_key?(:'inputActiveColor') self.input_active_color = attributes[:'inputActiveColor'] end if attributes.has_key?(:'inputActivePlaceholderColor') self.input_active_placeholder_color = attributes[:'inputActivePlaceholderColor'] end if attributes.has_key?(:'inputActiveBorderColor') self.input_active_border_color = attributes[:'inputActiveBorderColor'] end if attributes.has_key?(:'inputActiveBorderStyle') self.input_active_border_style = attributes[:'inputActiveBorderStyle'] end if attributes.has_key?(:'inputPressedBackground') self.input_pressed_background = attributes[:'inputPressedBackground'] end if attributes.has_key?(:'inputPressedColor') self.input_pressed_color = attributes[:'inputPressedColor'] end if attributes.has_key?(:'inputPressedPlaceholderColor') self.input_pressed_placeholder_color = attributes[:'inputPressedPlaceholderColor'] end if attributes.has_key?(:'inputPressedBorderColor') self.input_pressed_border_color = attributes[:'inputPressedBorderColor'] end if attributes.has_key?(:'inputPressedBorderStyle') self.input_pressed_border_style = attributes[:'inputPressedBorderStyle'] end if attributes.has_key?(:'inputErrorBackground') self.input_error_background = attributes[:'inputErrorBackground'] end if attributes.has_key?(:'inputErrorColor') self.input_error_color = attributes[:'inputErrorColor'] end if attributes.has_key?(:'inputErrorPlaceholderColor') self.input_error_placeholder_color = attributes[:'inputErrorPlaceholderColor'] end if attributes.has_key?(:'inputErrorBorderColor') self.input_error_border_color = attributes[:'inputErrorBorderColor'] end if attributes.has_key?(:'inputErrorBorderStyle') self.input_error_border_style = attributes[:'inputErrorBorderStyle'] end if attributes.has_key?(:'inputValidBackground') self.input_valid_background = attributes[:'inputValidBackground'] end if attributes.has_key?(:'inputValidColor') self.input_valid_color = attributes[:'inputValidColor'] end if attributes.has_key?(:'inputValidPlaceholderColor') self.input_valid_placeholder_color = attributes[:'inputValidPlaceholderColor'] end if attributes.has_key?(:'inputValidBorderColor') self.input_valid_border_color = attributes[:'inputValidBorderColor'] end if attributes.has_key?(:'inputValidBorderStyle') self.input_valid_border_style = attributes[:'inputValidBorderStyle'] end if attributes.has_key?(:'buttonBackground') self. = attributes[:'buttonBackground'] end if attributes.has_key?(:'buttonForeground') self. = attributes[:'buttonForeground'] end if attributes.has_key?(:'buttonShape') self. = attributes[:'buttonShape'] end if attributes.has_key?(:'buttonBorderColor') self. = attributes[:'buttonBorderColor'] end if attributes.has_key?(:'buttonBorderStyle') self. = attributes[:'buttonBorderStyle'] end if attributes.has_key?(:'buttonBorderRadius') self. = attributes[:'buttonBorderRadius'] end if attributes.has_key?(:'buttonHoverBackground') self. = attributes[:'buttonHoverBackground'] end if attributes.has_key?(:'buttonHoverForeground') self. = attributes[:'buttonHoverForeground'] end if attributes.has_key?(:'buttonHoverBorderColor') self. = attributes[:'buttonHoverBorderColor'] end if attributes.has_key?(:'buttonHoverBorderStyle') self. = attributes[:'buttonHoverBorderStyle'] end if attributes.has_key?(:'buttonFocusBackground') self. = attributes[:'buttonFocusBackground'] end if attributes.has_key?(:'buttonFocusForeground') self. = attributes[:'buttonFocusForeground'] end if attributes.has_key?(:'buttonFocusBorderColor') self. = attributes[:'buttonFocusBorderColor'] end if attributes.has_key?(:'buttonActiveBackground') self. = attributes[:'buttonActiveBackground'] end if attributes.has_key?(:'buttonActiveForeground') self. = attributes[:'buttonActiveForeground'] end if attributes.has_key?(:'buttonActiveBorderColor') self. = attributes[:'buttonActiveBorderColor'] end if attributes.has_key?(:'buttonActiveBorderStyle') self. = attributes[:'buttonActiveBorderStyle'] end if attributes.has_key?(:'buttonDisabledBackground') self. = attributes[:'buttonDisabledBackground'] end if attributes.has_key?(:'buttonDisabledForeground') self. = attributes[:'buttonDisabledForeground'] end if attributes.has_key?(:'buttonDisabledBorderColor') self. = attributes[:'buttonDisabledBorderColor'] end if attributes.has_key?(:'fontFamily') self.font_family = attributes[:'fontFamily'] end if attributes.has_key?(:'borderRadius') self.border_radius = attributes[:'borderRadius'] end if attributes.has_key?(:'paymentSelectionBackground') self.payment_selection_background = attributes[:'paymentSelectionBackground'] end end |
Instance Attribute Details
#background_color ⇒ Object
Main background color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis in the uc/v1/sessions API request.
18 19 20 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 18 def background_color @background_color end |
#border_radius ⇒ Object
Global border radius
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
207 208 209 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 207 def border_radius @border_radius end |
#button_active_background ⇒ Object
Background when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
183 184 185 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 183 def @button_active_background end |
#button_active_border_color ⇒ Object
Border color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
189 190 191 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 189 def @button_active_border_color end |
#button_active_border_style ⇒ Object
Border style when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
192 193 194 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 192 def @button_active_border_style end |
#button_active_foreground ⇒ Object
Text color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
186 187 188 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 186 def @button_active_foreground end |
#button_background ⇒ Object
Button background
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
144 145 146 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 144 def @button_background end |
#button_border_color ⇒ Object
Button border color
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
153 154 155 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 153 def @button_border_color end |
#button_border_radius ⇒ Object
Border radius with unit
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
159 160 161 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 159 def @button_border_radius end |
#button_border_style ⇒ Object
Border Style
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
156 157 158 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 156 def @button_border_style end |
#button_disabled_background ⇒ Object
Background color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
195 196 197 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 195 def @button_disabled_background end |
#button_disabled_border_color ⇒ Object
Border color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
201 202 203 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 201 def @button_disabled_border_color end |
#button_disabled_foreground ⇒ Object
Text color when disabled
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
198 199 200 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 198 def @button_disabled_foreground end |
#button_focus_background ⇒ Object
Background when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
174 175 176 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 174 def @button_focus_background end |
#button_focus_border_color ⇒ Object
Border color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
180 181 182 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 180 def @button_focus_border_color end |
#button_focus_foreground ⇒ Object
Text color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
177 178 179 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 177 def @button_focus_foreground end |
#button_foreground ⇒ Object
Button text/icon color
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
147 148 149 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 147 def @button_foreground end |
#button_hover_background ⇒ Object
Background on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
162 163 164 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 162 def @button_hover_background end |
#button_hover_border_color ⇒ Object
Border color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
168 169 170 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 168 def @button_hover_border_color end |
#button_hover_border_style ⇒ Object
Border style on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
171 172 173 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 171 def @button_hover_border_style end |
#button_hover_foreground ⇒ Object
Text color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
165 166 167 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 165 def @button_hover_foreground end |
#button_shape ⇒ Object
Button shape
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
150 151 152 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 150 def @button_shape end |
#font_family ⇒ Object
Font Family
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
204 205 206 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 204 def font_family @font_family end |
#header_avatar_background_color ⇒ Object
Avatar background in header
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
30 31 32 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 30 def header_avatar_background_color @header_avatar_background_color end |
#header_avatar_foreground_color ⇒ Object
Avatar text/icon color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
33 34 35 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 33 def header_avatar_foreground_color @header_avatar_foreground_color end |
#header_background ⇒ Object
Header background color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis in the uc/v1/sessions API request.
24 25 26 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 24 def header_background @header_background end |
#header_foreground ⇒ Object
Header text/icon color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis in the uc/v1/sessions API request.
27 28 29 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 27 def header_foreground @header_foreground end |
#input_active_background ⇒ Object
Background when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
84 85 86 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 84 def input_active_background @input_active_background end |
#input_active_border_color ⇒ Object
Border color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
93 94 95 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 93 def input_active_border_color @input_active_border_color end |
#input_active_border_style ⇒ Object
Border style when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
96 97 98 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 96 def input_active_border_style @input_active_border_style end |
#input_active_color ⇒ Object
Text color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
87 88 89 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 87 def input_active_color @input_active_color end |
#input_active_placeholder_color ⇒ Object
Placeholder color when active
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
90 91 92 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 90 def input_active_placeholder_color @input_active_placeholder_color end |
#input_background ⇒ Object
Input field background
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
36 37 38 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 36 def input_background @input_background end |
#input_border_color ⇒ Object
Input border color
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
45 46 47 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 45 def input_border_color @input_border_color end |
#input_border_radius ⇒ Object
Border radius with CSS unit
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
51 52 53 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 51 def input_border_radius @input_border_radius end |
#input_border_style ⇒ Object
Border style (solid, dashed, dotted)
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
48 49 50 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 48 def input_border_style @input_border_style end |
#input_color ⇒ Object
Input text color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
39 40 41 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 39 def input_color @input_color end |
#input_error_background ⇒ Object
Background on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
114 115 116 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 114 def input_error_background @input_error_background end |
#input_error_border_color ⇒ Object
Border color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
123 124 125 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 123 def input_error_border_color @input_error_border_color end |
#input_error_border_style ⇒ Object
Border style on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
126 127 128 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 126 def input_error_border_style @input_error_border_style end |
#input_error_color ⇒ Object
Text color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
117 118 119 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 117 def input_error_color @input_error_color end |
#input_error_placeholder_color ⇒ Object
Placeholder color on error
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
120 121 122 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 120 def input_error_placeholder_color @input_error_placeholder_color end |
#input_focused_background ⇒ Object
Background when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
69 70 71 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 69 def input_focused_background @input_focused_background end |
#input_focused_border_color ⇒ Object
Border color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
78 79 80 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 78 def input_focused_border_color @input_focused_border_color end |
#input_focused_border_style ⇒ Object
Border style when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
81 82 83 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 81 def input_focused_border_style @input_focused_border_style end |
#input_focused_color ⇒ Object
Text color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
72 73 74 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 72 def input_focused_color @input_focused_color end |
#input_focused_placeholder_color ⇒ Object
Placeholder color when focused
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
75 76 77 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 75 def input_focused_placeholder_color @input_focused_placeholder_color end |
#input_hover_background ⇒ Object
Background on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
54 55 56 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 54 def input_hover_background @input_hover_background end |
#input_hover_border_color ⇒ Object
Border color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
63 64 65 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 63 def input_hover_border_color @input_hover_border_color end |
#input_hover_border_style ⇒ Object
Border style on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
66 67 68 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 66 def input_hover_border_style @input_hover_border_style end |
#input_hover_color ⇒ Object
Text color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
57 58 59 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 57 def input_hover_color @input_hover_color end |
#input_hover_placeholder_color ⇒ Object
Placeholder color on hover
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
60 61 62 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 60 def input_hover_placeholder_color @input_hover_placeholder_color end |
#input_placeholder_color ⇒ Object
Placeholder text color
Optional field::
This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
42 43 44 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 42 def input_placeholder_color @input_placeholder_color end |
#input_pressed_background ⇒ Object
Background when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
99 100 101 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 99 def input_pressed_background @input_pressed_background end |
#input_pressed_border_color ⇒ Object
Border color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
108 109 110 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 108 def input_pressed_border_color @input_pressed_border_color end |
#input_pressed_border_style ⇒ Object
Border style when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
111 112 113 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 111 def input_pressed_border_style @input_pressed_border_style end |
#input_pressed_color ⇒ Object
Text color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
102 103 104 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 102 def input_pressed_color @input_pressed_color end |
#input_pressed_placeholder_color ⇒ Object
Placeholder color when pressed
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
105 106 107 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 105 def input_pressed_placeholder_color @input_pressed_placeholder_color end |
#input_valid_background ⇒ Object
Background when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
129 130 131 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 129 def input_valid_background @input_valid_background end |
#input_valid_border_color ⇒ Object
Border color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
138 139 140 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 138 def input_valid_border_color @input_valid_border_color end |
#input_valid_border_style ⇒ Object
Border style when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
141 142 143 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 141 def input_valid_border_style @input_valid_border_style end |
#input_valid_color ⇒ Object
Text color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
132 133 134 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 132 def input_valid_color @input_valid_color end |
#input_valid_placeholder_color ⇒ Object
Placeholder color when valid
Optional field: This field cannot be configured through the Merchant Experience screens in the Business Center. If required, should be provided on a per‑transaction basis in the uc/v1/sessions API request.
135 136 137 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 135 def input_valid_placeholder_color @input_valid_placeholder_color end |
#payment_selection_background ⇒ Object
Background for payment method list
Optional field: This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis by passing a value in the uc/v1/sessions API request.
210 211 212 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 210 def payment_selection_background @payment_selection_background end |
#text_color ⇒ Object
Main text color
Optional field::
This field can be configured through the Merchant Experience screens in the Business Center. The configured value may be overridden on a per‑transaction basis in the uc/v1/sessions API request.
21 22 23 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 21 def text_color @text_color end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 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 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 213 def self.attribute_map { :'background_color' => :'backgroundColor', :'text_color' => :'textColor', :'header_background' => :'headerBackground', :'header_foreground' => :'headerForeground', :'header_avatar_background_color' => :'headerAvatarBackgroundColor', :'header_avatar_foreground_color' => :'headerAvatarForegroundColor', :'input_background' => :'inputBackground', :'input_color' => :'inputColor', :'input_placeholder_color' => :'inputPlaceholderColor', :'input_border_color' => :'inputBorderColor', :'input_border_style' => :'inputBorderStyle', :'input_border_radius' => :'inputBorderRadius', :'input_hover_background' => :'inputHoverBackground', :'input_hover_color' => :'inputHoverColor', :'input_hover_placeholder_color' => :'inputHoverPlaceholderColor', :'input_hover_border_color' => :'inputHoverBorderColor', :'input_hover_border_style' => :'inputHoverBorderStyle', :'input_focused_background' => :'inputFocusedBackground', :'input_focused_color' => :'inputFocusedColor', :'input_focused_placeholder_color' => :'inputFocusedPlaceholderColor', :'input_focused_border_color' => :'inputFocusedBorderColor', :'input_focused_border_style' => :'inputFocusedBorderStyle', :'input_active_background' => :'inputActiveBackground', :'input_active_color' => :'inputActiveColor', :'input_active_placeholder_color' => :'inputActivePlaceholderColor', :'input_active_border_color' => :'inputActiveBorderColor', :'input_active_border_style' => :'inputActiveBorderStyle', :'input_pressed_background' => :'inputPressedBackground', :'input_pressed_color' => :'inputPressedColor', :'input_pressed_placeholder_color' => :'inputPressedPlaceholderColor', :'input_pressed_border_color' => :'inputPressedBorderColor', :'input_pressed_border_style' => :'inputPressedBorderStyle', :'input_error_background' => :'inputErrorBackground', :'input_error_color' => :'inputErrorColor', :'input_error_placeholder_color' => :'inputErrorPlaceholderColor', :'input_error_border_color' => :'inputErrorBorderColor', :'input_error_border_style' => :'inputErrorBorderStyle', :'input_valid_background' => :'inputValidBackground', :'input_valid_color' => :'inputValidColor', :'input_valid_placeholder_color' => :'inputValidPlaceholderColor', :'input_valid_border_color' => :'inputValidBorderColor', :'input_valid_border_style' => :'inputValidBorderStyle', :'button_background' => :'buttonBackground', :'button_foreground' => :'buttonForeground', :'button_shape' => :'buttonShape', :'button_border_color' => :'buttonBorderColor', :'button_border_style' => :'buttonBorderStyle', :'button_border_radius' => :'buttonBorderRadius', :'button_hover_background' => :'buttonHoverBackground', :'button_hover_foreground' => :'buttonHoverForeground', :'button_hover_border_color' => :'buttonHoverBorderColor', :'button_hover_border_style' => :'buttonHoverBorderStyle', :'button_focus_background' => :'buttonFocusBackground', :'button_focus_foreground' => :'buttonFocusForeground', :'button_focus_border_color' => :'buttonFocusBorderColor', :'button_active_background' => :'buttonActiveBackground', :'button_active_foreground' => :'buttonActiveForeground', :'button_active_border_color' => :'buttonActiveBorderColor', :'button_active_border_style' => :'buttonActiveBorderStyle', :'button_disabled_background' => :'buttonDisabledBackground', :'button_disabled_foreground' => :'buttonDisabledForeground', :'button_disabled_border_color' => :'buttonDisabledBorderColor', :'font_family' => :'fontFamily', :'border_radius' => :'borderRadius', :'payment_selection_background' => :'paymentSelectionBackground' } end |
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
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 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 284 def self.json_map { :'background_color' => :'background_color', :'text_color' => :'text_color', :'header_background' => :'header_background', :'header_foreground' => :'header_foreground', :'header_avatar_background_color' => :'header_avatar_background_color', :'header_avatar_foreground_color' => :'header_avatar_foreground_color', :'input_background' => :'input_background', :'input_color' => :'input_color', :'input_placeholder_color' => :'input_placeholder_color', :'input_border_color' => :'input_border_color', :'input_border_style' => :'input_border_style', :'input_border_radius' => :'input_border_radius', :'input_hover_background' => :'input_hover_background', :'input_hover_color' => :'input_hover_color', :'input_hover_placeholder_color' => :'input_hover_placeholder_color', :'input_hover_border_color' => :'input_hover_border_color', :'input_hover_border_style' => :'input_hover_border_style', :'input_focused_background' => :'input_focused_background', :'input_focused_color' => :'input_focused_color', :'input_focused_placeholder_color' => :'input_focused_placeholder_color', :'input_focused_border_color' => :'input_focused_border_color', :'input_focused_border_style' => :'input_focused_border_style', :'input_active_background' => :'input_active_background', :'input_active_color' => :'input_active_color', :'input_active_placeholder_color' => :'input_active_placeholder_color', :'input_active_border_color' => :'input_active_border_color', :'input_active_border_style' => :'input_active_border_style', :'input_pressed_background' => :'input_pressed_background', :'input_pressed_color' => :'input_pressed_color', :'input_pressed_placeholder_color' => :'input_pressed_placeholder_color', :'input_pressed_border_color' => :'input_pressed_border_color', :'input_pressed_border_style' => :'input_pressed_border_style', :'input_error_background' => :'input_error_background', :'input_error_color' => :'input_error_color', :'input_error_placeholder_color' => :'input_error_placeholder_color', :'input_error_border_color' => :'input_error_border_color', :'input_error_border_style' => :'input_error_border_style', :'input_valid_background' => :'input_valid_background', :'input_valid_color' => :'input_valid_color', :'input_valid_placeholder_color' => :'input_valid_placeholder_color', :'input_valid_border_color' => :'input_valid_border_color', :'input_valid_border_style' => :'input_valid_border_style', :'button_background' => :'button_background', :'button_foreground' => :'button_foreground', :'button_shape' => :'button_shape', :'button_border_color' => :'button_border_color', :'button_border_style' => :'button_border_style', :'button_border_radius' => :'button_border_radius', :'button_hover_background' => :'button_hover_background', :'button_hover_foreground' => :'button_hover_foreground', :'button_hover_border_color' => :'button_hover_border_color', :'button_hover_border_style' => :'button_hover_border_style', :'button_focus_background' => :'button_focus_background', :'button_focus_foreground' => :'button_focus_foreground', :'button_focus_border_color' => :'button_focus_border_color', :'button_active_background' => :'button_active_background', :'button_active_foreground' => :'button_active_foreground', :'button_active_border_color' => :'button_active_border_color', :'button_active_border_style' => :'button_active_border_style', :'button_disabled_background' => :'button_disabled_background', :'button_disabled_foreground' => :'button_disabled_foreground', :'button_disabled_border_color' => :'button_disabled_border_color', :'font_family' => :'font_family', :'border_radius' => :'border_radius', :'payment_selection_background' => :'payment_selection_background' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 355 def self.swagger_types { :'background_color' => :'String', :'text_color' => :'String', :'header_background' => :'String', :'header_foreground' => :'String', :'header_avatar_background_color' => :'String', :'header_avatar_foreground_color' => :'String', :'input_background' => :'String', :'input_color' => :'String', :'input_placeholder_color' => :'String', :'input_border_color' => :'String', :'input_border_style' => :'String', :'input_border_radius' => :'String', :'input_hover_background' => :'String', :'input_hover_color' => :'String', :'input_hover_placeholder_color' => :'String', :'input_hover_border_color' => :'String', :'input_hover_border_style' => :'String', :'input_focused_background' => :'String', :'input_focused_color' => :'String', :'input_focused_placeholder_color' => :'String', :'input_focused_border_color' => :'String', :'input_focused_border_style' => :'String', :'input_active_background' => :'String', :'input_active_color' => :'String', :'input_active_placeholder_color' => :'String', :'input_active_border_color' => :'String', :'input_active_border_style' => :'String', :'input_pressed_background' => :'String', :'input_pressed_color' => :'String', :'input_pressed_placeholder_color' => :'String', :'input_pressed_border_color' => :'String', :'input_pressed_border_style' => :'String', :'input_error_background' => :'String', :'input_error_color' => :'String', :'input_error_placeholder_color' => :'String', :'input_error_border_color' => :'String', :'input_error_border_style' => :'String', :'input_valid_background' => :'String', :'input_valid_color' => :'String', :'input_valid_placeholder_color' => :'String', :'input_valid_border_color' => :'String', :'input_valid_border_style' => :'String', :'button_background' => :'String', :'button_foreground' => :'String', :'button_shape' => :'String', :'button_border_color' => :'String', :'button_border_style' => :'String', :'button_border_radius' => :'String', :'button_hover_background' => :'String', :'button_hover_foreground' => :'String', :'button_hover_border_color' => :'String', :'button_hover_border_style' => :'String', :'button_focus_background' => :'String', :'button_focus_foreground' => :'String', :'button_focus_border_color' => :'String', :'button_active_background' => :'String', :'button_active_foreground' => :'String', :'button_active_border_color' => :'String', :'button_active_border_style' => :'String', :'button_disabled_background' => :'String', :'button_disabled_foreground' => :'String', :'button_disabled_border_color' => :'String', :'font_family' => :'String', :'border_radius' => :'String', :'payment_selection_background' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1459 def ==(o) return true if self.equal?(o) self.class == o.class && background_color == o.background_color && text_color == o.text_color && header_background == o.header_background && header_foreground == o.header_foreground && header_avatar_background_color == o.header_avatar_background_color && header_avatar_foreground_color == o.header_avatar_foreground_color && input_background == o.input_background && input_color == o.input_color && input_placeholder_color == o.input_placeholder_color && input_border_color == o.input_border_color && input_border_style == o.input_border_style && input_border_radius == o.input_border_radius && input_hover_background == o.input_hover_background && input_hover_color == o.input_hover_color && input_hover_placeholder_color == o.input_hover_placeholder_color && input_hover_border_color == o.input_hover_border_color && input_hover_border_style == o.input_hover_border_style && input_focused_background == o.input_focused_background && input_focused_color == o.input_focused_color && input_focused_placeholder_color == o.input_focused_placeholder_color && input_focused_border_color == o.input_focused_border_color && input_focused_border_style == o.input_focused_border_style && input_active_background == o.input_active_background && input_active_color == o.input_active_color && input_active_placeholder_color == o.input_active_placeholder_color && input_active_border_color == o.input_active_border_color && input_active_border_style == o.input_active_border_style && input_pressed_background == o.input_pressed_background && input_pressed_color == o.input_pressed_color && input_pressed_placeholder_color == o.input_pressed_placeholder_color && input_pressed_border_color == o.input_pressed_border_color && input_pressed_border_style == o.input_pressed_border_style && input_error_background == o.input_error_background && input_error_color == o.input_error_color && input_error_placeholder_color == o.input_error_placeholder_color && input_error_border_color == o.input_error_border_color && input_error_border_style == o.input_error_border_style && input_valid_background == o.input_valid_background && input_valid_color == o.input_valid_color && input_valid_placeholder_color == o.input_valid_placeholder_color && input_valid_border_color == o.input_valid_border_color && input_valid_border_style == o.input_valid_border_style && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && font_family == o.font_family && border_radius == o.border_radius && payment_selection_background == o.payment_selection_background end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1565 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 = CyberSource.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
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1631 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
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1544 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 the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{self.class.json_map[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
1531 1532 1533 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1531 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1537 1538 1539 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1537 def hash [background_color, text_color, header_background, header_foreground, header_avatar_background_color, header_avatar_foreground_color, input_background, input_color, input_placeholder_color, input_border_color, input_border_style, input_border_radius, input_hover_background, input_hover_color, input_hover_placeholder_color, input_hover_border_color, input_hover_border_style, input_focused_background, input_focused_color, input_focused_placeholder_color, input_focused_border_color, input_focused_border_style, input_active_background, input_active_color, input_active_placeholder_color, input_active_border_color, input_active_border_style, input_pressed_background, input_pressed_color, input_pressed_placeholder_color, input_pressed_border_color, input_pressed_border_style, input_error_background, input_error_color, input_error_placeholder_color, input_error_border_color, input_error_border_style, input_valid_background, input_valid_color, input_valid_placeholder_color, input_valid_border_color, input_valid_border_style, , , , , , , , , , , , , , , , , , , , , font_family, border_radius, payment_selection_background].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 696 def list_invalid_properties invalid_properties = Array.new #if !@background_color.nil? && @background_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "background_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@text_color.nil? && @text_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "text_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@header_background.nil? && @header_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "header_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@header_foreground.nil? && @header_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "header_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@header_avatar_background_color.nil? && @header_avatar_background_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "header_avatar_background_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@header_avatar_foreground_color.nil? && @header_avatar_foreground_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "header_avatar_foreground_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_background.nil? && @input_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_color.nil? && @input_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_placeholder_color.nil? && @input_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_border_color.nil? && @input_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_hover_background.nil? && @input_hover_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_hover_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_hover_color.nil? && @input_hover_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_hover_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_hover_placeholder_color.nil? && @input_hover_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_hover_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_hover_border_color.nil? && @input_hover_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_hover_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_focused_background.nil? && @input_focused_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_focused_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_focused_color.nil? && @input_focused_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_focused_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_focused_placeholder_color.nil? && @input_focused_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_focused_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_focused_border_color.nil? && @input_focused_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_focused_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_active_background.nil? && @input_active_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_active_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_active_color.nil? && @input_active_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_active_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_active_placeholder_color.nil? && @input_active_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_active_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_active_border_color.nil? && @input_active_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_active_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_pressed_background.nil? && @input_pressed_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_pressed_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_pressed_color.nil? && @input_pressed_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_pressed_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_pressed_placeholder_color.nil? && @input_pressed_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_pressed_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_pressed_border_color.nil? && @input_pressed_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_pressed_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_error_background.nil? && @input_error_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_error_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_error_color.nil? && @input_error_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_error_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_error_placeholder_color.nil? && @input_error_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_error_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_error_border_color.nil? && @input_error_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_error_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_valid_background.nil? && @input_valid_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_valid_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_valid_color.nil? && @input_valid_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_valid_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_valid_placeholder_color.nil? && @input_valid_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_valid_placeholder_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@input_valid_border_color.nil? && @input_valid_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "input_valid_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_background.nil? && @button_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_foreground.nil? && @button_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_border_color.nil? && @button_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_hover_background.nil? && @button_hover_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_hover_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_hover_foreground.nil? && @button_hover_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_hover_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_hover_border_color.nil? && @button_hover_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_hover_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_focus_background.nil? && @button_focus_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_focus_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_focus_foreground.nil? && @button_focus_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_focus_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_focus_border_color.nil? && @button_focus_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_focus_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_active_background.nil? && @button_active_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_active_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_active_foreground.nil? && @button_active_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_active_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_active_border_color.nil? && @button_active_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_active_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_disabled_background.nil? && @button_disabled_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_disabled_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_disabled_foreground.nil? && @button_disabled_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_disabled_foreground", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@button_disabled_border_color.nil? && @button_disabled_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "button_disabled_border_color", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end #if !@payment_selection_background.nil? && @payment_selection_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #invalid_properties.push('invalid value for "payment_selection_background", must conform to the pattern /^#([A-Fa-f0-9]{6})$/.') #end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
1611 1612 1613 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1611 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1617 1618 1619 1620 1621 1622 1623 1624 1625 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1617 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
1605 1606 1607 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 1605 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 |
# File 'lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb', line 903 def valid? #return false if !@background_color.nil? && @background_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@text_color.nil? && @text_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@header_background.nil? && @header_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@header_foreground.nil? && @header_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@header_avatar_background_color.nil? && @header_avatar_background_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@header_avatar_foreground_color.nil? && @header_avatar_foreground_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_background.nil? && @input_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_color.nil? && @input_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_placeholder_color.nil? && @input_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_border_color.nil? && @input_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_hover_background.nil? && @input_hover_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_hover_color.nil? && @input_hover_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_hover_placeholder_color.nil? && @input_hover_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_hover_border_color.nil? && @input_hover_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_focused_background.nil? && @input_focused_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_focused_color.nil? && @input_focused_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_focused_placeholder_color.nil? && @input_focused_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_focused_border_color.nil? && @input_focused_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_active_background.nil? && @input_active_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_active_color.nil? && @input_active_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_active_placeholder_color.nil? && @input_active_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_active_border_color.nil? && @input_active_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_pressed_background.nil? && @input_pressed_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_pressed_color.nil? && @input_pressed_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_pressed_placeholder_color.nil? && @input_pressed_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_pressed_border_color.nil? && @input_pressed_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_error_background.nil? && @input_error_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_error_color.nil? && @input_error_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_error_placeholder_color.nil? && @input_error_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_error_border_color.nil? && @input_error_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_valid_background.nil? && @input_valid_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_valid_color.nil? && @input_valid_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_valid_placeholder_color.nil? && @input_valid_placeholder_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@input_valid_border_color.nil? && @input_valid_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_background.nil? && @button_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_foreground.nil? && @button_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_border_color.nil? && @button_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_hover_background.nil? && @button_hover_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_hover_foreground.nil? && @button_hover_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_hover_border_color.nil? && @button_hover_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_focus_background.nil? && @button_focus_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_focus_foreground.nil? && @button_focus_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_focus_border_color.nil? && @button_focus_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_active_background.nil? && @button_active_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_active_foreground.nil? && @button_active_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_active_border_color.nil? && @button_active_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_disabled_background.nil? && @button_disabled_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_disabled_foreground.nil? && @button_disabled_foreground !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@button_disabled_border_color.nil? && @button_disabled_border_color !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) #return false if !@payment_selection_background.nil? && @payment_selection_background !~ Regexp.new(/^#([A-Fa-f0-9]{6})$/) true end |