@tec.pet/tecpet-sdk 0.0.204 → 0.0.205
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/domain/integrationInvoice/dto/pa.edit-integration-invoice.dto.d.ts +41 -3
- package/dist/domain/integrationInvoice/dto/pa.edit-integration-invoice.dto.js +8 -1
- package/dist/domain/petPlan/dto/pa.get-pet-plans.dto.d.ts +2 -1
- package/dist/domain/petPlan/dto/pa.get-pet-plans.dto.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ApiIntegrationType } from '../../integrationShop/dto/pa.get-integration-shop-by-login.dto';
|
|
2
|
+
import { InvoiceStatusType } from '../../petPlan/dto/pa.get-pet-plans.dto';
|
|
3
|
+
import { ShopSegment } from '../../segment/enum/segment.enum';
|
|
2
4
|
export declare enum IntegrationInvoiceStatusType {
|
|
3
5
|
NONE = "NONE",
|
|
4
6
|
PROCESSING = "PROCESSING",
|
|
@@ -24,6 +26,12 @@ export declare enum IntegrationSyncTrigger {
|
|
|
24
26
|
MANUAL = "MANUAL",
|
|
25
27
|
CRON = "CRON"
|
|
26
28
|
}
|
|
29
|
+
export declare enum InvoiceType {
|
|
30
|
+
BOOKING = "BOOKING",
|
|
31
|
+
PLAN = "PLAN",
|
|
32
|
+
SELL = "SELL",
|
|
33
|
+
VOUCHER = "VOUCHER"
|
|
34
|
+
}
|
|
27
35
|
export interface PaEditIntegrationInvoiceRequest {
|
|
28
36
|
id?: string;
|
|
29
37
|
type: ApiIntegrationType;
|
|
@@ -39,6 +47,34 @@ export interface PaEditIntegrationInvoiceRequest {
|
|
|
39
47
|
syncDirection?: IntegrationSyncDirection;
|
|
40
48
|
syncTrigger?: IntegrationSyncTrigger;
|
|
41
49
|
}
|
|
50
|
+
export interface IntegrationInvoiceSourceItemResponse {
|
|
51
|
+
id: string;
|
|
52
|
+
type?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
foreignKey?: number | null;
|
|
55
|
+
quantity?: number;
|
|
56
|
+
unitPrice?: number;
|
|
57
|
+
totalPrice?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface IntegrationInvoiceSourceInvoiceResponse {
|
|
60
|
+
id: string;
|
|
61
|
+
reference?: number;
|
|
62
|
+
type?: InvoiceType;
|
|
63
|
+
status?: InvoiceStatusType;
|
|
64
|
+
segmentType?: ShopSegment | null;
|
|
65
|
+
totalValue?: number;
|
|
66
|
+
paidValue?: number;
|
|
67
|
+
unpaidValue?: number;
|
|
68
|
+
booking?: {
|
|
69
|
+
id: number;
|
|
70
|
+
} | null;
|
|
71
|
+
pet?: {
|
|
72
|
+
id: number;
|
|
73
|
+
} | null;
|
|
74
|
+
petPlan?: {
|
|
75
|
+
id: number;
|
|
76
|
+
} | null;
|
|
77
|
+
}
|
|
42
78
|
export interface IntegrationInvoiceItemResponse {
|
|
43
79
|
id: string;
|
|
44
80
|
name: string;
|
|
@@ -52,9 +88,7 @@ export interface IntegrationInvoiceItemResponse {
|
|
|
52
88
|
locationId?: string;
|
|
53
89
|
stockMovementExternalId?: string;
|
|
54
90
|
stockMovementQuantity?: number;
|
|
55
|
-
invoiceItem?:
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
91
|
+
invoiceItem?: IntegrationInvoiceSourceItemResponse | null;
|
|
58
92
|
integrationService?: {
|
|
59
93
|
id: number;
|
|
60
94
|
externId?: string;
|
|
@@ -71,6 +105,10 @@ export interface IntegrationInvoiceResponse {
|
|
|
71
105
|
nfId?: string;
|
|
72
106
|
value: number;
|
|
73
107
|
clientName?: string;
|
|
108
|
+
client?: {
|
|
109
|
+
id: number;
|
|
110
|
+
} | null;
|
|
111
|
+
invoice?: IntegrationInvoiceSourceInvoiceResponse;
|
|
74
112
|
errorMessage?: string;
|
|
75
113
|
items?: IntegrationInvoiceItemResponse[];
|
|
76
114
|
lastSyncedAt?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntegrationSyncTrigger = exports.IntegrationSyncDirection = exports.IntegrationInvoiceItemType = exports.IntegrationInvoiceStatusType = void 0;
|
|
3
|
+
exports.InvoiceType = exports.IntegrationSyncTrigger = exports.IntegrationSyncDirection = exports.IntegrationInvoiceItemType = exports.IntegrationInvoiceStatusType = void 0;
|
|
4
4
|
var IntegrationInvoiceStatusType;
|
|
5
5
|
(function (IntegrationInvoiceStatusType) {
|
|
6
6
|
IntegrationInvoiceStatusType["NONE"] = "NONE";
|
|
@@ -30,3 +30,10 @@ var IntegrationSyncTrigger;
|
|
|
30
30
|
IntegrationSyncTrigger["MANUAL"] = "MANUAL";
|
|
31
31
|
IntegrationSyncTrigger["CRON"] = "CRON";
|
|
32
32
|
})(IntegrationSyncTrigger || (exports.IntegrationSyncTrigger = IntegrationSyncTrigger = {}));
|
|
33
|
+
var InvoiceType;
|
|
34
|
+
(function (InvoiceType) {
|
|
35
|
+
InvoiceType["BOOKING"] = "BOOKING";
|
|
36
|
+
InvoiceType["PLAN"] = "PLAN";
|
|
37
|
+
InvoiceType["SELL"] = "SELL";
|
|
38
|
+
InvoiceType["VOUCHER"] = "VOUCHER";
|
|
39
|
+
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
@@ -7,6 +7,7 @@ var InvoiceStatusType;
|
|
|
7
7
|
InvoiceStatusType["PAID"] = "PAID";
|
|
8
8
|
InvoiceStatusType["OVERDUE"] = "OVERDUE";
|
|
9
9
|
InvoiceStatusType["CANCELED"] = "CANCELED";
|
|
10
|
+
InvoiceStatusType["NO_CHARGE"] = "NO_CHARGE";
|
|
10
11
|
})(InvoiceStatusType || (exports.InvoiceStatusType = InvoiceStatusType = {}));
|
|
11
12
|
var PetPlanStatus;
|
|
12
13
|
(function (PetPlanStatus) {
|