Class: ShellCardManagementApIs::UpdateCardGroupResponseMoveCardReferencesItems

Inherits:
BaseModel
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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_idInteger

Card Id of the card. Example: 123

Returns:

  • (Integer)


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

#panString

PAN of the card. Example: 7002051123456789145

Returns:

  • (String)


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

#referenceInteger

Reference number for tracking of update status request of the specific card.

Returns:

  • (Integer)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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