Skip to content

Latest commit

 

History

History
299 lines (211 loc) · 7.46 KB

TicketsApi.md

File metadata and controls

299 lines (211 loc) · 7.46 KB

TicketsApi

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

parkingConvertPost(body)

Convert a valid parking reservation with specific parking code

Example

// 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();
}

Parameters

Name Type Description Notes
body Body body

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

ticketsActivatePut

ticketsActivatePut(body)

Activate the given ticket

Example

// 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();
}

Parameters

Name Type Description Notes
body ValidateTicketRequest validate ticket request

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

ticketsGet

List<UserTicket> ticketsGet(userId, ticketId)

Return the list of tickets filtered by userId or ticketId

Example

// 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();
}

Parameters

Name Type Description Notes
userId String user id [optional]
ticketId String ticket id [optional]

Return type

List<UserTicket>

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

ticketsSelectMultiPost

InlineResponse200 ticketsSelectMultiPost(body)

Purchase the given fares via PSP

Example

// 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();
}

Parameters

Name Type Description Notes
body TicketsRequestPSP tickets request with PSP

Return type

InlineResponse200

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

ticketsSelectPaymentResponsePost

ticketsSelectPaymentResponsePost(body)

Get payment response via PSP

Example

// 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();
}

Parameters

Name Type Description Notes
body Object PSP response obj

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: text/plain

ticketsSelectPost

ticketsSelectPost(body)

Purchase the given ticket via PSP

Example

// 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();
}

Parameters

Name Type Description Notes
body TicketRequestPSP ticket request with PSP

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

ticketsUserIdGet

ticketsUserIdGet(userId)

Return the list of tickets filtered by userId DEPRECATED use GET 'tickets'

Example

// 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();
}

Parameters

Name Type Description Notes
userId String ticket request

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined