All URIs are relative to https://api.openmove.com
Method | HTTP request | Description |
---|---|---|
parkingConvertPost | POST /parking/convert | Convert a valid parking reservation with specific parking code |
ticketsActivatePut | PUT /tickets/activate | Activate the given ticket |
ticketsGet | GET /tickets | Return the list of tickets filtered by userId or ticketId |
ticketsSelectMultiPost | POST /tickets/select/multi | Purchase the given fares via PSP |
ticketsSelectPaymentResponsePost | POST /tickets/select/payment/response | Get payment response via PSP |
ticketsSelectPost | POST /tickets/select | Purchase the given ticket via PSP |
ticketsUserIdGet | GET /tickets/{userId} | Return the list of tickets filtered by userId DEPRECATED use GET 'tickets' |
parkingConvertPost(body)
Convert a valid parking reservation with specific parking code
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
Body body = new Body(); // Body | body
try {
apiInstance.parkingConvertPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#parkingConvertPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Body | body |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
ticketsActivatePut(body)
Activate the given ticket
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
ValidateTicketRequest body = new ValidateTicketRequest(); // ValidateTicketRequest | validate ticket request
try {
apiInstance.ticketsActivatePut(body);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsActivatePut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ValidateTicketRequest | validate ticket request |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
List<UserTicket> ticketsGet(userId, ticketId)
Return the list of tickets filtered by userId or ticketId
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
String userId = "userId_example"; // String | user id
String ticketId = "ticketId_example"; // String | ticket id
try {
List<UserTicket> result = apiInstance.ticketsGet(userId, ticketId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | user id | [optional] |
ticketId | String | ticket id | [optional] |
- Content-Type: application/json
- Accept: Not defined
InlineResponse200 ticketsSelectMultiPost(body)
Purchase the given fares via PSP
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
TicketsRequestPSP body = new TicketsRequestPSP(); // TicketsRequestPSP | tickets request with PSP
try {
InlineResponse200 result = apiInstance.ticketsSelectMultiPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsSelectMultiPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TicketsRequestPSP | tickets request with PSP |
- Content-Type: application/json
- Accept: Not defined
ticketsSelectPaymentResponsePost(body)
Get payment response via PSP
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
Object body = null; // Object | PSP response obj
try {
apiInstance.ticketsSelectPaymentResponsePost(body);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsSelectPaymentResponsePost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Object | PSP response obj |
null (empty response body)
- Content-Type: application/json
- Accept: text/plain
ticketsSelectPost(body)
Purchase the given ticket via PSP
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
TicketRequestPSP body = new TicketRequestPSP(); // TicketRequestPSP | ticket request with PSP
try {
apiInstance.ticketsSelectPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsSelectPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TicketRequestPSP | ticket request with PSP |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
ticketsUserIdGet(userId)
Return the list of tickets filtered by userId DEPRECATED use GET 'tickets'
// Import classes:
//import com.openmove.api.TicketsApi;
TicketsApi apiInstance = new TicketsApi();
String userId = "userId_example"; // String | ticket request
try {
apiInstance.ticketsUserIdGet(userId);
} catch (ApiException e) {
System.err.println("Exception when calling TicketsApi#ticketsUserIdGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | ticket request |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined