@vulog/aima-payment 1.1.82 → 1.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -120,7 +120,7 @@ var payATrip = async (client, tripId, body) => {
120
120
  cause: validated.error.issues
121
121
  });
122
122
  }
123
- return client.post(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/payment/trips/${tripId}/pay`, {
123
+ return client.post(`/boapi/proxy/trip/fleets/${client.clientOptions.fleetId}/trips/${tripId}/pay`, {
124
124
  online: body.online ?? false,
125
125
  scope: body.scope ?? "RENTAL",
126
126
  amountType: body.amountType ?? "FIXED",
package/dist/index.mjs CHANGED
@@ -91,7 +91,7 @@ var payATrip = async (client, tripId, body) => {
91
91
  cause: validated.error.issues
92
92
  });
93
93
  }
94
- return client.post(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/payment/trips/${tripId}/pay`, {
94
+ return client.post(`/boapi/proxy/trip/fleets/${client.clientOptions.fleetId}/trips/${tripId}/pay`, {
95
95
  online: body.online ?? false,
96
96
  scope: body.scope ?? "RENTAL",
97
97
  amountType: body.amountType ?? "FIXED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-payment",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -19,11 +19,11 @@
19
19
  "author": "Vulog",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@vulog/aima-client": "1.1.82",
23
- "@vulog/aima-core": "1.1.82"
22
+ "@vulog/aima-client": "1.1.84",
23
+ "@vulog/aima-core": "1.1.84"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "zod": "^3.25.76"
27
27
  },
28
28
  "description": ""
29
- }
29
+ }
package/src/payATrip.ts CHANGED
@@ -30,7 +30,7 @@ export const payATrip = async (client: Client, tripId: string, body: z.infer<typ
30
30
  }
31
31
 
32
32
  return client
33
- .post<void>(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/payment/trips/${tripId}/pay`, {
33
+ .post<void>(`/boapi/proxy/trip/fleets/${client.clientOptions.fleetId}/trips/${tripId}/pay`, {
34
34
  online: body.online ?? false,
35
35
  scope: body.scope ?? 'RENTAL',
36
36
  amountType: body.amountType ?? 'FIXED',