BerumenDesign / onguard-rollout

Onguard Rollout flow
0 stars 0 forks source link

API's for service plans #1

Open fayzaan opened 6 years ago

fayzaan commented 6 years ago

Need some API's for step 4, service plan selection.

Data structure that I have on client side

{  
   "step":3,
   "region":"ec2.ap-southeast-1.amazonaws.com",
   "employeeCount":"1200",
   "user":{  
      "firstName":"Mohammed",
      "lastName":"Qureshi",
      "phone":"4031231233",
      "email":"fayzaan",
      "password":"123456"
   },
   "company":{  
      "billing":{  
         "address":"123 5 Street West",
         "city":"Calgary",
         "zip":"T3K3Y2",
         "country":"CA",
         "state":"AB"
      },
      "address":{  
         "address":"123 5 Street West",
         "city":"Calgary",
         "zip":"T3K3Y2",
         "country":"CA",
         "state":"AB"
      },
      "name":"Fayzaan",
      "phone":"4031231233",
      "email":"mqureshi@mymobilecoverage.com"
   },
   "billing":{  
      "type":"tier",
      "plan":"litePTT",
      "feats":[  
         "monitoring",
         "custom_overlays",
         "gas_detector"
      ],
      "addons":[  

      ]
   }
}
willfarrell commented 6 years ago

This data should be stored in firebase a head of time. You should pull it directly from there.