Sha256: 9a68333b277878b29c4be2cc3032aff39bf68b0c2f7932593f2febda829a5c74

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

class QuerySaleAntiFraudAnalysisData
  # Indica se o serviço de antifraude está habilitado
  attr_accessor :IsAntiFraudEnabled

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

  # Nome do serviço de antifraude
  attr_accessor :AntiFraudServiceName

  # Status da análise de antifraude
  attr_accessor :AntiFraudAnalysisStatus

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

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

  # Status do retorno do antifraude
  attr_accessor :ReturnStatus

  # Mensagem de retorno do antifraude
  attr_accessor :ReturnMessage

  # Pontuação do comprador
  attr_accessor :Score

  # Histórico da análise de antifraude
  attr_accessor :HistoryCollection

  def initialize
    @AntiFraudAnalysisStatus = self.AntiFraudAnalysisStatusEnum
    @HistoryCollection = QuerySaleAntiFraudAnalysisHistoryData.new
  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/query_sale_anti_fraud_analysis_data.rb
mundipagg_sdk-1.0.3 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_data.rb
stone_ecommerce-1.0.2 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_data.rb
stone_ecommerce-1.0.0 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_data.rb