Class: ShellDataReportingApIs::PINAdviceTypes
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellDataReportingApIs::PINAdviceTypes
- Defined in:
- lib/shell_data_reporting_ap_is/models/pin_advice_types.rb
Overview
PINAdviceTypes Model.
Instance Attribute Summary collapse
-
#is_card_order_option ⇒ TrueClass | FalseClass
Whether the PIN advice type is available for card ordering.
-
#is_pin_reminder_option ⇒ TrueClass | FalseClass
Whether the PIN advice type is available for PIN Reminder.
-
#pin_advice_type_id ⇒ Integer
Id of of PIN advice type.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(pin_advice_type_id = SKIP, is_card_order_option = SKIP, is_pin_reminder_option = SKIP) ⇒ PINAdviceTypes
constructor
A new instance of PINAdviceTypes.
Methods inherited from BaseModel
Constructor Details
#initialize(pin_advice_type_id = SKIP, is_card_order_option = SKIP, is_pin_reminder_option = SKIP) ⇒ PINAdviceTypes
Returns a new instance of PINAdviceTypes.
54 55 56 57 58 59 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 54 def initialize(pin_advice_type_id = SKIP, is_card_order_option = SKIP, is_pin_reminder_option = SKIP) @pin_advice_type_id = pin_advice_type_id unless pin_advice_type_id == SKIP @is_card_order_option = is_card_order_option unless is_card_order_option == SKIP @is_pin_reminder_option = is_pin_reminder_option unless is_pin_reminder_option == SKIP end |
Instance Attribute Details
#is_card_order_option ⇒ TrueClass | FalseClass
Whether the PIN advice type is available for card ordering
23 24 25 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 23 def is_card_order_option @is_card_order_option end |
#is_pin_reminder_option ⇒ TrueClass | FalseClass
Whether the PIN advice type is available for PIN Reminder
27 28 29 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 27 def is_pin_reminder_option @is_pin_reminder_option end |
#pin_advice_type_id ⇒ Integer
Id of of PIN advice type. Possible Values:
-
Paper
-
Email
-
SMS
-
None
19 20 21 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 19 def pin_advice_type_id @pin_advice_type_id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 62 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. pin_advice_type_id = hash.key?('PINAdviceTypeID') ? hash['PINAdviceTypeID'] : SKIP is_card_order_option = hash.key?('IsCardOrderOption') ? hash['IsCardOrderOption'] : SKIP is_pin_reminder_option = hash.key?('IsPINReminderOption') ? hash['IsPINReminderOption'] : SKIP # Create object from extracted values. PINAdviceTypes.new(pin_advice_type_id, is_card_order_option, is_pin_reminder_option) end |
.names ⇒ Object
A mapping from model property names to API property names.
30 31 32 33 34 35 36 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 30 def self.names @_hash = {} if @_hash.nil? @_hash['pin_advice_type_id'] = 'PINAdviceTypeID' @_hash['is_card_order_option'] = 'IsCardOrderOption' @_hash['is_pin_reminder_option'] = 'IsPINReminderOption' @_hash end |
.nullables ⇒ Object
An array for nullable fields
48 49 50 51 52 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 48 def self.nullables %w[ pin_advice_type_id ] end |
.optionals ⇒ Object
An array for optional fields
39 40 41 42 43 44 45 |
# File 'lib/shell_data_reporting_ap_is/models/pin_advice_types.rb', line 39 def self.optionals %w[ pin_advice_type_id is_card_order_option is_pin_reminder_option ] end |