@dapex-tech/elite-online-services 0.0.29 → 0.0.30
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/models/ChargeTripByPhysicalCardDto.d.ts +15 -0
- package/models/ChargeTripByPhysicalCardDto.js +2 -0
- package/models/MessageResponseDto.d.ts +8 -0
- package/models/TrackDataDto.d.ts +1 -0
- package/models/TrackDataDto.js +2 -0
- package/models/index.d.ts +2 -0
- package/models/index.js +2 -0
- package/package.json +1 -1
- package/services/DriverPaymentsService.d.ts +8 -0
- package/services/DriverPaymentsService.js +18 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TrackDataDto } from './TrackDataDto';
|
|
2
|
+
export type ChargeTripByPhysicalCardDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Trip ID to charge
|
|
5
|
+
*/
|
|
6
|
+
tripId: number;
|
|
7
|
+
/**
|
|
8
|
+
* Amount to charge
|
|
9
|
+
*/
|
|
10
|
+
amount: number;
|
|
11
|
+
/**
|
|
12
|
+
* Card track data from swipe or insert
|
|
13
|
+
*/
|
|
14
|
+
trackData: TrackDataDto;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TrackDataDto = {};
|
package/models/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './ChargeTripByCardDto';
|
|
|
18
18
|
export * from './ChargeTripByCardResponseDto';
|
|
19
19
|
export * from './ChargeTripByCashDto';
|
|
20
20
|
export * from './ChargeTripByCashResponseDto';
|
|
21
|
+
export * from './ChargeTripByPhysicalCardDto';
|
|
21
22
|
export * from './ChargeTripByVoucherDto';
|
|
22
23
|
export * from './ChargeTripDto';
|
|
23
24
|
export * from './CustomerDto';
|
|
@@ -73,6 +74,7 @@ export * from './SendDriverPushDto';
|
|
|
73
74
|
export * from './SeniorCenterDto';
|
|
74
75
|
export * from './SystemSettingResponseDto';
|
|
75
76
|
export * from './TokensDto';
|
|
77
|
+
export * from './TrackDataDto';
|
|
76
78
|
export * from './TripAssignDriverDto';
|
|
77
79
|
export * from './TripDto';
|
|
78
80
|
export * from './TripLanguages';
|
package/models/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./ChargeTripByCardDto"), exports);
|
|
|
34
34
|
__exportStar(require("./ChargeTripByCardResponseDto"), exports);
|
|
35
35
|
__exportStar(require("./ChargeTripByCashDto"), exports);
|
|
36
36
|
__exportStar(require("./ChargeTripByCashResponseDto"), exports);
|
|
37
|
+
__exportStar(require("./ChargeTripByPhysicalCardDto"), exports);
|
|
37
38
|
__exportStar(require("./ChargeTripByVoucherDto"), exports);
|
|
38
39
|
__exportStar(require("./ChargeTripDto"), exports);
|
|
39
40
|
__exportStar(require("./CustomerDto"), exports);
|
|
@@ -89,6 +90,7 @@ __exportStar(require("./SendDriverPushDto"), exports);
|
|
|
89
90
|
__exportStar(require("./SeniorCenterDto"), exports);
|
|
90
91
|
__exportStar(require("./SystemSettingResponseDto"), exports);
|
|
91
92
|
__exportStar(require("./TokensDto"), exports);
|
|
93
|
+
__exportStar(require("./TrackDataDto"), exports);
|
|
92
94
|
__exportStar(require("./TripAssignDriverDto"), exports);
|
|
93
95
|
__exportStar(require("./TripDto"), exports);
|
|
94
96
|
__exportStar(require("./TripLanguages"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AddPaymentMethodDto } from '../models/AddPaymentMethodDto';
|
|
2
2
|
import type { ChargeTripByCardDto } from '../models/ChargeTripByCardDto';
|
|
3
3
|
import type { ChargeTripByCashDto } from '../models/ChargeTripByCashDto';
|
|
4
|
+
import type { ChargeTripByPhysicalCardDto } from '../models/ChargeTripByPhysicalCardDto';
|
|
4
5
|
import type { ChargeTripByVoucherDto } from '../models/ChargeTripByVoucherDto';
|
|
5
6
|
import type { ChargeTripDto } from '../models/ChargeTripDto';
|
|
6
7
|
import type { DriverCreditsResponseDto } from '../models/DriverCreditsResponseDto';
|
|
@@ -82,4 +83,11 @@ export declare class DriverPaymentsService {
|
|
|
82
83
|
* @throws ApiError
|
|
83
84
|
*/
|
|
84
85
|
static inquireVoucherBalance(requestBody: InquireVoucherBalanceDto): CancelablePromise<InquireVoucherBalanceResponseDto>;
|
|
86
|
+
/**
|
|
87
|
+
* Charge trip by physical card - swipe or insert
|
|
88
|
+
* @param requestBody
|
|
89
|
+
* @returns MessageResponseDto Charge successful
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
static chargeTripByPhysicalCard(requestBody: ChargeTripByPhysicalCardDto): CancelablePromise<MessageResponseDto>;
|
|
85
93
|
}
|
|
@@ -178,5 +178,23 @@ class DriverPaymentsService {
|
|
|
178
178
|
},
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Charge trip by physical card - swipe or insert
|
|
183
|
+
* @param requestBody
|
|
184
|
+
* @returns MessageResponseDto Charge successful
|
|
185
|
+
* @throws ApiError
|
|
186
|
+
*/
|
|
187
|
+
static chargeTripByPhysicalCard(requestBody) {
|
|
188
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
189
|
+
method: 'POST',
|
|
190
|
+
url: '/drivers/payments/charge-trip/physical-card',
|
|
191
|
+
body: requestBody,
|
|
192
|
+
mediaType: 'application/json',
|
|
193
|
+
errors: {
|
|
194
|
+
400: `Charge failed or trip already charged`,
|
|
195
|
+
404: `Trip not found`,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
}
|
|
181
199
|
}
|
|
182
200
|
exports.DriverPaymentsService = DriverPaymentsService;
|