parsifal: update scripts
This commit is contained in:
parent
31e7502aef
commit
e9d54c3f0e
|
@ -1,6 +1,6 @@
|
|||
*~
|
||||
*.pyc
|
||||
*.xml
|
||||
*.wsdl*
|
||||
*.wsdl.new
|
||||
*.txt
|
||||
*.json
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/home/nroche/src/passerelle/tests/data/toulouse_maelis/ActivityService.wsdl
|
|
@ -0,0 +1 @@
|
|||
/home/nroche/src/passerelle/tests/data/toulouse_maelis/ApeService.wsdl
|
|
@ -0,0 +1 @@
|
|||
/home/nroche/src/passerelle/tests/data/toulouse_maelis/FamilyService.wsdl
|
|
@ -0,0 +1 @@
|
|||
/home/nroche/src/passerelle/tests/data/toulouse_maelis/InvoiceService.wsdl
|
|
@ -43,6 +43,7 @@ Inscriptions
|
|||
............
|
||||
$ ./get_person_unit_info.py -e dev -f 322423 -P 261768 -a A10055585940 -u A10055585942 -p M10053212180
|
||||
$ ./add_person_unit_basket.py -e dev -f 322423 -P 261772 -a A10055585940 -u A10055585942 -p M10053212180 -S 2023-02-07 -E 2023-07-07
|
||||
$ ./add_person_unit_subscribe.py -e dev -f 322423 -P 264026 -a A10055585940 -u A10055585942 -p M10053212180 -S 2023-02-07 -E 2023-07-07
|
||||
|
||||
$ ./get_person_unit_info.py -e dev -f 322423 -P 261768 -a A10055590330 -u A10055590332 -p A10053179224
|
||||
$ ./add_person_unit_basket.py -e dev -f 322423 -P 261771 -a A10055590330 -u A10055590332 -p A10053179224 -S 2023-01-01 -E 2023-06-30
|
||||
|
@ -67,7 +68,7 @@ $ ./delete_subscribe_activity.py -e dev S10055619138
|
|||
|
||||
Factures
|
||||
........
|
||||
$ ./read_referential_list.py -e dev -m invoice regie
|
||||
$ ./read_referential_list.py -e dev -s invoice regie
|
||||
$ ./read_invoices.py -e dev -r 104 -f 322423
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/home/nroche/src/passerelle/tests/data/toulouse_maelis/SiteService.wsdl
|
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import argparse
|
||||
|
||||
import utils
|
||||
|
||||
|
||||
FAMILY_ID = '322573' # NICO
|
||||
PERSON_ID = '263781' # BART
|
||||
ACTIVITY_ID = 'A10055227963'
|
||||
UNIT_ID = 'A10055227965'
|
||||
PLACE_ID = 'A10055129635'
|
||||
START_DATE = '2023-02-01'
|
||||
END_DATE = '2023-07-01'
|
||||
|
||||
|
||||
def check(args):
|
||||
utils.configure_logging(args.verbose)
|
||||
client = utils.get_client(args.env, 'Activity')
|
||||
|
||||
result = client.service.addPersonUnitSubscribe(
|
||||
AddPersonSubscribeRequestBean={
|
||||
'numFamily': args.family,
|
||||
'numPerson': args.person,
|
||||
'idAct': args.activity,
|
||||
'idUnit': args.unit,
|
||||
'idPlace': args.place,
|
||||
'dateStartSubscribe': args.start,
|
||||
'dateEndSubscribe': args.end,
|
||||
})
|
||||
print(result)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--verbose', '-v', type=int, default=2, help='display errors')
|
||||
parser.add_argument('--env', '-e', default='integ', help='dev, test, integ, prod')
|
||||
parser.add_argument('--family', '-f', default=FAMILY_ID, help='family id')
|
||||
parser.add_argument('--person', '-P', default=PERSON_ID, help='person id')
|
||||
parser.add_argument('--activity', '-a', default=ACTIVITY_ID, help='activity id')
|
||||
parser.add_argument('--unit', '-u', default=UNIT_ID, help='unit id')
|
||||
parser.add_argument('--place', '-p', default=PLACE_ID, help='place id')
|
||||
parser.add_argument('--start', '-S', default=START_DATE, help='start date (ex: 2023-02-01)')
|
||||
parser.add_argument('--end', '-E', default=START_DATE, help='end date (ex: 2023-07-01)')
|
||||
check(parser.parse_args())
|
|
@ -38,10 +38,10 @@ if __name__ == "__main__":
|
|||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--verbose', '-v', type=int, default=2, help='display errors')
|
||||
parser.add_argument('--env', '-e', default='integ', help='dev, test, integ, prod')
|
||||
parser.add_argument('--service', '-m', default='Family', help='Family, Activity, Site, Invoice, Ape')
|
||||
parser.add_argument('--service', '-s', default='Family', help='Family, Activity, Site, Invoice, Ape')
|
||||
parser.add_argument(
|
||||
'referential',
|
||||
help='category childIndicator civility country county csp dietcode organ pai quality quotient rlIndicator situation street town vaccin'
|
||||
help='category childIndicator civility country county csp dietcode direct organ pai quality quotient rlIndicator service situation street town vaccin'
|
||||
+ 'activityNatureType derogReason level yearschool'
|
||||
+ 'regie'
|
||||
+ 'apeIndicator',
|
||||
|
|
Loading…
Reference in New Issue