@dapex-tech/elite-online-services 0.0.17 → 0.0.20
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/createClient.d.ts +4 -0
- package/models/AddDriverCreditsByCardDto.d.ts +11 -0
- package/models/AddDriverCreditsByCardDto.js +2 -0
- package/models/AddDriverCreditsByCashDto.d.ts +6 -0
- package/models/AddDriverCreditsByCashDto.js +2 -0
- package/models/AddPaymentMethodDto.d.ts +29 -1
- package/models/AdminSearchCustomersResponseDto.d.ts +8 -0
- package/models/AdminSearchCustomersResponseDto.js +2 -0
- package/models/CardDataDto.d.ts +42 -0
- package/models/CardDataDto.js +2 -0
- package/models/ChargeTripByCardDto.d.ts +28 -0
- package/models/ChargeTripByCardResponseDto.d.ts +26 -0
- package/models/ChargeTripByCardResponseDto.js +2 -0
- package/models/ChargeTripByCashResponseDto.d.ts +6 -0
- package/models/ChargeTripByCashResponseDto.js +2 -0
- package/models/ChargeTripByVoucherDto.d.ts +14 -0
- package/models/ChargeTripByVoucherDto.js +2 -0
- package/models/CustomerLocationCreateDto.d.ts +19 -0
- package/models/CustomerLocationCreateDto.js +18 -0
- package/models/CustomerLocationDto.d.ts +19 -0
- package/models/CustomerLocationDto.js +18 -0
- package/models/CustomerLocationUpdateDto.d.ts +19 -0
- package/models/CustomerLocationUpdateDto.js +18 -0
- package/models/DriverCreateDto.d.ts +4 -0
- package/models/DriverCreditsResponseDto.d.ts +18 -0
- package/models/DriverCreditsResponseDto.js +2 -0
- package/models/DriverDto.d.ts +8 -0
- package/models/DriverLoginResponseDto.d.ts +8 -0
- package/models/DriverPaymentMethodResponseDto.d.ts +38 -0
- package/models/DriverPaymentMethodResponseDto.js +2 -0
- package/models/DriverUpdateDto.d.ts +4 -0
- package/models/InquireVoucherBalanceDto.d.ts +6 -0
- package/models/InquireVoucherBalanceDto.js +2 -0
- package/models/InquireVoucherBalanceResponseDto.d.ts +42 -0
- package/models/InquireVoucherBalanceResponseDto.js +2 -0
- package/models/PaymentMethodResponseDto.d.ts +38 -0
- package/models/PaymentMethodResponseDto.js +2 -0
- package/models/PurchaseDriverCreditsDto.d.ts +10 -0
- package/models/PurchaseDriverCreditsDto.js +2 -0
- package/models/SectionContentCreateDto.d.ts +27 -0
- package/models/SectionContentCreateDto.js +14 -0
- package/models/SectionContentDto.d.ts +35 -0
- package/models/SectionContentDto.js +14 -0
- package/models/SectionContentUpdateDto.d.ts +27 -0
- package/models/SectionContentUpdateDto.js +14 -0
- package/models/SeniorCenterDto.d.ts +30 -0
- package/models/SeniorCenterDto.js +2 -0
- package/models/TripDto.d.ts +76 -4
- package/models/TripDto.js +30 -0
- package/models/TripStatuses.d.ts +1 -0
- package/models/TripStatuses.js +1 -0
- package/models/TripUpdateDto.d.ts +10 -1
- package/models/TripUpdateDto.js +1 -0
- package/models/TripUpdateTripsStatusDto.d.ts +1 -0
- package/models/TripUpdateTripsStatusDto.js +1 -0
- package/models/VehicleCreateDto.d.ts +50 -0
- package/models/VehicleCreateDto.js +2 -0
- package/models/VehicleDto.d.ts +58 -0
- package/models/VehicleDto.js +2 -0
- package/models/VehicleUpdateDto.d.ts +50 -0
- package/models/VehicleUpdateDto.js +2 -0
- package/models/VoucherDriverCreateDto.d.ts +54 -0
- package/models/VoucherDriverCreateDto.js +2 -0
- package/models/index.d.ts +21 -1
- package/models/index.js +21 -1
- package/package.json +1 -1
- package/services/AdminDriversService.d.ts +3 -1
- package/services/AdminDriversService.js +4 -1
- package/services/AdminPaymentsService.d.ts +22 -0
- package/services/AdminPaymentsService.js +52 -0
- package/services/AdminSectionContentService.d.ts +46 -0
- package/services/AdminSectionContentService.js +89 -0
- package/services/AdminService.d.ts +12 -5
- package/services/AdminService.js +14 -3
- package/services/AdminVehicleService.d.ts +46 -0
- package/services/AdminVehicleService.js +89 -0
- package/services/CustomerPaymentsService.d.ts +11 -10
- package/services/CustomerPaymentsService.js +5 -5
- package/services/CustomerSectionContentsService.d.ts +30 -0
- package/services/CustomerSectionContentsService.js +60 -0
- package/services/DriverPaymentsService.d.ts +56 -0
- package/services/DriverPaymentsService.js +118 -0
- package/services/DriverTripsService.d.ts +10 -0
- package/services/DriverTripsService.js +18 -0
- package/services/PaymentsService.d.ts +19 -16
- package/services/PaymentsService.js +8 -8
- package/services/index.d.ts +4 -0
- package/services/index.js +4 -0
- package/types/realtime/driver-status.d.ts +2 -2
- package/models/SearchCustomerDto.d.ts +0 -41
- package/models/SearchCustomerDto.js +0 -11
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerSectionContentsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class CustomerSectionContentsService {
|
|
7
|
+
/**
|
|
8
|
+
* Get section contents by type
|
|
9
|
+
* @returns SectionContentDto List of legal section contents, ordered by position ASC
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static findLegal() {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/customers/section-contents/legal',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get Legal section content by ID
|
|
20
|
+
* @param id
|
|
21
|
+
* @returns SectionContentDto Section content found
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static findLegalById(id) {
|
|
25
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '/customers/section-contents/legal/{id}',
|
|
28
|
+
path: {
|
|
29
|
+
'id': id,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get Help section contents
|
|
35
|
+
* @returns SectionContentDto List of help section contents
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static findHelp() {
|
|
39
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/customers/section-contents/help',
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get Help section content by ID
|
|
46
|
+
* @param id
|
|
47
|
+
* @returns SectionContentDto Section content found
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static findHelpById(id) {
|
|
51
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: '/customers/section-contents/help/{id}',
|
|
54
|
+
path: {
|
|
55
|
+
'id': id,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.CustomerSectionContentsService = CustomerSectionContentsService;
|
|
@@ -1,9 +1,51 @@
|
|
|
1
|
+
import type { AddPaymentMethodDto } from '../models/AddPaymentMethodDto';
|
|
1
2
|
import type { ChargeTripByCardDto } from '../models/ChargeTripByCardDto';
|
|
2
3
|
import type { ChargeTripByCashDto } from '../models/ChargeTripByCashDto';
|
|
4
|
+
import type { ChargeTripByVoucherDto } from '../models/ChargeTripByVoucherDto';
|
|
3
5
|
import type { ChargeTripDto } from '../models/ChargeTripDto';
|
|
6
|
+
import type { DriverCreditsResponseDto } from '../models/DriverCreditsResponseDto';
|
|
7
|
+
import type { DriverPaymentMethodResponseDto } from '../models/DriverPaymentMethodResponseDto';
|
|
8
|
+
import type { InquireVoucherBalanceDto } from '../models/InquireVoucherBalanceDto';
|
|
9
|
+
import type { InquireVoucherBalanceResponseDto } from '../models/InquireVoucherBalanceResponseDto';
|
|
4
10
|
import type { MessageResponseDto } from '../models/MessageResponseDto';
|
|
11
|
+
import type { PurchaseDriverCreditsDto } from '../models/PurchaseDriverCreditsDto';
|
|
5
12
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
13
|
export declare class DriverPaymentsService {
|
|
14
|
+
/**
|
|
15
|
+
* Add a payment method (external drivers only)
|
|
16
|
+
* @param requestBody
|
|
17
|
+
* @returns DriverPaymentMethodResponseDto Payment method added successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static addPaymentMethod(requestBody: AddPaymentMethodDto): CancelablePromise<DriverPaymentMethodResponseDto>;
|
|
21
|
+
/**
|
|
22
|
+
* List payment methods (external drivers only)
|
|
23
|
+
* @returns DriverPaymentMethodResponseDto List of payment methods
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static listPaymentMethods(): CancelablePromise<Array<DriverPaymentMethodResponseDto>>;
|
|
27
|
+
/**
|
|
28
|
+
* Set default payment method
|
|
29
|
+
* @param id
|
|
30
|
+
* @returns DriverPaymentMethodResponseDto Default payment method updated
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static setDefaultPaymentMethod(id: number): CancelablePromise<DriverPaymentMethodResponseDto>;
|
|
34
|
+
/**
|
|
35
|
+
* Remove payment method
|
|
36
|
+
* @param id
|
|
37
|
+
* @returns DriverPaymentMethodResponseDto Payment method removed
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static removePaymentMethod(id: number): CancelablePromise<DriverPaymentMethodResponseDto>;
|
|
41
|
+
/**
|
|
42
|
+
* Purchase credits using a registered payment method
|
|
43
|
+
* Charges the given payment method; amount = credits × EXTERNAL_DRIVER_CREDIT_COST (external drivers only).
|
|
44
|
+
* @param requestBody
|
|
45
|
+
* @returns DriverCreditsResponseDto Credits purchased successfully
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static purchaseCredits(requestBody: PurchaseDriverCreditsDto): CancelablePromise<DriverCreditsResponseDto>;
|
|
7
49
|
/**
|
|
8
50
|
* Charge trip by cash
|
|
9
51
|
* @param requestBody
|
|
@@ -26,4 +68,18 @@ export declare class DriverPaymentsService {
|
|
|
26
68
|
* @throws ApiError
|
|
27
69
|
*/
|
|
28
70
|
static chargeTripByCard(requestBody: ChargeTripByCardDto): CancelablePromise<MessageResponseDto>;
|
|
71
|
+
/**
|
|
72
|
+
* Charge trip by voucher
|
|
73
|
+
* @param requestBody
|
|
74
|
+
* @returns MessageResponseDto Voucher charge successful
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static chargeTripByVoucher(requestBody: ChargeTripByVoucherDto): CancelablePromise<MessageResponseDto>;
|
|
78
|
+
/**
|
|
79
|
+
* Inquire voucher balance for a trip
|
|
80
|
+
* @param requestBody
|
|
81
|
+
* @returns InquireVoucherBalanceResponseDto Voucher balance inquiry response
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static inquireVoucherBalance(requestBody: InquireVoucherBalanceDto): CancelablePromise<InquireVoucherBalanceResponseDto>;
|
|
29
85
|
}
|
|
@@ -4,6 +4,88 @@ exports.DriverPaymentsService = void 0;
|
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class DriverPaymentsService {
|
|
7
|
+
/**
|
|
8
|
+
* Add a payment method (external drivers only)
|
|
9
|
+
* @param requestBody
|
|
10
|
+
* @returns DriverPaymentMethodResponseDto Payment method added successfully
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static addPaymentMethod(requestBody) {
|
|
14
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: '/drivers/payments',
|
|
17
|
+
body: requestBody,
|
|
18
|
+
mediaType: 'application/json',
|
|
19
|
+
errors: {
|
|
20
|
+
400: `Invalid card data or driver is not external`,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List payment methods (external drivers only)
|
|
26
|
+
* @returns DriverPaymentMethodResponseDto List of payment methods
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static listPaymentMethods() {
|
|
30
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
31
|
+
method: 'GET',
|
|
32
|
+
url: '/drivers/payments',
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Set default payment method
|
|
37
|
+
* @param id
|
|
38
|
+
* @returns DriverPaymentMethodResponseDto Default payment method updated
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static setDefaultPaymentMethod(id) {
|
|
42
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
43
|
+
method: 'PATCH',
|
|
44
|
+
url: '/drivers/payments/{id}/default',
|
|
45
|
+
path: {
|
|
46
|
+
'id': id,
|
|
47
|
+
},
|
|
48
|
+
errors: {
|
|
49
|
+
404: `Payment method not found`,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Remove payment method
|
|
55
|
+
* @param id
|
|
56
|
+
* @returns DriverPaymentMethodResponseDto Payment method removed
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static removePaymentMethod(id) {
|
|
60
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
61
|
+
method: 'DELETE',
|
|
62
|
+
url: '/drivers/payments/{id}',
|
|
63
|
+
path: {
|
|
64
|
+
'id': id,
|
|
65
|
+
},
|
|
66
|
+
errors: {
|
|
67
|
+
404: `Payment method not found`,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Purchase credits using a registered payment method
|
|
73
|
+
* Charges the given payment method; amount = credits × EXTERNAL_DRIVER_CREDIT_COST (external drivers only).
|
|
74
|
+
* @param requestBody
|
|
75
|
+
* @returns DriverCreditsResponseDto Credits purchased successfully
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static purchaseCredits(requestBody) {
|
|
79
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
url: '/drivers/payments/purchase-credits',
|
|
82
|
+
body: requestBody,
|
|
83
|
+
mediaType: 'application/json',
|
|
84
|
+
errors: {
|
|
85
|
+
404: `Driver or payment method not found`,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
7
89
|
/**
|
|
8
90
|
* Charge trip by cash
|
|
9
91
|
* @param requestBody
|
|
@@ -59,5 +141,41 @@ class DriverPaymentsService {
|
|
|
59
141
|
},
|
|
60
142
|
});
|
|
61
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Charge trip by voucher
|
|
146
|
+
* @param requestBody
|
|
147
|
+
* @returns MessageResponseDto Voucher charge successful
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static chargeTripByVoucher(requestBody) {
|
|
151
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: '/drivers/payments/charge-trip/voucher',
|
|
154
|
+
body: requestBody,
|
|
155
|
+
mediaType: 'application/json',
|
|
156
|
+
errors: {
|
|
157
|
+
400: `Trip already charged, invalid amount, trip has no voucher, or voucher declined`,
|
|
158
|
+
404: `Trip not found`,
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Inquire voucher balance for a trip
|
|
164
|
+
* @param requestBody
|
|
165
|
+
* @returns InquireVoucherBalanceResponseDto Voucher balance inquiry response
|
|
166
|
+
* @throws ApiError
|
|
167
|
+
*/
|
|
168
|
+
static inquireVoucherBalance(requestBody) {
|
|
169
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
170
|
+
method: 'POST',
|
|
171
|
+
url: '/drivers/payments/voucher-balance',
|
|
172
|
+
body: requestBody,
|
|
173
|
+
mediaType: 'application/json',
|
|
174
|
+
errors: {
|
|
175
|
+
400: `Invalid voucher inquiry request or trip has no voucher`,
|
|
176
|
+
404: `Trip not found`,
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
}
|
|
62
180
|
}
|
|
63
181
|
exports.DriverPaymentsService = DriverPaymentsService;
|
|
@@ -2,6 +2,8 @@ import type { DriverTripActions } from '../models/DriverTripActions';
|
|
|
2
2
|
import type { OrderDto } from '../models/OrderDto';
|
|
3
3
|
import type { TripDto } from '../models/TripDto';
|
|
4
4
|
import type { TripUpdateDto } from '../models/TripUpdateDto';
|
|
5
|
+
import type { VoucherDriverCreateDto } from '../models/VoucherDriverCreateDto';
|
|
6
|
+
import type { VoucherDto } from '../models/VoucherDto';
|
|
5
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
8
|
export declare class DriverTripsService {
|
|
7
9
|
/**
|
|
@@ -42,6 +44,14 @@ export declare class DriverTripsService {
|
|
|
42
44
|
* @throws ApiError
|
|
43
45
|
*/
|
|
44
46
|
static getActiveTrip(): CancelablePromise<TripDto>;
|
|
47
|
+
/**
|
|
48
|
+
* Create voucher for trip (new senior not yet reported by city)
|
|
49
|
+
* @param id Trip ID
|
|
50
|
+
* @param requestBody
|
|
51
|
+
* @returns VoucherDto Voucher created and assigned to trip.
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
static createVoucher(id: number, requestBody: VoucherDriverCreateDto): CancelablePromise<VoucherDto>;
|
|
45
55
|
/**
|
|
46
56
|
* Execute an action on a trip
|
|
47
57
|
* @param id Trip ID
|
|
@@ -83,6 +83,24 @@ class DriverTripsService {
|
|
|
83
83
|
url: '/drivers/trips/active',
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Create voucher for trip (new senior not yet reported by city)
|
|
88
|
+
* @param id Trip ID
|
|
89
|
+
* @param requestBody
|
|
90
|
+
* @returns VoucherDto Voucher created and assigned to trip.
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
static createVoucher(id, requestBody) {
|
|
94
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
95
|
+
method: 'POST',
|
|
96
|
+
url: '/drivers/trips/{id}/voucher',
|
|
97
|
+
path: {
|
|
98
|
+
'id': id,
|
|
99
|
+
},
|
|
100
|
+
body: requestBody,
|
|
101
|
+
mediaType: 'application/json',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
86
104
|
/**
|
|
87
105
|
* Execute an action on a trip
|
|
88
106
|
* @param id Trip ID
|
|
@@ -1,64 +1,67 @@
|
|
|
1
1
|
import type { AddPaymentMethodDto } from '../models/AddPaymentMethodDto';
|
|
2
2
|
import type { ChargeTripByCardDto } from '../models/ChargeTripByCardDto';
|
|
3
|
+
import type { ChargeTripByCardResponseDto } from '../models/ChargeTripByCardResponseDto';
|
|
3
4
|
import type { ChargeTripByCashDto } from '../models/ChargeTripByCashDto';
|
|
5
|
+
import type { ChargeTripByCashResponseDto } from '../models/ChargeTripByCashResponseDto';
|
|
4
6
|
import type { ChargeTripDto } from '../models/ChargeTripDto';
|
|
7
|
+
import type { PaymentMethodResponseDto } from '../models/PaymentMethodResponseDto';
|
|
5
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
9
|
export declare class PaymentsService {
|
|
7
10
|
/**
|
|
8
11
|
* Add a payment method
|
|
9
12
|
* @param requestBody
|
|
10
|
-
* @returns
|
|
13
|
+
* @returns PaymentMethodResponseDto Payment method added successfully
|
|
11
14
|
* @throws ApiError
|
|
12
15
|
*/
|
|
13
|
-
static addPaymentMethod(requestBody: AddPaymentMethodDto): CancelablePromise<
|
|
16
|
+
static addPaymentMethod(requestBody: AddPaymentMethodDto): CancelablePromise<PaymentMethodResponseDto>;
|
|
14
17
|
/**
|
|
15
18
|
* List payment methods
|
|
16
|
-
* @returns
|
|
19
|
+
* @returns PaymentMethodResponseDto List of payment methods
|
|
17
20
|
* @throws ApiError
|
|
18
21
|
*/
|
|
19
|
-
static listPaymentMethods(): CancelablePromise<
|
|
22
|
+
static listPaymentMethods(): CancelablePromise<Array<PaymentMethodResponseDto>>;
|
|
20
23
|
/**
|
|
21
24
|
* Update a payment method
|
|
22
25
|
* @param id
|
|
23
26
|
* @param requestBody
|
|
24
|
-
* @returns
|
|
27
|
+
* @returns PaymentMethodResponseDto Payment method updated successfully
|
|
25
28
|
* @throws ApiError
|
|
26
29
|
*/
|
|
27
|
-
static updatePaymentMethod(id: number, requestBody: AddPaymentMethodDto): CancelablePromise<
|
|
30
|
+
static updatePaymentMethod(id: number, requestBody: AddPaymentMethodDto): CancelablePromise<PaymentMethodResponseDto>;
|
|
28
31
|
/**
|
|
29
32
|
* Remove payment method
|
|
30
33
|
* @param id
|
|
31
|
-
* @returns
|
|
34
|
+
* @returns PaymentMethodResponseDto Payment method removed
|
|
32
35
|
* @throws ApiError
|
|
33
36
|
*/
|
|
34
|
-
static removePaymentMethod(id: number): CancelablePromise<
|
|
37
|
+
static removePaymentMethod(id: number): CancelablePromise<PaymentMethodResponseDto>;
|
|
35
38
|
/**
|
|
36
39
|
* Set default payment method
|
|
37
40
|
* @param id
|
|
38
|
-
* @returns
|
|
41
|
+
* @returns PaymentMethodResponseDto Default payment method updated
|
|
39
42
|
* @throws ApiError
|
|
40
43
|
*/
|
|
41
|
-
static setDefaultPaymentMethod(id: number): CancelablePromise<
|
|
44
|
+
static setDefaultPaymentMethod(id: number): CancelablePromise<PaymentMethodResponseDto>;
|
|
42
45
|
/**
|
|
43
46
|
* Charge trip by cash
|
|
44
47
|
* @param requestBody
|
|
45
|
-
* @returns
|
|
48
|
+
* @returns ChargeTripByCashResponseDto Payment recorded successfully
|
|
46
49
|
* @throws ApiError
|
|
47
50
|
*/
|
|
48
|
-
static chargeTripByCash(requestBody: ChargeTripByCashDto): CancelablePromise<
|
|
51
|
+
static chargeTripByCash(requestBody: ChargeTripByCashDto): CancelablePromise<ChargeTripByCashResponseDto>;
|
|
49
52
|
/**
|
|
50
53
|
* Charge trip by saved payment method
|
|
51
54
|
* Charges the trip using the payment method set on the trip. The trip must have paymentType=DEBIT_CREDIT_CARD and customerPaymentMethodId set.
|
|
52
55
|
* @param requestBody
|
|
53
|
-
* @returns
|
|
56
|
+
* @returns ChargeTripByCardResponseDto Charge successful
|
|
54
57
|
* @throws ApiError
|
|
55
58
|
*/
|
|
56
|
-
static chargeTripByPaymentMethod(requestBody: ChargeTripDto): CancelablePromise<
|
|
59
|
+
static chargeTripByPaymentMethod(requestBody: ChargeTripDto): CancelablePromise<ChargeTripByCardResponseDto>;
|
|
57
60
|
/**
|
|
58
61
|
* Charge trip by card data
|
|
59
62
|
* @param requestBody
|
|
60
|
-
* @returns
|
|
63
|
+
* @returns ChargeTripByCardResponseDto Charge successful
|
|
61
64
|
* @throws ApiError
|
|
62
65
|
*/
|
|
63
|
-
static chargeTripByCard(requestBody: ChargeTripByCardDto): CancelablePromise<
|
|
66
|
+
static chargeTripByCard(requestBody: ChargeTripByCardDto): CancelablePromise<ChargeTripByCardResponseDto>;
|
|
64
67
|
}
|
|
@@ -7,7 +7,7 @@ class PaymentsService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Add a payment method
|
|
9
9
|
* @param requestBody
|
|
10
|
-
* @returns
|
|
10
|
+
* @returns PaymentMethodResponseDto Payment method added successfully
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
13
|
static addPaymentMethod(requestBody) {
|
|
@@ -23,7 +23,7 @@ class PaymentsService {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* List payment methods
|
|
26
|
-
* @returns
|
|
26
|
+
* @returns PaymentMethodResponseDto List of payment methods
|
|
27
27
|
* @throws ApiError
|
|
28
28
|
*/
|
|
29
29
|
static listPaymentMethods() {
|
|
@@ -36,7 +36,7 @@ class PaymentsService {
|
|
|
36
36
|
* Update a payment method
|
|
37
37
|
* @param id
|
|
38
38
|
* @param requestBody
|
|
39
|
-
* @returns
|
|
39
|
+
* @returns PaymentMethodResponseDto Payment method updated successfully
|
|
40
40
|
* @throws ApiError
|
|
41
41
|
*/
|
|
42
42
|
static updatePaymentMethod(id, requestBody) {
|
|
@@ -57,7 +57,7 @@ class PaymentsService {
|
|
|
57
57
|
/**
|
|
58
58
|
* Remove payment method
|
|
59
59
|
* @param id
|
|
60
|
-
* @returns
|
|
60
|
+
* @returns PaymentMethodResponseDto Payment method removed
|
|
61
61
|
* @throws ApiError
|
|
62
62
|
*/
|
|
63
63
|
static removePaymentMethod(id) {
|
|
@@ -75,7 +75,7 @@ class PaymentsService {
|
|
|
75
75
|
/**
|
|
76
76
|
* Set default payment method
|
|
77
77
|
* @param id
|
|
78
|
-
* @returns
|
|
78
|
+
* @returns PaymentMethodResponseDto Default payment method updated
|
|
79
79
|
* @throws ApiError
|
|
80
80
|
*/
|
|
81
81
|
static setDefaultPaymentMethod(id) {
|
|
@@ -93,7 +93,7 @@ class PaymentsService {
|
|
|
93
93
|
/**
|
|
94
94
|
* Charge trip by cash
|
|
95
95
|
* @param requestBody
|
|
96
|
-
* @returns
|
|
96
|
+
* @returns ChargeTripByCashResponseDto Payment recorded successfully
|
|
97
97
|
* @throws ApiError
|
|
98
98
|
*/
|
|
99
99
|
static chargeTripByCash(requestBody) {
|
|
@@ -112,7 +112,7 @@ class PaymentsService {
|
|
|
112
112
|
* Charge trip by saved payment method
|
|
113
113
|
* Charges the trip using the payment method set on the trip. The trip must have paymentType=DEBIT_CREDIT_CARD and customerPaymentMethodId set.
|
|
114
114
|
* @param requestBody
|
|
115
|
-
* @returns
|
|
115
|
+
* @returns ChargeTripByCardResponseDto Charge successful
|
|
116
116
|
* @throws ApiError
|
|
117
117
|
*/
|
|
118
118
|
static chargeTripByPaymentMethod(requestBody) {
|
|
@@ -130,7 +130,7 @@ class PaymentsService {
|
|
|
130
130
|
/**
|
|
131
131
|
* Charge trip by card data
|
|
132
132
|
* @param requestBody
|
|
133
|
-
* @returns
|
|
133
|
+
* @returns ChargeTripByCardResponseDto Charge successful
|
|
134
134
|
* @throws ApiError
|
|
135
135
|
*/
|
|
136
136
|
static chargeTripByCard(requestBody) {
|
package/services/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export * from './AdminAuthService';
|
|
2
2
|
export * from './AdminCustomerService';
|
|
3
3
|
export * from './AdminDriversService';
|
|
4
|
+
export * from './AdminPaymentsService';
|
|
5
|
+
export * from './AdminSectionContentService';
|
|
4
6
|
export * from './AdminService';
|
|
5
7
|
export * from './AdminSettingsService';
|
|
6
8
|
export * from './AdminTripsService';
|
|
9
|
+
export * from './AdminVehicleService';
|
|
7
10
|
export * from './AdminVouchersService';
|
|
8
11
|
export * from './CustomerLocationsService';
|
|
9
12
|
export * from './CustomerPaymentsService';
|
|
13
|
+
export * from './CustomerSectionContentsService';
|
|
10
14
|
export * from './CustomerSettingsService';
|
|
11
15
|
export * from './CustomerTripsService';
|
|
12
16
|
export * from './CustomersAuthService';
|
package/services/index.js
CHANGED
|
@@ -17,12 +17,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AdminAuthService"), exports);
|
|
18
18
|
__exportStar(require("./AdminCustomerService"), exports);
|
|
19
19
|
__exportStar(require("./AdminDriversService"), exports);
|
|
20
|
+
__exportStar(require("./AdminPaymentsService"), exports);
|
|
21
|
+
__exportStar(require("./AdminSectionContentService"), exports);
|
|
20
22
|
__exportStar(require("./AdminService"), exports);
|
|
21
23
|
__exportStar(require("./AdminSettingsService"), exports);
|
|
22
24
|
__exportStar(require("./AdminTripsService"), exports);
|
|
25
|
+
__exportStar(require("./AdminVehicleService"), exports);
|
|
23
26
|
__exportStar(require("./AdminVouchersService"), exports);
|
|
24
27
|
__exportStar(require("./CustomerLocationsService"), exports);
|
|
25
28
|
__exportStar(require("./CustomerPaymentsService"), exports);
|
|
29
|
+
__exportStar(require("./CustomerSectionContentsService"), exports);
|
|
26
30
|
__exportStar(require("./CustomerSettingsService"), exports);
|
|
27
31
|
__exportStar(require("./CustomerTripsService"), exports);
|
|
28
32
|
__exportStar(require("./CustomersAuthService"), exports);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export type SearchCustomerDto = {
|
|
2
|
-
/**
|
|
3
|
-
* Composed unique id: `${customerType}:${sourceId}`
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
|
-
customerType: SearchCustomerDto.customerType;
|
|
7
|
-
/**
|
|
8
|
-
* Present only for manual customers
|
|
9
|
-
*/
|
|
10
|
-
manualCustomerId?: number;
|
|
11
|
-
/**
|
|
12
|
-
* Present only for senior vouchers
|
|
13
|
-
*/
|
|
14
|
-
voucherId?: number;
|
|
15
|
-
firstName?: string;
|
|
16
|
-
lastName?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Phone number. Manual customers use `phone` (digits) and may include `phoneCountryCode`; vouchers use `riderPhone` mapped into `phone`.
|
|
19
|
-
*/
|
|
20
|
-
phone?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Manual customer phone country code (if available)
|
|
23
|
-
*/
|
|
24
|
-
phoneCountryCode?: string;
|
|
25
|
-
email?: string;
|
|
26
|
-
address?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Created at timestamp
|
|
29
|
-
*/
|
|
30
|
-
createdAt?: string;
|
|
31
|
-
cardNumber?: string;
|
|
32
|
-
program?: string;
|
|
33
|
-
seniorCenter?: string;
|
|
34
|
-
status?: string;
|
|
35
|
-
};
|
|
36
|
-
export declare namespace SearchCustomerDto {
|
|
37
|
-
enum customerType {
|
|
38
|
-
MANUAL_CUSTOMER = "MANUAL_CUSTOMER",
|
|
39
|
-
SENIOR_VOUCHER = "SENIOR_VOUCHER"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchCustomerDto = void 0;
|
|
4
|
-
var SearchCustomerDto;
|
|
5
|
-
(function (SearchCustomerDto) {
|
|
6
|
-
let customerType;
|
|
7
|
-
(function (customerType) {
|
|
8
|
-
customerType["MANUAL_CUSTOMER"] = "MANUAL_CUSTOMER";
|
|
9
|
-
customerType["SENIOR_VOUCHER"] = "SENIOR_VOUCHER";
|
|
10
|
-
})(customerType = SearchCustomerDto.customerType || (SearchCustomerDto.customerType = {}));
|
|
11
|
-
})(SearchCustomerDto || (exports.SearchCustomerDto = SearchCustomerDto = {}));
|