Class: ShellCardManagementApIs::BundleDetailsResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::BundleDetailsResponse
- Defined in:
- lib/shell_card_management_ap_is/models/bundle_details_response.rb
Overview
BundleDetailsResponse Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account ID of the bundle.
-
#account_number ⇒ String
Account Number of the bundle.
-
#bundle_id ⇒ String
unique identifier for the Card Bundle.
-
#description ⇒ String
Card Bundle Description.
-
#external_bundle_id ⇒ String
External system allocated Card Bundle identifier for Card Bundle.
-
#pans ⇒ Array[String]
List of Card Pans added to the card bundle.
-
#payer_id ⇒ Integer
Payer Id of the bundles and cards.
-
#payer_number ⇒ String
Payer Number of the bundles and cards.
-
#restriction_currency_code ⇒ String
ISO currency code of the country.
-
#restriction_currency_symbol ⇒ String
Currency symbol of the country.
-
#restrictions ⇒ BundledRestrictionsList
Currency symbol of the country.
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(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, bundle_id = SKIP, external_bundle_id = SKIP, description = SKIP, pans = SKIP, restriction_currency_code = SKIP, restriction_currency_symbol = SKIP, restrictions = SKIP) ⇒ BundleDetailsResponse
constructor
A new instance of BundleDetailsResponse.
-
#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(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, bundle_id = SKIP, external_bundle_id = SKIP, description = SKIP, pans = SKIP, restriction_currency_code = SKIP, restriction_currency_symbol = SKIP, restrictions = SKIP) ⇒ BundleDetailsResponse
Returns a new instance of BundleDetailsResponse.
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 102 def initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, bundle_id = SKIP, external_bundle_id = SKIP, description = SKIP, pans = SKIP, restriction_currency_code = SKIP, restriction_currency_symbol = SKIP, restrictions = SKIP) @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @bundle_id = bundle_id unless bundle_id == SKIP @external_bundle_id = external_bundle_id unless external_bundle_id == SKIP @description = description unless description == SKIP @pans = pans unless pans == SKIP unless restriction_currency_code == SKIP @restriction_currency_code = restriction_currency_code end unless restriction_currency_symbol == SKIP @restriction_currency_symbol = restriction_currency_symbol end @restrictions = restrictions unless restrictions == SKIP end |
Instance Attribute Details
#account_id ⇒ Integer
Account ID of the bundle. Example: 123456
25 26 27 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 25 def account_id @account_id end |
#account_number ⇒ String
Account Number of the bundle. Example: GB000000123
30 31 32 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 30 def account_number @account_number end |
#bundle_id ⇒ String
unique identifier for the Card Bundle
34 35 36 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 34 def bundle_id @bundle_id end |
#description ⇒ String
Card Bundle Description.
42 43 44 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 42 def description @description end |
#external_bundle_id ⇒ String
External system allocated Card Bundle identifier for Card Bundle.
38 39 40 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 38 def external_bundle_id @external_bundle_id end |
#pans ⇒ Array[String]
List of Card Pans added to the card bundle.
46 47 48 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 46 def pans @pans end |
#payer_id ⇒ Integer
Payer Id of the bundles and cards. Example: 123456
15 16 17 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 15 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number of the bundles and cards. Example: GB000000123
20 21 22 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 20 def payer_number @payer_number end |
#restriction_currency_code ⇒ String
ISO currency code of the country. Example: GBP
51 52 53 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 51 def restriction_currency_code @restriction_currency_code end |
#restriction_currency_symbol ⇒ String
Currency symbol of the country. Example: £, $
56 57 58 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 56 def restriction_currency_symbol @restriction_currency_symbol end |
#restrictions ⇒ BundledRestrictionsList
Currency symbol of the country. Example: £, $
61 62 63 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 61 def restrictions @restrictions end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 127 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP external_bundle_id = hash.key?('ExternalBundleId') ? hash['ExternalBundleId'] : SKIP description = hash.key?('Description') ? hash['Description'] : SKIP pans = hash.key?('Pans') ? hash['Pans'] : SKIP restriction_currency_code = hash.key?('RestrictionCurrencyCode') ? hash['RestrictionCurrencyCode'] : SKIP restriction_currency_symbol = hash.key?('RestrictionCurrencySymbol') ? hash['RestrictionCurrencySymbol'] : SKIP restrictions = BundledRestrictionsList.from_hash(hash['Restrictions']) if hash['Restrictions'] # Create object from extracted values. BundleDetailsResponse.new(payer_id, payer_number, account_id, account_number, bundle_id, external_bundle_id, description, pans, restriction_currency_code, restriction_currency_symbol, restrictions) end |
.names ⇒ Object
A mapping from model property names to API property names.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 64 def self.names @_hash = {} if @_hash.nil? @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['bundle_id'] = 'BundleId' @_hash['external_bundle_id'] = 'ExternalBundleId' @_hash['description'] = 'Description' @_hash['pans'] = 'Pans' @_hash['restriction_currency_code'] = 'RestrictionCurrencyCode' @_hash['restriction_currency_symbol'] = 'RestrictionCurrencySymbol' @_hash['restrictions'] = 'Restrictions' @_hash end |
.nullables ⇒ Object
An array for nullable fields
98 99 100 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 98 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 81 def self.optionals %w[ payer_id payer_number account_id account_number bundle_id external_bundle_id description pans restriction_currency_code restriction_currency_symbol restrictions ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
172 173 174 175 176 177 178 179 180 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 172 def inspect class_name = self.class.name.split('::').last "<#{class_name} payer_id: #{@payer_id.inspect}, payer_number: #{@payer_number.inspect},"\ " account_id: #{@account_id.inspect}, account_number: #{@account_number.inspect}, bundle_id:"\ " #{@bundle_id.inspect}, external_bundle_id: #{@external_bundle_id.inspect}, description:"\ " #{@description.inspect}, pans: #{@pans.inspect}, restriction_currency_code:"\ " #{@restriction_currency_code.inspect}, restriction_currency_symbol:"\ " #{@restriction_currency_symbol.inspect}, restrictions: #{@restrictions.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
162 163 164 165 166 167 168 169 |
# File 'lib/shell_card_management_ap_is/models/bundle_details_response.rb', line 162 def to_s class_name = self.class.name.split('::').last "<#{class_name} payer_id: #{@payer_id}, payer_number: #{@payer_number}, account_id:"\ " #{@account_id}, account_number: #{@account_number}, bundle_id: #{@bundle_id},"\ " external_bundle_id: #{@external_bundle_id}, description: #{@description}, pans: #{@pans},"\ " restriction_currency_code: #{@restriction_currency_code}, restriction_currency_symbol:"\ " #{@restriction_currency_symbol}, restrictions: #{@restrictions}>" end |