cybersource_rest_client 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +5 -1
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +11 -2
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/cybersource_rest_client.rb +2 -3
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +13 -4
- data/lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes.rb +21 -9
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{riskv1addressverifications_client_reference_information.rb → risk_v1_decisions_post201_response_client_reference_information.rb} +14 -14
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +22 -4
- data/lib/cybersource_rest_client/models/{vasv2tax_client_reference_information_partner.rb → riskv1decisions_client_reference_information_partner.rb} +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +17 -1
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
- metadata +4 -5
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb +0 -199
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 636990be7a51e2bd9a5ee6408bb815d497099dce300eec3c654891bf71b76c67
         | 
| 4 | 
            +
              data.tar.gz: b185f3c5a66a7f4769516c92d0790d226fb9c329fd5ef6fd210ddbec43ff033f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b28140c762cb60814e2859d139af87e23dcfa5f8350455f5df471a9a9c9f7ed2d2821632031d49b67a0487823b81ea36fe4f995b52a780183ddb67d148a4b07d
         | 
| 7 | 
            +
              data.tar.gz: c206eb1e9050387782aaacc13c06b8f5ddf397700f7b387e27bcff466d46cca079a15dcdb94d4f732311714ba7c0e8231e0497859374ed680b5677bc0d02cdd1
         | 
| @@ -30,7 +30,11 @@ require 'openssl' | |
| 30 30 | 
             
                    digest_payload = Constants::SHA256 + digest
         | 
| 31 31 | 
             
                    signatureString << Constants::DIGEST + ': ' + digest_payload + "\n"
         | 
| 32 32 | 
             
                  end
         | 
| 33 | 
            -
                   | 
| 33 | 
            +
                  if merchantconfig_obj.useMetaKey
         | 
| 34 | 
            +
                    signatureString << Constants::V_C_MERCHANT_ID + ': ' + merchantconfig_obj.portfolioID
         | 
| 35 | 
            +
                  else
         | 
| 36 | 
            +
                    signatureString << Constants::V_C_MERCHANT_ID + ': ' + merchantconfig_obj.merchantId
         | 
| 37 | 
            +
                  end
         | 
| 34 38 | 
             
                  encodedSignatureString = signatureString.force_encoding(Encoding::UTF_8)
         | 
| 35 39 | 
             
                  decodedKey = Base64.decode64(merchantSecretKey)
         | 
| 36 40 | 
             
                  base64EncodedSignature = Base64.strict_encode64(OpenSSL::HMAC.digest('sha256', decodedKey, encodedSignatureString))
         | 
| @@ -26,6 +26,8 @@ public | |
| 26 26 | 
             
                @keyAlias = cybsPropertyObj['keyAlias']
         | 
| 27 27 | 
             
                @keyPass = cybsPropertyObj['keyPass']
         | 
| 28 28 | 
             
                @keyFilename = cybsPropertyObj['keyFilename']
         | 
| 29 | 
            +
                @useMetaKey = cybsPropertyObj['useMetaKey']
         | 
| 30 | 
            +
                @portfolioID = cybsPropertyObj['portfolioID']
         | 
| 29 31 | 
             
                @logFilename = cybsPropertyObj['logFilename']
         | 
| 30 32 | 
             
                @solutionId = cybsPropertyObj['solutionId']
         | 
| 31 33 | 
             
                validateMerchantDetails()
         | 
| @@ -36,12 +38,12 @@ public | |
| 36 38 | 
             
                  logmessage=''
         | 
| 37 39 | 
             
                  if @enableLog.to_s.empty?
         | 
| 38 40 | 
             
                    @enableLog = true
         | 
| 39 | 
            -
                  elsif @enableLog.instance_of?  | 
| 41 | 
            +
                  elsif @enableLog.instance_of? Integer
         | 
| 40 42 | 
             
                    @enableLog = @enableLog.to_s
         | 
| 41 43 | 
             
                  end
         | 
| 42 44 | 
             
                  if @logSize.to_s.empty?
         | 
| 43 45 | 
             
                    @logSize = Constants::DEFAULT_LOG_SIZE
         | 
| 44 | 
            -
                  elsif !@logSize.instance_of?  | 
| 46 | 
            +
                  elsif !@logSize.instance_of? Integer
         | 
| 45 47 | 
             
                    @logSize=@logSize.to_i
         | 
| 46 48 | 
             
                  end
         | 
| 47 49 | 
             
                  if @logDirectory.to_s.empty? || !Dir.exist?(@logDirectory)
         | 
| @@ -140,6 +142,11 @@ public | |
| 140 142 | 
             
                      @merchantSecretKey=@merchantSecretKey.to_s
         | 
| 141 143 | 
             
                    end
         | 
| 142 144 | 
             
                  end
         | 
| 145 | 
            +
                  if @useMetaKey && @portfolioID.to_s.empty?
         | 
| 146 | 
            +
                    err = raise StandardError.new(Constants::ERROR_PREFIX+ Constants::PORTFOLIO_ID_MANDATORY) 
         | 
| 147 | 
            +
                    ApiException.new.apiexception(err,log_obj)
         | 
| 148 | 
            +
                  end
         | 
| 149 | 
            +
             | 
| 143 150 | 
             
                  if !@proxyAddress.instance_of? String
         | 
| 144 151 | 
             
                    @proxyAddress=@proxyAddress.to_s
         | 
| 145 152 | 
             
                  end
         | 
| @@ -174,6 +181,8 @@ public | |
| 174 181 | 
             
                attr_accessor :keyAlias
         | 
| 175 182 | 
             
                attr_accessor :keyPass
         | 
| 176 183 | 
             
                attr_accessor :keyFilename
         | 
| 184 | 
            +
                attr_accessor :useMetaKey
         | 
| 185 | 
            +
                attr_accessor :portfolioID
         | 
| 177 186 | 
             
                attr_accessor :requestJsonData
         | 
| 178 187 | 
             
                attr_accessor :requestUrl
         | 
| 179 188 | 
             
                attr_accessor :requestType
         | 
| @@ -117,6 +117,8 @@ | |
| 117 117 | 
             
                  MERCHANT_KEY_ID_MANDATORY = 'MerchantKeyId is Mandatory' unless const_defined?(:MERCHANT_KEY_ID_MANDATORY)
         | 
| 118 118 |  | 
| 119 119 | 
             
                  MERCHANT_SECRET_KEY_MANDATORY = 'MerchantSecretKey is Mandatory' unless const_defined?(:MERCHANT_SECRET_KEY_MANDATORY)
         | 
| 120 | 
            +
             | 
| 121 | 
            +
                  PORTFOLIO_ID_MANDATORY = 'PortfolioID is Mandatory' unless const_defined?(:PORTFOLIO_ID_MANDATORY)
         | 
| 120 122 |  | 
| 121 123 | 
             
                  KEY_PASS_NULL = 'keyPass is empty, Assigining merchantID value' unless const_defined?(:KEY_PASS_NULL)
         | 
| 122 124 |  | 
| @@ -458,6 +458,7 @@ require 'cybersource_rest_client/models/risk_v1_authentications_post201_response | |
| 458 458 | 
             
            require 'cybersource_rest_client/models/risk_v1_authentications_post400_response'
         | 
| 459 459 | 
             
            require 'cybersource_rest_client/models/risk_v1_authentications_post400_response_1'
         | 
| 460 460 | 
             
            require 'cybersource_rest_client/models/risk_v1_decisions_post201_response'
         | 
| 461 | 
            +
            require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_client_reference_information'
         | 
| 461 462 | 
             
            require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information'
         | 
| 462 463 | 
             
            require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information'
         | 
| 463 464 | 
             
            require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information'
         | 
| @@ -472,7 +473,6 @@ require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post | |
| 472 473 | 
             
            require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches'
         | 
| 473 474 | 
             
            require 'cybersource_rest_client/models/risk_v1_update_post201_response'
         | 
| 474 475 | 
             
            require 'cybersource_rest_client/models/riskv1addressverifications_buyer_information'
         | 
| 475 | 
            -
            require 'cybersource_rest_client/models/riskv1addressverifications_client_reference_information'
         | 
| 476 476 | 
             
            require 'cybersource_rest_client/models/riskv1addressverifications_order_information'
         | 
| 477 477 | 
             
            require 'cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to'
         | 
| 478 478 | 
             
            require 'cybersource_rest_client/models/riskv1addressverifications_order_information_line_items'
         | 
| @@ -494,7 +494,6 @@ require 'cybersource_rest_client/models/riskv1authentications_payment_informatio | |
| 494 494 | 
             
            require 'cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card'
         | 
