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

Contains customer information. More...

#include <Wt/Payment/Customer.h>

Public Member Functions

 Customer ()
 Default constructor. More...
 
void setFirstName (const WString &firstName)
 Sets the first name.
 
WString firstName () const
 Returns the first name. More...
 
void setLastName (const WString &lastName)
 Sets the last name.
 
WString lastName () const
 Returns the last name. More...
 
void setEmail (const std::string &email)
 Sets the email address.
 
std::string email () const
 Returns the email address. More...
 
void setShippingAddress (const Address &address)
 Sets the shipping address.
 
const AddressshippingAddress () const
 Returns shipping address. More...
 
void setLocale (const std::string &locale)
 Sets the customer locale. More...
 
std::string locale () const
 Returns locale. More...
 
void setPayerId (const std::string &payerId)
 Sets the payerId field. More...
 
std::string payerId () const
 Returns payerId. More...
 

Detailed Description

Contains customer 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);

Constructor & Destructor Documentation

Wt::Payment::Customer::Customer ( )

Default constructor.

All information is blank.

Member Function Documentation

std::string Wt::Payment::Customer::email ( ) const

Returns the email address.

See also
setEmail()
WString Wt::Payment::Customer::firstName ( ) const

Returns the first name.

See also
setFirstName()
WString Wt::Payment::Customer::lastName ( ) const

Returns the last name.

See also
setLastName()
std::string Wt::Payment::Customer::locale ( ) const

Returns locale.

See also
setLocale()
std::string Wt::Payment::Customer::payerId ( ) const

Returns payerId.

See also
setPayerId()
void Wt::Payment::Customer::setLocale ( const std::string &  locale)

Sets the customer locale.

The customer locale must be specified according to the payment broker (usually to help the user being served in his native language), which is usually a language code like http://en.wikipedia.org/wiki/BCP_47

void Wt::Payment::Customer::setPayerId ( const std::string &  payerId)

Sets the payerId field.

This is the identification of the user with a payment broker which also keeps login information (and other information like shipping addresses) on the user.

Not all payment brokers support (or need this).

const Address& Wt::Payment::Customer::shippingAddress ( ) const

Returns shipping address.

See also
setShippingAddress()

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