282930313233343536
params.put("vehicle[region]", vehicle.getRegion()); params.put("vehicle[document_number]", vehicle.getPassport()); return client.get( new APITatarAuthRequest("services/gibdd/fines", params), new GibddFinesModelFactory() ); }
464748495051525354
HttpQueryParams params = new HttpQueryParams(); params.put("username", username); params.put("password", password); return client.get( new APITatarAuthRequest(USERS_SECTION, params), new UserModelFactory(true) ); }
8384858687888990919293
.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES) .setDateFormat("yyyy-MM-dd") .create() .toJson(user); client.put(new APITatarAuthRequest(USERS_SECTION + "/" + user.getId(), new JsonHttpEntity(json)), null); user.clearUnsetData(); return user; }
115116117118119120121
* @param userId * @throws APITatarException */ @Override public void removeUser(String userId) throws APITatarException { client.delete(new APITatarAuthRequest(USERS_SECTION + "/" + userId), null); }
142143144145146147148149150
* @return */ @Override public AppointmentHistories getAppointmentHistories(String userId, Paginate paginate) throws APITatarException { return client.get( new APITatarAuthRequest(USERS_SECTION + "/" + userId + "/operations/history/appointments"), new APITatarDefaultClient.DefaultResultHandler<AppointmentHistories>(AppointmentHistories.class) ); }
156157158159160161162163164
* @return */ @Override public PaymentHistories getPaymentHistories(String userId, Paginate paginate) throws APITatarException { return client.get( new APITatarAuthRequest(USERS_SECTION + "/" + userId + "/operations/history/payments"), new APITatarDefaultClient.DefaultResultHandler<PaymentHistories>(PaymentHistories.class) ); }