wendyguo | Posts: 74

update account owner firstname and lastname via JAVA SDK call?

0 votes

is it possible to update account owner firstname and lastname via JAVA SDK call? If yes, how to do it?

 

Thanks

 

Wendy


Duo_Liang | Posts: 3776

Reply to: update account owner firstname and lastname via JAVA SDK call?

0 votes

Hi Wendy,

 

Sorry that my previous answer was an offset to the topic. Yes, if you explictly add your sender as a signer, then you are able to set the first/last name for your package owner. If you didn't do so, the name will be read from sender profile.

 

        DocumentPackage documentPackage = PackageBuilder.newPackageNamed("Test Package Java SDK")
                .withSigner(SignerBuilder.newSignerWithEmail("[email protected]")
                            .withFirstName("UpdatedFirstName")
                            .withLastName("UpdatedLastName") 
                            )        
                .withDocument(DocumentBuilder.newDocumentWithName("sampleAgreement")
                        .withId("document1")                             
                        .fromFile("your_file_path")
                        .withSignature(SignatureBuilder.signatureFor("[email protected]")
                        .withId(new SignatureId("signature1"))    
                                .onPage(0)
                                 .atPosition(175, 165))
                        )
                .build();
        
        // Issue the request to the OneSpan Sign server to create the DocumentPackage
        PackageId packageId = eslClient.createPackageOneStep(documentPackage);

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off