Class: CyberSource::ReportingV3PurchaseRefundDetailsGet200ResponseSettlements
- Inherits:
 - 
      Object
      
        
- Object
 - CyberSource::ReportingV3PurchaseRefundDetailsGet200ResponseSettlements
 
 
- Defined in:
 - lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb
 
Instance Attribute Summary collapse
- 
  
    
      #account_suffix  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Account Suffix.
 - 
  
    
      #amount  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Amount.
 - 
  
    
      #card_type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Card Type.
 - 
  
    
      #currency_code  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Valid ISO 4217 ALPHA-3 currency code.
 - 
  
    
      #cybersource_batch_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Cybersource Batch Id.
 - 
  
    
      #cybersource_batch_time  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Cybersource Batch Time.
 - 
  
    
      #debit_network  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Debit Network.
 - 
  
    
      #payment_method  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
payment method.
 - 
  
    
      #payment_type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Payment Type.
 - 
  
    
      #request_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An unique identification number assigned by CyberSource to identify the submitted request.
 - 
  
    
      #submission_time  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Submission Date.
 - 
  
    
      #transaction_type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Transaction Type.
 - 
  
    
      #wallet_type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Solution Type (Wallet).
 
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 = {})  ⇒ ReportingV3PurchaseRefundDetailsGet200ResponseSettlements 
    
    
  
  
  
    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 = {}) ⇒ ReportingV3PurchaseRefundDetailsGet200ResponseSettlements
Initializes the object
      114 115 116 117 118 119 120 121 122 123 124 125 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  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 114 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?(:'requestId') self.request_id = attributes[:'requestId'] end if attributes.has_key?(:'transactionType') self.transaction_type = attributes[:'transactionType'] end if attributes.has_key?(:'submissionTime') self.submission_time = attributes[:'submissionTime'] end if attributes.has_key?(:'amount') self.amount = attributes[:'amount'] end if attributes.has_key?(:'currencyCode') self.currency_code = attributes[:'currencyCode'] end if attributes.has_key?(:'paymentMethod') self.payment_method = attributes[:'paymentMethod'] end if attributes.has_key?(:'walletType') self.wallet_type = attributes[:'walletType'] end if attributes.has_key?(:'paymentType') self.payment_type = attributes[:'paymentType'] end if attributes.has_key?(:'accountSuffix') self.account_suffix = attributes[:'accountSuffix'] end if attributes.has_key?(:'cybersourceBatchTime') self.cybersource_batch_time = attributes[:'cybersourceBatchTime'] end if attributes.has_key?(:'cybersourceBatchId') self.cybersource_batch_id = attributes[:'cybersourceBatchId'] end if attributes.has_key?(:'cardType') self.card_type = attributes[:'cardType'] end if attributes.has_key?(:'debitNetwork') self.debit_network = attributes[:'debitNetwork'] end end  | 
  
Instance Attribute Details
#account_suffix ⇒ Object
Account Suffix
      41 42 43  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 41 def account_suffix @account_suffix end  | 
  
#amount ⇒ Object
Amount
      26 27 28  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 26 def amount @amount end  | 
  
#card_type ⇒ Object
Card Type
      50 51 52  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 50 def card_type @card_type end  | 
  
#currency_code ⇒ Object
Valid ISO 4217 ALPHA-3 currency code
      29 30 31  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 29 def currency_code @currency_code end  | 
  
#cybersource_batch_id ⇒ Object
Cybersource Batch Id
      47 48 49  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 47 def cybersource_batch_id @cybersource_batch_id end  | 
  
#cybersource_batch_time ⇒ Object
Cybersource Batch Time
      44 45 46  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 44 def cybersource_batch_time @cybersource_batch_time end  | 
  
#debit_network ⇒ Object
Debit Network
      53 54 55  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 53 def debit_network @debit_network end  | 
  
#payment_method ⇒ Object
payment method
      32 33 34  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 32 def payment_method @payment_method end  | 
  
