mailtodanish | Posts: 47

how to set Transaction expiry days

0 votes
Hello! How to set days when translation will expired. Thanks

Duo_Liang | Posts: 3776

Reply to: how to set Transaction expiry days

0 votes
Hi there, Try this code below:
		int expiryDay = 15;
		Calendar calendar = new GregorianCalendar();
		calendar.add(Calendar.DATE, expiryDay);
		Date expiryDate = calendar.getTime();

		DocumentPackage newPackage = newPackageNamed("Test Due")
                                ...
				.expiresAt(expiryDate)
				.build();
Hope this could help! 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