| 495 495 | 
             
            require 'cybersource_rest_client/models/riskv1authentications_risk_information'
         | 
| 496 496 | 
             
            require 'cybersource_rest_client/models/riskv1authentications_travel_information'
         | 
| 497 | 
            -
            require 'cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information'
         | 
| 498 497 | 
             
            require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information'
         | 
| 499 498 | 
             
            require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card'
         | 
| 500 499 | 
             
            require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer'
         | 
| @@ -504,6 +503,7 @@ require 'cybersource_rest_client/models/riskv1authenticationsetups_processing_in | |
| 504 503 | 
             
            require 'cybersource_rest_client/models/riskv1authenticationsetups_token_information'
         | 
| 505 504 | 
             
            require 'cybersource_rest_client/models/riskv1decisions_buyer_information'
         | 
| 506 505 | 
             
            require 'cybersource_rest_client/models/riskv1decisions_client_reference_information'
         | 
| 506 | 
            +
            require 'cybersource_rest_client/models/riskv1decisions_client_reference_information_partner'
         | 
| 507 507 | 
             
            require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information'
         | 
| 508 508 | 
             
            require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information_strong_authentication'
         | 
| 509 509 | 
             
            require 'cybersource_rest_client/models/riskv1decisions_device_information'
         | 
| @@ -704,7 +704,6 @@ require 'cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_ | |
| 704 704 | 
             
            require 'cybersource_rest_client/models/vas_v2_tax_voids_post400_response'
         | 
| 705 705 | 
             
            require 'cybersource_rest_client/models/vasv2tax_buyer_information'
         | 
| 706 706 | 
             
            require 'cybersource_rest_client/models/vasv2tax_client_reference_information'
         | 
| 707 | 
            -
            require 'cybersource_rest_client/models/vasv2tax_client_reference_information_partner'
         | 
| 708 707 | 
             
            require 'cybersource_rest_client/models/vasv2tax_merchant_information'
         | 
| 709 708 | 
             
            require 'cybersource_rest_client/models/vasv2tax_order_information'
         | 
| 710 709 | 
             
            require 'cybersource_rest_client/models/vasv2tax_order_information_bill_to'
         | 
| @@ -65,7 +65,7 @@ module CyberSource | |
| 65 65 | 
             
                # Attribute type mapping.
         | 
| 66 66 | 
             
                def self.swagger_types
         | 
