| LicenseSpring C++ SDK 7.32.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
7 extern "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
62 } LSCustomer;
63
64 LS_API LSCustomer* CreateLSCustomer();
65
66 LS_API LSCustomer* CreateLSCustomerEx( const char* email );
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
LSCustomer::setCompany
void(* setCompany)(struct LSCustomer *self, const char *company)
Definition: Customer.h:26
LSCustomer::company
const char *(* company)(struct LSCustomer *self)
Definition: Customer.h:24
LSCustomer::metadata
const char *(* metadata)(struct LSCustomer *self)
Definition: Customer.h:56
LSCustomer::setLastName
void(* setLastName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:22
FreeLSCustomer
LS_API void FreeLSCustomer(LSCustomer *customer)
LSCustomer::phone
const char *(* phone)(struct LSCustomer *self)
Definition: Customer.h:28
LSCustomer
LS_API struct LSCustomer LSCustomer
LSCustomer::setPhone
void(* setPhone)(struct LSCustomer *self, const char *phone)
Definition: Customer.h:30
LSCustomer::inner
void * inner
Definition: Customer.h:60
LSCustomer::setReference
void(* setReference)(struct LSCustomer *self, const char *reference)
Definition: Customer.h:54
LSCustomer::postcode
const char *(* postcode)(struct LSCustomer *postcode)
Definition: Customer.h:48
LSCustomer::setPostcode
void(* setPostcode)(struct LSCustomer *self, const char *postcode)
Definition: Customer.h:50
LSCustomer::setFirstName
void(* setFirstName)(struct LSCustomer *self, const char *name)
Definition: Customer.h:18
LSCustomer::setCity
void(* setCity)(struct LSCustomer *self, const char *city)
Definition: Customer.h:38
LSCustomer::reference
const char *(* reference)(struct LSCustomer *self)
Definition: Customer.h:52
LSCustomer::email
const char *(* email)(struct LSCustomer *self)
Definition: Customer.h:12
LSCustomer::country
const char *(* country)(struct LSCustomer *self)
Definition: Customer.h:44
CreateLSCustomerEx
LS_API LSCustomer * CreateLSCustomerEx(const char *email)
LSCustomer::setMetadata
void(* setMetadata)(struct LSCustomer *self, const char *metadata)
Definition: Customer.h:58
LSCustomer::setEmail
void(* setEmail)(struct LSCustomer *self, const char *email)
Definition: Customer.h:14
LSCustomer
Definition: Customer.h:10
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
LSCustomer::setState
void(* setState)(struct LSCustomer *self, const char *state)
Definition: Customer.h:42
LSCustomer::address
const char *(* address)(struct LSCustomer *self)
Definition: Customer.h:32
CreateLSCustomer
LS_API LSCustomer * CreateLSCustomer()
LSCustomer::setCountry
void(* setCountry)(struct LSCustomer *self, const char *country)
Definition: Customer.h:46
LSCustomer::setAddress
void(* setAddress)(struct LSCustomer *self, const char *address)
Definition: Customer.h:34
LSCustomer::city
const char *(* city)(struct LSCustomer *self)
Definition: Customer.h:36
LSCustomer::state
const char *(* state)(struct LSCustomer *self)
Definition: Customer.h:40