![]() |
LicenseSpring C++ SDK 7.31.0
Easily add Software Licensing to your application
|
Class that encapsulates information about a customer. More...
#include <LicenseSpring/Customer.h>
Public Types | |
using | ptr_t = std::shared_ptr< Customer > |
Public Member Functions | |
Customer ()=default | |
Constructs customer with no information. | |
Customer (const std::string &email) | |
Constructs customer with given email. | |
const std::string & | email () const |
Getter method for customer email. | |
void | setEmail (const std::string &email) |
Setter method for customer email. | |
const std::string & | firstName () const |
Getter method for customer first name. | |
void | setFirstName (const std::string &firstName) |
Setter method for customer first name. | |
const std::string & | lastName () const |
Getter method for customer last name. | |
void | setLastName (const std::string &lastName) |
Setter method for customer last name. | |
const std::string & | company () const |
Getter method for customer company. | |
void | setCompany (const std::string &company) |
Setter method for customer company name. | |
const std::string & | phone () const |
Getter method for customer phone. | |
void | setPhone (const std::string &phone) |
Setter method for customer phone. | |
const std::string & | address () const |
Getter method for customer address. | |
void | setAddress (const std::string &address) |
Setter method for customer address. | |
const std::string & | city () const |
Getter method for customer city. | |
void | setCity (const std::string &city) |
Setter method for customer city. | |
const std::string & | state () const |
Getter method for customer state/province/region. | |
void | setState (const std::string &state) |
Setter method for customer state/province/region. | |
const std::string & | country () const |
Getter method for customer country. | |
void | setCountry (const std::string &country) |
Setter method for customer country. | |
const std::string & | postcode () const |
Getter method for customer postcode/zipcode. | |
void | setPostcode (const std::string &postcode) |
Setter method for customer postcode/zipcode. | |
const std::string & | reference () const |
Getter method for customer reference. | |
void | setReference (const std::string &reference) |
Setter method for customer reference. | |
const std::string & | metadata () const |
Getter method for customer metadata. | |
void | setMetadata (const std::string &metadata) |
Setter method for customer metadata. | |
Class that encapsulates information about a customer.
Definition at line 17 of file Customer.h.
using LicenseSpring::Customer::ptr_t = std::shared_ptr<Customer> |
Definition at line 20 of file Customer.h.
|
default |
Constructs customer with no information.
LicenseSpring::Customer::Customer | ( | const std::string & | ) |
Constructs customer with given email.
Email corresponding to customer |
Note: email is required if you attempt to get trial license for user-based product.
const std::string & LicenseSpring::Customer::email | ( | ) | const |
Getter method for customer email.
Setter method for customer email.
Customer email. |
const std::string & LicenseSpring::Customer::firstName | ( | ) | const |
Getter method for customer first name.
Setter method for customer first name.
firstName | Customer first name. |
const std::string & LicenseSpring::Customer::lastName | ( | ) | const |
Getter method for customer last name.
Setter method for customer last name.
lastName | Customer email. |
const std::string & LicenseSpring::Customer::company | ( | ) | const |
Getter method for customer company.
Setter method for customer company name.
company | Customer company. |
const std::string & LicenseSpring::Customer::phone | ( | ) | const |
Getter method for customer phone.
Setter method for customer phone.
phone | Customer phone. |
const std::string & LicenseSpring::Customer::address | ( | ) | const |
Getter method for customer address.
Setter method for customer address.
address | Customer address. |
const std::string & LicenseSpring::Customer::city | ( | ) | const |
Getter method for customer city.
Setter method for customer city.
city | Customer city. |
const std::string & LicenseSpring::Customer::state | ( | ) | const |
Getter method for customer state/province/region.
Setter method for customer state/province/region.
state | Customer state. |
const std::string & LicenseSpring::Customer::country | ( | ) | const |
Getter method for customer country.
Setter method for customer country.
country | Customer country. |
const std::string & LicenseSpring::Customer::postcode | ( | ) | const |
Getter method for customer postcode/zipcode.
Setter method for customer postcode/zipcode.
postcode | Customer postcode. |
const std::string & LicenseSpring::Customer::reference | ( | ) | const |
Getter method for customer reference.
Setter method for customer reference.
reference | Customer reference. |
const std::string & LicenseSpring::Customer::metadata | ( | ) | const |
Getter method for customer metadata.
Setter method for customer metadata.
metadata | Customer metadata. |