Ejemplo n.º 1
0
def convert_json_to_signature_slot(borrower_json):
    sig_slot = api.signatureSlotType()
    borrower_name_xml = api.nameType()
    private_individual = api.privateIndividualType()
    private_individual.set_forename(borrower_json["forename"])

    if 'middle_name' in borrower_json:
        private_individual.set_middlename(borrower_json["middle_name"])

    private_individual.set_surname(borrower_json["surname"])
    borrower_name_xml.set_privateIndividual(private_individual)
    sig_slot.set_signatory(borrower_name_xml)
    sig_slot.set_signature(api.signatureType())
    return sig_slot
Ejemplo n.º 2
0
def convert_json_to_signature_slot(borrower_json):
    sig_slot = api.signatureSlotType()
    borrower_name_xml = api.nameType()
    private_individual = api.privateIndividualType()
    private_individual.set_forename(borrower_json["forename"])

    if 'middle_name' in borrower_json:
        private_individual.set_middlename(borrower_json["middle_name"])

    private_individual.set_surname(borrower_json["surname"])
    borrower_name_xml.set_privateIndividual(private_individual)
    sig_slot.set_signatory(borrower_name_xml)
    sig_slot.set_signature(api.signatureType())
    return sig_slot
Ejemplo n.º 3
0
def convert_json_to_borrower(borrower_json):
    borrower = api.borrowerType()
    borrower_name_xml = api.nameType()
    private_individual = api.privateIndividualType()
    private_individual.set_forename(borrower_json["forename"])

    if 'middle_name' in borrower_json:
        private_individual.set_middlename(borrower_json["middle_name"])

    private_individual.set_surname(borrower_json["surname"])
    borrower_name_xml.set_privateIndividual(private_individual)
    borrower.set_name(borrower_name_xml)
    borrower.set_address("borrower address")

    return borrower
Ejemplo n.º 4
0
def convert_json_to_borrower(borrower_json):
    borrower = api.borrowerType()
    borrower_name_xml = api.nameType()
    private_individual = api.privateIndividualType()
    private_individual.set_forename(borrower_json["forename"])

    if 'middle_name' in borrower_json:
        private_individual.set_middlename(borrower_json["middle_name"])

    private_individual.set_surname(borrower_json["surname"])
    borrower_name_xml.set_privateIndividual(private_individual)
    borrower.set_name(borrower_name_xml)
    borrower.set_address("borrower address")

    return borrower