Class: ShellCardManagementApIs::UpdateCardGroupResponseMoveCardReferencesItems
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::UpdateCardGroupResponseMoveCardReferencesItems
- Defined in:
- lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb
Overview
UpdateCardGroupResponseMoveCardReferencesItems Model.
Instance Attribute Summary collapse
-
#card_id ⇒ Integer
Card Id of the card.
-
#pan ⇒ String
PAN of the card.
-
#reference ⇒ Integer
Reference number for tracking of update status request of the specific card.
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(card_id = SKIP, pan = SKIP, reference = SKIP) ⇒ UpdateCardGroupResponseMoveCardReferencesItems
constructor
A new instance of UpdateCardGroupResponseMoveCardReferencesItems.
Methods inherited from BaseModel
Constructor Details
#initialize(card_id = SKIP, pan = SKIP, reference = SKIP) ⇒ UpdateCardGroupResponseMoveCardReferencesItems
Returns a new instance of UpdateCardGroupResponseMoveCardReferencesItems.
54 55 56 57 58 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 54 def initialize(card_id = SKIP, pan = SKIP, reference = SKIP) @card_id = card_id unless card_id == SKIP @pan = pan unless pan == SKIP @reference = reference unless reference == SKIP end |
Instance Attribute Details
#card_id ⇒ Integer
Card Id of the card. Example: 123
15 16 17 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 15 def card_id @card_id end |
#pan ⇒ String
PAN of the card. Example: 7002051123456789145
20 21 22 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 20 def pan @pan end |
#reference ⇒ Integer
Reference number for tracking of update status request of the specific card.
25 26 27 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 25 def reference @reference end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 61 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. card_id = hash.key?('CardId') ? hash['CardId'] : SKIP pan = hash.key?('PAN') ? hash['PAN'] : SKIP reference = hash.key?('Reference') ? hash['Reference'] : SKIP # Create object from extracted values. UpdateCardGroupResponseMoveCardReferencesItems.new(card_id, pan, reference) end |
.names ⇒ Object
A mapping from model property names to API property names.
28 29 30 31 32 33 34 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 28 def self.names @_hash = {} if @_hash.nil? @_hash['card_id'] = 'CardId' @_hash['pan'] = 'PAN' @_hash['reference'] = 'Reference' @_hash end |
.nullables ⇒ Object
An array for nullable fields
46 47 48 49 50 51 52 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 46 def self.nullables %w[ card_id pan reference ] end |
.optionals ⇒ Object
An array for optional fields
37 38 39 40 41 42 43 |
# File 'lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb', line 37 def self.optionals %w[ card_id pan reference ] end |