Class: Mundipagg::BoletoTransaction
- Inherits:
-
Object
- Object
- Mundipagg::BoletoTransaction
- Defined in:
- lib/mundipagg/BoletoTransaction.rb
Instance Attribute Summary collapse
-
#amountInCents ⇒ Long
Transaction amount in cents.
-
#bankNumber ⇒ Integer
Bank code.
-
#daysToAddInBoletoExpirationDate ⇒ Integer
How many days after the creation the boleto will be valid.
-
#instructions ⇒ Long
Text with payment instructions.
-
#nossoNumero ⇒ Integer
Number used to identify the boleto.
-
#transactionReference ⇒ Long
Custom transaction identifier.
Instance Method Summary collapse
-
#initialize ⇒ BoletoTransaction
constructor
Initialize class with default values.
Constructor Details
#initialize ⇒ BoletoTransaction
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
#amountInCents ⇒ Long
Returns Transaction amount in cents.
5 6 7 |
# File 'lib/mundipagg/BoletoTransaction.rb', line 5 def amountInCents @amountInCents end |
#bankNumber ⇒ Integer
Returns Bank code.
8 9 10 |
# File 'lib/mundipagg/BoletoTransaction.rb', line 8 def bankNumber @bankNumber end |
#daysToAddInBoletoExpirationDate ⇒ Integer
Returns 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 |
#instructions ⇒ Long
Returns Text with payment instructions. Limit: 120 characters.
18 19 20 |
# File 'lib/mundipagg/BoletoTransaction.rb', line 18 def instructions @instructions end |
#nossoNumero ⇒ Integer
Returns Number used to identify the boleto.
15 16 17 |
# File 'lib/mundipagg/BoletoTransaction.rb', line 15 def nossoNumero @nossoNumero end |
#transactionReference ⇒ Long
Returns Custom transaction identifier.
21 22 23 |
# File 'lib/mundipagg/BoletoTransaction.rb', line 21 def transactionReference @transactionReference end |