Class: ShellCardManagementApIs::CardMoveResponseErrorCardsItems
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::CardMoveResponseErrorCardsItems
- Defined in:
- lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb
Overview
CardMoveResponseErrorCardsItems Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
TODO: Write general description for this method.
-
#account_number ⇒ String
TODO: Write general description for this method.
-
#card_id ⇒ Integer
TODO: Write general description for this method.
-
#pan ⇒ String
TODO: Write general description for this method.
-
#validation_error_code ⇒ String
TODO: Write general description for this method.
-
#validation_error_description ⇒ String
TODO: Write general description for this method.
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(account_number = SKIP, account_id = SKIP, pan = SKIP, card_id = SKIP, validation_error_code = SKIP, validation_error_description = SKIP) ⇒ CardMoveResponseErrorCardsItems
constructor
A new instance of CardMoveResponseErrorCardsItems.
Methods inherited from BaseModel
Constructor Details
#initialize(account_number = SKIP, account_id = SKIP, pan = SKIP, card_id = SKIP, validation_error_code = SKIP, validation_error_description = SKIP) ⇒ CardMoveResponseErrorCardsItems
Returns a new instance of CardMoveResponseErrorCardsItems.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 72 def initialize(account_number = SKIP, account_id = SKIP, pan = SKIP, card_id = SKIP, validation_error_code = SKIP, validation_error_description = SKIP) @account_number = account_number unless account_number == SKIP @account_id = account_id unless account_id == SKIP @pan = pan unless pan == SKIP @card_id = card_id unless card_id == SKIP @validation_error_code = validation_error_code unless validation_error_code == SKIP unless validation_error_description == SKIP @validation_error_description = validation_error_description end end |
Instance Attribute Details
#account_id ⇒ Integer
TODO: Write general description for this method
18 19 20 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 18 def account_id @account_id end |
#account_number ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 14 def account_number @account_number end |
#card_id ⇒ Integer
TODO: Write general description for this method
26 27 28 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 26 def card_id @card_id end |
#pan ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 22 def pan @pan end |
#validation_error_code ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 30 def validation_error_code @validation_error_code end |
#validation_error_description ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 34 def validation_error_description @validation_error_description end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 87 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP pan = hash.key?('PAN') ? hash['PAN'] : SKIP card_id = hash.key?('CardId') ? hash['CardId'] : SKIP validation_error_code = hash.key?('ValidationErrorCode') ? hash['ValidationErrorCode'] : SKIP validation_error_description = hash.key?('ValidationErrorDescription') ? hash['ValidationErrorDescription'] : SKIP # Create object from extracted values. CardMoveResponseErrorCardsItems.new(account_number, account_id, pan, card_id, validation_error_code, validation_error_description) end |
.names ⇒ Object
A mapping from model property names to API property names.
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 37 def self.names @_hash = {} if @_hash.nil? @_hash['account_number'] = 'AccountNumber' @_hash['account_id'] = 'AccountId' @_hash['pan'] = 'PAN' @_hash['card_id'] = 'CardId' @_hash['validation_error_code'] = 'ValidationErrorCode' @_hash['validation_error_description'] = 'ValidationErrorDescription' @_hash end |
.nullables ⇒ Object
An array for nullable fields
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 61 def self.nullables %w[ account_number account_id pan card_id validation_error_code validation_error_description ] end |
.optionals ⇒ Object
An array for optional fields
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb', line 49 def self.optionals %w[ account_number account_id pan card_id validation_error_code validation_error_description ] end |