Sha256: 765472fe6873698a9dd482ab2ec4aa7c4c5e3bf11baeee4b32e964387f2b1a61

Contents?: true

Size: 940 Bytes

Versions: 4

Compression:

Stored size: 940 Bytes

Contents

class QuerySaleAntiFraudAnalysisHistoryData
  # Status do antifraude
  attr_accessor :AntiFraudAnalysisStatus

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

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

  # Status de retorno
  attr_accessor :ReturnStatus

  # Menssagem de retorno
  attr_accessor :ReturnMessage

  # Pontuação
  attr_accessor :Score

  # Data da alteração de status
  attr_accessor :StatusChangedDate

  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/query_sale_anti_fraud_analysis_history_data.rb
mundipagg_sdk-1.0.3 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_history_data.rb
stone_ecommerce-1.0.2 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_history_data.rb
stone_ecommerce-1.0.0 lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_history_data.rb