Class: Afterpay::Components::Contact

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/contact.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#area1String

City or suburb. Maximum length is 128 characters.

Returns:

  • (String)


24
25
26
# File 'lib/afterpay/components/contact.rb', line 24

def area1
  @area1
end

#area2String

Suburb or village or local area. Maximum length is 128 characters.

Returns:

  • (String)


29
30
31
# File 'lib/afterpay/components/contact.rb', line 29

def area2
  @area2
end

#country_codeString

The two-character ISO 3166-1 country code.

Returns:

  • (String)


44
45
46
# File 'lib/afterpay/components/contact.rb', line 44

def country_code
  @country_code
end

#line1String

Street address. Maximum length is 128 characters.

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/contact.rb', line 14

def line1
  @line1
end

#line2String

Second line of the address. Maximum length is 128 characters.

Returns:

  • (String)


19
20
21
# File 'lib/afterpay/components/contact.rb', line 19

def line2
  @line2
end

#nameString

Full name of contact. Maximum length is 255 characters.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/contact.rb', line 9

def name
  @name
end

#phone_numberString

The phone number, in E.123 format. Maximum length is 32 characters.

Returns:

  • (String)


49
50
51
# File 'lib/afterpay/components/contact.rb', line 49

def phone_number
  @phone_number
end

#postcodeString

The postal code, which is the zip code or equivalent. Maximum length is 128 characters.

Returns:

  • (String)


39
40
41
# File 'lib/afterpay/components/contact.rb', line 39

def postcode
  @postcode
end

#regionString

Region or state name. Maximum length is 128 characters.

Returns:

  • (String)


34
35
36
# File 'lib/afterpay/components/contact.rb', line 34

def region
  @region
end