-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintPersonAPI.py
More file actions
27 lines (21 loc) · 800 Bytes
/
Copy pathintPersonAPI.py
File metadata and controls
27 lines (21 loc) · 800 Bytes
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
import lambda_function as lmbFunction
import reqPersonAPI as reqPersonAPI
def processList(parsedFile,executionMethod):
if str(executionMethod) == 'createPerson':
argumentList = []
argumentList.extend(parsedFile)
#Send the values of the file to the create person method
reqPersonAPI.createPerson(*argumentList)
if str(executionMethod) == 'transferPerson':
argumentList = []
argumentList.extend(parsedFile)
#Send the values of the file to the transer person method
reqPersonAPI.transferPersonReq(*argumentList)
# Decode of ID to determine method
def transFormMethod(methValue):
if methValue == 1:
methodString = 'createPerson'
return methodString
if methValue == 2:
methodString = 'transferPerson'
return methodString