Backend Service

This commit is contained in:
2019-03-11 15:39:10 +00:00
parent 7257a86f16
commit 878d34fb36
11 changed files with 152 additions and 20 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ long medTrUpdateProfile(CVars in, CVars &out) {
OPTIONAL(in, "street2") REQ_STRING(in, "street2", 1, 49, "(.*)");
REQ_STRING(in, "city", 5, 49, "(.*)");
// OPTIONAL(in, "phone") REQ_STRING(in, "phone", 5, 23, "(.*)");
REQ_STRING(in, "zipcode", 1, 12, "(.*)");
OPTIONAL(in, "zipcode") REQ_STRING(in, "zipcode", 1, 12, "(.*)");
REQ_STRING(in, "state", 1, 59, "(.*)");
REQ_STRING(in, "country", 1, 3, "(.*)");
REQ_STRING(in, "loc", 5, 16, "(.*)");
+16
View File
@@ -18,6 +18,7 @@
long provider_login(CVars in, CVars &out);
long PracticeLogin(CVars in, CVars &out);
long PracticeSessionCheck(long practice_id, long practice_users_id, const char *sessionid, int create);
long provider_createmember(CVars in, CVars &out);
long providers_call(CVars in, CVars &out) {
@@ -33,6 +34,10 @@ long providers_call(CVars in, CVars &out) {
return provider_login(in, out);
break;
case MERMS_PROVIDERS_CREATEMEMBER:
return provider_createmember(in, out);
break;
case EXISTING_CARD:
REQ_LONG(in, "paymentid", 0, -1); // now we have to make sure the payment id is valid for this customer
@@ -57,6 +62,17 @@ long providers_call(CVars in, CVars &out) {
return ret;
}
long provider_createmember(CVars in, CVars &out){
logfmt(logINFO, "ENTER CALL long providers_createmember(CVars in, CVars &out)");
return 0;
}
long provider_login(CVars in, CVars &out) {
long ret = -1;