Class: Mundipagg::CreateOrderRequest
- Inherits:
-
Object
- Object
- Mundipagg::CreateOrderRequest
- Defined in:
- lib/mundipagg/CreateOrderRequest.rb
Constant Summary collapse
- @@CURRENCY_ISO =
Currency Enum
{ :BrazillianReal => 'BRL', :AmericanDollar => 'USD' }
Instance Attribute Summary collapse
-
#amountInCents ⇒ Long
Order amount in cents.
-
#amountInCentsToConsiderPaid ⇒ Long
Amount (in cents) to consider the order is paid.
-
#boletoTransactionCollection ⇒ Array
Array with all boleto transactions.
-
#buyer ⇒ Buyer
Buyer instance.
-
#creditCardTransactionCollection ⇒ Array
Array with all credit card transactions.
-
#currencyIsoEnum ⇒ String
Order amount currency.
-
#merchantKey ⇒ Guid
MundiPagg merchant identification.
-
#orderReference ⇒ String
If merchant not send OrderReference, Mundipagg will generate and return in the response.
-
#requestKey ⇒ Guid
If not send, it will be generate automatically in the webservice and returned in response.
-
#shoppingCartCollection ⇒ Array
Array with all Shopping Carts.
Class Method Summary collapse
-
.CurrencyIsoEnum ⇒ Object
Currency Enum.
Instance Method Summary collapse
-
#initialize ⇒ CreateOrderRequest
constructor
Initialize class and properties.
Constructor Details
#initialize ⇒ CreateOrderRequest
Initialize class and properties
49 50 51 52 53 54 55 56 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 49 def initialize @shoppingCartCollection = Array.new; @creditCardTransactionCollection = Array.new; @boletoTransactionCollection = Array.new; @currencyIsoEnum = CreateOrderRequest.CurrencyIsoEnum[:BrazillianReal] @requestKey = '00000000-0000-0000-0000-000000000000' end |
Instance Attribute Details
#amountInCents ⇒ Long
Returns Order amount in cents.
4 5 6 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 4 def amountInCents @amountInCents end |
#amountInCentsToConsiderPaid ⇒ Long
Returns Amount (in cents) to consider the order is paid.
7 8 9 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 7 def amountInCentsToConsiderPaid @amountInCentsToConsiderPaid end |
#boletoTransactionCollection ⇒ Array
Returns Array with all boleto transactions.
32 33 34 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 32 def boletoTransactionCollection @boletoTransactionCollection end |
#buyer ⇒ Buyer
Returns Buyer instance.
16 17 18 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 16 def buyer @buyer end |
#creditCardTransactionCollection ⇒ Array
Returns Array with all credit card transactions.
29 30 31 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 29 def creditCardTransactionCollection @creditCardTransactionCollection end |
#currencyIsoEnum ⇒ String
Returns Order amount currency.
12 13 14 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 12 def currencyIsoEnum @currencyIsoEnum end |
#merchantKey ⇒ Guid
Returns MundiPagg merchant identification.
22 23 24 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 22 def merchantKey @merchantKey end |
#orderReference ⇒ String
If merchant not send OrderReference, Mundipagg will generate and return in the response.
26 27 28 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 26 def orderReference @orderReference end |
#requestKey ⇒ Guid
If not send, it will be generate automatically in the webservice and returned in response. Web service request identification, it is used for investigate problems with webservice requests.
39 40 41 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 39 def requestKey @requestKey end |
#shoppingCartCollection ⇒ Array
Returns Array with all Shopping Carts.
19 20 21 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 19 def shoppingCartCollection @shoppingCartCollection end |
Class Method Details
.CurrencyIsoEnum ⇒ Object
Currency Enum
61 62 63 |
# File 'lib/mundipagg/CreateOrderRequest.rb', line 61 def self.CurrencyIsoEnum @@CURRENCY_ISO end |