@opsregistry/contracts 0.0.5 → 0.0.7
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/README.md +4 -0
- package/dist/delivery/create-shipment.d.ts +2 -2
- package/dist/delivery/quote.d.ts +48 -9
- package/dist/delivery/quote.d.ts.map +1 -1
- package/dist/delivery/quote.js +30 -4
- package/dist/delivery/quote.js.map +1 -1
- package/dist/finance/cancel-payment.d.ts +25 -25
- package/dist/finance/common.d.ts +9 -9
- package/dist/finance/create-closing-receipt.d.ts +20 -20
- package/dist/finance/create-payment-qr.d.ts +1 -1
- package/dist/finance/create-payment.d.ts +27 -27
- package/dist/finance/create-receipt.d.ts +20 -20
- package/dist/finance/get-payment-status.d.ts +10 -10
- package/dist/finance/get-receipt-status.d.ts +3 -3
- package/dist/finance/receipt-common.d.ts +49 -49
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/it/access-authorize.d.ts +58 -0
- package/dist/it/access-authorize.d.ts.map +1 -0
- package/dist/it/access-authorize.js +23 -0
- package/dist/it/access-authorize.js.map +1 -0
- package/dist/it/access-policy-evaluate.d.ts +69 -0
- package/dist/it/access-policy-evaluate.d.ts.map +1 -0
- package/dist/it/access-policy-evaluate.js +27 -0
- package/dist/it/access-policy-evaluate.js.map +1 -0
- package/dist/it/iam-common.d.ts +127 -0
- package/dist/it/iam-common.d.ts.map +1 -0
- package/dist/it/iam-common.js +87 -0
- package/dist/it/iam-common.js.map +1 -0
- package/dist/it/identity-authenticate.d.ts +115 -0
- package/dist/it/identity-authenticate.d.ts.map +1 -0
- package/dist/it/identity-authenticate.js +29 -0
- package/dist/it/identity-authenticate.js.map +1 -0
- package/dist/it/identity-token-refresh.d.ts +143 -0
- package/dist/it/identity-token-refresh.d.ts.map +1 -0
- package/dist/it/identity-token-refresh.js +19 -0
- package/dist/it/identity-token-refresh.js.map +1 -0
- package/dist/it/identity-token-revoke.d.ts +93 -0
- package/dist/it/identity-token-revoke.d.ts.map +1 -0
- package/dist/it/identity-token-revoke.js +26 -0
- package/dist/it/identity-token-revoke.js.map +1 -0
- package/dist/storage/object-delete-file.d.ts +1 -1
- package/dist/storage/object-list.d.ts +1 -1
- package/dist/storage/object-upload-file.d.ts +1 -1
- package/dist/storage/website-delete.d.ts +1 -1
- package/dist/storage/website-get.d.ts +1 -1
- package/dist/storage/website-put.d.ts +1 -1
- package/package.json +26 -2
package/README.md
CHANGED
|
@@ -58,6 +58,10 @@ import {
|
|
|
58
58
|
|
|
59
59
|
Например, `delivery.quote` уже умеет выразить:
|
|
60
60
|
|
|
61
|
+
- несколько грузовых мест с количеством, весом и габаритами;
|
|
62
|
+
- доставку между терминалами и адресами;
|
|
63
|
+
- забор груза, адресную доставку, упаковку, хрупкость и страхование;
|
|
64
|
+
- внешние идентификаторы городов и терминалов конкретного провайдера;
|
|
61
65
|
- каким режимом был выполнен расчет: `public` или `authorized`;
|
|
62
66
|
- относится ли цена к публичному или персональному тарифу.
|
|
63
67
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode:
|
|
2
|
+
export declare const operationCode: 'delivery.createShipment';
|
|
3
3
|
export declare const shipmentPartySchema: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
phone: z.ZodString;
|
|
@@ -43,8 +43,8 @@ export declare const createShipmentInputSchema: z.ZodObject<{
|
|
|
43
43
|
export declare const createShipmentResultSchema: z.ZodObject<{
|
|
44
44
|
operationCode: z.ZodLiteral<"delivery.createShipment">;
|
|
45
45
|
accessModeUsed: z.ZodEnum<{
|
|
46
|
-
public: "public";
|
|
47
46
|
authorized: "authorized";
|
|
47
|
+
public: "public";
|
|
48
48
|
}>;
|
|
49
49
|
providerCode: z.ZodString;
|
|
50
50
|
shipmentId: z.ZodString;
|
package/dist/delivery/quote.d.ts
CHANGED
|
@@ -1,26 +1,43 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode:
|
|
2
|
+
export declare const operationCode: 'delivery.quote';
|
|
3
3
|
export declare const operationAccessModeSchema: z.ZodEnum<{
|
|
4
|
-
public: "public";
|
|
5
4
|
authorized: "authorized";
|
|
5
|
+
public: "public";
|
|
6
6
|
}>;
|
|
7
7
|
export declare const quotePricingScopeSchema: z.ZodEnum<{
|
|
8
|
-
public: "public";
|
|
9
8
|
personal: "personal";
|
|
9
|
+
public: "public";
|
|
10
10
|
unknown: "unknown";
|
|
11
11
|
}>;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const deliveryModeSchema: z.ZodEnum<{
|
|
13
|
+
address_address: "address_address";
|
|
14
|
+
address_terminal: "address_terminal";
|
|
15
|
+
terminal_address: "terminal_address";
|
|
16
|
+
terminal_terminal: "terminal_terminal";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const deliveryPackageSchema: z.ZodObject<{
|
|
19
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
13
20
|
weightKg: z.ZodNumber;
|
|
14
21
|
lengthCm: z.ZodOptional<z.ZodNumber>;
|
|
15
22
|
widthCm: z.ZodOptional<z.ZodNumber>;
|
|
16
23
|
heightCm: z.ZodOptional<z.ZodNumber>;
|
|
17
24
|
declaredValue: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
26
|
}, z.core.$strip>;
|
|
19
27
|
export declare const deliveryLocationSchema: z.ZodObject<{
|
|
20
28
|
countryCode: z.ZodOptional<z.ZodString>;
|
|
21
29
|
postalCode: z.ZodOptional<z.ZodString>;
|
|
22
30
|
city: z.ZodString;
|
|
23
31
|
addressLine: z.ZodOptional<z.ZodString>;
|
|
32
|
+
terminalCode: z.ZodOptional<z.ZodString>;
|
|
33
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const deliveryQuoteServicesSchema: z.ZodObject<{
|
|
36
|
+
pickup: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
addressDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
fragile: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
extraPackaging: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
insurance: z.ZodDefault<z.ZodBoolean>;
|
|
24
41
|
}, z.core.$strip>;
|
|
25
42
|
export declare const deliveryQuoteInputSchema: z.ZodObject<{
|
|
26
43
|
origin: z.ZodObject<{
|
|
@@ -28,20 +45,40 @@ export declare const deliveryQuoteInputSchema: z.ZodObject<{
|
|
|
28
45
|
postalCode: z.ZodOptional<z.ZodString>;
|
|
29
46
|
city: z.ZodString;
|
|
30
47
|
addressLine: z.ZodOptional<z.ZodString>;
|
|
48
|
+
terminalCode: z.ZodOptional<z.ZodString>;
|
|
49
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31
50
|
}, z.core.$strip>;
|
|
32
51
|
destination: z.ZodObject<{
|
|
33
52
|
countryCode: z.ZodOptional<z.ZodString>;
|
|
34
53
|
postalCode: z.ZodOptional<z.ZodString>;
|
|
35
54
|
city: z.ZodString;
|
|
36
55
|
addressLine: z.ZodOptional<z.ZodString>;
|
|
56
|
+
terminalCode: z.ZodOptional<z.ZodString>;
|
|
57
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
58
|
}, z.core.$strip>;
|
|
38
|
-
|
|
59
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
60
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
39
61
|
weightKg: z.ZodNumber;
|
|
40
62
|
lengthCm: z.ZodOptional<z.ZodNumber>;
|
|
41
63
|
widthCm: z.ZodOptional<z.ZodNumber>;
|
|
42
64
|
heightCm: z.ZodOptional<z.ZodNumber>;
|
|
43
65
|
declaredValue: z.ZodOptional<z.ZodNumber>;
|
|
44
|
-
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
deliveryMode: z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
address_address: "address_address";
|
|
70
|
+
address_terminal: "address_terminal";
|
|
71
|
+
terminal_address: "terminal_address";
|
|
72
|
+
terminal_terminal: "terminal_terminal";
|
|
73
|
+
}>>;
|
|
74
|
+
services: z.ZodDefault<z.ZodObject<{
|
|
75
|
+
pickup: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
addressDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
fragile: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
+
extraPackaging: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
+
insurance: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
currency: z.ZodDefault<z.ZodLiteral<"RUB">>;
|
|
45
82
|
requestedDate: z.ZodOptional<z.ZodString>;
|
|
46
83
|
serviceCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
47
84
|
}, z.core.$strip>;
|
|
@@ -58,12 +95,12 @@ export declare const deliveryQuoteOptionSchema: z.ZodObject<{
|
|
|
58
95
|
export declare const deliveryQuoteResultSchema: z.ZodObject<{
|
|
59
96
|
operationCode: z.ZodLiteral<"delivery.quote">;
|
|
60
97
|
accessModeUsed: z.ZodEnum<{
|
|
61
|
-
public: "public";
|
|
62
98
|
authorized: "authorized";
|
|
99
|
+
public: "public";
|
|
63
100
|
}>;
|
|
64
101
|
pricingScope: z.ZodDefault<z.ZodEnum<{
|
|
65
|
-
public: "public";
|
|
66
102
|
personal: "personal";
|
|
103
|
+
public: "public";
|
|
67
104
|
unknown: "unknown";
|
|
68
105
|
}>>;
|
|
69
106
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -79,8 +116,10 @@ export declare const deliveryQuoteResultSchema: z.ZodObject<{
|
|
|
79
116
|
}, z.core.$strip>;
|
|
80
117
|
export type OperationAccessMode = z.infer<typeof operationAccessModeSchema>;
|
|
81
118
|
export type QuotePricingScope = z.infer<typeof quotePricingScopeSchema>;
|
|
119
|
+
export type DeliveryMode = z.infer<typeof deliveryModeSchema>;
|
|
82
120
|
export type DeliveryLocation = z.infer<typeof deliveryLocationSchema>;
|
|
83
|
-
export type
|
|
121
|
+
export type DeliveryPackage = z.infer<typeof deliveryPackageSchema>;
|
|
122
|
+
export type DeliveryQuoteServices = z.infer<typeof deliveryQuoteServicesSchema>;
|
|
84
123
|
export type DeliveryQuoteInput = z.infer<typeof deliveryQuoteInputSchema>;
|
|
85
124
|
export type DeliveryQuoteOption = z.infer<typeof deliveryQuoteOptionSchema>;
|
|
86
125
|
export type DeliveryQuoteResult = z.infer<typeof deliveryQuoteResultSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../src/delivery/quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,EAAG,gBAAyB,CAAC;AACvD,eAAO,MAAM,yBAAyB;;;EAAmC,CAAC;AAC1E,eAAO,MAAM,uBAAuB;;;;EAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../src/delivery/quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,EAAG,gBAAyB,CAAC;AACvD,eAAO,MAAM,yBAAyB;;;EAAmC,CAAC;AAC1E,eAAO,MAAM,uBAAuB;;;;EAA4C,CAAC;AACjF,eAAO,MAAM,kBAAkB;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;iBAQhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;iBAOjC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAenC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/delivery/quote.js
CHANGED
|
@@ -2,23 +2,49 @@ import { z } from 'zod';
|
|
|
2
2
|
export const operationCode = 'delivery.quote';
|
|
3
3
|
export const operationAccessModeSchema = z.enum(['public', 'authorized']);
|
|
4
4
|
export const quotePricingScopeSchema = z.enum(['public', 'personal', 'unknown']);
|
|
5
|
-
export const
|
|
5
|
+
export const deliveryModeSchema = z.enum([
|
|
6
|
+
'terminal_terminal',
|
|
7
|
+
'terminal_address',
|
|
8
|
+
'address_terminal',
|
|
9
|
+
'address_address'
|
|
10
|
+
]);
|
|
11
|
+
export const deliveryPackageSchema = z.object({
|
|
12
|
+
quantity: z.number().int().positive().default(1),
|
|
6
13
|
weightKg: z.number().positive(),
|
|
7
14
|
lengthCm: z.number().positive().optional(),
|
|
8
15
|
widthCm: z.number().positive().optional(),
|
|
9
16
|
heightCm: z.number().positive().optional(),
|
|
10
|
-
declaredValue: z.number().nonnegative().optional()
|
|
17
|
+
declaredValue: z.number().nonnegative().optional(),
|
|
18
|
+
description: z.string().min(1).optional()
|
|
11
19
|
});
|
|
12
20
|
export const deliveryLocationSchema = z.object({
|
|
13
21
|
countryCode: z.string().length(2).optional(),
|
|
14
22
|
postalCode: z.string().min(1).optional(),
|
|
15
23
|
city: z.string().min(1),
|
|
16
|
-
addressLine: z.string().min(1).optional()
|
|
24
|
+
addressLine: z.string().min(1).optional(),
|
|
25
|
+
terminalCode: z.string().min(1).optional(),
|
|
26
|
+
externalIds: z.record(z.string(), z.string().min(1)).default({})
|
|
27
|
+
});
|
|
28
|
+
export const deliveryQuoteServicesSchema = z.object({
|
|
29
|
+
pickup: z.boolean().default(false),
|
|
30
|
+
addressDelivery: z.boolean().default(false),
|
|
31
|
+
fragile: z.boolean().default(false),
|
|
32
|
+
extraPackaging: z.boolean().default(false),
|
|
33
|
+
insurance: z.boolean().default(false)
|
|
17
34
|
});
|
|
18
35
|
export const deliveryQuoteInputSchema = z.object({
|
|
19
36
|
origin: deliveryLocationSchema,
|
|
20
37
|
destination: deliveryLocationSchema,
|
|
21
|
-
|
|
38
|
+
packages: z.array(deliveryPackageSchema).min(1),
|
|
39
|
+
deliveryMode: deliveryModeSchema.default('terminal_terminal'),
|
|
40
|
+
services: deliveryQuoteServicesSchema.default({
|
|
41
|
+
pickup: false,
|
|
42
|
+
addressDelivery: false,
|
|
43
|
+
fragile: false,
|
|
44
|
+
extraPackaging: false,
|
|
45
|
+
insurance: false
|
|
46
|
+
}),
|
|
47
|
+
currency: z.literal('RUB').default('RUB'),
|
|
22
48
|
requestedDate: z.string().min(1).optional(),
|
|
23
49
|
serviceCodes: z.array(z.string().min(1)).default([])
|
|
24
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/delivery/quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAyB,CAAC;AACvD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/delivery/quote.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode:
|
|
2
|
+
export declare const operationCode: 'finance.merchantPayment.cancel';
|
|
3
3
|
export declare const cancelPaymentInputSchema: z.ZodObject<{
|
|
4
4
|
providerPaymentId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
merchantOrderId: z.ZodOptional<z.ZodString>;
|
|
@@ -13,10 +13,10 @@ export declare const cancelPaymentInputSchema: z.ZodObject<{
|
|
|
13
13
|
providerPaymentId: z.ZodOptional<z.ZodString>;
|
|
14
14
|
merchantInn: z.ZodOptional<z.ZodString>;
|
|
15
15
|
type: z.ZodDefault<z.ZodEnum<{
|
|
16
|
-
sell: "sell";
|
|
17
|
-
sellReturn: "sellReturn";
|
|
18
16
|
buy: "buy";
|
|
19
17
|
buyReturn: "buyReturn";
|
|
18
|
+
sell: "sell";
|
|
19
|
+
sellReturn: "sellReturn";
|
|
20
20
|
}>>;
|
|
21
21
|
customer: z.ZodObject<{
|
|
22
22
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -25,11 +25,11 @@ export declare const cancelPaymentInputSchema: z.ZodObject<{
|
|
|
25
25
|
phone: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
taxationSystem: z.ZodEnum<{
|
|
28
|
+
esn: "esn";
|
|
28
29
|
osn: "osn";
|
|
30
|
+
patent: "patent";
|
|
29
31
|
usnIncome: "usnIncome";
|
|
30
32
|
usnIncomeOutcome: "usnIncomeOutcome";
|
|
31
|
-
esn: "esn";
|
|
32
|
-
patent: "patent";
|
|
33
33
|
}>;
|
|
34
34
|
items: z.ZodArray<z.ZodObject<{
|
|
35
35
|
name: z.ZodString;
|
|
@@ -45,36 +45,36 @@ export declare const cancelPaymentInputSchema: z.ZodObject<{
|
|
|
45
45
|
vat: z.ZodEnum<{
|
|
46
46
|
none: "none";
|
|
47
47
|
vat0: "vat0";
|
|
48
|
-
vat5: "vat5";
|
|
49
|
-
vat7: "vat7";
|
|
50
48
|
vat10: "vat10";
|
|
51
|
-
vat20: "vat20";
|
|
52
|
-
vat22: "vat22";
|
|
53
49
|
vat105: "vat105";
|
|
54
50
|
vat107: "vat107";
|
|
55
51
|
vat110: "vat110";
|
|
56
52
|
vat120: "vat120";
|
|
57
53
|
vat122: "vat122";
|
|
54
|
+
vat20: "vat20";
|
|
55
|
+
vat22: "vat22";
|
|
56
|
+
vat5: "vat5";
|
|
57
|
+
vat7: "vat7";
|
|
58
58
|
}>;
|
|
59
59
|
paymentMethod: z.ZodDefault<z.ZodEnum<{
|
|
60
|
-
fullPrepayment: "fullPrepayment";
|
|
61
|
-
prepayment: "prepayment";
|
|
62
60
|
advance: "advance";
|
|
63
|
-
fullPayment: "fullPayment";
|
|
64
|
-
partialPayment: "partialPayment";
|
|
65
61
|
credit: "credit";
|
|
66
62
|
creditPayment: "creditPayment";
|
|
63
|
+
fullPayment: "fullPayment";
|
|
64
|
+
fullPrepayment: "fullPrepayment";
|
|
65
|
+
partialPayment: "partialPayment";
|
|
66
|
+
prepayment: "prepayment";
|
|
67
67
|
}>>;
|
|
68
68
|
paymentObject: z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
agentCommission: "agentCommission";
|
|
70
|
+
another: "another";
|
|
69
71
|
commodity: "commodity";
|
|
72
|
+
composite: "composite";
|
|
70
73
|
excise: "excise";
|
|
74
|
+
intellectualActivity: "intellectualActivity";
|
|
71
75
|
job: "job";
|
|
72
|
-
service: "service";
|
|
73
76
|
payment: "payment";
|
|
74
|
-
|
|
75
|
-
intellectualActivity: "intellectualActivity";
|
|
76
|
-
composite: "composite";
|
|
77
|
-
another: "another";
|
|
77
|
+
service: "service";
|
|
78
78
|
}>>;
|
|
79
79
|
unitCode: z.ZodOptional<z.ZodString>;
|
|
80
80
|
supplierInn: z.ZodOptional<z.ZodString>;
|
|
@@ -121,16 +121,16 @@ export declare const cancelPaymentResultSchema: z.ZodObject<{
|
|
|
121
121
|
merchantOrderId: z.ZodOptional<z.ZodString>;
|
|
122
122
|
status: z.ZodEnum<{
|
|
123
123
|
authorized: "authorized";
|
|
124
|
-
unknown: "unknown";
|
|
125
|
-
created: "created";
|
|
126
|
-
pending: "pending";
|
|
127
|
-
confirmed: "confirmed";
|
|
128
|
-
paid: "paid";
|
|
129
124
|
cancelled: "cancelled";
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
confirmed: "confirmed";
|
|
126
|
+
created: "created";
|
|
132
127
|
expired: "expired";
|
|
133
128
|
failed: "failed";
|
|
129
|
+
paid: "paid";
|
|
130
|
+
partiallyRefunded: "partiallyRefunded";
|
|
131
|
+
pending: "pending";
|
|
132
|
+
refunded: "refunded";
|
|
133
|
+
unknown: "unknown";
|
|
134
134
|
}>;
|
|
135
135
|
cancelledAmount: z.ZodOptional<z.ZodObject<{
|
|
136
136
|
amountMinor: z.ZodNumber;
|
package/dist/finance/common.d.ts
CHANGED
|
@@ -8,24 +8,24 @@ export declare const moneyAmountSchema: z.ZodObject<{
|
|
|
8
8
|
currency: z.ZodDefault<z.ZodString>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export declare const paymentMethodSchema: z.ZodEnum<{
|
|
11
|
-
unknown: "unknown";
|
|
12
11
|
card: "card";
|
|
12
|
+
sberpay: "sberpay";
|
|
13
13
|
sbpQr: "sbpQr";
|
|
14
14
|
tpay: "tpay";
|
|
15
|
-
|
|
15
|
+
unknown: "unknown";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const paymentStatusSchema: z.ZodEnum<{
|
|
18
18
|
authorized: "authorized";
|
|
19
|
-
unknown: "unknown";
|
|
20
|
-
created: "created";
|
|
21
|
-
pending: "pending";
|
|
22
|
-
confirmed: "confirmed";
|
|
23
|
-
paid: "paid";
|
|
24
19
|
cancelled: "cancelled";
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
confirmed: "confirmed";
|
|
21
|
+
created: "created";
|
|
27
22
|
expired: "expired";
|
|
28
23
|
failed: "failed";
|
|
24
|
+
paid: "paid";
|
|
25
|
+
partiallyRefunded: "partiallyRefunded";
|
|
26
|
+
pending: "pending";
|
|
27
|
+
refunded: "refunded";
|
|
28
|
+
unknown: "unknown";
|
|
29
29
|
}>;
|
|
30
30
|
export declare const customerContactSchema: z.ZodObject<{
|
|
31
31
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -9,16 +9,16 @@ import { z } from 'zod';
|
|
|
9
9
|
* finance.fiscalReceipt.create so operation directories can show the legal
|
|
10
10
|
* difference between an ordinary receipt and a closing receipt.
|
|
11
11
|
*/
|
|
12
|
-
export declare const operationCode:
|
|
12
|
+
export declare const operationCode: 'finance.fiscalReceipt.createClosing';
|
|
13
13
|
export declare const createClosingReceiptInputSchema: z.ZodObject<{
|
|
14
14
|
merchantReceiptId: z.ZodOptional<z.ZodString>;
|
|
15
15
|
merchantOrderId: z.ZodOptional<z.ZodString>;
|
|
16
16
|
merchantInn: z.ZodOptional<z.ZodString>;
|
|
17
17
|
type: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
sell: "sell";
|
|
19
|
-
sellReturn: "sellReturn";
|
|
20
18
|
buy: "buy";
|
|
21
19
|
buyReturn: "buyReturn";
|
|
20
|
+
sell: "sell";
|
|
21
|
+
sellReturn: "sellReturn";
|
|
22
22
|
}>>;
|
|
23
23
|
customer: z.ZodObject<{
|
|
24
24
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -27,11 +27,11 @@ export declare const createClosingReceiptInputSchema: z.ZodObject<{
|
|
|
27
27
|
phone: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
taxationSystem: z.ZodEnum<{
|
|
30
|
+
esn: "esn";
|
|
30
31
|
osn: "osn";
|
|
32
|
+
patent: "patent";
|
|
31
33
|
usnIncome: "usnIncome";
|
|
32
34
|
usnIncomeOutcome: "usnIncomeOutcome";
|
|
33
|
-
esn: "esn";
|
|
34
|
-
patent: "patent";
|
|
35
35
|
}>;
|
|
36
36
|
items: z.ZodArray<z.ZodObject<{
|
|
37
37
|
name: z.ZodString;
|
|
@@ -47,36 +47,36 @@ export declare const createClosingReceiptInputSchema: z.ZodObject<{
|
|
|
47
47
|
vat: z.ZodEnum<{
|
|
48
48
|
none: "none";
|
|
49
49
|
vat0: "vat0";
|
|
50
|
-
vat5: "vat5";
|
|
51
|
-
vat7: "vat7";
|
|
52
50
|
vat10: "vat10";
|
|
53
|
-
vat20: "vat20";
|
|
54
|
-
vat22: "vat22";
|
|
55
51
|
vat105: "vat105";
|
|
56
52
|
vat107: "vat107";
|
|
57
53
|
vat110: "vat110";
|
|
58
54
|
vat120: "vat120";
|
|
59
55
|
vat122: "vat122";
|
|
56
|
+
vat20: "vat20";
|
|
57
|
+
vat22: "vat22";
|
|
58
|
+
vat5: "vat5";
|
|
59
|
+
vat7: "vat7";
|
|
60
60
|
}>;
|
|
61
61
|
paymentMethod: z.ZodDefault<z.ZodEnum<{
|
|
62
|
-
fullPrepayment: "fullPrepayment";
|
|
63
|
-
prepayment: "prepayment";
|
|
64
62
|
advance: "advance";
|
|
65
|
-
fullPayment: "fullPayment";
|
|
66
|
-
partialPayment: "partialPayment";
|
|
67
63
|
credit: "credit";
|
|
68
64
|
creditPayment: "creditPayment";
|
|
65
|
+
fullPayment: "fullPayment";
|
|
66
|
+
fullPrepayment: "fullPrepayment";
|
|
67
|
+
partialPayment: "partialPayment";
|
|
68
|
+
prepayment: "prepayment";
|
|
69
69
|
}>>;
|
|
70
70
|
paymentObject: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
agentCommission: "agentCommission";
|
|
72
|
+
another: "another";
|
|
71
73
|
commodity: "commodity";
|
|
74
|
+
composite: "composite";
|
|
72
75
|
excise: "excise";
|
|
76
|
+
intellectualActivity: "intellectualActivity";
|
|
73
77
|
job: "job";
|
|
74
|
-
service: "service";
|
|
75
78
|
payment: "payment";
|
|
76
|
-
|
|
77
|
-
intellectualActivity: "intellectualActivity";
|
|
78
|
-
composite: "composite";
|
|
79
|
-
another: "another";
|
|
79
|
+
service: "service";
|
|
80
80
|
}>>;
|
|
81
81
|
unitCode: z.ZodOptional<z.ZodString>;
|
|
82
82
|
supplierInn: z.ZodOptional<z.ZodString>;
|
|
@@ -121,10 +121,10 @@ export declare const createClosingReceiptResultSchema: z.ZodObject<{
|
|
|
121
121
|
merchantReceiptId: z.ZodOptional<z.ZodString>;
|
|
122
122
|
merchantOrderId: z.ZodOptional<z.ZodString>;
|
|
123
123
|
status: z.ZodEnum<{
|
|
124
|
-
unknown: "unknown";
|
|
125
124
|
failed: "failed";
|
|
126
|
-
queued: "queued";
|
|
127
125
|
processed: "processed";
|
|
126
|
+
queued: "queued";
|
|
127
|
+
unknown: "unknown";
|
|
128
128
|
}>;
|
|
129
129
|
fiscalDetails: z.ZodOptional<z.ZodObject<{
|
|
130
130
|
documentNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode:
|
|
2
|
+
export declare const operationCode: 'finance.merchantPayment.create';
|
|
3
3
|
export declare const createPaymentInputSchema: z.ZodObject<{
|
|
4
4
|
merchantOrderId: z.ZodString;
|
|
5
5
|
amount: z.ZodObject<{
|
|
@@ -14,11 +14,11 @@ export declare const createPaymentInputSchema: z.ZodObject<{
|
|
|
14
14
|
phone: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
allowedPaymentMethods: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
17
|
-
unknown: "unknown";
|
|
18
17
|
card: "card";
|
|
18
|
+
sberpay: "sberpay";
|
|
19
19
|
sbpQr: "sbpQr";
|
|
20
20
|
tpay: "tpay";
|
|
21
|
-
|
|
21
|
+
unknown: "unknown";
|
|
22
22
|
}>>>;
|
|
23
23
|
payType: z.ZodDefault<z.ZodEnum<{
|
|
24
24
|
oneStage: "oneStage";
|
|
@@ -34,10 +34,10 @@ export declare const createPaymentInputSchema: z.ZodObject<{
|
|
|
34
34
|
providerPaymentId: z.ZodOptional<z.ZodString>;
|
|
35
35
|
merchantInn: z.ZodOptional<z.ZodString>;
|
|
36
36
|
type: z.ZodDefault<z.ZodEnum<{
|
|
37
|
-
sell: "sell";
|
|
38
|
-
sellReturn: "sellReturn";
|
|
39
37
|
buy: "buy";
|
|
40
38
|
buyReturn: "buyReturn";
|
|
39
|
+
sell: "sell";
|
|
40
|
+
sellReturn: "sellReturn";
|
|
41
41
|
}>>;
|
|
42
42
|
customer: z.ZodObject<{
|
|
43
43
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -46,11 +46,11 @@ export declare const createPaymentInputSchema: z.ZodObject<{
|
|
|
46
46
|
phone: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
taxationSystem: z.ZodEnum<{
|
|
49
|
+
esn: "esn";
|
|
49
50
|
osn: "osn";
|
|
51
|
+
patent: "patent";
|
|
50
52
|
usnIncome: "usnIncome";
|
|
51
53
|
usnIncomeOutcome: "usnIncomeOutcome";
|
|
52
|
-
esn: "esn";
|
|
53
|
-
patent: "patent";
|
|
54
54
|
}>;
|
|
55
55
|
items: z.ZodArray<z.ZodObject<{
|
|
56
56
|
name: z.ZodString;
|
|
@@ -66,36 +66,36 @@ export declare const createPaymentInputSchema: z.ZodObject<{
|
|
|
66
66
|
vat: z.ZodEnum<{
|
|
67
67
|
none: "none";
|
|
68
68
|
vat0: "vat0";
|
|
69
|
-
vat5: "vat5";
|
|
70
|
-
vat7: "vat7";
|
|
71
69
|
vat10: "vat10";
|
|
72
|
-
vat20: "vat20";
|
|
73
|
-
vat22: "vat22";
|
|
74
70
|
vat105: "vat105";
|
|
75
71
|
vat107: "vat107";
|
|
76
72
|
vat110: "vat110";
|
|
77
73
|
vat120: "vat120";
|
|
78
74
|
vat122: "vat122";
|
|
75
|
+
vat20: "vat20";
|
|
76
|
+
vat22: "vat22";
|
|
77
|
+
vat5: "vat5";
|
|
78
|
+
vat7: "vat7";
|
|
79
79
|
}>;
|
|
80
80
|
paymentMethod: z.ZodDefault<z.ZodEnum<{
|
|
81
|
-
fullPrepayment: "fullPrepayment";
|
|
82
|
-
prepayment: "prepayment";
|
|
83
81
|
advance: "advance";
|
|
84
|
-
fullPayment: "fullPayment";
|
|
85
|
-
partialPayment: "partialPayment";
|
|
86
82
|
credit: "credit";
|
|
87
83
|
creditPayment: "creditPayment";
|
|
84
|
+
fullPayment: "fullPayment";
|
|
85
|
+
fullPrepayment: "fullPrepayment";
|
|
86
|
+
partialPayment: "partialPayment";
|
|
87
|
+
prepayment: "prepayment";
|
|
88
88
|
}>>;
|
|
89
89
|
paymentObject: z.ZodDefault<z.ZodEnum<{
|
|
90
|
+
agentCommission: "agentCommission";
|
|
91
|
+
another: "another";
|
|
90
92
|
commodity: "commodity";
|
|
93
|
+
composite: "composite";
|
|
91
94
|
excise: "excise";
|
|
95
|
+
intellectualActivity: "intellectualActivity";
|
|
92
96
|
job: "job";
|
|
93
|
-
service: "service";
|
|
94
97
|
payment: "payment";
|
|
95
|
-
|
|
96
|
-
intellectualActivity: "intellectualActivity";
|
|
97
|
-
composite: "composite";
|
|
98
|
-
another: "another";
|
|
98
|
+
service: "service";
|
|
99
99
|
}>>;
|
|
100
100
|
unitCode: z.ZodOptional<z.ZodString>;
|
|
101
101
|
supplierInn: z.ZodOptional<z.ZodString>;
|
|
@@ -145,16 +145,16 @@ export declare const createPaymentResultSchema: z.ZodObject<{
|
|
|
145
145
|
}, z.core.$strip>;
|
|
146
146
|
status: z.ZodEnum<{
|
|
147
147
|
authorized: "authorized";
|
|
148
|
-
unknown: "unknown";
|
|
149
|
-
created: "created";
|
|
150
|
-
pending: "pending";
|
|
151
|
-
confirmed: "confirmed";
|
|
152
|
-
paid: "paid";
|
|
153
148
|
cancelled: "cancelled";
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
confirmed: "confirmed";
|
|
150
|
+
created: "created";
|
|
156
151
|
expired: "expired";
|
|
157
152
|
failed: "failed";
|
|
153
|
+
paid: "paid";
|
|
154
|
+
partiallyRefunded: "partiallyRefunded";
|
|
155
|
+
pending: "pending";
|
|
156
|
+
refunded: "refunded";
|
|
157
|
+
unknown: "unknown";
|
|
158
158
|
}>;
|
|
159
159
|
paymentUrl: z.ZodOptional<z.ZodURL>;
|
|
160
160
|
expiresAt: z.ZodOptional<z.ZodString>;
|