1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

#[macro_use]
extern crate jsonrpc_client_core;
use serde::{Serialize, Deserialize};

extern crate serde_json;

pub type UserRole = String;
pub type Email = String;
pub type UserFirst = String;
pub type UserLast = String;
pub type UserStreet = String;
pub type UserState = String;
pub type UserZipcode = String;
pub type UserCountry = String;
pub type UserPhone = String;
pub type UserCompany = String;
pub type ResetPIN = f64;
pub type Password = String;
pub type JWTtoken = String;
pub type SubType = String;
pub type SubCost = String;
pub type SubFreq = String;
pub type SubStart = String;
pub type SubRenew = String;
pub type SellerID = String;
pub type EmployeeID = String;
pub type DeviceESN = String;
pub type Columns = Vec<serde_json::Value>;
pub type Columndata = Vec<serde_json::Value>;
pub type DeviceType = String;
pub type Simiccid = String;
pub type AnetProfileId = String;
pub type CcNumber = String;
pub type CcExp = String;
pub type CcCVC = String;
pub type PaymentProfileId = String;
pub type StringDoaGddGA = String;

jsonrpc_client!(pub struct GSAAPI {
  pub fn createUser(&mut self, userRole: UserRole, email: Email, userFirst: UserFirst, userLast: UserLast, userStreet: UserStreet, userCity: UserStreet, userState: UserState, userZipcode: UserZipcode, userCountry: UserCountry, userPhone: UserPhone, userCompany: UserCompany) -> RpcRequest<StringDoaGddGA>;
pub fn createPassResetPin(&mut self, email: Email) -> RpcRequest<StringDoaGddGA>;
pub fn setNewPassword(&mut self, email: Email, resetPIN: ResetPIN, password: Password) -> RpcRequest<StringDoaGddGA>;
pub fn adminLogin(&mut self, email: Email, password: Password) -> RpcRequest<StringDoaGddGA>;
pub fn getUsers(&mut self, JWTtoken: JWTtoken, email: Email) -> RpcRequest<StringDoaGddGA>;
pub fn getSubscriptions(&mut self, JWTtoken: JWTtoken, email: Email) -> RpcRequest<StringDoaGddGA>;
pub fn addSubscription(&mut self, JWTtoken: JWTtoken, email: Email, subType: SubType, subCost: SubCost, subFreq: SubFreq, subStart: SubStart, subRenew: SubRenew, sellerID: SellerID, employeeID: EmployeeID, deviceESN: DeviceESN) -> RpcRequest<StringDoaGddGA>;
pub fn updateSubscriptionInfo(&mut self, JWTtoken: JWTtoken, email: Email, deviceESN: DeviceESN, columns: Columns, columndata: Columndata) -> RpcRequest<StringDoaGddGA>;
pub fn addDevice(&mut self, JWTtoken: JWTtoken, email: Email, deviceESN: DeviceESN, deviceType: DeviceType, simiccid: Simiccid) -> RpcRequest<StringDoaGddGA>;
pub fn getDevices(&mut self, JWTtoken: JWTtoken, email: Email) -> RpcRequest<StringDoaGddGA>;
pub fn updateDeviceInfo(&mut self, JWTtoken: JWTtoken, email: Email, deviceESN: DeviceESN, columns: Columns, columndata: Columndata) -> RpcRequest<StringDoaGddGA>;
pub fn podGetUsers(&mut self, JWTtoken: JWTtoken, email: Email) -> RpcRequest<StringDoaGddGA>;
pub fn podGetSimInfo(&mut self, JWTtoken: JWTtoken, email: Email, simiccid: Simiccid) -> RpcRequest<StringDoaGddGA>;
pub fn podTurnOnSim(&mut self, JWTtoken: JWTtoken, email: Email, simiccid: Simiccid) -> RpcRequest<StringDoaGddGA>;
pub fn podSuspendSim(&mut self, JWTtoken: JWTtoken, email: Email, simiccid: Simiccid) -> RpcRequest<StringDoaGddGA>;
pub fn podUnsuspendSim(&mut self, JWTtoken: JWTtoken, email: Email, simiccid: Simiccid) -> RpcRequest<StringDoaGddGA>;
pub fn pulsGetDevice(&mut self, JWTtoken: JWTtoken, email: Email, deviceESN: DeviceESN) -> RpcRequest<StringDoaGddGA>;
pub fn pulsChangeDeviceGroup(&mut self, JWTtoken: JWTtoken, email: Email, deviceESN: DeviceESN) -> RpcRequest<StringDoaGddGA>;
pub fn authGetCustomerProfile(&mut self, JWTtoken: JWTtoken, email: Email, anetProfileId: AnetProfileId) -> RpcRequest<StringDoaGddGA>;
pub fn createCustomerPaymentProfile(&mut self, JWTtoken: JWTtoken, email: Email, anetProfileId: AnetProfileId, userFirst: UserFirst, userLast: UserLast, userStreet: UserStreet, userCity: UserStreet, userState: UserState, userZipcode: UserZipcode, userCountry: UserCountry, userPhone: UserPhone, ccNumber: CcNumber, ccExp: CcExp, ccCVC: CcCVC) -> RpcRequest<StringDoaGddGA>;
pub fn deleteCustomerPaymentProfile(&mut self, JWTtoken: JWTtoken, email: Email, anetProfileId: AnetProfileId, paymentProfileId: PaymentProfileId) -> RpcRequest<StringDoaGddGA>;
});