Class: ShellCardManagementApIs::CardManagementV1PinreminderRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::CardManagementV1PinreminderRequest
- Defined in:
- lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb
Overview
CardManagementV1PinreminderRequest Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account Id of the customer.
Optional if AccountNumber is passed, else Mandatory.
This input is a search criterion, if given. -
#account_number ⇒ String
Account Number of the customer.
Optional if AccountId is passed, else Mandatory.
This input is a search criterion, if given. -
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer.
-
#col_co_id ⇒ Integer
Collecting Company Id of the selected payer
Optional if ColCoCode is passed else Mandatory. -
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer of the selected payer.
Optional if PayerNumber is passed else Mandatory. -
#payer_number ⇒ String
Payer Number (Ex: GB000000123) of the selected payer.
Optional if PayerId is passed else Mandatory. -
#pin_reminder_card_details ⇒ Array[PINReminderCardDetails]
List of PINReminderCardDetails entity.
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_id = SKIP, account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP, pin_reminder_card_details = SKIP) ⇒ CardManagementV1PinreminderRequest
constructor
A new instance of CardManagementV1PinreminderRequest.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(account_id = SKIP, account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP, pin_reminder_card_details = SKIP) ⇒ CardManagementV1PinreminderRequest
Returns a new instance of CardManagementV1PinreminderRequest.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 83 def initialize(account_id = SKIP, account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP, pin_reminder_card_details = SKIP) @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @col_co_code = col_co_code unless col_co_code == SKIP @col_co_id = col_co_id unless col_co_id == SKIP @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP unless pin_reminder_card_details == SKIP @pin_reminder_card_details = pin_reminder_card_details end end |
Instance Attribute Details
#account_id ⇒ Integer
Account Id of the customer.
Optional if AccountNumber is passed, else Mandatory.
This input is a search criterion, if given.
16 17 18 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 16 def account_id @account_id end |
#account_number ⇒ String
Account Number of the customer.
Optional if AccountId is passed, else Mandatory.
This input is a search criterion, if given.
22 23 24 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 22 def account_number @account_number end |
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer.
Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
Ukraine etc.
It is optional for other countries if ColCoID is provided.
29 30 31 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 29 def col_co_code @col_co_code end |
#col_co_id ⇒ Integer
Collecting Company Id of the selected payer
Optional if ColCoCode is passed else Mandatory.
34 35 36 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 34 def col_co_id @col_co_id end |
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer of the selected
payer.
Optional if PayerNumber is passed else Mandatory
40 41 42 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 40 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number (Ex: GB000000123) of the selected payer.
Optional if PayerId is passed else Mandatory
45 46 47 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 45 def payer_number @payer_number end |
#pin_reminder_card_details ⇒ Array[PINReminderCardDetails]
List of PINReminderCardDetails entity. The fields of this entity are described below.
50 51 52 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 50 def pin_reminder_card_details @pin_reminder_card_details end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 99 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP # Parameter is an array, so we need to iterate through it pin_reminder_card_details = nil unless hash['PINReminderCardDetails'].nil? pin_reminder_card_details = [] hash['PINReminderCardDetails'].each do |structure| pin_reminder_card_details << (PINReminderCardDetails.from_hash(structure) if structure) end end pin_reminder_card_details = SKIP unless hash.key?('PINReminderCardDetails') # Create object from extracted values. CardManagementV1PinreminderRequest.new(account_id, account_number, col_co_code, col_co_id, payer_id, payer_number, pin_reminder_card_details) end |
.names ⇒ Object
A mapping from model property names to API property names.
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 53 def self.names @_hash = {} if @_hash.nil? @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['col_co_code'] = 'ColCoCode' @_hash['col_co_id'] = 'ColCoId' @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash['pin_reminder_card_details'] = 'PINReminderCardDetails' @_hash end |
.nullables ⇒ Object
An array for nullable fields
79 80 81 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 79 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 66 def self.optionals %w[ account_id account_number col_co_code col_co_id payer_id payer_number pin_reminder_card_details ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
139 140 141 142 143 144 145 146 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 139 def inspect class_name = self.class.name.split('::').last "<#{class_name} account_id: #{@account_id.inspect}, account_number:"\ " #{@account_number.inspect}, col_co_code: #{@col_co_code.inspect}, col_co_id:"\ " #{@col_co_id.inspect}, payer_id: #{@payer_id.inspect}, payer_number:"\ " #{@payer_number.inspect}, pin_reminder_card_details:"\ " #{@pin_reminder_card_details.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
131 132 133 134 135 136 |
# File 'lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb', line 131 def to_s class_name = self.class.name.split('::').last "<#{class_name} account_id: #{@account_id}, account_number: #{@account_number},"\ " col_co_code: #{@col_co_code}, col_co_id: #{@col_co_id}, payer_id: #{@payer_id},"\ " payer_number: #{@payer_number}, pin_reminder_card_details: #{@pin_reminder_card_details}>" end |