@escapenavigator/services 1.6.28 → 1.6.29
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/openapi-widget-api/certificates/capture-paypal-certificate.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/capture-paypal-certificate.js +9 -0
- package/dist/api/openapi-widget-api/index.d.ts +2 -0
- package/dist/api/openapi-widget-api/index.js +2 -0
- package/dist/api/openapi-widget-api/orders/cancel-order.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCapturePaypalCertificatePaymentDto } from '@escapenavigator/types/dist/openapi/certificates/openapi-capture-paypal-certificate-payment.dto';
|
|
2
|
+
import { OpenapiCertificateSaleRO } from '@escapenavigator/types/dist/openapi/certificates/openapi-certificate-sale.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = OpenapiCapturePaypalCertificatePaymentDto;
|
|
5
|
+
declare type ResponseData = OpenapiCertificateSaleRO;
|
|
6
|
+
export declare const capturePaypalCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.capturePaypalCertificate = void 0;
|
|
4
|
+
var capturePaypalCertificate = function (data) { return ({
|
|
5
|
+
url: '/openapi/certificates/capture/paypal',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.capturePaypalCertificate = capturePaypalCertificate;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { capturePaypalCertificate } from './certificates/capture-paypal-certificate';
|
|
1
2
|
import { certificatePaypalPayment } from './certificates/certificate-paypal-payment';
|
|
2
3
|
import { certificateStripePayment } from './certificates/certificate-stripe-payment';
|
|
3
4
|
import { createCertificate } from './certificates/create-certificate';
|
|
@@ -28,6 +29,7 @@ import { getBookeoPrice } from './widget/bookeo/get-bookeo-price';
|
|
|
28
29
|
import { getAgregatorWidgetData } from './widget/get-agreagator-widget-data';
|
|
29
30
|
import { getWidgetData } from './widget/get-widget-data';
|
|
30
31
|
declare type ApiDeclaration = {
|
|
32
|
+
capturePaypalCertificate: typeof capturePaypalCertificate;
|
|
31
33
|
getCertificatePaymentMethods: typeof getCertificatePaymentMethods;
|
|
32
34
|
updateOrderPlayers: typeof updateOrderPlayers;
|
|
33
35
|
addUpsellingToOrder: typeof addUpsellingToOrder;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.openapiWidgetApiDeclaration = void 0;
|
|
4
|
+
var capture_paypal_certificate_1 = require("./certificates/capture-paypal-certificate");
|
|
4
5
|
var certificate_paypal_payment_1 = require("./certificates/certificate-paypal-payment");
|
|
5
6
|
var certificate_stripe_payment_1 = require("./certificates/certificate-stripe-payment");
|
|
6
7
|
var create_certificate_1 = require("./certificates/create-certificate");
|
|
@@ -31,6 +32,7 @@ var get_bookeo_price_1 = require("./widget/bookeo/get-bookeo-price");
|
|
|
31
32
|
var get_agreagator_widget_data_1 = require("./widget/get-agreagator-widget-data");
|
|
32
33
|
var get_widget_data_1 = require("./widget/get-widget-data");
|
|
33
34
|
exports.openapiWidgetApiDeclaration = {
|
|
35
|
+
capturePaypalCertificate: capture_paypal_certificate_1.capturePaypalCertificate,
|
|
34
36
|
getCertificatePaymentMethods: get_certificate_payment_methods_1.getCertificatePaymentMethods,
|
|
35
37
|
updateOrderPlayers: update_order_players_1.updateOrderPlayers,
|
|
36
38
|
addUpsellingToOrder: add_upselling_to_order_1.addUpsellingToOrder,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cancelOrder = void 0;
|
|
4
|
-
var cancelOrder = function (
|
|
4
|
+
var cancelOrder = function (data) { return ({
|
|
5
5
|
url: '/openapi/orders/cancel',
|
|
6
6
|
method: 'PATCH',
|
|
7
|
-
|
|
7
|
+
data: data,
|
|
8
8
|
}); };
|
|
9
9
|
exports.cancelOrder = cancelOrder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "dbe115dbb95f4b0443b7f7182280b4197dab4735",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.27",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.27",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|