Class: Mundipagg::CreateOrderRequest

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

Constant Summary collapse

@@CURRENCY_ISO =

Currency Enum

{
	:BrazillianReal => 'BRL',
	:AmericanDollar => 'USD'
}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCreateOrderRequest

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

#amountInCentsLong

Returns Order amount in cents

Returns:

  • (Long)

    Order amount in cents


4
5
6
# File 'lib/mundipagg/CreateOrderRequest.rb', line 4

def amountInCents
  @amountInCents
end

#amountInCentsToConsiderPaidLong

Returns Amount (in cents) to consider the order is paid

Returns:

  • (Long)

    Amount (in cents) to consider the order is paid


7
8
9
# File 'lib/mundipagg/CreateOrderRequest.rb', line 7

def amountInCentsToConsiderPaid
  @amountInCentsToConsiderPaid
end

#boletoTransactionCollectionArray

Returns Array with all boleto transactions

Returns:

  • (Array)

    Array with all boleto transactions


32
33
34
# File 'lib/mundipagg/CreateOrderRequest.rb', line 32

def boletoTransactionCollection
  @boletoTransactionCollection
end

#buyerBuyer

Returns Buyer instance

Returns:

  • (Buyer)

    Buyer instance

See Also:


16
17
18
# File 'lib/mundipagg/CreateOrderRequest.rb', line 16

def buyer
  @buyer
end

#creditCardTransactionCollectionArray

Returns Array with all credit card transactions

Returns:

  • (Array)

    Array with all credit card transactions


29
30
31
# File 'lib/mundipagg/CreateOrderRequest.rb', line 29

def creditCardTransactionCollection
  @creditCardTransactionCollection
end

#currencyIsoEnumString

Returns Order amount currency.

Parameters:

  • Default:

    BRL

Returns:

  • (String)

    Order amount currency.

See Also:


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

def currencyIsoEnum
  @currencyIsoEnum
end

#merchantKeyGuid

Returns MundiPagg merchant identification

Returns:

  • (Guid)

    MundiPagg merchant identification


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

def merchantKey
  @merchantKey
end

#orderReferenceString

If merchant not send OrderReference, Mundipagg will generate and return in the response.

Returns:

  • (String)

    Custom order identification.


26
27
28
# File 'lib/mundipagg/CreateOrderRequest.rb', line 26

def orderReference
  @orderReference
end

#requestKeyGuid

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.

Parameters:

  • Optional
  • Default:

    00000000-0000-0000-0000-000000000000

Returns:

  • (Guid)

    Globally Unique Identifier.


39
40
41
# File 'lib/mundipagg/CreateOrderRequest.rb', line 39

def requestKey
  @requestKey
end

#shoppingCartCollectionArray

Returns Array with all Shopping Carts

Returns:

  • (Array)

    Array with all Shopping Carts


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

def shoppingCartCollection
  @shoppingCartCollection
end

Class Method Details

.CurrencyIsoEnumObject

Currency Enum

See Also:


61
62
63
# File 'lib/mundipagg/CreateOrderRequest.rb', line 61

def self.CurrencyIsoEnum
	@@CURRENCY_ISO
end