| 67 67 | 
             
                  {
         | 
| 68 | 
            -
                    :'client_reference_information' => :' | 
| 68 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation',
         | 
| 69 69 | 
             
                    :'order_information' => :'Riskv1authenticationsOrderInformation',
         | 
| 70 70 | 
             
                    :'payment_information' => :'Riskv1authenticationsPaymentInformation',
         | 
| 71 71 | 
             
                    :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation',
         | 
| @@ -16,17 +16,21 @@ module CyberSource | |
| 16 16 | 
             
              class FraudMarkingActionRequest
         | 
| 17 17 | 
             
                attr_accessor :risk_information
         | 
| 18 18 |  | 
| 19 | 
            +
                attr_accessor :client_reference_information
         | 
| 20 | 
            +
             | 
| 19 21 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 20 22 | 
             
                def self.attribute_map
         | 
| 21 23 | 
             
                  {
         | 
| 22 | 
            -
                    :'risk_information' => :'riskInformation'
         | 
| 24 | 
            +
                    :'risk_information' => :'riskInformation',
         | 
| 25 | 
            +
                    :'client_reference_information' => :'clientReferenceInformation'
         | 
| 23 26 | 
             
                  }
         | 
| 24 27 | 
             
                end
         | 
| 25 28 |  | 
| 26 29 | 
             
                # Attribute type mapping.
         | 
| 27 30 | 
             
                def self.swagger_types
         | 
| 28 31 | 
             
                  {
         | 
| 29 | 
            -
                    :'risk_information' => :'Riskv1decisionsidmarkingRiskInformation'
         | 
| 32 | 
            +
                    :'risk_information' => :'Riskv1decisionsidmarkingRiskInformation',
         | 
| 33 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation'
         | 
| 30 34 | 
             
                  }
         | 
| 31 35 | 
             
                end
         | 
| 32 36 |  | 
| @@ -41,6 +45,10 @@ module CyberSource | |
| 41 45 | 
             
                  if attributes.has_key?(:'riskInformation')
         | 
| 42 46 | 
             
                    self.risk_information = attributes[:'riskInformation']
         | 
| 43 47 | 
             
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if attributes.has_key?(:'clientReferenceInformation')
         | 
| 50 | 
            +
                    self.client_reference_information = attributes[:'clientReferenceInformation']
         | 
| 51 | 
            +
                  end
         | 
| 44 52 | 
             
                end
         | 
| 45 53 |  | 
| 46 54 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -61,7 +69,8 @@ module CyberSource | |
| 61 69 | 
             
                def ==(o)
         | 
| 62 70 | 
             
                  return true if self.equal?(o)
         | 
| 63 71 | 
             
                  self.class == o.class &&
         | 
| 64 | 
            -
                      risk_information == o.risk_information
         | 
| 72 | 
            +
                      risk_information == o.risk_information &&
         | 
| 73 | 
            +
                      client_reference_information == o.client_reference_information
         | 
| 65 74 | 
             
                end
         | 
| 66 75 |  | 
| 67 76 | 
             
                # @see the `==` method
         | 
| @@ -73,7 +82,7 @@ module CyberSource | |
| 73 82 | 
             
                # Calculates hash code according to all attributes.
         | 
| 74 83 | 
             
                # @return [Fixnum] Hash code
         | 
| 75 84 | 
             
                def hash
         | 
| 76 | 
            -
                  [risk_information].hash
         | 
| 85 | 
            +
                  [risk_information, client_reference_information].hash
         | 
| 77 86 | 
             
                end
         | 
| 78 87 |  | 
| 79 88 | 
             
                # Builds the object from hash
         | 
| @@ -35,7 +35,7 @@ module CyberSource | |
| 35 35 | 
             
                # Attribute type mapping.
         | 
| 36 36 | 
             
                def self.swagger_types
         | 
| 37 37 | 
             
                  {
         | 
| 38 | 
            -
                    :'client_reference_information' => :' | 
| 38 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation',
         | 
| 39 39 | 
             
                    :'payment_information' => :'Riskv1authenticationsetupsPaymentInformation',
         | 
| 40 40 | 
             
                    :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation',
         | 
| 41 41 | 
             
                    :'token_information' => :'Riskv1authenticationsetupsTokenInformation'
         | 
| @@ -14,7 +14,7 @@ require 'date' | |
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 16 | 
             
              class PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation
         | 
| 17 | 
            -
                # The reason of the status.  Possible values:   - AVS_FAILED   - CONTACT_PROCESSOR   - EXPIRED_CARD   - PROCESSOR_DECLINED   - INSUFFICIENT_FUND   - STOLEN_LOST_CARD   - ISSUER_UNAVAILABLE   - UNAUTHORIZED_CARD   - CVN_NOT_MATCH   - EXCEEDS_CREDIT_LIMIT   - INVALID_CVN   - BLACKLISTED_CUSTOMER   - SUSPENDED_ACCOUNT   - PAYMENT_REFUSED   - CV_FAILED   - INVALID_ACCOUNT   - GENERAL_DECLINE   - INVALID_MERCHANT_CONFIGURATION   - DECISION_PROFILE_REJECT   - SCORE_EXCEEDS_THRESHOLD   -  | 
| 17 | 
            +
                # The reason of the status.  Possible values:   - AVS_FAILED   - CONTACT_PROCESSOR   - EXPIRED_CARD   - PROCESSOR_DECLINED   - INSUFFICIENT_FUND   - STOLEN_LOST_CARD   - ISSUER_UNAVAILABLE   - UNAUTHORIZED_CARD   - CVN_NOT_MATCH   - EXCEEDS_CREDIT_LIMIT   - INVALID_CVN   - BLACKLISTED_CUSTOMER   - SUSPENDED_ACCOUNT   - PAYMENT_REFUSED   - CV_FAILED   - INVALID_ACCOUNT   - GENERAL_DECLINE   - INVALID_MERCHANT_CONFIGURATION   - DECISION_PROFILE_REJECT   - SCORE_EXCEEDS_THRESHOLD   - CONSUMER_AUTHENTICATION_REQUIRED 
         | 
| 18 18 | 
             
                attr_accessor :reason
         | 
| 19 19 |  | 
| 20 20 | 
             
                # The detail message related to the status and reason listed above.
         | 
| @@ -14,28 +14,31 @@ require 'date' | |
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 16 | 
             
              class PtsV2PaymentsPost201ResponseRiskInformationInfoCodes
         | 
| 17 | 
            -
                # List of information codes triggered by the order. These information codes were generated when you created the order and product velocity rules and are returned so that you can associate them with the rules. | 
| 17 | 
            +
                # List of information codes triggered by the order. These information codes were generated when you created the order and product velocity rules and are returned so that you can associate them with the rules. 
         | 
| 18 18 | 
             
                attr_accessor :velocity
         | 
| 19 19 |  | 
| 20 | 
            -
                # Indicates a mismatch between the customer’s billing and shipping addresses. | 
| 20 | 
            +
                # Indicates a mismatch between the customer’s billing and shipping addresses. 
         | 
| 21 21 | 
             
                attr_accessor :address
         | 
| 22 22 |  | 
| 23 | 
            -
                # Indicates that customer information is associated with transactions that are either on the negative or the positive list. | 
| 23 | 
            +
                # Indicates that customer information is associated with transactions that are either on the negative or the positive list. 
         | 
| 24 24 | 
             
                attr_accessor :customer_list
         | 
| 25 25 |  | 
| 26 | 
            -
                # Indicates  | 
| 26 | 
            +
                # Indicates the device behavior information code(s) returned from device fingerprinting. 
         | 
| 27 | 
            +
                attr_accessor :device_behavior
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                # Indicates excessive identity changes. The threshold is variable depending on the identity elements being compared. 
         | 
| 27 30 | 
             
                attr_accessor :identity_change
         | 
| 28 31 |  | 
| 29 | 
            -
                # Indicates a problem with the customer’s email address, IP address, or billing address. | 
| 32 | 
            +
                # Indicates a problem with the customer’s email address, IP address, or billing address. 
         | 
| 30 33 | 
             
                attr_accessor :internet
         | 
| 31 34 |  | 
| 32 | 
            -
                # Indicates a problem with the customer’s phone number. | 
| 35 | 
            +
                # Indicates a problem with the customer’s phone number. 
         | 
| 33 36 | 
             
                attr_accessor :phone
         | 
| 34 37 |  | 
| 35 | 
            -
                # Indicates that the customer provided potentially suspicious information. | 
| 38 | 
            +
                # Indicates that the customer provided potentially suspicious information. 
         | 
| 36 39 | 
             
                attr_accessor :suspicious
         | 
| 37 40 |  | 
| 38 | 
            -
                # Indicates that the customer has a high purchase frequency. | 
| 41 | 
            +
                # Indicates that the customer has a high purchase frequency. 
         | 
| 39 42 | 
             
                attr_accessor :global_velocity
         | 
| 40 43 |  | 
| 41 44 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| @@ -44,6 +47,7 @@ module CyberSource | |
| 44 47 | 
             
                    :'velocity' => :'velocity',
         | 
| 45 48 | 
             
                    :'address' => :'address',
         | 
| 46 49 | 
             
                    :'customer_list' => :'customerList',
         | 
| 50 | 
            +
                    :'device_behavior' => :'deviceBehavior',
         | 
| 47 51 | 
             
                    :'identity_change' => :'identityChange',
         | 
| 48 52 | 
             
                    :'internet' => :'internet',
         | 
| 49 53 | 
             
                    :'phone' => :'phone',
         | 
| @@ -58,6 +62,7 @@ module CyberSource | |
| 58 62 | 
             
                    :'velocity' => :'Array<String>',
         | 
| 59 63 | 
             
                    :'address' => :'Array<String>',
         | 
| 60 64 | 
             
                    :'customer_list' => :'Array<String>',
         | 
| 65 | 
            +
                    :'device_behavior' => :'Array<String>',
         | 
| 61 66 | 
             
                    :'identity_change' => :'Array<String>',
         | 
| 62 67 | 
             
                    :'internet' => :'Array<String>',
         | 
| 63 68 | 
             
                    :'phone' => :'Array<String>',
         | 
| @@ -92,6 +97,12 @@ module CyberSource | |
| 92 97 | 
             
                    end
         | 
| 93 98 | 
             
                  end
         | 
| 94 99 |  | 
| 100 | 
            +
                  if attributes.has_key?(:'deviceBehavior')
         | 
| 101 | 
            +
                    if (value = attributes[:'deviceBehavior']).is_a?(Array)
         | 
| 102 | 
            +
                      self.device_behavior = value
         | 
| 103 | 
            +
                    end
         | 
| 104 | 
            +
                  end
         | 
| 105 | 
            +
             | 
| 95 106 | 
             
                  if attributes.has_key?(:'identityChange')
         | 
| 96 107 | 
             
                    if (value = attributes[:'identityChange']).is_a?(Array)
         | 
| 97 108 | 
             
                      self.identity_change = value
         | 
| @@ -144,6 +155,7 @@ module CyberSource | |
| 144 155 | 
             
                      velocity == o.velocity &&
         | 
| 145 156 | 
             
                      address == o.address &&
         | 
| 146 157 | 
             
                      customer_list == o.customer_list &&
         | 
| 158 | 
            +
                      device_behavior == o.device_behavior &&
         | 
| 147 159 | 
             
                      identity_change == o.identity_change &&
         | 
| 148 160 | 
             
                      internet == o.internet &&
         | 
| 149 161 | 
             
                      phone == o.phone &&
         | 
| @@ -160,7 +172,7 @@ module CyberSource | |
| 160 172 | 
             
                # Calculates hash code according to all attributes.
         | 
| 161 173 | 
             
                # @return [Fixnum] Hash code
         | 
| 162 174 | 
             
                def hash
         | 
| 163 | 
            -
                  [velocity, address, customer_list, identity_change, internet, phone, suspicious, global_velocity].hash
         | 
| 175 | 
            +
                  [velocity, address, customer_list, device_behavior, identity_change, internet, phone, suspicious, global_velocity].hash
         | 
| 164 176 | 
             
                end
         | 
| 165 177 |  | 
| 166 178 | 
             
                # Builds the object from hash
         | 
| @@ -61,7 +61,7 @@ module CyberSource | |
| 61 61 | 
             
                    :'submit_time_local' => :'String',
         | 
| 62 62 | 
             
                    :'status' => :'String',
         | 
| 63 63 | 
             
                    :'message' => :'String',
         | 
| 64 | 
            -
                    :'client_reference_information' => :' | 
| 64 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 65 65 | 
             
                    :'address_verification_information' => :'RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation',
         | 
| 66 66 | 
             
                    :'error_information' => :'RiskV1AddressVerificationsPost201ResponseErrorInformation'
         | 
| 67 67 | 
             
                  }
         | 
| @@ -61,7 +61,7 @@ module CyberSource | |
| 61 61 | 
             
                    :'submit_time_local' => :'String',
         | 
| 62 62 | 
             
                    :'status' => :'String',
         | 
| 63 63 | 
             
                    :'message' => :'String',
         | 
| 64 | 
            -
                    :'client_reference_information' => :' | 
| 64 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 65 65 | 
             
                    :'consumer_authentication_information' => :'RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation',
         | 
| 66 66 | 
             
                    :'error_information' => :'RiskV1AuthenticationsPost201ResponseErrorInformation'
         | 
| 67 67 | 
             
                  }
         | 
| @@ -27,6 +27,8 @@ module CyberSource | |
| 27 27 |  | 
| 28 28 | 
             
                attr_accessor :consumer_authentication_information
         | 
| 29 29 |  | 
| 30 | 
            +
                attr_accessor :client_reference_information
         | 
| 31 | 
            +
             | 
| 30 32 | 
             
                attr_accessor :error_information
         | 
| 31 33 |  | 
| 32 34 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| @@ -37,6 +39,7 @@ module CyberSource | |
| 37 39 | 
             
                    :'submit_time_utc' => :'submitTimeUtc',
         | 
| 38 40 | 
             
                    :'status' => :'status',
         | 
| 39 41 | 
             
                    :'consumer_authentication_information' => :'consumerAuthenticationInformation',
         | 
| 42 | 
            +
                    :'client_reference_information' => :'clientReferenceInformation',
         | 
| 40 43 | 
             
                    :'error_information' => :'errorInformation'
         | 
| 41 44 | 
             
                  }
         | 
| 42 45 | 
             
                end
         | 
