Class: ShellCardManagementApIs::CardMoveResponseSuccessfulRequestsItems

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb

Overview

CardMoveResponseSuccessfulRequestsItems Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(account_number = SKIP, account_id = SKIP, pan = SKIP, card_id = SKIP, move_card_reference = SKIP) ⇒ CardMoveResponseSuccessfulRequestsItems

Returns a new instance of CardMoveResponseSuccessfulRequestsItems.



65
66
67
68
69
70
71
72
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 65

def initialize( = SKIP,  = SKIP, pan = SKIP,
               card_id = SKIP, move_card_reference = SKIP)
  @account_number =  unless  == SKIP
  @account_id =  unless  == SKIP
  @pan = pan unless pan == SKIP
  @card_id = card_id unless card_id == SKIP
  @move_card_reference = move_card_reference unless move_card_reference == SKIP
end

Instance Attribute Details

#account_idInteger

TODO: Write general description for this method

Returns:

  • (Integer)


18
19
20
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 18

def 
  @account_id
end

#account_numberString

TODO: Write general description for this method

Returns:

  • (String)


14
15
16
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 14

def 
  @account_number
end

#card_idInteger

TODO: Write general description for this method

Returns:

  • (Integer)


26
27
28
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 26

def card_id
  @card_id
end

#move_card_referenceInteger

TODO: Write general description for this method

Returns:

  • (Integer)


30
31
32
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 30

def move_card_reference
  @move_card_reference
end

#panString

TODO: Write general description for this method

Returns:

  • (String)


22
23
24
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 22

def pan
  @pan
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 75

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
   = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
   = hash.key?('AccountId') ? hash['AccountId'] : SKIP
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
  move_card_reference =
    hash.key?('MoveCardReference') ? hash['MoveCardReference'] : SKIP

  # Create object from extracted values.
  CardMoveResponseSuccessfulRequestsItems.new(,
                                              ,
                                              pan,
                                              card_id,
                                              move_card_reference)
end

.namesObject

A mapping from model property names to API property names.



33
34
35
36
37
38
39
40
41
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 33

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_number'] = 'AccountNumber'
  @_hash['account_id'] = 'AccountId'
  @_hash['pan'] = 'PAN'
  @_hash['card_id'] = 'CardId'
  @_hash['move_card_reference'] = 'MoveCardReference'
  @_hash
end

.nullablesObject

An array for nullable fields



55
56
57
58
59
60
61
62
63
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 55

def self.nullables
  %w[
    account_number
    account_id
    pan
    card_id
    move_card_reference
  ]
end

.optionalsObject

An array for optional fields



44
45
46
47
48
49
50
51
52
# File 'lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb', line 44

def self.optionals
  %w[
    account_number
    account_id
    pan
    card_id
    move_card_reference
  ]
end