LicenseSpring C++ SDK
Easily add Software Licensing to your application
Customer.h
Go to the documentation of this file.
1 #ifndef LS_C_CUSTOMER_H
2 #define LS_C_CUSTOMER_H
3 
4 #include "../APIDef.h"
5 
6 #ifdef __cplusplus
7 extern "C"
8 {
9 #endif
10 
11  LS_API typedef struct LSCustomer
12  {
13  const char *(*email)(struct LSCustomer *self);
14 
15  void (*setEmail)(struct LSCustomer *self, const char *email);
16 
17  const char *(*firstName)(struct LSCustomer *self);
18 
19  void (*setFirstName)(struct LSCustomer *self, const char *name);
20 
21  const char *(*lastName)(struct LSCustomer *self);
22 
23  void (*setLastName)(struct LSCustomer *self, const char *name);
24 
25  const char *(*company)(struct LSCustomer *self);
26 
27  void (*setCompany)(struct LSCustomer *self, const char *company);
28 
29  const char *(*phone)(struct LSCustomer *self);
30 
31  void (*setPhone)(struct LSCustomer *self, const char *phone);
32 
33  const char *(*address)(struct LSCustomer *self);
34 
35  void (*setAddress)(struct LSCustomer *self, const char *address);
36 
37  const char *(*city)(struct LSCustomer *self);
38 
39  void (*setCity)(struct LSCustomer *self, const char *city);
40 
41  const char *(*state)(struct LSCustomer *self);
42 
43  void (*setState)(struct LSCustomer *self, const char *state);
44 
45  const char *(*country)(struct LSCustomer *self);
46 
47  void (*setCountry)(struct LSCustomer *self, const char *country);
48 
49  const char *(*postcode)(struct LSCustomer *postcode);
50 
51  void (*setPostcode)(struct LSCustomer *self, const char *postcode);
52 
53  const char *(*reference)(struct LSCustomer *self);
54 
55  void (*setReference)(struct LSCustomer *self, const char *reference);
56 
57  const char *(*metadata)(struct LSCustomer *self);
58 
59  void (*setMetadata)(struct LSCustomer *self, const char *metadata);
60 
61  void *inner;
62 
63  } LSCustomer;
64 
66 
68 
69  LS_API void FreeLSCustomer(LSCustomer *customer);
70 
71 #ifdef __cplusplus
72 } // end extern "C"
73 #endif
74 
75 #endif // LS_C_CUSTOMER_H
LSCustomer::setPhone
void(* setPhone)(struct LSCustomer *self, const char *phone)
Definition: Customer.h:31
CreateLSCustomer
LS_API LSCustomer * CreateLSCustomer()
LSCustomer::inner
void * inner
Definition: Customer.h:61
LSCustomer::setEmail
void(* setEmail)(struct LSCustomer *self, const char *email)
Definition: Customer.h:15
LSCustomer::company
const char *(* company)(struct LSCustomer *self)
Definition: Customer.h:25
LSCustomer
Definition: Customer.h:11
LSCustomer::email
const char *(* email)(struct LSCustomer *self)
Definition: Customer.h:13
LSCustomer::setPostcode
void(* setPostcode)(struct LSCustomer *self, const char *postcode)
Definition: Customer.h:51
LSCustomer::setMetadata
void(* setMetadata)(struct LSCustomer *self, const char *metadata)
Definition: Customer.h:59
LSCustomer::city
const char *(* city)(struct LSCustomer *self)
Definition: Customer.h:37
LSCustomer::setReference
void(* setReference)(struct LSCustomer *self, const char *reference)
Definition: Customer.h:55
LSCustomer::setCompany
void(* setCompany)(struct LSCustomer *self, const char *company)
Definition: Customer.h:27
LSCustomer
LS_API struct LSCustomer LSCustomer
LSCustomer::country
const char *(* country)(struct LSCustomer *self)
Definition: Customer.h:45
LSCustomer::metadata
const char *(* metadata)(struct LSCustomer *self)
Definition: Customer.h:57
CreateLSCustomerEx
LS_API LSCustomer * CreateLSCustomerEx(const char *email)
LSCustomer::phone
const char *(* phone)(struct LSCustomer *self)
Definition: Customer.h:29
LSCustomer::setLastName
void(* setLastName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:23
LS_API
#define LS_API
Definition: APIDef.h:23
LSCustomer::setCity
void(* setCity)(struct LSCustomer *self, const char *city)
Definition: Customer.h:39
LSCustomer::address
const char *(* address)(struct LSCustomer *self)
Definition: Customer.h:33
LSCustomer::setState
void(* setState)(struct LSCustomer *self, const char *state)
Definition: Customer.h:43
LSCustomer::state
const char *(* state)(struct LSCustomer *self)
Definition: Customer.h:41
LSCustomer::setCountry
void(* setCountry)(struct LSCustomer *self, const char *country)
Definition: Customer.h:47
LSCustomer::postcode
const char *(* postcode)(struct LSCustomer *postcode)
Definition: Customer.h:49
FreeLSCustomer
LS_API void FreeLSCustomer(LSCustomer *customer)
LSCustomer::setAddress
void(* setAddress)(struct LSCustomer *self, const char *address)
Definition: Customer.h:35
LSCustomer::reference
const char *(* reference)(struct LSCustomer *self)
Definition: Customer.h:53
LSCustomer::setFirstName
void(* setFirstName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:19