summaryrefslogtreecommitdiff
path: root/interchange/member.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-25 10:20:12 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-25 10:20:12 +0800
commit7f934ce683df5252fa6350dcc15e187b1c7623cf (patch)
treef600fc0cdfc9f4397580e44044468858167d0aa9 /interchange/member.h
parenta606c79d52d2027afaafd424a25fa6a4598aa8d7 (diff)
Rename remaining icclient to interchange
Diffstat (limited to 'interchange/member.h')
-rw-r--r--interchange/member.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/interchange/member.h b/interchange/member.h
new file mode 100644
index 0000000..0e9ca91
--- /dev/null
+++ b/interchange/member.h
@@ -0,0 +1,79 @@
+#ifndef INTERCHANGE_MEMBER_H
+#define INTERCHANGE_MEMBER_H
+
+#include <stdbool.h>
+#include "typedefs.h"
+
+struct interchange_member_preferences {
+ bool mv_same_billing;
+ bool email_copy;
+};
+
+struct interchange_member {
+ char *username;
+ char *usernick;
+ char *password;
+ char *expiration;
+ char *acl;
+ char *mod_time;
+ char *s_nickname;
+ char *company;
+ char *fname; /*!< Shipping first name */
+ char *lname; /*!< Shipping last name */
+ char *address1;
+ char *address2;
+ char *address3;
+ char *city;
+ char *state;
+ char *zip;
+ char *country;
+ char *phone_day;
+ char *mv_shipmode;
+ char *b_nickname;
+ char *b_fname; /*!< Billing first name */
+ char *b_lname; /*!< Billing last name */
+ char *b_company;
+ char *b_address1;
+ char *b_address2;
+ char *b_address3;
+ char *b_city;
+ char *b_state;
+ char *b_zip;
+ char *b_country;
+ char *b_phone;
+ char *p_nickname;
+ char *email;
+ char *fax;
+ char *phone_night;
+ char *address_book;
+ char *accounts;
+ struct interchange_member_preferences *preferences;
+ char *carts;
+ char *owner;
+ char *file_acl;
+ char *db_acl;
+ char *mail_list;
+ char *credit_limit;
+ bool inactive;
+ bool dealer;
+ char *price_level;
+};
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ void interchange_member_newaccount(const char *username, const char *password, const char *verify,
+ void (*handler)(interchange_response *), void (*callback)(struct interchange_member *));
+ void interchange_member_login(const char *username, const char *password, void (*handler)(interchange_response *),
+ void (*callback)(struct interchange_member *));
+ void interchange_member_account(const char *fname, const char *lname, const char *address1, const char *address2,
+ const char *city, const char *state, const char *zip, const char *email, const char *phone_day);
+ void interchange_member_changepassword(const char *password_old, const char *password, const char *verify);
+ void interchange_member_logout(struct interchange_member *member);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif