Class: Mundipagg::CreditCardTransaction

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

Constant Summary collapse

@@CARD_BRAND =

Allowed card brands

{
	:Visa => 'Visa',
	:Mastercard => 'Mastercard',
	:AmericanExpress => 'Amex',
	:Hipercard => 'Hipercard',
	:Diners => 'Diners',
	:Elo => 'Elo',
	:Aura => 'Aura',
	:Discover => 'Discover'
}
@@OPERATION =

Types of operation.

{
	:AuthOnly => 'AuthOnly',
	:AuthAndCapture => 'AuthAndCapture',
	:AuthAndCaptureWithDelay => 'AuthAndCaptureWithDelay'
}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#amountInCentsLong


5
6
7
# File 'lib/mundipagg/CreditCardTransaction.rb', line 5

def amountInCents
  @amountInCents
end

#creditCardBrandEnumString

Returns Card brand. Use the static property BrandEnum.

See Also:


12
13
14
# File 'lib/mundipagg/CreditCardTransaction.rb', line 12

def creditCardBrandEnum
  @creditCardBrandEnum
end

#creditCardNumberString


15
16
17
# File 'lib/mundipagg/CreditCardTransaction.rb', line 15

def creditCardNumber
  @creditCardNumber
end

#creditCardOperationEnumString

Returns Type of operation. Use the static property OperationEnum.

See Also:


19
20
21
# File 'lib/mundipagg/CreditCardTransaction.rb', line 19

def creditCardOperationEnum
  @creditCardOperationEnum
end

#expirationMonthInteger


22
23
24
# File 'lib/mundipagg/CreditCardTransaction.rb', line 22

def expirationMonth
  @expirationMonth
end

#expirationYearInteger


25
26
27
# File 'lib/mundipagg/CreditCardTransaction.rb', line 25

def expirationYear
  @expirationYear
end

#holderNameInteger


28
29
30
# File 'lib/mundipagg/CreditCardTransaction.rb', line 28

def holderName
  @holderName
end

#installmentCountInteger


31
32
33
# File 'lib/mundipagg/CreditCardTransaction.rb', line 31

def installmentCount
  @installmentCount
end

#instantBuyKeyString


8
9
10
# File 'lib/mundipagg/CreditCardTransaction.rb', line 8

def instantBuyKey
  @instantBuyKey
end

#paymentMethodCodeInteger


37
38
39
# File 'lib/mundipagg/CreditCardTransaction.rb', line 37

def paymentMethodCode
  @paymentMethodCode
end

#recurrencyRecurrency

Fill this property when creating a recurrency transaction.


44
45
46
# File 'lib/mundipagg/CreditCardTransaction.rb', line 44

def recurrency
  @recurrency
end

#securityCodeInteger


34
35
36
# File 'lib/mundipagg/CreditCardTransaction.rb', line 34

def securityCode
  @securityCode
end

#transactionReferenceString


40
41
42
# File 'lib/mundipagg/CreditCardTransaction.rb', line 40

def transactionReference
  @transactionReference
end

Class Method Details

.BrandEnumObject

Allowed card brands

See Also:


70
71
72
# File 'lib/mundipagg/CreditCardTransaction.rb', line 70

def self.BrandEnum
	@@CARD_BRAND
end

.OperationEnumObject

Allowed operations.

See Also:


77
78
79
# File 'lib/mundipagg/CreditCardTransaction.rb', line 77

def self.OperationEnum
	@@OPERATION
end