LicenseSpring C++ SDK 7.31.0
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
7extern "C" {
8#endif
9
10 LS_API typedef struct LSCustomer
11 {
12 const char* ( *email )( struct LSCustomer* self );
13
14 void ( *setEmail )( struct LSCustomer* self, const char* email );
15
16 const char* ( *firstName )( struct LSCustomer* self );
17
18 void ( *setFirstName )( struct LSCustomer* self, const char* name );
19
20 const char* ( *lastName )( struct LSCustomer* self );
21
22 void ( *setLastName )( struct LSCustomer* self, const char* name );
23
24 const char* ( *company )( struct LSCustomer* self );
25
26 void ( *setCompany )( struct LSCustomer* self, const char* company );
27
28 const char* ( *phone )( struct LSCustomer* self );
29
30 void ( *setPhone )( struct LSCustomer* self, const char* phone );
31
32 const char* ( *address )( struct LSCustomer* self );
33
34 void ( *setAddress )( struct LSCustomer* self, const char* address );
35
36 const char* ( *city )( struct LSCustomer* self );
37
38 void ( *setCity )( struct LSCustomer* self, const char* city );
39
40 const char* ( *state )( struct LSCustomer* self );
41
42 void ( *setState )( struct LSCustomer* self, const char* state );
43
44 const char* ( *country )( struct LSCustomer* self );
45
46 void ( *setCountry )( struct LSCustomer* self, const char* country );
47
48 const char* ( *postcode )( struct LSCustomer* postcode );
49
50 void ( *setPostcode )( struct LSCustomer* self, const char* postcode );
51
52 const char* ( *reference )( struct LSCustomer* self );
53
54 void ( *setReference )( struct LSCustomer* self, const char* reference );
55
56 const char* ( *metadata )( struct LSCustomer* self );
57
58 void ( *setMetadata )( struct LSCustomer* self, const char* metadata );
59
60 void* inner;
61
63
65
67
68 LS_API void FreeLSCustomer( LSCustomer* customer );
69
70#ifdef __cplusplus
71} // end extern "C"
72#endif
73
74#endif // LS_C_CUSTOMER_H
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
LS_API void FreeLSCustomer(LSCustomer *customer)
LS_API LSCustomer * CreateLSCustomer()
LS_API LSCustomer * CreateLSCustomerEx(const char *email)
LS_API struct LSCustomer LSCustomer
void(* setState)(struct LSCustomer *self, const char *state)
Definition: Customer.h:42
void(* setMetadata)(struct LSCustomer *self, const char *metadata)
Definition: Customer.h:58
const char *(* address)(struct LSCustomer *self)
Definition: Customer.h:32
const char *(* company)(struct LSCustomer *self)
Definition: Customer.h:24
void(* setPostcode)(struct LSCustomer *self, const char *postcode)
Definition: Customer.h:50
const char *(* phone)(struct LSCustomer *self)
Definition: Customer.h:28
const char *(* city)(struct LSCustomer *self)
Definition: Customer.h:36
void(* setAddress)(struct LSCustomer *self, const char *address)
Definition: Customer.h:34
void(* setFirstName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:18
void(* setPhone)(struct LSCustomer *self, const char *phone)
Definition: Customer.h:30
const char *(* reference)(struct LSCustomer *self)
Definition: Customer.h:52
const char *(* country)(struct LSCustomer *self)
Definition: Customer.h:44
void(* setReference)(struct LSCustomer *self, const char *reference)
Definition: Customer.h:54
const char *(* email)(struct LSCustomer *self)
Definition: Customer.h:12
void(* setCompany)(struct LSCustomer *self, const char *company)
Definition: Customer.h:26
const char *(* postcode)(struct LSCustomer *postcode)
Definition: Customer.h:48
void(* setCountry)(struct LSCustomer *self, const char *country)
Definition: Customer.h:46
void(* setCity)(struct LSCustomer *self, const char *city)
Definition: Customer.h:38
const char *(* state)(struct LSCustomer *self)
Definition: Customer.h:40
void(* setEmail)(struct LSCustomer *self, const char *email)
Definition: Customer.h:14
void * inner
Definition: Customer.h:60
void(* setLastName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:22
const char *(* metadata)(struct LSCustomer *self)
Definition: Customer.h:56