Class: Mundipagg::BuyerAddress

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

Constant Summary collapse

@@ADDRESS_TYPE =

Address Type Enum

{
	:Billing => 'Billing',
	:Shipping => 'Shipping',
	:Work => 'Comercial',
	:Home => 'Residential'
}
@@COUNTRY =

Country Enum

{
	:Brazil => 'Brazil',
	:UnitedStates => 'USA',
	:Argentina => 'Argentina',
	:Bolivia => 'Bolivia',
	:Chile => 'Chile',
	:Colombia => 'Colombia',
	:Uruguay => 'Uruguay',
	:Mexico => 'Mexico',
	:Paraguay => 'Paraguay'
}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuyerAddress

Initialize class with properties


51
52
53
54
# File 'lib/mundipagg/BuyerAddress.rb', line 51

def initialize
	@addressTypeEnum = BuyerAddress.AddressTypeEnum[:Home]
	@countryEnum = BuyerAddress.CountryEnum[:Brazil]
end

Instance Attribute Details

#addressTypeEnumString

Returns Address Type.

Parameters:

  • Default:

    Residential

Returns:

  • (String)

    Address Type.

See Also:


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

def addressTypeEnum
  @addressTypeEnum
end

#cityString

Returns City.

Returns:

  • (String)

    City.


9
10
11
# File 'lib/mundipagg/BuyerAddress.rb', line 9

def city
  @city
end

#complementString

Returns Address complement.

Returns:

  • (String)

    Address complement.


11
12
13
# File 'lib/mundipagg/BuyerAddress.rb', line 11

def complement
  @complement
end

#countryEnumString

Returns Address country.

Parameters:

  • Default:

    Brazil

Returns:

  • (String)

    Address country.

See Also:


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

def countryEnum
  @countryEnum
end

#districtString

Returns District.

Returns:

  • (String)

    District.


17
18
19
# File 'lib/mundipagg/BuyerAddress.rb', line 17

def district
  @district
end

#numberString

Returns Address number.

Returns:

  • (String)

    Address number.


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

def number
  @number
end

#stateString

Returns Address state.

Returns:

  • (String)

    Address state.


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

def state
  @state
end

#streetString

Returns Street.

Returns:

  • (String)

    Street.


23
24
25
# File 'lib/mundipagg/BuyerAddress.rb', line 23

def street
  @street
end

#zipCodeString

Returns Zip Code.

Returns:

  • (String)

    Zip Code.


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

def zipCode
  @zipCode
end

Class Method Details

.AddressTypeEnumObject

Address Type Enum

See Also:


58
59
60
# File 'lib/mundipagg/BuyerAddress.rb', line 58

def self.AddressTypeEnum
	@@ADDRESS_TYPE
end

.CountryEnumObject

Country Enum

See Also:


64
65
66
# File 'lib/mundipagg/BuyerAddress.rb', line 64

def self.CountryEnum
	@@COUNTRY
end