feature/OVPAY-2473 #55
@ -208,6 +208,337 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/getTrips'
|
$ref: '#/components/schemas/getTrips'
|
||||||
|
examples:
|
||||||
|
completedTripDetails:
|
||||||
|
summary: Example of a completed trip
|
||||||
|
value:
|
||||||
|
tripId: 66538
|
||||||
|
tripVersion: 2
|
||||||
|
tripStatus: COMPLETE
|
||||||
|
tripFareNature: FIXED
|
||||||
|
paymentMethodId: dba0b896-118d-4e9e-abf5-af264ced34c4
|
||||||
|
paymentMethodMode: BAL
|
||||||
|
paymentMethodName: BAL
|
||||||
|
paymentProviderName: Account Balance
|
||||||
|
paymentProviderBusinessEntityId: "4"
|
||||||
|
paymentProviderCommercialName: VAD Flex
|
||||||
|
paymentProviderCommercialUrl: https://www.vad.nl/mijnvad
|
||||||
|
organisationIcon: /icons/organisations/4.svg
|
||||||
|
organisationId: "4"
|
||||||
|
organisationName: NS
|
||||||
|
supersededByTripIds:
|
||||||
|
- 66539
|
||||||
|
- 66540
|
||||||
|
supersedesTripIds: []
|
||||||
|
tripStartTxnId: 1125977
|
||||||
|
tripEndTxnId: 1125978
|
||||||
|
numberOfSyntheticLegs: 3
|
||||||
|
numberofSyntheticTrips: 2
|
||||||
|
products:
|
||||||
|
- productTemplateId: "N/A"
|
||||||
|
purchaseDateTime: 2021-06-02T08:38:32Z
|
||||||
|
appliedValue: 2470
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: SALES
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
fareAggregationCycle: 2
|
||||||
|
- xpit: 72c11b8d-5a96-4cc2-9fc8-258a25b57f69
|
||||||
|
productTemplateId: "1:2001"
|
||||||
|
productCommercialName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Pay As You Go Program (NL)
|
||||||
|
- key: en-US
|
||||||
|
value: Pay As You Go Program
|
||||||
|
validFrom: 2021-06-02T08:38:32Z
|
||||||
|
validUntil: 2099-12-31T23:59:59Z
|
||||||
|
weight: 2470
|
||||||
|
appliedMetric: FARE
|
||||||
|
appliedValue: 2470
|
||||||
|
xprofit: 0eb178f7-c548-417e-a44f-7248a582ac9d
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: INTERNAL
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
checkinTransactionTimestamp: 2021-06-01T06:00:00Z
|
||||||
|
checkoutTransactionTimestamp: 2021-06-01T06:22:00Z
|
||||||
|
checkinTransactionReference: 001e8481;1151;gemaltoPure
|
||||||
|
checkoutTransactionReference: 001e8481;1152;gemaltoPure
|
||||||
|
checkinLocation:
|
||||||
|
stopId: 621
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Utrecht Centraal
|
||||||
|
- key: en-US
|
||||||
|
value: Utrecht Centraal
|
||||||
|
stopDesc: Station Utrecht Centraal
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
checkoutLocation:
|
||||||
|
stopId: 253
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Goes
|
||||||
|
- key: en-US
|
||||||
|
value: Goes
|
||||||
|
stopDesc: Station Goes
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
xbot: 36637b86-7a31-4b77-99dd-2d39b9c1a9b6
|
||||||
|
tokenType: GemaltoPure
|
||||||
|
transportType: RAIL
|
||||||
|
lineId: "10"
|
||||||
|
networkId: "1"
|
||||||
|
networkName: HRN
|
||||||
|
vehicleId: 123
|
||||||
|
currency: EUR
|
||||||
|
transportIcon: /icons/transportTypes/rail.svg
|
||||||
|
legs:
|
||||||
|
- legId: 83387
|
||||||
|
checkinTransactionTimestamp: 2021-06-01T06:00:00Z
|
||||||
|
checkoutTransactionTimestamp: 2021-06-01T06:22:00Z
|
||||||
|
checkinLocation:
|
||||||
|
stopId: 621
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Utrecht Centraal
|
||||||
|
- key: en-US
|
||||||
|
value: Utrecht Centraal
|
||||||
|
stopDesc: Station Utrecht Centraal
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
checkoutLocation:
|
||||||
|
stopId: 253
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Goes
|
||||||
|
- key: en-US
|
||||||
|
value: Goes
|
||||||
|
stopDesc: Station Goes
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
baseRate: 2470
|
||||||
|
lineId: "10"
|
||||||
|
networkId: "1"
|
||||||
|
networkName: HRN
|
||||||
|
fare: 2470
|
||||||
|
fareState: CALCULATED
|
||||||
|
currency: EUR
|
||||||
|
products:
|
||||||
|
- productTemplateId: "N/A"
|
||||||
|
purchaseDateTime: 2021-06-02T08:38:32Z
|
||||||
|
appliedValue: 2470
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: SALES
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
- xpit: 72c11b8d-5a96-4cc2-9fc8-258a25b57f69
|
||||||
|
productTemplateId: "1:2001"
|
||||||
|
productCommercialName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Pay As You Go Program (NL)
|
||||||
|
- key: en-US
|
||||||
|
value: Pay As You Go Program
|
||||||
|
validFrom: 2021-06-02T08:38:32Z
|
||||||
|
validUntil: 2099-12-31T23:59:59Z
|
||||||
|
weight: 2470
|
||||||
|
appliedMetric: FARE
|
||||||
|
appliedValue: 2470
|
||||||
|
xprofit: 0eb178f7-c548-417e-a44f-7248a582ac9d
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: INTERNAL
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
appliedTimePeriods: []
|
||||||
|
tariffJourneyStart: true
|
||||||
|
tariffDistance: 9
|
||||||
|
aggrGeoIntervalDistance: 9
|
||||||
|
topoDistance: 0
|
||||||
|
concessionId: "1"
|
||||||
|
tripLegIdx: 0
|
||||||
|
appliedZones:
|
||||||
|
- zoneId: "73"
|
||||||
|
zoneName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Enschede-Glanerburg
|
||||||
|
- key: en-US
|
||||||
|
value: Enschede-Glanerburg
|
||||||
|
lastUpdatedTripDateTime: 2021-06-01T06:22:00Z
|
||||||
|
fare: 2470
|
||||||
|
loyaltyOrDiscount: false
|
||||||
|
supportCode: wYyM3nDb2Uy5ge
|
||||||
|
checkinTransactionId: 001e8481-1151-gemaltoPure-1622527200000
|
||||||
|
checkoutTransactionId: 001e8481-1152-gemaltoPure-1622528520000
|
||||||
|
tariffVersionId: NS:5
|
||||||
|
correlationId: c3ae1ba3-780a-4416-8a38-3fd03a9005b7
|
||||||
|
createdAt: 2021-06-02T15:03:46.813Z
|
||||||
|
missingCkoTripDetails:
|
||||||
|
summary: Example of a trip with missing check-out
|
||||||
|
value:
|
||||||
|
bboterm marked this conversation as resolved
|
|||||||
|
tripId: 66538
|
||||||
|
tripVersion: 2
|
||||||
|
tripStatus: MISSING_CKO
|
||||||
|
tripFareNature: FIXED
|
||||||
|
paymentMethodId: dba0b896-118d-4e9e-abf5-af264ced34c4
|
||||||
|
paymentMethodMode: BAL
|
||||||
|
paymentMethodName: BAL
|
||||||
|
paymentProviderName: Account Balance
|
||||||
|
paymentProviderBusinessEntityId: "4"
|
||||||
|
paymentProviderCommercialName: VAD Flex
|
||||||
|
paymentProviderCommercialUrl: https://www.vad.nl/mijnvad
|
||||||
|
organisationIcon: /icons/organisations/4.svg
|
||||||
|
organisationId: "4"
|
||||||
|
organisationName: NS
|
||||||
|
supersededByTripIds:
|
||||||
|
- 66539
|
||||||
|
- 66540
|
||||||
|
supersedesTripIds: []
|
||||||
|
tripStartTxnId: 1125977
|
||||||
|
tripEndTxnId: 1125978
|
||||||
|
numberOfSyntheticLegs: 3
|
||||||
|
numberofSyntheticTrips: 2
|
||||||
|
products:
|
||||||
|
- productTemplateId: "N/A"
|
||||||
|
purchaseDateTime: 2021-06-02T08:38:32Z
|
||||||
|
appliedValue: 2470
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: SALES
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
fareAggregationCycle: 2
|
||||||
|
- xpit: 72c11b8d-5a96-4cc2-9fc8-258a25b57f69
|
||||||
|
productTemplateId: "1:2001"
|
||||||
|
productCommercialName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Pay As You Go Program (NL)
|
||||||
|
- key: en-US
|
||||||
|
value: Pay As You Go Program
|
||||||
|
validFrom: 2021-06-02T08:38:32Z
|
||||||
|
validUntil: 2099-12-31T23:59:59Z
|
||||||
|
weight: 2470
|
||||||
|
appliedMetric: FARE
|
||||||
|
appliedValue: 2470
|
||||||
|
xprofit: 0eb178f7-c548-417e-a44f-7248a582ac9d
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: INTERNAL
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
checkinTransactionTimestamp: 2021-06-01T06:00:00Z
|
||||||
|
checkoutTransactionTimestamp: 2021-06-01T06:22:00Z
|
||||||
|
checkinTransactionReference: 001e8481;1151;gemaltoPure
|
||||||
|
checkoutTransactionReference: 001e8481;1152;gemaltoPure
|
||||||
|
checkinLocation:
|
||||||
|
stopId: 621
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Utrecht Centraal
|
||||||
|
- key: en-US
|
||||||
|
value: Utrecht Centraal
|
||||||
|
stopDesc: Station Utrecht Centraal
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
checkoutLocation:
|
||||||
|
stopId: 253
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Goes
|
||||||
|
- key: en-US
|
||||||
|
value: Goes
|
||||||
|
stopDesc: Station Goes
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
xbot: 36637b86-7a31-4b77-99dd-2d39b9c1a9b6
|
||||||
|
tokenType: GemaltoPure
|
||||||
|
transportType: RAIL
|
||||||
|
lineId: "10"
|
||||||
|
networkId: "1"
|
||||||
|
networkName: HRN
|
||||||
|
vehicleId: 123
|
||||||
|
currency: EUR
|
||||||
|
transportIcon: /icons/transportTypes/rail.svg
|
||||||
|
legs:
|
||||||
|
- legId: 83387
|
||||||
|
checkinTransactionTimestamp: 2021-06-01T06:00:00Z
|
||||||
|
checkoutTransactionTimestamp: null
|
||||||
|
checkinLocation:
|
||||||
|
stopId: 621
|
||||||
|
stopName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Utrecht Centraal
|
||||||
|
- key: en-US
|
||||||
|
value: Utrecht Centraal
|
||||||
|
stopDesc: Station Utrecht Centraal
|
||||||
|
stopUrl: /icons/stops/stop.svg
|
||||||
|
locationType: 0
|
||||||
|
checkoutLocation: null
|
||||||
|
baseRate: 400
|
||||||
|
lineId: "10"
|
||||||
|
networkId: "1"
|
||||||
|
networkName: HRN
|
||||||
|
fare: 400
|
||||||
|
fareState: CALCULATED
|
||||||
|
currency: EUR
|
||||||
|
products:
|
||||||
|
- productTemplateId: "N/A"
|
||||||
|
purchaseDateTime: 2021-06-02T08:38:32Z
|
||||||
|
appliedValue: 400
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: SALES
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
- xpit: 72c11b8d-5a96-4cc2-9fc8-258a25b57f69
|
||||||
|
productTemplateId: "1:2001"
|
||||||
|
productCommercialName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Pay As You Go Program (NL)
|
||||||
|
- key: en-US
|
||||||
|
value: Pay As You Go Program
|
||||||
|
validFrom: 2021-06-02T08:38:32Z
|
||||||
|
validUntil: 2099-12-31T23:59:59Z
|
||||||
|
weight: 400
|
||||||
|
appliedMetric: FARE
|
||||||
|
appliedValue: 400
|
||||||
|
xprofit: 0eb178f7-c548-417e-a44f-7248a582ac9d
|
||||||
|
xspit: 39b9183d-767d-4364-9d1b-575613c12a96
|
||||||
|
category: INTERNAL
|
||||||
|
typesOfFareProduct:
|
||||||
|
- privateCode: payg
|
||||||
|
appliedTimePeriods: []
|
||||||
|
tariffJourneyStart: true
|
||||||
|
tariffDistance: 9
|
||||||
|
aggrGeoIntervalDistance: 9
|
||||||
|
topoDistance: 0
|
||||||
|
concessionId: "1"
|
||||||
|
tripLegIdx: 0
|
||||||
|
appliedZones:
|
||||||
|
- zoneId: "73"
|
||||||
|
zoneName:
|
||||||
|
items:
|
||||||
|
- key: nl-NL
|
||||||
|
value: Enschede-Glanerburg
|
||||||
|
- key: en-US
|
||||||
|
value: Enschede-Glanerburg
|
||||||
|
lastUpdatedTripDateTime: 2021-06-01T06:22:00Z
|
||||||
|
fare: 2470
|
||||||
|
loyaltyOrDiscount: false
|
||||||
|
supportCode: wYyM3nDb2Uy5ge
|
||||||
|
checkinTransactionId: 001e8481-1151-gemaltoPure-1622527200000
|
||||||
|
checkoutTransactionId: null
|
||||||
|
tariffVersionId: NS:5
|
||||||
|
correlationId: c3ae1ba3-780a-4416-8a38-3fd03a9005b7
|
||||||
|
createdAt: 2021-06-02T15:03:46.813Z
|
||||||
|
bboterm marked this conversation as resolved
MirjamHTM
commented
Mist Hateoas voor het fixen van de missing CO Mist Hateoas voor het fixen van de missing CO
bboterm
commented
Ahh, ik had 1 commit niet gepushed. Daarom zag je hem niet. Hij zit er nu bij in elk geval! Ahh, ik had 1 commit niet gepushed. Daarom zag je hem niet. Hij zit er nu bij in elk geval!
|
|||||||
'400':
|
'400':
|
||||||
description: '400'
|
description: '400'
|
||||||
content:
|
content:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user
We geven in de tripdetails nergens de xbot mee terug, die krijgen we wel. Als we het zo houden hebben we 2 opties (1) TP pakt Xbot uit tokendetails om de stops call mee te doen (2) we geven de info terug in de Hateoas voor ingevuld. Of we voegen de info hier toe, die hebben we toen weggehaald, met het idee dat de XBOT een privacy gevoelig gegeven was.
Ja je miste dus die ene commit van mij die ik niet had gepusht. Hij zit idd in de HATEOAS.