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.
@@ -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 refundStripe(data: Request.RefundStripeRequest): Promise<Response.RefundStripeResponse>;
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 refundStripe(data) {
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.REFUND_STRIPE,
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;
@@ -14,7 +14,7 @@ declare const _default: {
14
14
  GET_APPOINTMENT_CUSTOMER_HISTORY: string;
15
15
  GET_DEPOSIT_DETAIL: string;
16
16
  CREATE_DEPOSIT: string;
17
- REFUND_STRIPE: string;
17
+ CREATE_REFUND: string;
18
18
  };
19
19
  export default _default;
20
20
  //# sourceMappingURL=appointment.d.ts.map
@@ -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
- REFUND_STRIPE: "v1/appointment/deposit/form/refund-stripe",
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 RefundStripeRequest = {
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 RefundStripeResponse = Nullable<number>;
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>;