gap-nodejs-sdk 1.0.295 → 1.0.296
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/api/appointment_api/1.0.0/api/appointment.d.ts +1 -1
- package/dist/api/appointment_api/1.0.0/api/appointment.js +2 -2
- package/dist/api/appointment_api/1.0.0/endpoints/appointment.d.ts +1 -1
- package/dist/api/appointment_api/1.0.0/endpoints/appointment.js +1 -1
- package/dist/api/appointment_api/1.0.0/types/request/appointment.d.ts +1 -1
- package/dist/api/appointment_api/1.0.0/types/response/appointment.d.ts +1 -1
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export default class Appointment extends Base implements AppointmentAbstractClas
|
|
|
12
12
|
static getAppointmentDetail(data: Request.GetAppointmentDetailRequest): Promise<Response.GetAppointmentDetailResponse>;
|
|
13
13
|
static getDepositDetail(data: Request.GetDepositDetailRequest): Promise<Response.GetDepositDetailResponse>;
|
|
14
14
|
static createDeposit(data: Request.CreateDepositRequest): Promise<Response.CreateDepositResponse>;
|
|
15
|
-
static
|
|
15
|
+
static createRefund(data: Request.CreateRefundRequest): Promise<Response.CreateRefundResponse>;
|
|
16
16
|
static changeAppointmentStatus(data: Request.ChangeAppointmentStatusRequest): Promise<Response.ChangeAppointmentStatusResponse>;
|
|
17
17
|
static createAppointment(data: Request.CreateAppointmentRequest): Promise<Response.CreateAppointmentResponse>;
|
|
18
18
|
static updateAppointment(data: Request.UpdateAppointmentRequest): Promise<Response.UpdateAppointmentResponse>;
|
|
@@ -74,11 +74,11 @@ export default class Appointment extends Base {
|
|
|
74
74
|
return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
static
|
|
77
|
+
static createRefund(data) {
|
|
78
78
|
var _a;
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
const response = yield this.client.post({
|
|
81
|
-
path: appointment.
|
|
81
|
+
path: appointment.CREATE_REFUND,
|
|
82
82
|
data: data
|
|
83
83
|
});
|
|
84
84
|
return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
|
|
@@ -15,5 +15,5 @@ export default {
|
|
|
15
15
|
GET_APPOINTMENT_CUSTOMER_HISTORY: "v1/appointment/customer/list/history",
|
|
16
16
|
GET_DEPOSIT_DETAIL: "v1/appointment/deposit/site/detail",
|
|
17
17
|
CREATE_DEPOSIT: "v1/appointment/deposit/form/charge",
|
|
18
|
-
|
|
18
|
+
CREATE_REFUND: "v1/appointment/deposit/form/refund-stripe",
|
|
19
19
|
};
|
|
@@ -114,7 +114,7 @@ export type DeleteBusinessTimeOffRequest = {
|
|
|
114
114
|
export type GetAppointmentCustomerHistoryRequest = {
|
|
115
115
|
id: number;
|
|
116
116
|
};
|
|
117
|
-
export type
|
|
117
|
+
export type CreateRefundRequest = {
|
|
118
118
|
amount: number;
|
|
119
119
|
appointment_id: number;
|
|
120
120
|
external_deposit_id: string;
|
|
@@ -313,7 +313,7 @@ export type GetDepositDetailResponse = Nullable<{
|
|
|
313
313
|
service_detail: any;
|
|
314
314
|
}>;
|
|
315
315
|
export type CreateDepositResponse = Nullable<number>;
|
|
316
|
-
export type
|
|
316
|
+
export type CreateRefundResponse = Nullable<number>;
|
|
317
317
|
export type ChangeAppointmentStatusResponse = Nullable<string>;
|
|
318
318
|
export type CreateAppointmentResponse = Nullable<number>;
|
|
319
319
|
export type UpdateAppointmentResponse = Nullable<number>;
|