Compare commits
2 Commits
0749e927dc
...
513045c146
| Author | SHA1 | Date | |
|---|---|---|---|
| 513045c146 | |||
| 8c4542a151 |
@ -1,6 +1,6 @@
|
|||||||
openapi: 3.0.1
|
openapi: 3.0.1
|
||||||
info:
|
info:
|
||||||
title: ABTCustomers
|
title: ABT Customer Self Service APIs
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
servers:
|
servers:
|
||||||
- url: https://services.acc.api.htm.nl/abt/abtcustomers/1.0
|
- url: https://services.acc.api.htm.nl/abt/abtcustomers/1.0
|
||||||
@ -10,7 +10,7 @@ paths:
|
|||||||
/customers/tokens/{ovpayTokenId}/trips:
|
/customers/tokens/{ovpayTokenId}/trips:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Customer self-service trips
|
- Trips
|
||||||
summary: Get trips for a token
|
summary: Get trips for a token
|
||||||
description: >-
|
description: >-
|
||||||
Get the most recent trips for a given token ID, as long as this token is
|
Get the most recent trips for a given token ID, as long as this token is
|
||||||
@ -173,7 +173,7 @@ paths:
|
|||||||
/customers/trips/{tripId}:
|
/customers/trips/{tripId}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Customer self-service trips
|
- Trips
|
||||||
summary: Get trips details for a trip and token
|
summary: Get trips details for a trip and token
|
||||||
description: >-
|
description: >-
|
||||||
Get the trip details for a given trip and token ID, as long as the trip
|
Get the trip details for a given trip and token ID, as long as the trip
|
||||||
@ -243,6 +243,183 @@ paths:
|
|||||||
- default: []
|
- default: []
|
||||||
x-auth-type: Application & Application User
|
x-auth-type: Application & Application User
|
||||||
x-throttling-tier: Unlimited
|
x-throttling-tier: Unlimited
|
||||||
|
/customers/tariff/stops:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- Trips
|
||||||
|
summary: 9776 - Get Possible Stops With Details
|
||||||
|
operationId: API-9776v3_getPossibleStopsWithDetails
|
||||||
|
description: Get Possible Stops With Details
|
||||||
|
security:
|
||||||
|
- OAuthAuthorization:
|
||||||
|
- default
|
||||||
|
parameters:
|
||||||
|
- name: X-HTM-JWT-AUTH-HEADER
|
||||||
|
in: header
|
||||||
|
required: true
|
||||||
|
style: simple
|
||||||
|
explode: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: xbot
|
||||||
|
description: >-
|
||||||
|
A xBOT IS AN unique identifier THAT is an external representation of
|
||||||
|
a backoffice Token for a particular Business Entity
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
- name: tripId
|
||||||
|
in: query
|
||||||
|
description: A tripId IS AN identifier THAT distinguishes a Trip from all other Trips
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
- name: transactionId
|
||||||
|
in: query
|
||||||
|
description: >-
|
||||||
|
A transactionId IS A unique identifier THAT is generated by the GBO
|
||||||
|
and assigned to every Transaction that is received
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Success with results
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/MissingCkiCkoRequest'
|
||||||
|
'400':
|
||||||
|
description: '400'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/400Response'
|
||||||
|
'401':
|
||||||
|
description: '401'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/401Response'
|
||||||
|
'403':
|
||||||
|
description: '403'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/403Response'
|
||||||
|
'404':
|
||||||
|
description: '404'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/404Response'
|
||||||
|
'500':
|
||||||
|
description: '500'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/500Response'
|
||||||
|
/customers/id-media/missing-taps:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Trips
|
||||||
|
summary: 8255 - Manual Check-in or Check-out
|
||||||
|
description: >-
|
||||||
|
Creates manual Check-in or Check-out for transactions that are missing
|
||||||
|
their pair. Check-in or Check-out directions are defined using
|
||||||
|
**entryExitType** parameter in body respectivelly
|
||||||
|
operationId: API-8255v3_manualCheckInOrCheckOut
|
||||||
|
parameters:
|
||||||
|
- name: X-HTM-JWT-AUTH-HEADER
|
||||||
|
in: header
|
||||||
|
required: true
|
||||||
|
style: simple
|
||||||
|
explode: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ManualTap'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Operation successful
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GenericOkResponse'
|
||||||
|
example:
|
||||||
|
referenceId: BSS-1627294719604
|
||||||
|
numberOfRemainingAttempts: 0
|
||||||
|
timeOfNextAllowedAttempt: '2022-03-19T17:07:31Z'
|
||||||
|
'400':
|
||||||
|
description: |-
|
||||||
|
Bad request
|
||||||
|
List of possible error codes:
|
||||||
|
|
||||||
|
* 402 - Unable to store message
|
||||||
|
* 403 - Unable to send message to NotificationProcessor
|
||||||
|
* 404 - Unable to parse message
|
||||||
|
* 405 - Unable to validate message
|
||||||
|
* 406 - Missing mandatory headers
|
||||||
|
* 407 - Counter Transaction not found
|
||||||
|
* 408 - Manual taps limit exceeded
|
||||||
|
* 409 - Unable to send message to Orchestrator
|
||||||
|
* 410 - Unable to construct message
|
||||||
|
* 411 - Unable to get data
|
||||||
|
* 412 - Unable to get bin
|
||||||
|
* 422 - Duplicate manual tap
|
||||||
|
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/400Response'
|
||||||
|
example:
|
||||||
|
errorMessage:
|
||||||
|
message: >-
|
||||||
|
Maximum limit 5 of manual taps reached for beId = 7 and role
|
||||||
|
= PTO within a period of 2592000 seconds for this token
|
||||||
|
referenceId: BSS-1627294719604
|
||||||
|
businessExceptions:
|
||||||
|
- code: '408'
|
||||||
|
message: Manual taps limit exceeded
|
||||||
|
- code: BSS-timeOfNextAllowedAttempt
|
||||||
|
message: '2022-03-19T17:07:31Z'
|
||||||
|
'500':
|
||||||
|
description: Internal Server Error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/500Response'
|
||||||
|
example:
|
||||||
|
errorMessage:
|
||||||
|
message: The server responded with http status code 500
|
||||||
|
referenceId: BSS-1627294719604
|
||||||
|
businessExceptions:
|
||||||
|
- code: '5026'
|
||||||
|
message: Unable to send request to Orchestrator
|
||||||
|
'503':
|
||||||
|
description: Service Unavailable
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/503Response'
|
||||||
|
example:
|
||||||
|
errorMessage:
|
||||||
|
message: The server responded with http status code 503
|
||||||
|
referenceId: BSS-1627294719604
|
||||||
|
businessExceptions:
|
||||||
|
- code: '5026'
|
||||||
|
message: Unable to send request to Orchestrator
|
||||||
|
x-codegen-request-body-name: ManualTap
|
||||||
|
security:
|
||||||
|
- OAuthAuthorization:
|
||||||
|
- default
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
getTokenTrips:
|
getTokenTrips:
|
||||||
@ -599,6 +776,190 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
createdAt:
|
createdAt:
|
||||||
type: string
|
type: string
|
||||||
|
MissingCkiCkoRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
xbot:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A xBOT IS AN unique identifier THAT is an external representation of
|
||||||
|
a backoffice Token for a particular Business Entity
|
||||||
|
counterpartTransactionId:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A counterpartTransactionId IS A unique identifier THAT assigned to
|
||||||
|
every Transaction that is received
|
||||||
|
counterpartEntryExitType:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
AN counterpartEntryExitType IS AN direction indicator THAT describes
|
||||||
|
a possible direction indicated by the callee that created the
|
||||||
|
Transaction
|
||||||
|
counterpartTimeStamp:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A counterpartTimeStamp IS A date, time and time zone indication THAT
|
||||||
|
describes when the Transaction was created either by a Device or
|
||||||
|
callee
|
||||||
|
counterpartStop:
|
||||||
|
$ref: '#/components/schemas/ScheduledStopPointData'
|
||||||
|
deviceId:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A deviceId IS AN unique identifier THAT distinguishes a Device from
|
||||||
|
all other Devices
|
||||||
|
deviceClassId:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A deviceClassId IS AN enumerated identifier THAT describes the type
|
||||||
|
of Device responsible for creating the Transaction
|
||||||
|
scheduledStopPoints:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ScheduledStopPointData'
|
||||||
|
ScheduledStopPointData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
alternativeTexts:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/AlternativeText'
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A name IS A string THAT is used to described name of the
|
||||||
|
TariffLocation name
|
||||||
|
shortName:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A shortName IS AN abbreviation THAT contains a shortened version of
|
||||||
|
the TariffLocation name
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A description IS A string THAT is used as an additional label of the
|
||||||
|
TariffLocation as defined in the Tariff Fragment
|
||||||
|
location:
|
||||||
|
$ref: '#/components/schemas/Location'
|
||||||
|
stopId:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A stopId IS A unique identifier THAT distinguishes a Tariff Location
|
||||||
|
from all other Tariff Locations
|
||||||
|
transportModes:
|
||||||
|
type: array
|
||||||
|
description: >-
|
||||||
|
A transportMode IS AN identifier THAT describes the mode of
|
||||||
|
transport
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
AlternativeText:
|
||||||
|
type: object
|
||||||
|
description: >-
|
||||||
|
AN AlternativeText IS AN object THAT contains values to enable one or
|
||||||
|
more language translations
|
||||||
|
properties:
|
||||||
|
text:
|
||||||
|
type: object
|
||||||
|
description: >-
|
||||||
|
A text is AN wrapper THAT is used as an abstraction layer to contain
|
||||||
|
the properties of AlternativeText
|
||||||
|
properties:
|
||||||
|
lang:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A lang IS AN enumerated identifier THAT describes the language
|
||||||
|
of the text within the AlternativeText object
|
||||||
|
example: en-US
|
||||||
|
textIdType:
|
||||||
|
type: string
|
||||||
|
description: A textIdType IS AN name THAT is used to categorize types of text
|
||||||
|
example: publicName
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
A text IS A name THAT has been translated to a particular
|
||||||
|
language
|
||||||
|
example: Default Travel Entitlement
|
||||||
|
Location:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
longitude:
|
||||||
|
type: number
|
||||||
|
description: >-
|
||||||
|
A longitude IS A number THAT represents the geographic coordinate
|
||||||
|
that specifies the east-west position of a point on the surface of
|
||||||
|
the Earth
|
||||||
|
latitude:
|
||||||
|
type: number
|
||||||
|
description: >-
|
||||||
|
A latitude IS A number THAT represents the geographic coordinate
|
||||||
|
that specifies the north-south position of a point on the surface of
|
||||||
|
the Earth
|
||||||
|
altitude:
|
||||||
|
type: number
|
||||||
|
description: >-
|
||||||
|
AN altitude IS A number THAT represents the height of an object or
|
||||||
|
point in relation to sea level or ground level
|
||||||
|
ManualTap:
|
||||||
|
required:
|
||||||
|
- xbot
|
||||||
|
- counterpartTransactionId
|
||||||
|
- deviceClassId
|
||||||
|
- deviceId
|
||||||
|
- stopId
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
counterpartTransactionId:
|
||||||
|
type: string
|
||||||
|
description: Id of the transaction that is missing its pair
|
||||||
|
example: '1236589547'
|
||||||
|
xbot:
|
||||||
|
type: string
|
||||||
|
description: Token identification code (external backoffice token)
|
||||||
|
example: '12272277752953521453'
|
||||||
|
stopId:
|
||||||
|
type: string
|
||||||
|
description: Id of the location of the tap
|
||||||
|
example: '123'
|
||||||
|
deviceId:
|
||||||
|
type: string
|
||||||
|
description: Id of the device
|
||||||
|
example: '5415236'
|
||||||
|
deviceClassId:
|
||||||
|
type: string
|
||||||
|
description: Class Id of the device
|
||||||
|
example: '54'
|
||||||
|
transactionTimestamp:
|
||||||
|
type: string
|
||||||
|
description: Timestamp of the transaction
|
||||||
|
format: date-time
|
||||||
|
example: '2019-11-25T17:39:45.000Z'
|
||||||
|
entryExitType:
|
||||||
|
type: string
|
||||||
|
description: 'Direction of the tap: in or out'
|
||||||
|
example: ENTRY
|
||||||
|
enum:
|
||||||
|
- UNKNOWN
|
||||||
|
- ENTRY
|
||||||
|
- EXIT
|
||||||
|
description: JSON schema for ManualTap message
|
||||||
|
GenericOkResponse:
|
||||||
|
required:
|
||||||
|
- referenceId
|
||||||
|
description: Ok response object
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
referenceId:
|
||||||
|
type: string
|
||||||
|
description: Reference identification code
|
||||||
|
numberOfRemainingAttempts:
|
||||||
|
type: integer
|
||||||
|
description: Number of remaining attempts
|
||||||
|
timeOfNextAllowedAttempt:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
description: Time when next attempt is allowed
|
||||||
400Response:
|
400Response:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -673,5 +1034,18 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
example: Internal Server Error
|
example: Internal Server Error
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
503Response:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
example: '503'
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
example: Service Unavailable
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
Loading…
Reference in New Issue
Block a user