Sha256: 6427113b3e8d5ea4b2f685c52cbad7ee38a10fda6a5c300f26a71b97d21ee1e6

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

class AntiFraudAnalysisResult
  # Indica se a análise de antifraude está habilitada
  attr_accessor :IsAntiFraudEnabled

  # Código do serviço de antifraude
  attr_accessor :AntiFraudServiceCode

  # Status da análise do serviço de antifraude
  attr_accessor :AntiFraudAnalysisStatus

  # Código de retorno do antifraude
  attr_accessor :ReturnCode

  # Status de retorno do antifraude
  attr_accessor :ReturnStatus

  # Mensagem de retorno do antifraude
  attr_accessor :Message

  # Pontuação do pedido
  attr_accessor :Score

  # Nome do serviço de antifraude
  attr_accessor :AntiFraudServiceName

  @@AntiFraudAnalysisStatusEnum = {
    :Undefined => '0',
    :PendingFraudAnalysisRequirement => '1',
    :FraudAnalysisRequirementSent => '2',
    :Approved => '3',
    :Reproved => '4',
    :PendingManualAnalysis => '5',
    :NoTransactionToAnalyse => '6',
    :FraudAnalysisWithError => '7'
  }

  def initialize
    @AntiFraudAnalysisStatus = self.AntiFraudAnalysisStatusEnum
  end

  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/AntiFraud/anti_fraud_analysis_result.rb
mundipagg_sdk-1.0.3 lib/gateway/AntiFraud/anti_fraud_analysis_result.rb
stone_ecommerce-1.0.2 lib/gateway/AntiFraud/anti_fraud_analysis_result.rb
stone_ecommerce-1.0.0 lib/gateway/AntiFraud/anti_fraud_analysis_result.rb