#payment_type ⇒ Object
Payment Type
      38 39 40  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 38 def payment_type @payment_type end  | 
  
#request_id ⇒ Object
An unique identification number assigned by CyberSource to identify the submitted request.
      17 18 19  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 17 def request_id @request_id end  | 
  
#submission_time ⇒ Object
Submission Date
      23 24 25  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 23 def submission_time @submission_time end  | 
  
#transaction_type ⇒ Object
Transaction Type
      20 21 22  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 20 def transaction_type @transaction_type end  | 
  
#wallet_type ⇒ Object
Solution Type (Wallet)
      35 36 37  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 35 def wallet_type @wallet_type end  | 
  
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
      56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 56 def self.attribute_map { :'request_id' => :'requestId', :'transaction_type' => :'transactionType', :'submission_time' => :'submissionTime', :'amount' => :'amount', :'currency_code' => :'currencyCode', :'payment_method' => :'paymentMethod', :'wallet_type' => :'walletType', :'payment_type' => :'paymentType', :'account_suffix' => :'accountSuffix', :'cybersource_batch_time' => :'cybersourceBatchTime', :'cybersource_batch_id' => :'cybersourceBatchId', :'card_type' => :'cardType', :'debit_network' => :'debitNetwork' } end  | 
  
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
      75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 75 def self.json_map { :'request_id' => :'request_id', :'transaction_type' => :'transaction_type', :'submission_time' => :'submission_time', :'amount' => :'amount', :'currency_code' => :'currency_code', :'payment_method' => :'payment_method', :'wallet_type' => :'wallet_type', :'payment_type' => :'payment_type', :'account_suffix' => :'account_suffix', :'cybersource_batch_time' => :'cybersource_batch_time', :'cybersource_batch_id' => :'cybersource_batch_id', :'card_type' => :'card_type', :'debit_network' => :'debit_network' } end  | 
  
.swagger_types ⇒ Object
Attribute type mapping.
      94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 94 def self.swagger_types { :'request_id' => :'String', :'transaction_type' => :'String', :'submission_time' => :'DateTime', :'amount' => :'String', :'currency_code' => :'String', :'payment_method' => :'String', :'wallet_type' => :'String', :'payment_type' => :'String', :'account_suffix' => :'String', :'cybersource_batch_time' => :'DateTime', :'cybersource_batch_id' => :'String', :'card_type' => :'String', :'debit_network' => :'String' } end  | 
  
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
      188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 188 def ==(o) return true if self.equal?(o) self.class == o.class && request_id == o.request_id && transaction_type == o.transaction_type && submission_time == o.submission_time && amount == o.amount && currency_code == o.currency_code && payment_method == o.payment_method && wallet_type == o.wallet_type && payment_type == o.payment_type && account_suffix == o.account_suffix && cybersource_batch_time == o.cybersource_batch_time && cybersource_batch_id == o.cybersource_batch_id && card_type == o.card_type && debit_network == o.debit_network end  | 
  
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
      242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 242 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
      308 309 310 311 312 313 314 315 316 317 318 319 320  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 308 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
      221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 221 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
      208 209 210  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 208 def eql?(o) self == o end  | 
  
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
      214 215 216  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 214 def hash [request_id, transaction_type, submission_time, amount, currency_code, payment_method, wallet_type, payment_type, account_suffix, cybersource_batch_time, cybersource_batch_id, card_type, debit_network].hash end  | 
  
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
      175 176 177 178  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 175 def list_invalid_properties invalid_properties = Array.new invalid_properties end  | 
  
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
      288 289 290  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 288 def to_body to_hash end  | 
  
#to_hash ⇒ Hash
Returns the object in the form of hash
      294 295 296 297 298 299 300 301 302  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 294 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
      282 283 284  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 282 def to_s to_hash.to_s end  | 
  
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
      182 183 184  | 
    
      # File 'lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb', line 182 def valid? true end  |