Wt  4.0.2
Public Member Functions | List of all members
Wt::Payment::Address Class Reference

Contains address information. More...

#include <Wt/Payment/Address.h>

Public Member Functions

void setName (const WString &name)
 Sets an address name. More...
 
const WStringname () const
 Returns the address name. More...
 
void setStreet1 (const WString &street1)
 Sets first street line. More...
 
const WStringstreet1 () const
 Returns the first street line. More...
 
void setStreet2 (const WString &street2)
 Sets the second street line. More...
 
const WStringstreet2 () const
 Returns the second street line. More...
 
void setCity (const WString &city)
 Sets the city.
 
const WStringcity () const
 Returns the city. More...
 
void setState (const WString &state)
 Sets the state.
 
const WStringstate () const
 Returns the state. More...
 
void setCountryCode (const std::string &country)
 Sets the country code.
 
const std::string & countryCode () const
 Returns the country code. More...
 
void setZip (const WString &zip)
 Sets the zip code.
 
const WStringzip () const
 Returns the zip code. More...
 
void setPhoneNumber (const std::string &number)
 Sets the phone number.
 
const std::string & phoneNumber () const
 Returns the phone number. More...
 

Detailed Description

Contains address information.

customer.setEmail("joe.birkenberg@emweb.be");
customer.setFirstName("Joe");
customer.setLastName("Birkenberg");
address.setCity("Leuven");
address.setCountryCode("BE");
address.setPhoneNumber("123456789");
address.setStreet1("Brusselsestraat 14");
customer.setShippingAddress(address);
See also
Customer::setShippingAddress()

Member Function Documentation

const WString& Wt::Payment::Address::city ( ) const

Returns the city.

See also
setCity()
const std::string& Wt::Payment::Address::countryCode ( ) const

Returns the country code.

See also
setCountryCode()
const WString& Wt::Payment::Address::name ( ) const

Returns the address name.

See also
setName()
const std::string& Wt::Payment::Address::phoneNumber ( ) const

Returns the phone number.

See also
setPhoneNumber()
void Wt::Payment::Address::setName ( const WString name)

Sets an address name.

Sets a name for this address like "home" or "work". This can allow a user to maintain several addresses.

void Wt::Payment::Address::setStreet1 ( const WString street1)

Sets first street line.

See also
setStreet2()
void Wt::Payment::Address::setStreet2 ( const WString street2)

Sets the second street line.

See also
setStreet1()
const WString& Wt::Payment::Address::state ( ) const

Returns the state.

See also
setState()
const WString& Wt::Payment::Address::street1 ( ) const

Returns the first street line.

See also
setStreet1()
const WString& Wt::Payment::Address::street2 ( ) const

Returns the second street line.

See also
setStreet2()
const WString& Wt::Payment::Address::zip ( ) const

Returns the zip code.

See also
setZip()

Generated on Fri Nov 24 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11