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
void(* setFirstName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:19
void(* setPostcode)(struct LSCustomer *self, const char *postcode)
Definition: Customer.h:51
const char *(* address)(struct LSCustomer *self)
Definition: Customer.h:33
LS_API void FreeLSCustomer(LSCustomer *customer)
LS_API struct LSCustomer LSCustomer
void(* setLastName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:23
void * inner
Definition: Customer.h:61
const char *(* email)(struct LSCustomer *self)
Definition: Customer.h:13
const char *(* metadata)(struct LSCustomer *self)
Definition: Customer.h:57
void(* setCity)(struct LSCustomer *self, const char *city)
Definition: Customer.h:39
void(* setCompany)(struct LSCustomer *self, const char *company)
Definition: Customer.h:27
void(* setState)(struct LSCustomer *self, const char *state)
Definition: Customer.h:43
const char *(* phone)(struct LSCustomer *self)
Definition: Customer.h:29
const char *(* postcode)(struct LSCustomer *postcode)
Definition: Customer.h:49
void(* setEmail)(struct LSCustomer *self, const char *email)
Definition: Customer.h:15
void(* setMetadata)(struct LSCustomer *self, const char *metadata)
Definition: Customer.h:59
const char *(* state)(struct LSCustomer *self)
Definition: Customer.h:41
const char *(* company)(struct LSCustomer *self)
Definition: Customer.h:25
void(* setReference)(struct LSCustomer *self, const char *reference)
Definition: Customer.h:55
LS_API LSCustomer * CreateLSCustomerEx(const char *email)
void(* setAddress)(struct LSCustomer *self, const char *address)
Definition: Customer.h:35
#define LS_API
Definition: APIDef.h:23
void(* setCountry)(struct LSCustomer *self, const char *country)
Definition: Customer.h:47
const char *(* city)(struct LSCustomer *self)
Definition: Customer.h:37
LS_API LSCustomer * CreateLSCustomer()
const char *(* country)(struct LSCustomer *self)
Definition: Customer.h:45
const char *(* reference)(struct LSCustomer *self)
Definition: Customer.h:53
void(* setPhone)(struct LSCustomer *self, const char *phone)
Definition: Customer.h:31