| @@ -49,6 +52,7 @@ module CyberSource | |
| 49 52 | 
             
                    :'submit_time_utc' => :'String',
         | 
| 50 53 | 
             
                    :'status' => :'String',
         | 
| 51 54 | 
             
                    :'consumer_authentication_information' => :'RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation',
         | 
| 55 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 52 56 | 
             
                    :'error_information' => :'RiskV1AuthenticationSetupsPost201ResponseErrorInformation'
         | 
| 53 57 | 
             
                  }
         | 
| 54 58 | 
             
                end
         | 
| @@ -81,6 +85,10 @@ module CyberSource | |
| 81 85 | 
             
                    self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
         | 
| 82 86 | 
             
                  end
         | 
| 83 87 |  | 
| 88 | 
            +
                  if attributes.has_key?(:'clientReferenceInformation')
         | 
| 89 | 
            +
                    self.client_reference_information = attributes[:'clientReferenceInformation']
         | 
| 90 | 
            +
                  end
         | 
| 91 | 
            +
             | 
| 84 92 | 
             
                  if attributes.has_key?(:'errorInformation')
         | 
| 85 93 | 
             
                    self.error_information = attributes[:'errorInformation']
         | 
| 86 94 | 
             
                  end
         | 
| @@ -115,6 +123,7 @@ module CyberSource | |
| 115 123 | 
             
                      submit_time_utc == o.submit_time_utc &&
         | 
| 116 124 | 
             
                      status == o.status &&
         | 
| 117 125 | 
             
                      consumer_authentication_information == o.consumer_authentication_information &&
         | 
| 126 | 
            +
                      client_reference_information == o.client_reference_information &&
         | 
| 118 127 | 
             
                      error_information == o.error_information
         | 
| 119 128 | 
             
                end
         | 
| 120 129 |  | 
| @@ -127,7 +136,7 @@ module CyberSource | |
| 127 136 | 
             
                # Calculates hash code according to all attributes.
         | 
| 128 137 | 
             
                # @return [Fixnum] Hash code
         | 
| 129 138 | 
             
                def hash
         | 
| 130 | 
            -
                  [_links, id, submit_time_utc, status, consumer_authentication_information, error_information].hash
         | 
| 139 | 
            +
                  [_links, id, submit_time_utc, status, consumer_authentication_information, client_reference_information, error_information].hash
         | 
| 131 140 | 
             
                end
         | 
| 132 141 |  | 
| 133 142 | 
             
                # Builds the object from hash
         | 
| @@ -64,7 +64,7 @@ module CyberSource | |
| 64 64 | 
             
                    :'submit_time_local' => :'String',
         | 
| 65 65 | 
             
                    :'status' => :'String',
         | 
| 66 66 | 
             
                    :'message' => :'String',
         | 
| 67 | 
            -
                    :'client_reference_information' => :' | 
| 67 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 68 68 | 
             
                    :'order_information' => :'RiskV1DecisionsPost201ResponseOrderInformation',
         | 
| 69 69 | 
             
                    :'consumer_authentication_information' => :'RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation',
         | 
| 70 70 | 
             
                    :'error_information' => :'RiskV1AuthenticationsPost201ResponseErrorInformation'
         | 
| @@ -14,7 +14,7 @@ require 'date' | |
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 16 | 
             
              class RiskV1AuthenticationsPost201ResponseErrorInformation
         | 
| 17 | 
            -
                # The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - ` | 
| 17 | 
            +
                # The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` 
         | 
| 18 18 | 
             
                attr_accessor :reason
         | 
| 19 19 |  | 
| 20 20 | 
             
                # The detail message related to the status and reason listed above.
         | 
| @@ -67,7 +67,7 @@ module CyberSource | |
| 67 67 | 
             
                    :'status' => :'String',
         | 
| 68 68 | 
             
                    :'risk_information' => :'PtsV2PaymentsPost201ResponseRiskInformation',
         | 
| 69 69 | 
             
                    :'payment_information' => :'RiskV1DecisionsPost201ResponsePaymentInformation',
         | 
| 70 | 
            -
                    :'client_reference_information' => :' | 
| 70 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 71 71 | 
             
                    :'order_information' => :'RiskV1DecisionsPost201ResponseOrderInformation',
         | 
| 72 72 | 
             
                    :'consumer_authentication_information' => :'RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation',
         | 
| 73 73 | 
             
                    :'error_information' => :'RiskV1DecisionsPost201ResponseErrorInformation'
         | 
| @@ -13,18 +13,21 @@ Swagger Codegen version: 2.2.3 | |
| 13 13 | 
             
            require 'date'
         | 
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 | 
            -
              class  | 
| 16 | 
            +
              class RiskV1DecisionsPost201ResponseClientReferenceInformation
         | 
| 17 17 | 
             
                # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction.  #### Used by **Authorization** Required field.  #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed.  Required field for all PIN Debit requests (purchase, credit, and reversal).  #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. 
         | 
| 18 18 | 
             
                attr_accessor :code
         | 
| 19 19 |  | 
| 20 20 | 
             
                # Brief description of the order or any comment you wish to add to the order. 
         | 
| 21 21 | 
             
                attr_accessor :comments
         | 
| 22 22 |  | 
| 23 | 
            +
                attr_accessor :partner
         | 
| 24 | 
            +
             | 
| 23 25 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 24 26 | 
             
                def self.attribute_map
         | 
| 25 27 | 
             
                  {
         | 
| 26 28 | 
             
                    :'code' => :'code',
         | 
| 27 | 
            -
                    :'comments' => :'comments'
         | 
| 29 | 
            +
                    :'comments' => :'comments',
         | 
| 30 | 
            +
                    :'partner' => :'partner'
         | 
| 28 31 | 
             
                  }
         | 
| 29 32 | 
             
                end
         | 
| 30 33 |  | 
| @@ -32,7 +35,8 @@ module CyberSource | |
| 32 35 | 
             
                def self.swagger_types
         | 
| 33 36 | 
             
                  {
         | 
| 34 37 | 
             
                    :'code' => :'String',
         | 
| 35 | 
            -
                    :'comments' => :'String'
         | 
| 38 | 
            +
                    :'comments' => :'String',
         | 
| 39 | 
            +
                    :'partner' => :'Riskv1decisionsClientReferenceInformationPartner'
         | 
| 36 40 | 
             
                  }
         | 
| 37 41 | 
             
                end
         | 
| 38 42 |  | 
| @@ -51,33 +55,28 @@ module CyberSource | |
| 51 55 | 
             
                  if attributes.has_key?(:'comments')
         | 
| 52 56 | 
             
                    self.comments = attributes[:'comments']
         | 
| 53 57 | 
             
                  end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                  if attributes.has_key?(:'partner')
         | 
| 60 | 
            +
                    self.partner = attributes[:'partner']
         | 
| 61 | 
            +
                  end
         | 
| 54 62 | 
             
                end
         | 
| 55 63 |  | 
| 56 64 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| 57 65 | 
             
                # @return Array for valid properties with the reasons
         | 
| 58 66 | 
             
                def list_invalid_properties
         | 
| 59 67 | 
             
                  invalid_properties = Array.new
         | 
| 60 | 
            -
                  if @code.nil?
         | 
| 61 | 
            -
                    invalid_properties.push('invalid value for "code", code cannot be nil.')
         | 
| 62 | 
            -
                  end
         | 
| 63 | 
            -
             | 
| 64 68 | 
             
                  invalid_properties
         | 
| 65 69 | 
             
                end
         | 
| 66 70 |  | 
| 67 71 | 
             
                # Check to see if the all the properties in the model are valid
         | 
| 68 72 | 
             
                # @return true if the model is valid
         | 
| 69 73 | 
             
                def valid?
         | 
| 70 | 
            -
                  return false if @code.nil?
         | 
| 71 74 | 
             
                  true
         | 
| 72 75 | 
             
                end
         | 
| 73 76 |  | 
| 74 77 | 
             
                # Custom attribute writer method with validation
         | 
| 75 78 | 
             
                # @param [Object] code Value to be assigned
         | 
| 76 79 | 
             
                def code=(code)
         | 
| 77 | 
            -
                  if code.nil?
         | 
| 78 | 
            -
                    fail ArgumentError, 'code cannot be nil'
         | 
| 79 | 
            -
                  end
         | 
| 80 | 
            -
             | 
| 81 80 | 
             
                  @code = code
         | 
| 82 81 | 
             
                end
         | 
