How are fines issued?
A fine can be issued if a user is breaking the following parking rules:
- ending a trip in an out-of-bounds zone
- parking in a forbidden area
Costs of parking fines for a specific region can be obtained from the price list for that region:
{
"name": "regions/aAbBcCdDeEfFgGhHiIjJ/price_list_details",
"scooter": {
"endTripOutOfBounds": {
"amount": 100,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
},
"endTripParkingForbidden": {
"amount": 200,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
},
"ride": {
"amount": 0.4166666666666667,
"currency": "EUR",
"unit": "UNIT_TYPE_SECONDS"
},
"startRide": {
"amount": 300,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
}
},
"bicycle": {
"endTripOutOfBounds": {
"amount": 150,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
},
"endTripParkingForbidden": {
"amount": 300,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
},
"ride": {
"amount": 0.4166666666666667,
"currency": "EUR",
"unit": "UNIT_TYPE_SECONDS"
},
"startRide": {
"amount": 100,
"currency": "EUR",
"unit": "UNIT_TYPE_EVENT"
}
}
}
If a user has incurred a parking fine it's reflected in a trip invoice:
{
"name": "trips/aAbBcCdDeEfFgGhHiIjJ/invoice",
"publicInvoiceNumber": "",
"currency": "EUR",
"totalAmount": 23,
"type": "INVOICE_TYPE_TRIP",
"userId": "FmrBSboT4wN1XuGuABCDeCeRSgg2",
"vehicleType": "VEHICLE_TYPE_SCOOTER",
"charges": {
"ride": {
"afterVat": 23,
"beforeVat": 19,
"units": 48,
"vatAmount": 4,
"unitType": "UNIT_TYPE_SECONDS"
},
"startRide": {
"afterVat": 0,
"beforeVat": 0,
"units": 1,
"vatAmount": 0,
"unitType": "UNIT_TYPE_EVENT"
}
"endTripOutOfBounds": {
"afterVat": 10,
"beforeVat": 8,
"units": 1,
"vatAmount": 2
},
},
"amounts": {
"subTotal": 27,
"total": 33,
"vat": 6
},
"createdAt": "2020-02-17T14:30:23Z",
"tripStartedAt": "2021-11-17T14:29:35Z"
}