NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Paycard Service (java)
List of all options:
- Query list of paycards
- Create, get one, update and delete a single paycard
- Get all PAN tokens
- Create, get one, update and delete a single PAN token
Initialize service
TrivoreID sdk = TrivoreID.openIdClient(); PaycardServiceImpl paycardService = new PaycardServiceImpl(sdk.paycardService());
Paycard managment
// Get list of all user's paycards Page<Paycard> paycards = paycardService.getAll("exampleUserID"); // Apply filter Filter filter = Filter.equal("status", "ACTIVE"); paycards = paycardService.getAll("exampleUserID", new Criteria(filter)); // Add new paycard Paycard paycard = new Paycard(); paycard.setName("ExampleName"); paycard.setPriority(1); paycard.setMethod("creditcard"); paycard.setUserId(userId); // This method returns paycard object with the generated ID paycard = paycardService.create(paycard); String cardId = paycard.getId(); // Get one, Update and Delete paycard = paycardService.get(userId, cardId); paycard.setValidTo("2022-10-20T07:17:17.606Z"); paycardService.update(paycard); paycardService.delete(userId, cardId);
Paycard Service Models
/wiki/spaces/TISpubdoc/pages/20515217