gap-nodejs-sdk 1.0.306 → 1.0.308

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.
@@ -175,11 +175,11 @@ export default class Appointment extends Base {
175
175
  static initPayment(data) {
176
176
  var _a;
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
- const response = yield this.client.get({
178
+ const response = yield this.client.post({
179
179
  path: appointment.INITIALIZE_PAYMENT,
180
- query: data
180
+ data: data
181
181
  });
182
- return Model.InitPaymentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
182
+ return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
183
183
  });
184
184
  }
185
185
  static createStripePayment(data) {
@@ -187,7 +187,7 @@ export default class Appointment extends Base {
187
187
  return __awaiter(this, void 0, void 0, function* () {
188
188
  const response = yield this.client.post({
189
189
  path: appointment.CREATE_STRIPE_PAYMENT_METHOD,
190
- query: data
190
+ data: data
191
191
  });
192
192
  return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
193
193
  });
@@ -116,5 +116,4 @@ export declare function AppointmentDetailModel(data: any): Response.GetAppointme
116
116
  export declare function DepositDetailModel(data: any): Response.GetDepositDetailResponse;
117
117
  export declare function BusinessTimeOffModel(data: any): Response.GetListBusinessTimeOffResponse;
118
118
  export declare function AppointmentCustomerHistoryModel(data: any): Response.GetAppointmentCustomerHistoryReponse;
119
- export declare function InitPaymentModel(data: any): Response.InitPaymentResponse;
120
119
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/models/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AA+O9C,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;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AC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,CA4D/E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAkBvF;AAqFD,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,oCAAoC,CAWxG"}
@@ -549,16 +549,3 @@ export function AppointmentCustomerHistoryModel(data) {
549
549
  visit_count: (_f = data === null || data === void 0 ? void 0 : data.visit_count) !== null && _f !== void 0 ? _f : null,
550
550
  };
551
551
  }
552
- export function InitPaymentModel(data) {
553
- var _a, _b, _c, _d, _e, _f, _g, _h;
554
- return {
555
- payment_intent_id: (_a = data === null || data === void 0 ? void 0 : data.payment_intent_id) !== null && _a !== void 0 ? _a : null,
556
- client_secret: (_b = data === null || data === void 0 ? void 0 : data.client_secret) !== null && _b !== void 0 ? _b : null,
557
- description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
558
- payment_method: (_d = data === null || data === void 0 ? void 0 : data.payment_method) !== null && _d !== void 0 ? _d : null,
559
- type: (_e = data === null || data === void 0 ? void 0 : data.type) !== null && _e !== void 0 ? _e : null,
560
- status: (_f = data === null || data === void 0 ? void 0 : data.status) !== null && _f !== void 0 ? _f : null,
561
- created_at: (_g = data === null || data === void 0 ? void 0 : data.created_at) !== null && _g !== void 0 ? _g : null,
562
- id: (_h = data === null || data === void 0 ? void 0 : data.id) !== null && _h !== void 0 ? _h : null,
563
- };
564
- }