Class: CyberSource::CardProcessingConfigCommonAcquirerAgreementAcquirerCode
- Inherits:
-
Object
- Object
- CyberSource::CardProcessingConfigCommonAcquirerAgreementAcquirerCode
- Defined in:
- lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb
Overview
Contains the specific configuration details for an acquirer.
Instance Attribute Summary collapse
-
#acquirer_account_id ⇒ Object
Account number for the acquirer.
-
#center_name ⇒ Object
Center name provided by the acquirer.
-
#fbn_identification_flag ⇒ Object
FBN (For Benefit Of) Identification flag.
-
#number_of_bonus_payments ⇒ Object
Comma-separated list of the number of bonus payments.
-
#number_of_installment_payments ⇒ Object
Comma-separated list of the number of installment payments.
-
#number_of_installments ⇒ Object
Comma-separated list of the number of installments.
-
#number_of_integrated_installments ⇒ Object
Comma-separated list of the number of integrated installments.
-
#payment_modes ⇒ Object
Comma-separated list of payment modes.
-
#payment_options ⇒ Object
Returns the value of attribute payment_options.
-
#retail_supported ⇒ Object
Indicates if retail transactions are supported.
-
#summer_bonus_end_date ⇒ Object
Bonus end date for the summer period.
-
#summer_bonus_month ⇒ Object
Bonus month for the summer period .
-
#summer_bonus_start_date ⇒ Object
Bonus start date for the summer period.
-
#winter_bonus_end_date ⇒ Object
Bonus end date for the winter period.
-
#winter_bonus_month ⇒ Object
Bonus month for the winter period .
-
#winter_bonus_start_date ⇒ Object
Bonus start date for the winter period.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CardProcessingConfigCommonAcquirerAgreementAcquirerCode
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ CardProcessingConfigCommonAcquirerAgreementAcquirerCode
Initializes the object
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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 132 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'acquirerAccountId') self.acquirer_account_id = attributes[:'acquirerAccountId'] end if attributes.has_key?(:'summerBonusStartDate') self.summer_bonus_start_date = attributes[:'summerBonusStartDate'] end if attributes.has_key?(:'summerBonusEndDate') self.summer_bonus_end_date = attributes[:'summerBonusEndDate'] end if attributes.has_key?(:'summerBonusMonth') self.summer_bonus_month = attributes[:'summerBonusMonth'] end if attributes.has_key?(:'winterBonusStartDate') self.winter_bonus_start_date = attributes[:'winterBonusStartDate'] end if attributes.has_key?(:'winterBonusEndDate') self.winter_bonus_end_date = attributes[:'winterBonusEndDate'] end if attributes.has_key?(:'winterBonusMonth') self.winter_bonus_month = attributes[:'winterBonusMonth'] end if attributes.has_key?(:'numberOfInstallments') self.number_of_installments = attributes[:'numberOfInstallments'] end if attributes.has_key?(:'paymentModes') self.payment_modes = attributes[:'paymentModes'] end if attributes.has_key?(:'numberOfInstallmentPayments') self.number_of_installment_payments = attributes[:'numberOfInstallmentPayments'] end if attributes.has_key?(:'numberOfIntegratedInstallments') self.number_of_integrated_installments = attributes[:'numberOfIntegratedInstallments'] end if attributes.has_key?(:'numberOfBonusPayments') self.number_of_bonus_payments = attributes[:'numberOfBonusPayments'] end if attributes.has_key?(:'centerName') self.center_name = attributes[:'centerName'] end if attributes.has_key?(:'fbnIdentificationFlag') self.fbn_identification_flag = attributes[:'fbnIdentificationFlag'] end if attributes.has_key?(:'retailSupported') self.retail_supported = attributes[:'retailSupported'] end if attributes.has_key?(:'paymentOptions') self. = attributes[:'paymentOptions'] end end |
Instance Attribute Details
#acquirer_account_id ⇒ Object
Account number for the acquirer.
18 19 20 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 18 def acquirer_account_id @acquirer_account_id end |
#center_name ⇒ Object
Center name provided by the acquirer.
54 55 56 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 54 def center_name @center_name end |
#fbn_identification_flag ⇒ Object
FBN (For Benefit Of) Identification flag.
57 58 59 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 57 def fbn_identification_flag @fbn_identification_flag end |
#number_of_bonus_payments ⇒ Object
Comma-separated list of the number of bonus payments.
51 52 53 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 51 def number_of_bonus_payments @number_of_bonus_payments end |
#number_of_installment_payments ⇒ Object
Comma-separated list of the number of installment payments.
45 46 47 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 45 def number_of_installment_payments @number_of_installment_payments end |
#number_of_installments ⇒ Object
Comma-separated list of the number of installments.
39 40 41 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 39 def number_of_installments @number_of_installments end |
#number_of_integrated_installments ⇒ Object
Comma-separated list of the number of integrated installments.
48 49 50 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 48 def number_of_integrated_installments @number_of_integrated_installments end |
#payment_modes ⇒ Object
Comma-separated list of payment modes.
42 43 44 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 42 def payment_modes @payment_modes end |
#payment_options ⇒ Object
Returns the value of attribute payment_options.
62 63 64 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 62 def @payment_options end |
#retail_supported ⇒ Object
Indicates if retail transactions are supported.
60 61 62 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 60 def retail_supported @retail_supported end |
#summer_bonus_end_date ⇒ Object
Bonus end date for the summer period.
24 25 26 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 24 def summer_bonus_end_date @summer_bonus_end_date end |
#summer_bonus_month ⇒ Object
Bonus month for the summer period .
27 28 29 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 27 def summer_bonus_month @summer_bonus_month end |
#summer_bonus_start_date ⇒ Object
Bonus start date for the summer period.
21 22 23 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 21 def summer_bonus_start_date @summer_bonus_start_date end |
#winter_bonus_end_date ⇒ Object
Bonus end date for the winter period.
33 34 35 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 33 def winter_bonus_end_date @winter_bonus_end_date end |
#winter_bonus_month ⇒ Object
Bonus month for the winter period .
36 37 38 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 36 def winter_bonus_month @winter_bonus_month end |
#winter_bonus_start_date ⇒ Object
Bonus start date for the winter period.
30 31 32 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 30 def winter_bonus_start_date @winter_bonus_start_date end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 65 def self.attribute_map { :'acquirer_account_id' => :'acquirerAccountId', :'summer_bonus_start_date' => :'summerBonusStartDate', :'summer_bonus_end_date' => :'summerBonusEndDate', :'summer_bonus_month' => :'summerBonusMonth', :'winter_bonus_start_date' => :'winterBonusStartDate', :'winter_bonus_end_date' => :'winterBonusEndDate', :'winter_bonus_month' => :'winterBonusMonth', :'number_of_installments' => :'numberOfInstallments', :'payment_modes' => :'paymentModes', :'number_of_installment_payments' => :'numberOfInstallmentPayments', :'number_of_integrated_installments' => :'numberOfIntegratedInstallments', :'number_of_bonus_payments' => :'numberOfBonusPayments', :'center_name' => :'centerName', :'fbn_identification_flag' => :'fbnIdentificationFlag', :'retail_supported' => :'retailSupported', :'payment_options' => :'paymentOptions' } end |
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 87 def self.json_map { :'acquirer_account_id' => :'acquirer_account_id', :'summer_bonus_start_date' => :'summer_bonus_start_date', :'summer_bonus_end_date' => :'summer_bonus_end_date', :'summer_bonus_month' => :'summer_bonus_month', :'winter_bonus_start_date' => :'winter_bonus_start_date', :'winter_bonus_end_date' => :'winter_bonus_end_date', :'winter_bonus_month' => :'winter_bonus_month', :'number_of_installments' => :'number_of_installments', :'payment_modes' => :'payment_modes', :'number_of_installment_payments' => :'number_of_installment_payments', :'number_of_integrated_installments' => :'number_of_integrated_installments', :'number_of_bonus_payments' => :'number_of_bonus_payments', :'center_name' => :'center_name', :'fbn_identification_flag' => :'fbn_identification_flag', :'retail_supported' => :'retail_supported', :'payment_options' => :'payment_options' } end |
.swagger_types ⇒ Object
Attribute type mapping.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 109 def self.swagger_types { :'acquirer_account_id' => :'String', :'summer_bonus_start_date' => :'String', :'summer_bonus_end_date' => :'String', :'summer_bonus_month' => :'String', :'winter_bonus_start_date' => :'String', :'winter_bonus_end_date' => :'String', :'winter_bonus_month' => :'String', :'number_of_installments' => :'String', :'payment_modes' => :'String', :'number_of_installment_payments' => :'String', :'number_of_integrated_installments' => :'String', :'number_of_bonus_payments' => :'String', :'center_name' => :'String', :'fbn_identification_flag' => :'String', :'retail_supported' => :'BOOLEAN', :'payment_options' => :'CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 218 def ==(o) return true if self.equal?(o) self.class == o.class && acquirer_account_id == o.acquirer_account_id && summer_bonus_start_date == o.summer_bonus_start_date && summer_bonus_end_date == o.summer_bonus_end_date && summer_bonus_month == o.summer_bonus_month && winter_bonus_start_date == o.winter_bonus_start_date && winter_bonus_end_date == o.winter_bonus_end_date && winter_bonus_month == o.winter_bonus_month && number_of_installments == o.number_of_installments && payment_modes == o.payment_modes && number_of_installment_payments == o.number_of_installment_payments && number_of_integrated_installments == o.number_of_integrated_installments && number_of_bonus_payments == o.number_of_bonus_payments && center_name == o.center_name && fbn_identification_flag == o.fbn_identification_flag && retail_supported == o.retail_supported && == o. end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 275 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CyberSource.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 341 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 254 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
241 242 243 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 241 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
247 248 249 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 247 def hash [acquirer_account_id, summer_bonus_start_date, summer_bonus_end_date, summer_bonus_month, winter_bonus_start_date, winter_bonus_end_date, winter_bonus_month, number_of_installments, payment_modes, number_of_installment_payments, number_of_integrated_installments, number_of_bonus_payments, center_name, fbn_identification_flag, retail_supported, ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
205 206 207 208 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 205 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
321 322 323 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 321 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
327 328 329 330 331 332 333 334 335 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 327 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
315 316 317 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 315 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
212 213 214 |
# File 'lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb', line 212 def valid? true end |