Class: ShellCardManagementApIs::DeliveryAddressUpdateReferences2
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::DeliveryAddressUpdateReferences2
- Defined in:
- lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb
Overview
DeliveryAddressUpdateReferences2 Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
AccountId.
-
#account_number ⇒ String
Account number.
-
#card_id ⇒ Integer
CardId.
-
#card_pan ⇒ String
PAN of the card.
-
#error_info ⇒ String
Individual error information for the delivery address update request.
-
#reference_id ⇒ Integer
Individual delivery address update reference number for the delivery address update request.
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, card_pan = SKIP, account_id = SKIP, account_number = SKIP, reference_id = SKIP, error_info = SKIP) ⇒ DeliveryAddressUpdateReferences2
constructor
A new instance of DeliveryAddressUpdateReferences2.
Methods inherited from BaseModel
Constructor Details
#initialize(card_id = SKIP, card_pan = SKIP, account_id = SKIP, account_number = SKIP, reference_id = SKIP, error_info = SKIP) ⇒ DeliveryAddressUpdateReferences2
Returns a new instance of DeliveryAddressUpdateReferences2.
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 66 def initialize(card_id = SKIP, card_pan = SKIP, account_id = SKIP, account_number = SKIP, reference_id = SKIP, error_info = SKIP) @card_id = card_id unless card_id == SKIP @card_pan = card_pan unless card_pan == SKIP @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @reference_id = reference_id unless reference_id == SKIP @error_info = error_info unless error_info == SKIP end |
Instance Attribute Details
#account_id ⇒ Integer
AccountId
22 23 24 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 22 def account_id @account_id end |
#account_number ⇒ String
Account number
26 27 28 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 26 def account_number @account_number end |
#card_id ⇒ Integer
CardId
14 15 16 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 14 def card_id @card_id end |
#card_pan ⇒ String
PAN of the card.
18 19 20 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 18 def card_pan @card_pan end |
#error_info ⇒ String
Individual error information for the delivery address update request.
35 36 37 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 35 def error_info @error_info end |
#reference_id ⇒ Integer
Individual delivery address update reference number for the delivery address update request.
31 32 33 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 31 def reference_id @reference_id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 78 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. card_id = hash.key?('CardId') ? hash['CardId'] : SKIP card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP reference_id = hash.key?('ReferenceId') ? hash['ReferenceId'] : SKIP error_info = hash.key?('ErrorInfo') ? hash['ErrorInfo'] : SKIP # Create object from extracted values. DeliveryAddressUpdateReferences2.new(card_id, card_pan, account_id, account_number, reference_id, error_info) end |
.names ⇒ Object
A mapping from model property names to API property names.
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 38 def self.names @_hash = {} if @_hash.nil? @_hash['card_id'] = 'CardId' @_hash['card_pan'] = 'CardPAN' @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['reference_id'] = 'ReferenceId' @_hash['error_info'] = 'ErrorInfo' @_hash end |
.nullables ⇒ Object
An array for nullable fields
62 63 64 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 62 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb', line 50 def self.optionals %w[ card_id card_pan account_id account_number reference_id error_info ] end |