Class: Webpay

Inherits:
Object
  • Object
show all
Defined in:
lib/webpay.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Webpay

método inicializar clase



21
22
23
# File 'lib/webpay.rb', line 21

def initialize(params)
  @configuration = params
end

Instance Method Details

#getCaptureTransactionObject



46
47
48
49
50
51
# File 'lib/webpay.rb', line 46

def getCaptureTransaction
  if @webpayCapture == nil
    @webpayCapture = WebpayCapture.new(@configuration)
  end
  return @webpayCapture
end

#getCompleteTransactionObject



60
61
62
63
64
65
# File 'lib/webpay.rb', line 60

def getCompleteTransaction
  if @webpayCompleteTransaction == nil
    @webpayCompleteTransaction = WebpayComplete.new(@configuration)
  end
  return @webpayCompleteTransaction
end

#getMallNormalTransactionObject



32
33
34
35
36
37
# File 'lib/webpay.rb', line 32

def getMallNormalTransaction
  if @webpayMallNormal == nil
    @webpayMallNormal = WebpayMallNormal.new(@configuration)
  end
  return @webpayMallNormal
end

#getNormalTransactionObject



25
26
27
28
29
30
# File 'lib/webpay.rb', line 25

def getNormalTransaction
  if @webpayNormal == nil
    @webpayNormal = WebpayNormal.new(@configuration)
  end
  return @webpayNormal
end

#getNullifyTransactionObject



39
40
41
42
43
44
# File 'lib/webpay.rb', line 39

def getNullifyTransaction
  if @webpayNullify == nil
    @webpayNullify = WebpayNullify.new(@configuration)
  end
  return @webpayNullify
end

#getOneClickTransactionObject



53
54
55
56
57
58
# File 'lib/webpay.rb', line 53

def getOneClickTransaction
  if @webpayOneClick == nil
    @webpayOneClick = WebpayOneClick.new(@configuration)
  end
  return @webpayOneClick
end