Refactored Transactions routes
MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -496,15 +496,15 @@ export enum ServerRoute {
REST_TRANSACTION = 'transactions/:id',
REST_TRANSACTIONS_EXPORT = 'transactions/action/export',
REST_TRANSACTION_CDR = 'transactions/:id/ocpi/cdr',
- REST_TRANSACTION_CDR_EXPORT = 'transactions/:id/ocpi/cdr/action/export',
+ REST_TRANSACTION_CDR_EXPORT = 'transactions/:id/ocpi/cdr/export',
REST_TRANSACTION_CONSUMPTION = 'transactions/:id/consumptions',
REST_TRANSACTION_CONSUMPTIONS_REBUILD = 'transactions/:id/consumptions/rebuild',
- REST_TRANSACTION_SOFT_STOP = 'transactions/:id/stop/soft',
+ REST_TRANSACTION_SOFT_STOP = 'transactions/:id/soft-stop',
REST_TRANSACTIONS_REFUND = 'transactions/action/refund',
- REST_TRANSACTIONS_REFUND_EXPORT = 'transactions/action/refund/export',
- REST_TRANSACTIONS_ASSIGN_USER = 'transactions/action/assign',
- REST_TRANSACTIONS_SYNCHRONIZE_REFUNDED = 'transactions/action/refund/synchronize',
- REST_TRANSACTIONS_REFUND_REPORTS = 'transactions/action/refund/reports',
+ REST_TRANSACTIONS_REFUND_EXPORT = 'transactions/status/refund/export',
+ REST_TRANSACTIONS_ASSIGN_USER = 'transactions/action/assign-user',
+ REST_TRANSACTIONS_SYNCHRONIZE_REFUNDED = 'transactions/status/refund/synchronize',
+ REST_TRANSACTIONS_REFUND_REPORTS = 'transactions/status/refund/reports',
REST_USERS = 'users',
REST_USER = 'users/:id',

Refactored Transactions routes