| LicenseSpring C++ SDK 7.32.0 Easily add Software Licensing to your application

Loading...
Searching...
No Matches
Customer.h
Go to the documentation of this file.
1#ifndef LS_CUSTOMER_H
2#define LS_CUSTOMER_H
3
4#ifdef _MSC_VER
5#pragma once
6#pragma warning( push )
7#pragma warning( disable : 4251 )
8#endif
9
10#include <memory>
11#include <string>
12#include "APIDef.h"
13
14 namespace LicenseSpring
15{
17 class LS_API Customer
18 {
19 public:
20 using ptr_t = std::shared_ptr<Customer>;
21
23 Customer() = default;
24
28 Customer( const std::string& email );
29
32 const std::string& email() const;
33
36 void setEmail( const std::string& email );
37
40 const std::string& firstName() const;
41
44 void setFirstName( const std::string& firstName );
45
48 const std::string& lastName() const;
49
52 void setLastName( const std::string& lastName );
53
56 const std::string& company() const;
57
60 void setCompany( const std::string& company );
61
64 const std::string& phone() const;
65
68 void setPhone( const std::string& phone );
69
72 const std::string& address() const;
73
76 void setAddress( const std::string& address );
77
80 const std::string& city() const;
81
84 void setCity( const std::string& city );
85
88 const std::string& state() const;
89
92 void setState( const std::string& state );
93
96 const std::string& country() const;
97
100 void setCountry( const std::string& country );
101
104 const std::string& postcode() const;
105
108 void setPostcode( const std::string& postcode );
109
112 const std::string& reference() const;
113
116 void setReference( const std::string& reference );
117
120 const std::string& metadata() const;
121
124 void setMetadata( const std::string& metadata );
125
126 private:
127 std::string m_email;
128 std::string m_firstName;
129 std::string m_lastName;
130 std::string m_company;
131 std::string m_phone;
132 std::string m_address;
133 std::string m_city;
134 std::string m_state;
135 std::string m_country;
136 std::string m_postcode;
137 std::string m_reference;
138 std::string m_metadata;
139 };
140}
141
142#ifdef _MSC_VER
143#pragma warning( pop )
144#endif
145
146#endif // LS_CUSTOMER_H
APIDef.h
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition APIDef.h:22
LicenseSpring::Customer
Class that encapsulates information about a customer.
Definition Customer.h:18
LicenseSpring::Customer::country
const std::string & country() const
Getter method for customer country.
LicenseSpring::Customer::setCity
void setCity(const std::string &city)
Setter method for customer city.
LicenseSpring::Customer::setPhone
void setPhone(const std::string &phone)
Setter method for customer phone.
LicenseSpring::Customer::address
const std::string & address() const
Getter method for customer address.
LicenseSpring::Customer::state
const std::string & state() const
Getter method for customer state/province/region.
LicenseSpring::Customer::ptr_t
std::shared_ptr< Customer > ptr_t
Definition Customer.h:20
LicenseSpring::Customer::Customer
Customer()=default
Constructs customer with no information.
LicenseSpring::Customer::company
const std::string & company() const
Getter method for customer company.
LicenseSpring::Customer::setAddress
void setAddress(const std::string &address)
Setter method for customer address.
LicenseSpring::Customer::firstName
const std::string & firstName() const
Getter method for customer first name.
LicenseSpring::Customer::setLastName
void setLastName(const std::string &lastName)
Setter method for customer last name.
LicenseSpring::Customer::setState
void setState(const std::string &state)
Setter method for customer state/province/region.
LicenseSpring::Customer::email
const std::string & email() const
Getter method for customer email.
LicenseSpring::Customer::setCountry
void setCountry(const std::string &country)
Setter method for customer country.
LicenseSpring::Customer::Customer
Customer(const std::string &email)
Constructs customer with given email.
LicenseSpring::Customer::setFirstName
void setFirstName(const std::string &firstName)
Setter method for customer first name.
LicenseSpring::Customer::metadata
const std::string & metadata() const
Getter method for customer metadata.
LicenseSpring::Customer::phone
const std::string & phone() const
Getter method for customer phone.
LicenseSpring::Customer::setEmail
void setEmail(const std::string &email)
Setter method for customer email.
LicenseSpring::Customer::setCompany
void setCompany(const std::string &company)
Setter method for customer company name.
LicenseSpring::Customer::lastName
const std::string & lastName() const
Getter method for customer last name.
LicenseSpring::Customer::setReference
void setReference(const std::string &reference)
Setter method for customer reference.
LicenseSpring::Customer::setMetadata
void setMetadata(const std::string &metadata)
Setter method for customer metadata.
LicenseSpring::Customer::city
const std::string & city() const
Getter method for customer city.
LicenseSpring::Customer::postcode
const std::string & postcode() const
Getter method for customer postcode/zipcode.
LicenseSpring::Customer::setPostcode
void setPostcode(const std::string &postcode)
Setter method for customer postcode/zipcode.
LicenseSpring::Customer::reference
const std::string & reference() const
Getter method for customer reference.
LicenseSpring
Definition BaseManager.h:16