Class: CyberSource::InlineResponse2012SetupsPayments
- Inherits:
-
Object
- Object
- CyberSource::InlineResponse2012SetupsPayments
- Defined in:
- lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb
Instance Attribute Summary collapse
-
#card_present_connect ⇒ Object
Returns the value of attribute card_present_connect.
-
#card_processing ⇒ Object
Returns the value of attribute card_processing.
-
#currency_conversion ⇒ Object
Returns the value of attribute currency_conversion.
-
#customer_invoicing ⇒ Object
Returns the value of attribute customer_invoicing.
-
#cybs_ready_terminal ⇒ Object
Returns the value of attribute cybs_ready_terminal.
-
#digital_payments ⇒ Object
Returns the value of attribute digital_payments.
-
#e_check ⇒ Object
Returns the value of attribute e_check.
-
#pay_by_link ⇒ Object
Returns the value of attribute pay_by_link.
-
#payer_authentication ⇒ Object
Returns the value of attribute payer_authentication.
-
#payment_orchestration ⇒ Object
Returns the value of attribute payment_orchestration.
-
#payouts ⇒ Object
Returns the value of attribute payouts.
-
#receivables_manager ⇒ Object
Returns the value of attribute receivables_manager.
-
#recurring_billing ⇒ Object
Returns the value of attribute recurring_billing.
-
#secure_acceptance ⇒ Object
Returns the value of attribute secure_acceptance.
-
#service_fee ⇒ Object
Returns the value of attribute service_fee.
-
#tax ⇒ Object
Returns the value of attribute tax.
-
#unified_checkout ⇒ Object
Returns the value of attribute unified_checkout.
-
#virtual_terminal ⇒ Object
Returns the value of attribute virtual_terminal.
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 = {}) ⇒ InlineResponse2012SetupsPayments
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 = {}) ⇒ InlineResponse2012SetupsPayments
Initializes the object
126 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 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 202 203 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 126 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?(:'cardProcessing') self.card_processing = attributes[:'cardProcessing'] end if attributes.has_key?(:'cardPresentConnect') self.card_present_connect = attributes[:'cardPresentConnect'] end if attributes.has_key?(:'eCheck') self.e_check = attributes[:'eCheck'] end if attributes.has_key?(:'payerAuthentication') self.payer_authentication = attributes[:'payerAuthentication'] end if attributes.has_key?(:'digitalPayments') self.digital_payments = attributes[:'digitalPayments'] end if attributes.has_key?(:'secureAcceptance') self.secure_acceptance = attributes[:'secureAcceptance'] end if attributes.has_key?(:'virtualTerminal') self.virtual_terminal = attributes[:'virtualTerminal'] end if attributes.has_key?(:'currencyConversion') self.currency_conversion = attributes[:'currencyConversion'] end if attributes.has_key?(:'tax') self.tax = attributes[:'tax'] end if attributes.has_key?(:'customerInvoicing') self.customer_invoicing = attributes[:'customerInvoicing'] end if attributes.has_key?(:'recurringBilling') self.recurring_billing = attributes[:'recurringBilling'] end if attributes.has_key?(:'cybsReadyTerminal') self.cybs_ready_terminal = attributes[:'cybsReadyTerminal'] end if attributes.has_key?(:'paymentOrchestration') self.payment_orchestration = attributes[:'paymentOrchestration'] end if attributes.has_key?(:'payouts') self.payouts = attributes[:'payouts'] end if attributes.has_key?(:'payByLink') self.pay_by_link = attributes[:'payByLink'] end if attributes.has_key?(:'unifiedCheckout') self.unified_checkout = attributes[:'unifiedCheckout'] end if attributes.has_key?(:'receivablesManager') self.receivables_manager = attributes[:'receivablesManager'] end if attributes.has_key?(:'serviceFee') self.service_fee = attributes[:'serviceFee'] end end |
Instance Attribute Details
#card_present_connect ⇒ Object
Returns the value of attribute card_present_connect.
18 19 20 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 18 def card_present_connect @card_present_connect end |
#card_processing ⇒ Object
Returns the value of attribute card_processing.
16 17 18 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 16 def card_processing @card_processing end |
#currency_conversion ⇒ Object
Returns the value of attribute currency_conversion.
30 31 32 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 30 def currency_conversion @currency_conversion end |
#customer_invoicing ⇒ Object
Returns the value of attribute customer_invoicing.
34 35 36 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 34 def customer_invoicing @customer_invoicing end |
#cybs_ready_terminal ⇒ Object
Returns the value of attribute cybs_ready_terminal.
38 39 40 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 38 def cybs_ready_terminal @cybs_ready_terminal end |
#digital_payments ⇒ Object
Returns the value of attribute digital_payments.
24 25 26 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 24 def digital_payments @digital_payments end |
#e_check ⇒ Object
Returns the value of attribute e_check.
20 21 22 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 20 def e_check @e_check end |
#pay_by_link ⇒ Object
Returns the value of attribute pay_by_link.
44 45 46 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 44 def pay_by_link @pay_by_link end |
#payer_authentication ⇒ Object
Returns the value of attribute payer_authentication.
22 23 24 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 22 def payer_authentication @payer_authentication end |
#payment_orchestration ⇒ Object
Returns the value of attribute payment_orchestration.
40 41 42 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 40 def payment_orchestration @payment_orchestration end |
#payouts ⇒ Object
Returns the value of attribute payouts.
42 43 44 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 42 def payouts @payouts end |
#receivables_manager ⇒ Object
Returns the value of attribute receivables_manager.
48 49 50 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 48 def receivables_manager @receivables_manager end |
#recurring_billing ⇒ Object
Returns the value of attribute recurring_billing.
36 37 38 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 36 def recurring_billing @recurring_billing end |
#secure_acceptance ⇒ Object
Returns the value of attribute secure_acceptance.
26 27 28 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 26 def secure_acceptance @secure_acceptance end |
#service_fee ⇒ Object
Returns the value of attribute service_fee.
50 51 52 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 50 def service_fee @service_fee end |
#tax ⇒ Object
Returns the value of attribute tax.
32 33 34 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 32 def tax @tax end |
#unified_checkout ⇒ Object
Returns the value of attribute unified_checkout.
46 47 48 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 46 def unified_checkout @unified_checkout end |
#virtual_terminal ⇒ Object
Returns the value of attribute virtual_terminal.
28 29 30 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 28 def virtual_terminal @virtual_terminal end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 53 def self.attribute_map { :'card_processing' => :'cardProcessing', :'card_present_connect' => :'cardPresentConnect', :'e_check' => :'eCheck', :'payer_authentication' => :'payerAuthentication', :'digital_payments' => :'digitalPayments', :'secure_acceptance' => :'secureAcceptance', :'virtual_terminal' => :'virtualTerminal', :'currency_conversion' => :'currencyConversion', :'tax' => :'tax', :'customer_invoicing' => :'customerInvoicing', :'recurring_billing' => :'recurringBilling', :'cybs_ready_terminal' => :'cybsReadyTerminal', :'payment_orchestration' => :'paymentOrchestration', :'payouts' => :'payouts', :'pay_by_link' => :'payByLink', :'unified_checkout' => :'unifiedCheckout', :'receivables_manager' => :'receivablesManager', :'service_fee' => :'serviceFee' } end |
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 77 def self.json_map { :'card_processing' => :'card_processing', :'card_present_connect' => :'card_present_connect', :'e_check' => :'e_check', :'payer_authentication' => :'payer_authentication', :'digital_payments' => :'digital_payments', :'secure_acceptance' => :'secure_acceptance', :'virtual_terminal' => :'virtual_terminal', :'currency_conversion' => :'currency_conversion', :'tax' => :'tax', :'customer_invoicing' => :'customer_invoicing', :'recurring_billing' => :'recurring_billing', :'cybs_ready_terminal' => :'cybs_ready_terminal', :'payment_orchestration' => :'payment_orchestration', :'payouts' => :'payouts', :'pay_by_link' => :'pay_by_link', :'unified_checkout' => :'unified_checkout', :'receivables_manager' => :'receivables_manager', :'service_fee' => :'service_fee' } end |
.swagger_types ⇒ Object
Attribute type mapping.
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 101 def self.swagger_types { :'card_processing' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'card_present_connect' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'e_check' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'payer_authentication' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'digital_payments' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'secure_acceptance' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'virtual_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'currency_conversion' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'tax' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'customer_invoicing' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'recurring_billing' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'cybs_ready_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'payment_orchestration' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'payouts' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'pay_by_link' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'unified_checkout' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'receivables_manager' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'service_fee' => :'InlineResponse2012SetupsPaymentsCardProcessing' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 220 def ==(o) return true if self.equal?(o) self.class == o.class && card_processing == o.card_processing && card_present_connect == o.card_present_connect && e_check == o.e_check && payer_authentication == o.payer_authentication && digital_payments == o.digital_payments && secure_acceptance == o.secure_acceptance && virtual_terminal == o.virtual_terminal && currency_conversion == o.currency_conversion && tax == o.tax && customer_invoicing == o.customer_invoicing && recurring_billing == o.recurring_billing && cybs_ready_terminal == o.cybs_ready_terminal && payment_orchestration == o.payment_orchestration && payouts == o.payouts && pay_by_link == o.pay_by_link && unified_checkout == o.unified_checkout && receivables_manager == o.receivables_manager && service_fee == o.service_fee end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 312 313 314 315 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 279 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
345 346 347 348 349 350 351 352 353 354 355 356 357 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 345 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
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 258 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
245 246 247 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 245 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
251 252 253 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 251 def hash [card_processing, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
207 208 209 210 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 207 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
325 326 327 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 325 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
331 332 333 334 335 336 337 338 339 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 331 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
319 320 321 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 319 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
214 215 216 |
# File 'lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb', line 214 def valid? true end |