Class: Mundipagg::BoletoTransaction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBoletoTransaction

Initialize class with default values


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

def initialize
	@amountInCents = 0
	@daysToAddInBoletoExpirationDate = 7
end

Instance Attribute Details

#amountInCentsLong

Returns Transaction amount in cents

Returns:

  • (Long)

    Transaction amount in cents


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

def amountInCents
  @amountInCents
end

#bankNumberInteger

Returns Bank code

Returns:

  • (Integer)

    Bank code


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

def bankNumber
  @bankNumber
end

#daysToAddInBoletoExpirationDateInteger

Returns How many days after the creation the boleto will be valid.

Parameters:

  • Default:

    7

Returns:

  • (Integer)

    How many days after the creation the boleto will be valid.


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

def daysToAddInBoletoExpirationDate
  @daysToAddInBoletoExpirationDate
end

#instructionsLong

Returns Text with payment instructions. Limit: 120 characters.

Returns:

  • (Long)

    Text with payment instructions. Limit: 120 characters.


18
19
20
# File 'lib/mundipagg/BoletoTransaction.rb', line 18

def instructions
  @instructions
end

#nossoNumeroInteger

Returns Number used to identify the boleto

Returns:

  • (Integer)

    Number used to identify the boleto


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

def nossoNumero
  @nossoNumero
end

#transactionReferenceLong

Returns Custom transaction identifier.

Returns:

  • (Long)

    Custom transaction identifier.


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

def transactionReference
  @transactionReference
end