| 83 82 |  | 
| @@ -93,7 +92,8 @@ module CyberSource | |
| 93 92 | 
             
                  return true if self.equal?(o)
         | 
| 94 93 | 
             
                  self.class == o.class &&
         | 
| 95 94 | 
             
                      code == o.code &&
         | 
| 96 | 
            -
                      comments == o.comments
         | 
| 95 | 
            +
                      comments == o.comments &&
         | 
| 96 | 
            +
                      partner == o.partner
         | 
| 97 97 | 
             
                end
         | 
| 98 98 |  | 
| 99 99 | 
             
                # @see the `==` method
         | 
| @@ -105,7 +105,7 @@ module CyberSource | |
| 105 105 | 
             
                # Calculates hash code according to all attributes.
         | 
| 106 106 | 
             
                # @return [Fixnum] Hash code
         | 
| 107 107 | 
             
                def hash
         | 
| 108 | 
            -
                  [code, comments].hash
         | 
| 108 | 
            +
                  [code, comments, partner].hash
         | 
| 109 109 | 
             
                end
         | 
| 110 110 |  | 
| 111 111 | 
             
                # Builds the object from hash
         | 
    
        data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb
    CHANGED
    
    | @@ -14,7 +14,7 @@ require 'date' | |
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 16 | 
             
              class RiskV1DecisionsPost201ResponseErrorInformation
         | 
| 17 | 
            -
                # The reason of the status.  Possible values:  - `EXPIRED_CARD`  - `SCORE_EXCEEDS_THRESHOLD`  - `DECISION_PROFILE_REVIEW`  - `DECISION_PROFILE_REJECT`  - ` | 
| 17 | 
            +
                # The reason of the status.  Possible values:  - `EXPIRED_CARD`  - `SCORE_EXCEEDS_THRESHOLD`  - `DECISION_PROFILE_REVIEW`  - `DECISION_PROFILE_REJECT`  - `CONSUMER_AUTHENTICATION_REQUIRED`  - `INVALID_MERCHANT_CONFIGURATION`  - `CONSUMER_AUTHENTICATION_FAILED`  - `DECISION_PROFILE_CHALLENGE` 
         | 
| 18 18 | 
             
                attr_accessor :reason
         | 
| 19 19 |  | 
| 20 20 | 
             
                # The detail message related to the status and reason listed above.
         | 
    
        data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb
    CHANGED
    
    | @@ -61,7 +61,7 @@ module CyberSource | |
| 61 61 | 
             
                    :'submit_time_local' => :'String',
         | 
| 62 62 | 
             
                    :'status' => :'String',
         | 
| 63 63 | 
             
                    :'message' => :'String',
         | 
| 64 | 
            -
                    :'client_reference_information' => :' | 
| 64 | 
            +
                    :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 65 65 | 
             
                    :'export_compliance_information' => :'RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation',
         | 
| 66 66 | 
             
                    :'error_information' => :'RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation'
         | 
| 67 67 | 
             
                  }
         | 
| @@ -42,7 +42,7 @@ module CyberSource | |
| 42 42 | 
             
                def self.swagger_types
         | 
