@dapex-tech/elite-online-services 0.0.16 → 0.0.18
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 +10 -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 +46 -0
- package/models/AddPaymentMethodDto.js +2 -0
- 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 +50 -0
- package/models/ChargeTripByCardDto.js +2 -0
- package/models/ChargeTripByCardResponseDto.d.ts +26 -0
- package/models/ChargeTripByCardResponseDto.js +2 -0
- package/models/ChargeTripByCashDto.d.ts +10 -0
- package/models/ChargeTripByCashDto.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/ChargeTripDto.d.ts +10 -0
- package/models/ChargeTripDto.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/DriverCreditsResponseDto.d.ts +18 -0
- package/models/DriverCreditsResponseDto.js +2 -0
- package/models/DriverDto.d.ts +4 -0
- package/models/DriverLoginResponseDto.d.ts +4 -0
- package/models/DriverPaymentMethodResponseDto.d.ts +38 -0
- package/models/DriverPaymentMethodResponseDto.js +2 -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/PaymentDto.d.ts +8 -4
- 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 +75 -4
- package/models/TripDto.js +38 -0
- package/models/TripStatuses.d.ts +1 -0
- package/models/TripStatuses.js +1 -0
- package/models/TripUpdateDto.d.ts +22 -0
- package/models/TripUpdateDto.js +13 -0
- package/models/TripUpdateTripsStatusDto.d.ts +1 -0
- package/models/TripUpdateTripsStatusDto.js +1 -0
- package/models/VoucherDriverCreateDto.d.ts +54 -0
- package/models/VoucherDriverCreateDto.js +2 -0
- package/models/index.d.ts +22 -0
- package/models/index.js +22 -0
- 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 +16 -0
- package/services/AdminService.js +28 -0
- package/services/AdminSettingsService.d.ts +9 -0
- package/services/AdminSettingsService.js +19 -0
- package/services/AdminTripsService.d.ts +9 -0
- package/services/AdminTripsService.js +19 -0
- package/services/AdminVouchersService.d.ts +61 -0
- package/services/AdminVouchersService.js +116 -0
- package/services/CustomerPaymentsService.d.ts +66 -0
- package/services/CustomerPaymentsService.js +149 -0
- package/services/CustomerSectionContentsService.d.ts +17 -0
- package/services/CustomerSectionContentsService.js +34 -0
- package/services/CustomerSettingsService.d.ts +9 -0
- package/services/CustomerSettingsService.js +19 -0
- package/services/DriverPaymentsService.d.ts +85 -0
- package/services/DriverPaymentsService.js +181 -0
- package/services/DriverSettingsService.d.ts +9 -0
- package/services/DriverSettingsService.js +19 -0
- package/services/DriverTripsService.d.ts +10 -0
- package/services/DriverTripsService.js +18 -0
- package/services/PaymentsService.d.ts +67 -0
- package/services/PaymentsService.js +149 -0
- package/services/index.d.ts +10 -0
- package/services/index.js +10 -0
- package/types/realtime/active-trip.d.ts +2 -0
- package/types/realtime/driver-status.d.ts +3 -3
package/createClient.d.ts
CHANGED
|
@@ -6,17 +6,27 @@ export declare function createClient(baseUrl?: string): {
|
|
|
6
6
|
AdminAuthService: typeof services.AdminAuthService;
|
|
7
7
|
AdminCustomerService: typeof services.AdminCustomerService;
|
|
8
8
|
AdminDriversService: typeof services.AdminDriversService;
|
|
9
|
+
AdminPaymentsService: typeof services.AdminPaymentsService;
|
|
10
|
+
AdminSectionContentService: typeof services.AdminSectionContentService;
|
|
9
11
|
AdminService: typeof services.AdminService;
|
|
12
|
+
AdminSettingsService: typeof services.AdminSettingsService;
|
|
10
13
|
AdminTripsService: typeof services.AdminTripsService;
|
|
14
|
+
AdminVouchersService: typeof services.AdminVouchersService;
|
|
11
15
|
CustomerLocationsService: typeof services.CustomerLocationsService;
|
|
16
|
+
CustomerPaymentsService: typeof services.CustomerPaymentsService;
|
|
17
|
+
CustomerSectionContentsService: typeof services.CustomerSectionContentsService;
|
|
18
|
+
CustomerSettingsService: typeof services.CustomerSettingsService;
|
|
12
19
|
CustomerTripsService: typeof services.CustomerTripsService;
|
|
13
20
|
CustomersAuthService: typeof services.CustomersAuthService;
|
|
14
21
|
CustomersService: typeof services.CustomersService;
|
|
15
22
|
DriverAuthService: typeof services.DriverAuthService;
|
|
23
|
+
DriverPaymentsService: typeof services.DriverPaymentsService;
|
|
24
|
+
DriverSettingsService: typeof services.DriverSettingsService;
|
|
16
25
|
DriverTripsService: typeof services.DriverTripsService;
|
|
17
26
|
DriversService: typeof services.DriversService;
|
|
18
27
|
HealthService: typeof services.HealthService;
|
|
19
28
|
MainService: typeof services.MainService;
|
|
20
29
|
ManualCustomerService: typeof services.ManualCustomerService;
|
|
30
|
+
PaymentsService: typeof services.PaymentsService;
|
|
21
31
|
VoucherService: typeof services.VoucherService;
|
|
22
32
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type AddPaymentMethodDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Card number
|
|
4
|
+
*/
|
|
5
|
+
cardNumber: string;
|
|
6
|
+
/**
|
|
7
|
+
* Expiration date in MM/YY format
|
|
8
|
+
*/
|
|
9
|
+
expirationDate: string;
|
|
10
|
+
/**
|
|
11
|
+
* Card CVV
|
|
12
|
+
*/
|
|
13
|
+
cvv: string;
|
|
14
|
+
/**
|
|
15
|
+
* Billing first name
|
|
16
|
+
*/
|
|
17
|
+
firstName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Billing last name
|
|
20
|
+
*/
|
|
21
|
+
lastName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Billing address
|
|
24
|
+
*/
|
|
25
|
+
address?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Billing city
|
|
28
|
+
*/
|
|
29
|
+
city?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Billing country code
|
|
32
|
+
*/
|
|
33
|
+
country?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Billing ZIP/postal code (required for AVS)
|
|
36
|
+
*/
|
|
37
|
+
zip: string;
|
|
38
|
+
/**
|
|
39
|
+
* Billing state/province code
|
|
40
|
+
*/
|
|
41
|
+
state?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Set as default payment method
|
|
44
|
+
*/
|
|
45
|
+
isDefault?: boolean;
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CustomerDto } from './CustomerDto';
|
|
2
|
+
import type { ManualCustomerDto } from './ManualCustomerDto';
|
|
3
|
+
import type { VoucherDto } from './VoucherDto';
|
|
4
|
+
export type AdminSearchCustomersResponseDto = {
|
|
5
|
+
registeredCustomers: Array<CustomerDto>;
|
|
6
|
+
vouchers: Array<VoucherDto>;
|
|
7
|
+
manualCustomers: Array<ManualCustomerDto>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type CardDataDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Card number (Authorize.net sandbox Visa test card)
|
|
4
|
+
*/
|
|
5
|
+
cardNumber: string;
|
|
6
|
+
/**
|
|
7
|
+
* Expiration date in MM/YY
|
|
8
|
+
*/
|
|
9
|
+
expirationDate: string;
|
|
10
|
+
/**
|
|
11
|
+
* Card CVV (use 900 for successful CVV match in Authorize.net sandbox)
|
|
12
|
+
*/
|
|
13
|
+
cvv: string;
|
|
14
|
+
/**
|
|
15
|
+
* Billing first name
|
|
16
|
+
*/
|
|
17
|
+
firstName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Billing last name
|
|
20
|
+
*/
|
|
21
|
+
lastName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Billing address
|
|
24
|
+
*/
|
|
25
|
+
address?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Billing city
|
|
28
|
+
*/
|
|
29
|
+
city?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Billing country code
|
|
32
|
+
*/
|
|
33
|
+
country?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Billing ZIP/postal code (required for AVS)
|
|
36
|
+
*/
|
|
37
|
+
zip: string;
|
|
38
|
+
/**
|
|
39
|
+
* Billing state/province code
|
|
40
|
+
*/
|
|
41
|
+
state?: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type ChargeTripByCardDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Trip ID to charge
|
|
4
|
+
*/
|
|
5
|
+
tripId: number;
|
|
6
|
+
/**
|
|
7
|
+
* Amount to charge
|
|
8
|
+
*/
|
|
9
|
+
amount: number;
|
|
10
|
+
/**
|
|
11
|
+
* Card number
|
|
12
|
+
*/
|
|
13
|
+
cardNumber: string;
|
|
14
|
+
/**
|
|
15
|
+
* Expiration date in MM/YY
|
|
16
|
+
*/
|
|
17
|
+
expirationDate: string;
|
|
18
|
+
/**
|
|
19
|
+
* Card CVV
|
|
20
|
+
*/
|
|
21
|
+
cvv: string;
|
|
22
|
+
/**
|
|
23
|
+
* Billing first name (Authorize.Net billing/AVS)
|
|
24
|
+
*/
|
|
25
|
+
firstName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Billing last name (Authorize.Net billing/AVS)
|
|
28
|
+
*/
|
|
29
|
+
lastName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Billing address (Authorize.Net billing/AVS)
|
|
32
|
+
*/
|
|
33
|
+
address?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Billing city (Authorize.Net billing/AVS)
|
|
36
|
+
*/
|
|
37
|
+
city?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Billing country code (Authorize.Net billing/AVS)
|
|
40
|
+
*/
|
|
41
|
+
country?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Billing ZIP/postal code (Authorize.Net billing/AVS; required for US/CA)
|
|
44
|
+
*/
|
|
45
|
+
zip: string;
|
|
46
|
+
/**
|
|
47
|
+
* Billing state/province code (Authorize.Net billing/AVS)
|
|
48
|
+
*/
|
|
49
|
+
state?: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ChargeTripByCardResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the charge was successful
|
|
4
|
+
*/
|
|
5
|
+
success: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Created payment record ID when successful
|
|
8
|
+
*/
|
|
9
|
+
paymentId?: Record<string, any>;
|
|
10
|
+
/**
|
|
11
|
+
* Gateway transaction ID
|
|
12
|
+
*/
|
|
13
|
+
transactionId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gateway response code
|
|
16
|
+
*/
|
|
17
|
+
responseCode?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Gateway response message
|
|
20
|
+
*/
|
|
21
|
+
responseMessage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Mapped status: approved | declined | held | error
|
|
24
|
+
*/
|
|
25
|
+
status?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ChargeTripByVoucherDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Trip ID to charge
|
|
4
|
+
*/
|
|
5
|
+
tripId: number;
|
|
6
|
+
/**
|
|
7
|
+
* Amount to charge
|
|
8
|
+
*/
|
|
9
|
+
amount: number;
|
|
10
|
+
/**
|
|
11
|
+
* Voucher card number. If provided, the voucher is looked up and trip customer info is updated to match. If omitted, the trip must have voucherId set.
|
|
12
|
+
*/
|
|
13
|
+
voucherCardNumber?: string;
|
|
14
|
+
};
|
|
@@ -11,6 +11,10 @@ export type CustomerLocationCreateDto = {
|
|
|
11
11
|
* Location name
|
|
12
12
|
*/
|
|
13
13
|
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Location type (e.g. HOME, OFFICE)
|
|
16
|
+
*/
|
|
17
|
+
locationType?: CustomerLocationCreateDto.locationType;
|
|
14
18
|
/**
|
|
15
19
|
* Latitude
|
|
16
20
|
*/
|
|
@@ -24,3 +28,18 @@ export type CustomerLocationCreateDto = {
|
|
|
24
28
|
*/
|
|
25
29
|
address?: string;
|
|
26
30
|
};
|
|
31
|
+
export declare namespace CustomerLocationCreateDto {
|
|
32
|
+
/**
|
|
33
|
+
* Location type (e.g. HOME, OFFICE)
|
|
34
|
+
*/
|
|
35
|
+
enum locationType {
|
|
36
|
+
HOME = "HOME",
|
|
37
|
+
APARTMENT = "APARTMENT",
|
|
38
|
+
OFFICE = "OFFICE",
|
|
39
|
+
HOSPITAL = "HOSPITAL",
|
|
40
|
+
MALL = "MALL",
|
|
41
|
+
HOTEL = "HOTEL",
|
|
42
|
+
BUSINESS = "BUSINESS",
|
|
43
|
+
OTHER = "OTHER"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerLocationCreateDto = void 0;
|
|
4
|
+
var CustomerLocationCreateDto;
|
|
5
|
+
(function (CustomerLocationCreateDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Location type (e.g. HOME, OFFICE)
|
|
8
|
+
*/
|
|
9
|
+
let locationType;
|
|
10
|
+
(function (locationType) {
|
|
11
|
+
locationType["HOME"] = "HOME";
|
|
12
|
+
locationType["APARTMENT"] = "APARTMENT";
|
|
13
|
+
locationType["OFFICE"] = "OFFICE";
|
|
14
|
+
locationType["HOSPITAL"] = "HOSPITAL";
|
|
15
|
+
locationType["MALL"] = "MALL";
|
|
16
|
+
locationType["HOTEL"] = "HOTEL";
|
|
17
|
+
locationType["BUSINESS"] = "BUSINESS";
|
|
18
|
+
locationType["OTHER"] = "OTHER";
|
|
19
|
+
})(locationType = CustomerLocationCreateDto.locationType || (CustomerLocationCreateDto.locationType = {}));
|
|
20
|
+
})(CustomerLocationCreateDto || (exports.CustomerLocationCreateDto = CustomerLocationCreateDto = {}));
|
|
@@ -19,6 +19,10 @@ export type CustomerLocationDto = {
|
|
|
19
19
|
* Location name
|
|
20
20
|
*/
|
|
21
21
|
name?: Record<string, any> | null;
|
|
22
|
+
/**
|
|
23
|
+
* Location type (e.g. HOME, OFFICE)
|
|
24
|
+
*/
|
|
25
|
+
locationType?: CustomerLocationDto.locationType | null;
|
|
22
26
|
/**
|
|
23
27
|
* Latitude
|
|
24
28
|
*/
|
|
@@ -32,3 +36,18 @@ export type CustomerLocationDto = {
|
|
|
32
36
|
*/
|
|
33
37
|
address?: Record<string, any> | null;
|
|
34
38
|
};
|
|
39
|
+
export declare namespace CustomerLocationDto {
|
|
40
|
+
/**
|
|
41
|
+
* Location type (e.g. HOME, OFFICE)
|
|
42
|
+
*/
|
|
43
|
+
enum locationType {
|
|
44
|
+
HOME = "HOME",
|
|
45
|
+
APARTMENT = "APARTMENT",
|
|
46
|
+
OFFICE = "OFFICE",
|
|
47
|
+
HOSPITAL = "HOSPITAL",
|
|
48
|
+
MALL = "MALL",
|
|
49
|
+
HOTEL = "HOTEL",
|
|
50
|
+
BUSINESS = "BUSINESS",
|
|
51
|
+
OTHER = "OTHER"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerLocationDto = void 0;
|
|
4
|
+
var CustomerLocationDto;
|
|
5
|
+
(function (CustomerLocationDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Location type (e.g. HOME, OFFICE)
|
|
8
|
+
*/
|
|
9
|
+
let locationType;
|
|
10
|
+
(function (locationType) {
|
|
11
|
+
locationType["HOME"] = "HOME";
|
|
12
|
+
locationType["APARTMENT"] = "APARTMENT";
|
|
13
|
+
locationType["OFFICE"] = "OFFICE";
|
|
14
|
+
locationType["HOSPITAL"] = "HOSPITAL";
|
|
15
|
+
locationType["MALL"] = "MALL";
|
|
16
|
+
locationType["HOTEL"] = "HOTEL";
|
|
17
|
+
locationType["BUSINESS"] = "BUSINESS";
|
|
18
|
+
locationType["OTHER"] = "OTHER";
|
|
19
|
+
})(locationType = CustomerLocationDto.locationType || (CustomerLocationDto.locationType = {}));
|
|
20
|
+
})(CustomerLocationDto || (exports.CustomerLocationDto = CustomerLocationDto = {}));
|
|
@@ -11,6 +11,10 @@ export type CustomerLocationUpdateDto = {
|
|
|
11
11
|
* Location name
|
|
12
12
|
*/
|
|
13
13
|
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Location type (e.g. HOME, OFFICE)
|
|
16
|
+
*/
|
|
17
|
+
locationType?: CustomerLocationUpdateDto.locationType;
|
|
14
18
|
/**
|
|
15
19
|
* Latitude
|
|
16
20
|
*/
|
|
@@ -24,3 +28,18 @@ export type CustomerLocationUpdateDto = {
|
|
|
24
28
|
*/
|
|
25
29
|
address?: string;
|
|
26
30
|
};
|
|
31
|
+
export declare namespace CustomerLocationUpdateDto {
|
|
32
|
+
/**
|
|
33
|
+
* Location type (e.g. HOME, OFFICE)
|
|
34
|
+
*/
|
|
35
|
+
enum locationType {
|
|
36
|
+
HOME = "HOME",
|
|
37
|
+
APARTMENT = "APARTMENT",
|
|
38
|
+
OFFICE = "OFFICE",
|
|
39
|
+
HOSPITAL = "HOSPITAL",
|
|
40
|
+
MALL = "MALL",
|
|
41
|
+
HOTEL = "HOTEL",
|
|
42
|
+
BUSINESS = "BUSINESS",
|
|
43
|
+
OTHER = "OTHER"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerLocationUpdateDto = void 0;
|
|
4
|
+
var CustomerLocationUpdateDto;
|
|
5
|
+
(function (CustomerLocationUpdateDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Location type (e.g. HOME, OFFICE)
|
|
8
|
+
*/
|
|
9
|
+
let locationType;
|
|
10
|
+
(function (locationType) {
|
|
11
|
+
locationType["HOME"] = "HOME";
|
|
12
|
+
locationType["APARTMENT"] = "APARTMENT";
|
|
13
|
+
locationType["OFFICE"] = "OFFICE";
|
|
14
|
+
locationType["HOSPITAL"] = "HOSPITAL";
|
|
15
|
+
locationType["MALL"] = "MALL";
|
|
16
|
+
locationType["HOTEL"] = "HOTEL";
|
|
17
|
+
locationType["BUSINESS"] = "BUSINESS";
|
|
18
|
+
locationType["OTHER"] = "OTHER";
|
|
19
|
+
})(locationType = CustomerLocationUpdateDto.locationType || (CustomerLocationUpdateDto.locationType = {}));
|
|
20
|
+
})(CustomerLocationUpdateDto || (exports.CustomerLocationUpdateDto = CustomerLocationUpdateDto = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DriverCreditsResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the operation succeeded
|
|
4
|
+
*/
|
|
5
|
+
success: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Driver credits balance after the operation
|
|
8
|
+
*/
|
|
9
|
+
newBalance: number;
|
|
10
|
+
/**
|
|
11
|
+
* Gateway transaction ID (card flows only)
|
|
12
|
+
*/
|
|
13
|
+
transactionId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gateway status (card flows only)
|
|
16
|
+
*/
|
|
17
|
+
status?: string;
|
|
18
|
+
};
|
package/models/DriverDto.d.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type DriverPaymentMethodResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Payment method ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Driver ID
|
|
8
|
+
*/
|
|
9
|
+
driverId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Last 4 digits of the card
|
|
12
|
+
*/
|
|
13
|
+
cardLast4: string;
|
|
14
|
+
/**
|
|
15
|
+
* Card brand
|
|
16
|
+
*/
|
|
17
|
+
cardBrand: string;
|
|
18
|
+
/**
|
|
19
|
+
* Card expiration month (1-12)
|
|
20
|
+
*/
|
|
21
|
+
cardExpMonth: number;
|
|
22
|
+
/**
|
|
23
|
+
* Card expiration year
|
|
24
|
+
*/
|
|
25
|
+
cardExpYear: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this is the default payment method
|
|
28
|
+
*/
|
|
29
|
+
isDefault: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Creation timestamp
|
|
32
|
+
*/
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last update timestamp
|
|
36
|
+
*/
|
|
37
|
+
updatedAt?: Record<string, any>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type InquireVoucherBalanceResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the inquiry was approved
|
|
4
|
+
*/
|
|
5
|
+
success: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Transaction date from processor
|
|
8
|
+
*/
|
|
9
|
+
transDate: string;
|
|
10
|
+
/**
|
|
11
|
+
* Transaction time from processor
|
|
12
|
+
*/
|
|
13
|
+
transTime: string;
|
|
14
|
+
/**
|
|
15
|
+
* Source ID
|
|
16
|
+
*/
|
|
17
|
+
sourceId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Masked or full card number from response
|
|
20
|
+
*/
|
|
21
|
+
cardNumber: string;
|
|
22
|
+
/**
|
|
23
|
+
* Balance in cents, when available
|
|
24
|
+
*/
|
|
25
|
+
balanceCents?: Record<string, any>;
|
|
26
|
+
/**
|
|
27
|
+
* Processor response code
|
|
28
|
+
*/
|
|
29
|
+
responseCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Processor response message
|
|
32
|
+
*/
|
|
33
|
+
responseMessage: string;
|
|
34
|
+
/**
|
|
35
|
+
* Approval code when applicable
|
|
36
|
+
*/
|
|
37
|
+
approvalCode: string;
|
|
38
|
+
/**
|
|
39
|
+
* Approval amount in cents when applicable
|
|
40
|
+
*/
|
|
41
|
+
approvalAmountCents?: Record<string, any>;
|
|
42
|
+
};
|
package/models/PaymentDto.d.ts
CHANGED
|
@@ -8,11 +8,15 @@ export type PaymentDto = {
|
|
|
8
8
|
*/
|
|
9
9
|
tripId?: Record<string, any> | null;
|
|
10
10
|
/**
|
|
11
|
-
* Payment
|
|
11
|
+
* Payment type
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
paymentType?: Record<string, any> | null;
|
|
14
14
|
/**
|
|
15
|
-
* Payment
|
|
15
|
+
* Payment source
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
paymentSource?: Record<string, any> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Payment amount
|
|
20
|
+
*/
|
|
21
|
+
amount?: Record<string, any> | null;
|
|
18
22
|
};
|