Class: CreateSaleRequest
- Inherits:
-
Object
- Object
- CreateSaleRequest
- Defined in:
- lib/mundipagg/Sale/create_sale_request.rb
Instance Attribute Summary collapse
-
#BoletoTransactionCollection ⇒ Object
Returns the value of attribute BoletoTransactionCollection.
-
#Buyer ⇒ Object
Returns the value of attribute Buyer.
-
#CreditCardTransactionCollection ⇒ Object
Returns the value of attribute CreditCardTransactionCollection.
-
#Merchant ⇒ Object
Returns the value of attribute Merchant.
-
#Options ⇒ Object
Returns the value of attribute Options.
-
#Order ⇒ Object
Returns the value of attribute Order.
-
#RequestData ⇒ Object
Returns the value of attribute RequestData.
-
#ShoppingCartCollection ⇒ Object
Returns the value of attribute ShoppingCartCollection.
Instance Method Summary collapse
-
#initialize ⇒ CreateSaleRequest
constructor
A new instance of CreateSaleRequest.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ CreateSaleRequest
Returns a new instance of CreateSaleRequest.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 19 def initialize @CreditCardTransactionCollection = Array.new @BoletoTransactionCollection = Array.new @ShoppingCartCollection = Array.new @Buyer = Buyer.new @RequestData = RequestData.new @Options = SalesOption.new @Merchant = Merchant.new @Order = Order.new end |
Instance Attribute Details
#BoletoTransactionCollection ⇒ Object
Returns the value of attribute BoletoTransactionCollection.
5 6 7 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 5 def BoletoTransactionCollection @BoletoTransactionCollection end |
#Buyer ⇒ Object
Returns the value of attribute Buyer.
9 10 11 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 9 def Buyer @Buyer end |
#CreditCardTransactionCollection ⇒ Object
Returns the value of attribute CreditCardTransactionCollection.
3 4 5 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 3 def CreditCardTransactionCollection @CreditCardTransactionCollection end |
#Merchant ⇒ Object
Returns the value of attribute Merchant.
15 16 17 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 15 def Merchant @Merchant end |
#Options ⇒ Object
Returns the value of attribute Options.
13 14 15 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 13 def Options @Options end |
#Order ⇒ Object
Returns the value of attribute Order.
7 8 9 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 7 def Order @Order end |
#RequestData ⇒ Object
Returns the value of attribute RequestData.
17 18 19 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 17 def RequestData @RequestData end |
#ShoppingCartCollection ⇒ Object
Returns the value of attribute ShoppingCartCollection.
11 12 13 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 11 def ShoppingCartCollection @ShoppingCartCollection end |
Instance Method Details
#to_json ⇒ Object
30 31 32 33 34 |
# File 'lib/mundipagg/Sale/create_sale_request.rb', line 30 def to_json hash = {} instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end |