| 43 43 | 
             
                  {
         | 
| 44 44 | 
             
                    :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks',
         | 
| 45 | 
            -
                    :'client_reference_informaton' => :' | 
| 45 | 
            +
                    :'client_reference_informaton' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
         | 
| 46 46 | 
             
                    :'id' => :'String',
         | 
| 47 47 | 
             
                    :'status' => :'String',
         | 
| 48 48 | 
             
                    :'submit_time_utc' => :'String'
         | 
| @@ -20,11 +20,14 @@ module CyberSource | |
| 20 20 | 
             
                # Brief description of the order or any comment you wish to add to the order. 
         | 
| 21 21 | 
             
                attr_accessor :comments
         | 
| 22 22 |  | 
| 23 | 
            +
                attr_accessor :partner
         | 
| 24 | 
            +
             | 
| 23 25 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 24 26 | 
             
                def self.attribute_map
         | 
| 25 27 | 
             
                  {
         | 
| 26 28 | 
             
                    :'code' => :'code',
         | 
| 27 | 
            -
                    :'comments' => :'comments'
         | 
| 29 | 
            +
                    :'comments' => :'comments',
         | 
| 30 | 
            +
                    :'partner' => :'partner'
         | 
| 28 31 | 
             
                  }
         | 
| 29 32 | 
             
                end
         | 
| 30 33 |  | 
| @@ -32,7 +35,8 @@ module CyberSource | |
| 32 35 | 
             
                def self.swagger_types
         | 
| 33 36 | 
             
                  {
         | 
| 34 37 | 
             
                    :'code' => :'String',
         | 
| 35 | 
            -
                    :'comments' => :'String'
         | 
| 38 | 
            +
                    :'comments' => :'String',
         | 
| 39 | 
            +
                    :'partner' => :'Riskv1decisionsClientReferenceInformationPartner'
         | 
| 36 40 | 
             
                  }
         | 
| 37 41 | 
             
                end
         | 
| 38 42 |  | 
| @@ -51,24 +55,37 @@ module CyberSource | |
| 51 55 | 
             
                  if attributes.has_key?(:'comments')
         | 
| 52 56 | 
             
                    self.comments = attributes[:'comments']
         | 
| 53 57 | 
             
                  end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                  if attributes.has_key?(:'partner')
         | 
| 60 | 
            +
                    self.partner = attributes[:'partner']
         | 
| 61 | 
            +
                  end
         | 
| 54 62 | 
             
                end
         | 
| 55 63 |  | 
| 56 64 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| 57 65 | 
             
                # @return Array for valid properties with the reasons
         | 
| 58 66 | 
             
                def list_invalid_properties
         | 
| 59 67 | 
             
                  invalid_properties = Array.new
         | 
| 68 | 
            +
                  if @code.nil?
         | 
| 69 | 
            +
                    invalid_properties.push('invalid value for "code", code cannot be nil.')
         | 
| 70 | 
            +
                  end
         | 
| 71 | 
            +
             | 
| 60 72 | 
             
                  invalid_properties
         | 
| 61 73 | 
             
                end
         | 
| 62 74 |  | 
| 63 75 | 
             
                # Check to see if the all the properties in the model are valid
         | 
| 64 76 | 
             
                # @return true if the model is valid
         | 
| 65 77 | 
             
                def valid?
         | 
| 78 | 
            +
                  return false if @code.nil?
         | 
| 66 79 | 
             
                  true
         | 
| 67 80 | 
             
                end
         | 
| 68 81 |  | 
| 69 82 | 
             
                # Custom attribute writer method with validation
         | 
| 70 83 | 
             
                # @param [Object] code Value to be assigned
         | 
| 71 84 | 
             
                def code=(code)
         | 
| 85 | 
            +
                  if code.nil?
         | 
| 86 | 
            +
                    fail ArgumentError, 'code cannot be nil'
         | 
| 87 | 
            +
                  end
         | 
| 88 | 
            +
             | 
| 72 89 | 
             
                  @code = code
         | 
| 73 90 | 
             
                end
         | 
| 74 91 |  | 
| @@ -84,7 +101,8 @@ module CyberSource | |
| 84 101 | 
             
                  return true if self.equal?(o)
         | 
| 85 102 | 
             
                  self.class == o.class &&
         | 
| 86 103 | 
             
                      code == o.code &&
         | 
| 87 | 
            -
                      comments == o.comments
         | 
| 104 | 
            +
                      comments == o.comments &&
         | 
| 105 | 
            +
                      partner == o.partner
         | 
| 88 106 | 
             
                end
         | 
| 89 107 |  | 
| 90 108 | 
             
                # @see the `==` method
         | 
| @@ -96,7 +114,7 @@ module CyberSource | |
| 96 114 | 
             
                # Calculates hash code according to all attributes.
         | 
| 97 115 | 
             
                # @return [Fixnum] Hash code
         | 
| 98 116 | 
             
                def hash
         | 
| 99 | 
            -
                  [code, comments].hash
         | 
| 117 | 
            +
                  [code, comments, partner].hash
         | 
| 100 118 | 
             
                end
         | 
| 101 119 |  | 
| 102 120 | 
             
                # Builds the object from hash
         | 
| @@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3 | |
| 13 13 | 
             
            require 'date'
         | 
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 | 
            -
              class  | 
| 16 | 
            +
              class Riskv1decisionsClientReferenceInformationPartner
         | 
| 17 17 | 
             
                # Identifier for the developer that helped integrate a partner solution to CyberSource.  Send this value in all requests that are sent through the partner solutions built by that developer. CyberSource assigns the ID to the developer.  **Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect. 
         | 
| 18 18 | 
             
                attr_accessor :developer_id
         | 
| 19 19 |  | 
| @@ -48,6 +48,8 @@ module CyberSource | |
| 48 48 |  | 
| 49 49 | 
             
                attr_accessor :fraud_marking_information
         | 
| 50 50 |  | 
| 51 | 
            +
                attr_accessor :health_care_information
         | 
| 52 | 
            +
             | 
| 51 53 | 
             
                # The object containing the custom data that the merchant defines. 
         | 
| 52 54 | 
             
                attr_accessor :merchant_defined_information
         | 
| 53 55 |  | 
| @@ -86,6 +88,7 @@ module CyberSource | |
| 86 88 | 
             
                    :'error_information' => :'errorInformation',
         | 
| 87 89 | 
             
                    :'installment_information' => :'installmentInformation',
         | 
| 88 90 | 
             
                    :'fraud_marking_information' => :'fraudMarkingInformation',
         | 
| 91 | 
            +
                    :'health_care_information' => :'healthCareInformation',
         | 
| 89 92 | 
             
                    :'merchant_defined_information' => :'merchantDefinedInformation',
         | 
| 90 93 | 
             
                    :'merchant_information' => :'merchantInformation',
         | 
| 91 94 | 
             
                    :'order_information' => :'orderInformation',
         | 
| @@ -116,6 +119,7 @@ module CyberSource | |
| 116 119 | 
             
                    :'error_information' => :'TssV2TransactionsGet200ResponseErrorInformation',
         | 
| 117 120 | 
             
                    :'installment_information' => :'TssV2TransactionsGet200ResponseInstallmentInformation',
         | 
| 118 121 | 
             
                    :'fraud_marking_information' => :'TssV2TransactionsGet200ResponseFraudMarkingInformation',
         | 
| 122 | 
            +
                    :'health_care_information' => :'Ptsv2paymentsHealthCareInformation',
         | 
| 119 123 | 
             
                    :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>',
         | 
| 120 124 | 
             
                    :'merchant_information' => :'TssV2TransactionsGet200ResponseMerchantInformation',
         | 
| 121 125 | 
             
                    :'order_information' => :'TssV2TransactionsGet200ResponseOrderInformation',
         | 
| @@ -193,6 +197,10 @@ module CyberSource | |
| 193 197 | 
             
                    self.fraud_marking_information = attributes[:'fraudMarkingInformation']
         | 
| 194 198 | 
             
                  end
         | 
| 195 199 |  | 
| 200 | 
            +
                  if attributes.has_key?(:'healthCareInformation')
         | 
| 201 | 
            +
                    self.health_care_information = attributes[:'healthCareInformation']
         | 
| 202 | 
            +
                  end
         | 
| 203 | 
            +
             | 
| 196 204 | 
             
                  if attributes.has_key?(:'merchantDefinedInformation')
         | 
| 197 205 | 
             
                    if (value = attributes[:'merchantDefinedInformation']).is_a?(Array)
         | 
| 198 206 | 
             
                      self.merchant_defined_information = value
         | 
| @@ -286,6 +294,7 @@ module CyberSource | |
| 286 294 | 
             
                      error_information == o.error_information &&
         | 
| 287 295 | 
             
                      installment_information == o.installment_information &&
         | 
| 288 296 | 
             
                      fraud_marking_information == o.fraud_marking_information &&
         | 
| 297 | 
            +
                      health_care_information == o.health_care_information &&
         | 
| 289 298 | 
             
                      merchant_defined_information == o.merchant_defined_information &&
         | 
| 290 299 | 
             
                      merchant_information == o.merchant_information &&
         | 
| 291 300 | 
             
                      order_information == o.order_information &&
         | 
| @@ -307,7 +316,7 @@ module CyberSource | |
| 307 316 | 
             
                # Calculates hash code according to all attributes.
         | 
| 308 317 | 
             
                # @return [Fixnum] Hash code
         | 
| 309 318 | 
             
                def hash
         | 
| 310 | 
            -
                  [id, root_id, reconciliation_id, merchant_id, status, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, merchant_defined_information, merchant_information, order_information, payment_information, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, _links].hash
         | 
| 319 | 
            +
                  [id, root_id, reconciliation_id, merchant_id, status, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, _links].hash
         | 
| 311 320 | 
             
                end
         | 
| 312 321 |  | 
| 313 322 | 
             
                # Builds the object from hash
         | 
| @@ -14,6 +14,9 @@ require 'date' | |
| 14 14 |  | 
| 15 15 | 
             
            module CyberSource
         | 
| 16 16 | 
             
              class TssV2TransactionsGet200ResponseProcessingInformation
         | 
| 17 | 
            +
                # Indicates that the transaction includes industry-specific data.  Possible Values: - `airline` - `restaurant` - `lodging` - `auto_rental` - `transit` - `healthcare_medical` - `healthcare_transit` - `transit`  #### Card Present, Airlines and Auto Rental You must set this field to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to `airline` or is not included in the request, no airline data is sent to the processor.  You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to `restaurant` or is not included in the request, no restaurant data is sent to the processor.  You must set this field to `auto_rental` in order for auto rental data to be sent to the processor. For example, if this field is not set to `auto_rental` or is not included in the request, no auto rental data is sent to the processor.  Restaurant data is supported only on CyberSource through VisaNet. 
         | 
| 18 | 
            +
                attr_accessor :industry_data_type
         | 
| 19 | 
            +
             | 
| 17 20 | 
             
                # Type of digital payment solution for the transaction.  
         | 
| 18 21 | 
             
                attr_accessor :payment_solution
         | 
| 19 22 |  | 
| @@ -32,6 +35,7 @@ module CyberSource | |
| 32 35 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 33 36 | 
             
                def self.attribute_map
         | 
| 34 37 | 
             
                  {
         | 
| 38 | 
            +
                    :'industry_data_type' => :'industryDataType',
         | 
| 35 39 | 
             
                    :'payment_solution' => :'paymentSolution',
         | 
| 36 40 | 
             
                    :'commerce_indicator' => :'commerceIndicator',
         | 
| 37 41 | 
             
                    :'business_application_id' => :'businessApplicationId',
         | 
| @@ -44,6 +48,7 @@ module CyberSource | |
| 44 48 | 
             
                # Attribute type mapping.
         | 
| 45 49 | 
             
                def self.swagger_types
         | 
| 46 50 | 
             
                  {
         | 
| 51 | 
            +
                    :'industry_data_type' => :'String',
         | 
| 47 52 | 
             
                    :'payment_solution' => :'String',
         | 
| 48 53 | 
             
                    :'commerce_indicator' => :'String',
         | 
| 49 54 | 
             
                    :'business_application_id' => :'String',
         | 
| @@ -61,6 +66,10 @@ module CyberSource | |
| 61 66 | 
             
                  # convert string to symbol for hash key
         | 
| 62 67 | 
             
                  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
         | 
| 63 68 |  | 
| 69 | 
            +
                  if attributes.has_key?(:'industryDataType')
         | 
| 70 | 
            +
                    self.industry_data_type = attributes[:'industryDataType']
         | 
| 71 | 
            +
                  end
         | 
| 72 | 
            +
             | 
| 64 73 | 
             
                  if attributes.has_key?(:'paymentSolution')
         | 
| 65 74 | 
             
                    self.payment_solution = attributes[:'paymentSolution']
         | 
| 66 75 | 
             
                  end
         | 
| @@ -99,6 +108,12 @@ module CyberSource | |
| 99 108 | 
             
                  true
         | 
| 100 109 | 
             
                end
         | 
| 101 110 |  | 
| 111 | 
            +
                # Custom attribute writer method with validation
         | 
| 112 | 
            +
                # @param [Object] industry_data_type Value to be assigned
         | 
| 113 | 
            +
                def industry_data_type=(industry_data_type)
         | 
| 114 | 
            +
                  @industry_data_type = industry_data_type
         | 
| 115 | 
            +
                end
         | 
| 116 | 
            +
             | 
| 102 117 | 
             
                # Custom attribute writer method with validation
         | 
| 103 118 | 
             
                # @param [Object] payment_solution Value to be assigned
         | 
| 104 119 | 
             
                def payment_solution=(payment_solution)
         | 
| @@ -116,6 +131,7 @@ module CyberSource | |
| 116 131 | 
             
                def ==(o)
         | 
| 117 132 | 
             
                  return true if self.equal?(o)
         | 
| 118 133 | 
             
                  self.class == o.class &&
         | 
| 134 | 
            +
                      industry_data_type == o.industry_data_type &&
         | 
| 119 135 | 
             
                      payment_solution == o.payment_solution &&
         | 
| 120 136 | 
             
                      commerce_indicator == o.commerce_indicator &&
         | 
| 121 137 | 
             
                      business_application_id == o.business_application_id &&
         | 
| @@ -133,7 +149,7 @@ module CyberSource | |
| 133 149 | 
             
                # Calculates hash code according to all attributes.
         | 
| 134 150 | 
             
                # @return [Fixnum] Hash code
         | 
| 135 151 | 
             
                def hash
         | 
| 136 | 
            -
                  [payment_solution, commerce_indicator, business_application_id, authorization_options, bank_transfer_options, japan_payment_options].hash
         | 
| 152 | 
            +
                  [industry_data_type, payment_solution, commerce_indicator, business_application_id, authorization_options, bank_transfer_options, japan_payment_options].hash
         | 
| 137 153 | 
             
                end
         | 
| 138 154 |  | 
| 139 155 | 
             
                # Builds the object from hash
         | 
| @@ -38,7 +38,7 @@ module CyberSource | |
| 38 38 | 
             
                # Attribute type mapping.
         | 
| 39 39 | 
             
                def self.swagger_types
         | 
| 40 40 | 
             
                  {
         | 
| 41 | 
            -
                    :'client_reference_information' => :' | 
| 41 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation',
         | 
| 42 42 | 
             
                    :'order_information' => :'Riskv1exportcomplianceinquiriesOrderInformation',
         | 
| 43 43 | 
             
                    :'buyer_information' => :'Riskv1addressverificationsBuyerInformation',
         | 
| 44 44 | 
             
                    :'device_information' => :'Riskv1exportcomplianceinquiriesDeviceInformation',
         | 
| @@ -38,7 +38,7 @@ module CyberSource | |
| 38 38 | 
             
                # Attribute type mapping.
         | 
| 39 39 | 
             
                def self.swagger_types
         | 
| 40 40 | 
             
                  {
         | 
| 41 | 
            -
                    :'client_reference_information' => :' | 
| 41 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation',
         | 
| 42 42 | 
             
                    :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation',
         | 
| 43 43 | 
             
                    :'order_information' => :'Riskv1authenticationresultsOrderInformation',
         | 
| 44 44 | 
             
                    :'payment_information' => :'Riskv1authenticationresultsPaymentInformation',
         | 
| @@ -32,7 +32,7 @@ module CyberSource | |
| 32 32 | 
             
                # Attribute type mapping.
         | 
| 33 33 | 
             
                def self.swagger_types
         | 
| 34 34 | 
             
                  {
         | 
| 35 | 
            -
                    :'client_reference_information' => :' | 
| 35 | 
            +
                    :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation',
         | 
| 36 36 | 
             
                    :'order_information' => :'Riskv1addressverificationsOrderInformation',
         | 
| 37 37 | 
             
                    :'buyer_information' => :'Riskv1addressverificationsBuyerInformation'
         | 
| 38 38 | 
             
                  }
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cybersource_rest_client
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.28
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - CyberSource
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2021-03-04 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: typhoeus
         | 
| @@ -773,6 +773,7 @@ files: | |
| 773 773 | 
             
            - lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb
         | 
| 774 774 | 
             
            - lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb
         | 
| 775 775 | 
             
            - lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb
         | 
| 776 | 
            +
            - lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_client_reference_information.rb
         | 
| 776 777 | 
             
            - lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb
         | 
| 777 778 | 
             
            - lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb
         | 
| 778 779 | 
             
            - lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information.rb
         | 
| @@ -787,7 +788,6 @@ files: | |
| 787 788 | 
             
            - lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb
         | 
| 788 789 | 
             
            - lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb
         | 
| 789 790 | 
             
            - lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb
         | 
| 790 | 
            -
            - lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb
         | 
| 791 791 | 
             
            - lib/cybersource_rest_client/models/riskv1addressverifications_order_information.rb
         | 
| 792 792 | 
             
            - lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb
         | 
| 793 793 | 
             
            - lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb
         | 
| @@ -809,7 +809,6 @@ files: | |
| 809 809 | 
             
            - lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb
         | 
| 810 810 | 
             
            - lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb
         | 
| 811 811 | 
             
            - lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb
         | 
| 812 | 
            -
            - lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb
         | 
| 813 812 | 
             
            - lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information.rb
         | 
| 814 813 | 
             
            - lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb
         | 
| 815 814 | 
             
            - lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb
         | 
| @@ -819,6 +818,7 @@ files: | |
| 819 818 | 
             
            - lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb
         | 
| 820 819 | 
             
            - lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb
         | 
| 821 820 | 
             
            - lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb
         | 
| 821 | 
            +
            - lib/cybersource_rest_client/models/riskv1decisions_client_reference_information_partner.rb
         | 
| 822 822 | 
             
            - lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb
         | 
| 823 823 | 
             
            - lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information_strong_authentication.rb
         | 
| 824 824 | 
             
            - lib/cybersource_rest_client/models/riskv1decisions_device_information.rb
         | 
| @@ -1019,7 +1019,6 @@ files: | |
| 1019 1019 | 
             
            - lib/cybersource_rest_client/models/vas_v2_tax_voids_post400_response.rb
         | 
| 1020 1020 | 
             
            - lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb
         | 
| 1021 1021 | 
             
            - lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb
         | 
| 1022 | 
            -
            - lib/cybersource_rest_client/models/vasv2tax_client_reference_information_partner.rb
         | 
| 1023 1022 | 
             
            - lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb
         | 
| 1024 1023 | 
             
            - lib/cybersource_rest_client/models/vasv2tax_order_information.rb
         | 
| 1025 1024 | 
             
            - lib/cybersource_rest_client/models/vasv2tax_order_information_bill_to.rb
         | 
    
        data/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb
    DELETED
    
    | @@ -1,199 +0,0 @@ | |
| 1 | 
            -
            =begin
         | 
| 2 | 
            -
            #CyberSource Merged Spec
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            OpenAPI spec version: 0.0.1
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         | 
| 9 | 
            -
            Swagger Codegen version: 2.2.3
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            =end
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            require 'date'
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            module CyberSource
         | 
| 16 | 
            -
              class Riskv1authenticationsetupsClientReferenceInformation
         | 
| 17 | 
            -
                # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction.  #### Used by **Authorization** Required field.  #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed.  Required field for all PIN Debit requests (purchase, credit, and reversal).  #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. 
         | 
| 18 | 
            -
                attr_accessor :code
         | 
| 19 | 
            -
             | 
| 20 | 
            -
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 21 | 
            -
                def self.attribute_map
         | 
| 22 | 
            -
                  {
         | 
| 23 | 
            -
                    :'code' => :'code'
         | 
| 24 | 
            -
                  }
         | 
| 25 | 
            -
                end
         | 
| 26 | 
            -
             | 
| 27 | 
            -
                # Attribute type mapping.
         | 
| 28 | 
            -
                def self.swagger_types
         | 
| 29 | 
            -
                  {
         | 
| 30 | 
            -
                    :'code' => :'String'
         | 
| 31 | 
            -
                  }
         | 
| 32 | 
            -
                end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                # Initializes the object
         | 
| 35 | 
            -
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 36 | 
            -
                def initialize(attributes = {})
         | 
| 37 | 
            -
                  return unless attributes.is_a?(Hash)
         | 
| 38 | 
            -
             | 
| 39 | 
            -
                  # convert string to symbol for hash key
         | 
| 40 | 
            -
                  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
         | 
| 41 | 
            -
             | 
| 42 | 
            -
                  if attributes.has_key?(:'code')
         | 
| 43 | 
            -
                    self.code = attributes[:'code']
         | 
| 44 | 
            -
                  end
         | 
| 45 | 
            -
                end
         | 
| 46 | 
            -
             | 
| 47 | 
            -
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| 48 | 
            -
                # @return Array for valid properties with the reasons
         | 
| 49 | 
            -
                def list_invalid_properties
         | 
| 50 | 
            -
                  invalid_properties = Array.new
         | 
| 51 | 
            -
                  if @code.nil?
         | 
| 52 | 
            -
                    invalid_properties.push('invalid value for "code", code cannot be nil.')
         | 
| 53 | 
            -
                  end
         | 
| 54 | 
            -
             | 
| 55 | 
            -
                  invalid_properties
         | 
| 56 | 
            -
                end
         | 
| 57 | 
            -
             | 
| 58 | 
            -
                # Check to see if the all the properties in the model are valid
         | 
| 59 | 
            -
                # @return true if the model is valid
         | 
| 60 | 
            -
                def valid?
         | 
| 61 | 
            -
                  return false if @code.nil?
         | 
| 62 | 
            -
                  true
         | 
| 63 | 
            -
                end
         | 
| 64 | 
            -
             | 
| 65 | 
            -
                # Custom attribute writer method with validation
         | 
| 66 | 
            -
                # @param [Object] code Value to be assigned
         | 
| 67 | 
            -
                def code=(code)
         | 
| 68 | 
            -
                  if code.nil?
         | 
| 69 | 
            -
                    fail ArgumentError, 'code cannot be nil'
         | 
| 70 | 
            -
                  end
         | 
| 71 | 
            -
             | 
| 72 | 
            -
                  @code = code
         | 
| 73 | 
            -
                end
         | 
| 74 | 
            -
             | 
| 75 | 
            -
                # Checks equality by comparing each attribute.
         | 
| 76 | 
            -
                # @param [Object] Object to be compared
         | 
| 77 | 
            -
                def ==(o)
         | 
| 78 | 
            -
                  return true if self.equal?(o)
         | 
| 79 | 
            -
                  self.class == o.class &&
         | 
| 80 | 
            -
                      code == o.code
         | 
| 81 | 
            -
                end
         | 
| 82 | 
            -
             | 
| 83 | 
            -
                # @see the `==` method
         | 
| 84 | 
            -
                # @param [Object] Object to be compared
         | 
| 85 | 
            -
                def eql?(o)
         | 
| 86 | 
            -
                  self == o
         | 
| 87 | 
            -
                end
         | 
| 88 | 
            -
             | 
| 89 | 
            -
                # Calculates hash code according to all attributes.
         | 
| 90 | 
            -
                # @return [Fixnum] Hash code
         | 
| 91 | 
            -
                def hash
         | 
| 92 | 
            -
                  [code].hash
         | 
| 93 | 
            -
                end
         | 
| 94 | 
            -
             | 
| 95 | 
            -
                # Builds the object from hash
         | 
| 96 | 
            -
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 97 | 
            -
                # @return [Object] Returns the model itself
         | 
| 98 | 
            -
                def build_from_hash(attributes)
         | 
| 99 | 
            -
                  return nil unless attributes.is_a?(Hash)
         | 
| 100 | 
            -
                  self.class.swagger_types.each_pair do |key, type|
         | 
| 101 | 
            -
                    if type =~ /\AArray<(.*)>/i
         | 
| 102 | 
            -
                      # check to ensure the input is an array given that the the attribute
         | 
| 103 | 
            -
                      # is documented as an array but the input is not
         | 
| 104 | 
            -
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         | 
| 105 | 
            -
                        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
         | 
| 106 | 
            -
                      end
         | 
| 107 | 
            -
                    elsif !attributes[self.class.attribute_map[key]].nil?
         | 
| 108 | 
            -
                      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
         | 
| 109 | 
            -
                    end # or else data not found in attributes(hash), not an issue as the data can be optional
         | 
| 110 | 
            -
                  end
         | 
| 111 | 
            -
             | 
| 112 | 
            -
                  self
         | 
| 113 | 
            -
                end
         | 
| 114 | 
            -
             | 
| 115 | 
            -
                # Deserializes the data based on type
         | 
| 116 | 
            -
                # @param string type Data type
         | 
| 117 | 
            -
                # @param string value Value to be deserialized
         | 
| 118 | 
            -
                # @return [Object] Deserialized data
         | 
| 119 | 
            -
                def _deserialize(type, value)
         | 
| 120 | 
            -
                  case type.to_sym
         | 
| 121 | 
            -
                  when :DateTime
         | 
| 122 | 
            -
                    DateTime.parse(value)
         | 
| 123 | 
            -
                  when :Date
         | 
| 124 | 
            -
                    Date.parse(value)
         | 
| 125 | 
            -
                  when :String
         | 
| 126 | 
            -
                    value.to_s
         | 
| 127 | 
            -
                  when :Integer
         | 
| 128 | 
            -
                    value.to_i
         | 
| 129 | 
            -
                  when :Float
         | 
| 130 | 
            -
                    value.to_f
         | 
| 131 | 
            -
                  when :BOOLEAN
         | 
| 132 | 
            -
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         | 
| 133 | 
            -
                      true
         | 
| 134 | 
            -
                    else
         | 
| 135 | 
            -
                      false
         | 
| 136 | 
            -
                    end
         | 
| 137 | 
            -
                  when :Object
         | 
| 138 | 
            -
                    # generic object (usually a Hash), return directly
         | 
| 139 | 
            -
                    value
         | 
| 140 | 
            -
                  when /\AArray<(?<inner_type>.+)>\z/
         | 
| 141 | 
            -
                    inner_type = Regexp.last_match[:inner_type]
         | 
| 142 | 
            -
                    value.map { |v| _deserialize(inner_type, v) }
         | 
| 143 | 
            -
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         | 
| 144 | 
            -
                    k_type = Regexp.last_match[:k_type]
         | 
| 145 | 
            -
                    v_type = Regexp.last_match[:v_type]
         | 
| 146 | 
            -
                    {}.tap do |hash|
         | 
| 147 | 
            -
                      value.each do |k, v|
         | 
| 148 | 
            -
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         | 
| 149 | 
            -
                      end
         | 
| 150 | 
            -
                    end
         | 
| 151 | 
            -
                  else # model
         | 
| 152 | 
            -
                    temp_model = CyberSource.const_get(type).new
         | 
| 153 | 
            -
                    temp_model.build_from_hash(value)
         | 
| 154 | 
            -
                  end
         | 
| 155 | 
            -
                end
         | 
| 156 | 
            -
             | 
| 157 | 
            -
                # Returns the string representation of the object
         | 
| 158 | 
            -
                # @return [String] String presentation of the object
         | 
| 159 | 
            -
                def to_s
         | 
| 160 | 
            -
                  to_hash.to_s
         | 
| 161 | 
            -
                end
         | 
| 162 | 
            -
             | 
| 163 | 
            -
                # to_body is an alias to to_hash (backward compatibility)
         | 
| 164 | 
            -
                # @return [Hash] Returns the object in the form of hash
         | 
| 165 | 
            -
                def to_body
         | 
| 166 | 
            -
                  to_hash
         | 
| 167 | 
            -
                end
         | 
| 168 | 
            -
             | 
| 169 | 
            -
                # Returns the object in the form of hash
         | 
| 170 | 
            -
                # @return [Hash] Returns the object in the form of hash
         | 
| 171 | 
            -
                def to_hash
         | 
| 172 | 
            -
                  hash = {}
         | 
| 173 | 
            -
                  self.class.attribute_map.each_pair do |attr, param|
         | 
| 174 | 
            -
                    value = self.send(attr)
         | 
| 175 | 
            -
                    next if value.nil?
         | 
| 176 | 
            -
                    hash[param] = _to_hash(value)
         | 
| 177 | 
            -
                  end
         | 
| 178 | 
            -
                  hash
         | 
| 179 | 
            -
                end
         | 
| 180 | 
            -
             | 
| 181 | 
            -
                # Outputs non-array value in the form of hash
         | 
| 182 | 
            -
                # For object, use to_hash. Otherwise, just return the value
         | 
| 183 | 
            -
                # @param [Object] value Any valid value
         | 
| 184 | 
            -
                # @return [Hash] Returns the value in the form of hash
         | 
| 185 | 
            -
                def _to_hash(value)
         | 
| 186 | 
            -
                  if value.is_a?(Array)
         | 
| 187 | 
            -
                    value.compact.map { |v| _to_hash(v) }
         | 
| 188 | 
            -
                  elsif value.is_a?(Hash)
         | 
| 189 | 
            -
                    {}.tap do |hash|
         | 
| 190 | 
            -
                      value.each { |k, v| hash[k] = _to_hash(v) }
         | 
| 191 | 
            -
                    end
         | 
| 192 | 
            -
                  elsif value.respond_to? :to_hash
         | 
| 193 | 
            -
                    value.to_hash
         | 
| 194 | 
            -
                  else
         | 
| 195 | 
            -
                    value
         | 
| 196 | 
            -
                  end
         | 
| 197 | 
            -
                end
         | 
| 198 | 
            -
              end
         | 
| 199 | 
            -
            end
         |