@spaceinvoices/js-sdk 14.12.0 → 14.14.0
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/generated/model/index.d.cts +1 -0
- package/dist/generated/model/index.d.ts +1 -0
- package/dist/generated/model/transactionTypeCheckRequest.d.cts +5 -0
- package/dist/generated/model/transactionTypeCheckRequest.d.ts +5 -0
- package/dist/generated/model/transactionTypeCheckResponse.d.cts +5 -0
- package/dist/generated/model/transactionTypeCheckResponse.d.ts +5 -0
- package/dist/generated/model/transactionTypeCheckResponseWarningCode.d.cts +15 -0
- package/dist/generated/model/transactionTypeCheckResponseWarningCode.d.ts +15 -0
- package/dist/generated-zod/transaction-type/transaction-type.d.cts +6 -0
- package/dist/generated-zod/transaction-type/transaction-type.d.ts +6 -0
- package/dist/generated-zod/vies/vies.d.cts +6 -0
- package/dist/generated-zod/vies/vies.d.ts +6 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1713,6 +1713,7 @@ export * from './transactionTypeCheckRequestSupplyType.cjs';
|
|
|
1713
1713
|
export * from './transactionTypeCheckResponse.cjs';
|
|
1714
1714
|
export * from './transactionTypeCheckResponseSupplyScope.cjs';
|
|
1715
1715
|
export * from './transactionTypeCheckResponseTransactionType.cjs';
|
|
1716
|
+
export * from './transactionTypeCheckResponseWarningCode.cjs';
|
|
1716
1717
|
export * from './travelOrder.cjs';
|
|
1717
1718
|
export * from './travelOrderCalculation.cjs';
|
|
1718
1719
|
export * from './travelOrderCost.cjs';
|
|
@@ -1713,6 +1713,7 @@ export * from './transactionTypeCheckRequestSupplyType.js';
|
|
|
1713
1713
|
export * from './transactionTypeCheckResponse.js';
|
|
1714
1714
|
export * from './transactionTypeCheckResponseSupplyScope.js';
|
|
1715
1715
|
export * from './transactionTypeCheckResponseTransactionType.js';
|
|
1716
|
+
export * from './transactionTypeCheckResponseWarningCode.js';
|
|
1716
1717
|
export * from './travelOrder.js';
|
|
1717
1718
|
export * from './travelOrderCalculation.js';
|
|
1718
1719
|
export * from './travelOrderCost.js';
|
|
@@ -24,4 +24,9 @@ export interface TransactionTypeCheckRequest {
|
|
|
24
24
|
* @nullable
|
|
25
25
|
*/
|
|
26
26
|
items?: TransactionTypeCheckRequestItemsItem[] | null;
|
|
27
|
+
/**
|
|
28
|
+
* Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.
|
|
29
|
+
* @nullable
|
|
30
|
+
*/
|
|
31
|
+
refresh?: boolean | null;
|
|
27
32
|
}
|
|
@@ -24,4 +24,9 @@ export interface TransactionTypeCheckRequest {
|
|
|
24
24
|
* @nullable
|
|
25
25
|
*/
|
|
26
26
|
items?: TransactionTypeCheckRequestItemsItem[] | null;
|
|
27
|
+
/**
|
|
28
|
+
* Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.
|
|
29
|
+
* @nullable
|
|
30
|
+
*/
|
|
31
|
+
refresh?: boolean | null;
|
|
27
32
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { TransactionTypeCheckResponseSupplyScope } from './transactionTypeCheckResponseSupplyScope.cjs';
|
|
9
9
|
import type { TransactionTypeCheckResponseTransactionType } from './transactionTypeCheckResponseTransactionType.cjs';
|
|
10
|
+
import type { TransactionTypeCheckResponseWarningCode } from './transactionTypeCheckResponseWarningCode.cjs';
|
|
10
11
|
export interface TransactionTypeCheckResponse {
|
|
11
12
|
/**
|
|
12
13
|
* Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C.
|
|
@@ -39,6 +40,10 @@ export interface TransactionTypeCheckResponse {
|
|
|
39
40
|
* @nullable
|
|
40
41
|
*/
|
|
41
42
|
warning: string | null;
|
|
43
|
+
/** Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message. */
|
|
44
|
+
warning_code?: TransactionTypeCheckResponseWarningCode;
|
|
45
|
+
/** Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid. */
|
|
46
|
+
warning_last_valid_date?: string;
|
|
42
47
|
/** False when issuer is not a tax subject (transaction treated as B2C) */
|
|
43
48
|
is_tax_subject?: boolean;
|
|
44
49
|
/**
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { TransactionTypeCheckResponseSupplyScope } from './transactionTypeCheckResponseSupplyScope.js';
|
|
9
9
|
import type { TransactionTypeCheckResponseTransactionType } from './transactionTypeCheckResponseTransactionType.js';
|
|
10
|
+
import type { TransactionTypeCheckResponseWarningCode } from './transactionTypeCheckResponseWarningCode.js';
|
|
10
11
|
export interface TransactionTypeCheckResponse {
|
|
11
12
|
/**
|
|
12
13
|
* Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C.
|
|
@@ -39,6 +40,10 @@ export interface TransactionTypeCheckResponse {
|
|
|
39
40
|
* @nullable
|
|
40
41
|
*/
|
|
41
42
|
warning: string | null;
|
|
43
|
+
/** Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message. */
|
|
44
|
+
warning_code?: TransactionTypeCheckResponseWarningCode;
|
|
45
|
+
/** Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid. */
|
|
46
|
+
warning_last_valid_date?: string;
|
|
42
47
|
/** False when issuer is not a tax subject (transaction treated as B2C) */
|
|
43
48
|
is_tax_subject?: boolean;
|
|
44
49
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message.
|
|
10
|
+
*/
|
|
11
|
+
export type TransactionTypeCheckResponseWarningCode = typeof TransactionTypeCheckResponseWarningCode[keyof typeof TransactionTypeCheckResponseWarningCode];
|
|
12
|
+
export declare const TransactionTypeCheckResponseWarningCode: {
|
|
13
|
+
readonly vies_unavailable: "vies_unavailable";
|
|
14
|
+
readonly vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message.
|
|
10
|
+
*/
|
|
11
|
+
export type TransactionTypeCheckResponseWarningCode = typeof TransactionTypeCheckResponseWarningCode[keyof typeof TransactionTypeCheckResponseWarningCode];
|
|
12
|
+
export declare const TransactionTypeCheckResponseWarningCode: {
|
|
13
|
+
readonly vies_unavailable: "vies_unavailable";
|
|
14
|
+
readonly vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
15
|
+
};
|
|
@@ -70,6 +70,7 @@ export declare const CheckTransactionTypeBody: zod.ZodObject<{
|
|
|
70
70
|
classification: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"product">, zod.ZodLiteral<"service">, zod.ZodLiteral<"advance">, zod.ZodLiteral<null>]>>>;
|
|
71
71
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
72
72
|
}, zod.z.core.$strip>>>>;
|
|
73
|
+
refresh: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
73
74
|
}, zod.z.core.$strip>;
|
|
74
75
|
export declare const checkTransactionTypeResponseIssuerCountryCodeMin = 2;
|
|
75
76
|
export declare const checkTransactionTypeResponseIssuerCountryCodeMax = 2;
|
|
@@ -84,6 +85,11 @@ export declare const CheckTransactionTypeResponse: zod.ZodObject<{
|
|
|
84
85
|
customer_country_code: zod.ZodNullable<zod.ZodString>;
|
|
85
86
|
vies_valid: zod.ZodNullable<zod.ZodBoolean>;
|
|
86
87
|
warning: zod.ZodNullable<zod.ZodString>;
|
|
88
|
+
warning_code: zod.ZodOptional<zod.ZodEnum<{
|
|
89
|
+
vies_unavailable: "vies_unavailable";
|
|
90
|
+
vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
91
|
+
}>>;
|
|
92
|
+
warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
|
|
87
93
|
is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
|
|
88
94
|
hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
89
95
|
vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
@@ -70,6 +70,7 @@ export declare const CheckTransactionTypeBody: zod.ZodObject<{
|
|
|
70
70
|
classification: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"product">, zod.ZodLiteral<"service">, zod.ZodLiteral<"advance">, zod.ZodLiteral<null>]>>>;
|
|
71
71
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
72
72
|
}, zod.z.core.$strip>>>>;
|
|
73
|
+
refresh: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
73
74
|
}, zod.z.core.$strip>;
|
|
74
75
|
export declare const checkTransactionTypeResponseIssuerCountryCodeMin = 2;
|
|
75
76
|
export declare const checkTransactionTypeResponseIssuerCountryCodeMax = 2;
|
|
@@ -84,6 +85,11 @@ export declare const CheckTransactionTypeResponse: zod.ZodObject<{
|
|
|
84
85
|
customer_country_code: zod.ZodNullable<zod.ZodString>;
|
|
85
86
|
vies_valid: zod.ZodNullable<zod.ZodBoolean>;
|
|
86
87
|
warning: zod.ZodNullable<zod.ZodString>;
|
|
88
|
+
warning_code: zod.ZodOptional<zod.ZodEnum<{
|
|
89
|
+
vies_unavailable: "vies_unavailable";
|
|
90
|
+
vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
91
|
+
}>>;
|
|
92
|
+
warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
|
|
87
93
|
is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
|
|
88
94
|
hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
89
95
|
vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
@@ -37,6 +37,7 @@ export declare const CheckViesBody: zod.ZodObject<{
|
|
|
37
37
|
classification: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"product">, zod.ZodLiteral<"service">, zod.ZodLiteral<"advance">, zod.ZodLiteral<null>]>>>;
|
|
38
38
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
39
39
|
}, zod.z.core.$strip>>>>;
|
|
40
|
+
refresh: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
40
41
|
}, zod.z.core.$strip>;
|
|
41
42
|
export declare const checkViesResponseIssuerCountryCodeMin = 2;
|
|
42
43
|
export declare const checkViesResponseIssuerCountryCodeMax = 2;
|
|
@@ -51,6 +52,11 @@ export declare const CheckViesResponse: zod.ZodObject<{
|
|
|
51
52
|
customer_country_code: zod.ZodNullable<zod.ZodString>;
|
|
52
53
|
vies_valid: zod.ZodNullable<zod.ZodBoolean>;
|
|
53
54
|
warning: zod.ZodNullable<zod.ZodString>;
|
|
55
|
+
warning_code: zod.ZodOptional<zod.ZodEnum<{
|
|
56
|
+
vies_unavailable: "vies_unavailable";
|
|
57
|
+
vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
58
|
+
}>>;
|
|
59
|
+
warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
|
|
54
60
|
is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
|
|
55
61
|
hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
56
62
|
vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
@@ -37,6 +37,7 @@ export declare const CheckViesBody: zod.ZodObject<{
|
|
|
37
37
|
classification: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"product">, zod.ZodLiteral<"service">, zod.ZodLiteral<"advance">, zod.ZodLiteral<null>]>>>;
|
|
38
38
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
39
39
|
}, zod.z.core.$strip>>>>;
|
|
40
|
+
refresh: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
40
41
|
}, zod.z.core.$strip>;
|
|
41
42
|
export declare const checkViesResponseIssuerCountryCodeMin = 2;
|
|
42
43
|
export declare const checkViesResponseIssuerCountryCodeMax = 2;
|
|
@@ -51,6 +52,11 @@ export declare const CheckViesResponse: zod.ZodObject<{
|
|
|
51
52
|
customer_country_code: zod.ZodNullable<zod.ZodString>;
|
|
52
53
|
vies_valid: zod.ZodNullable<zod.ZodBoolean>;
|
|
53
54
|
warning: zod.ZodNullable<zod.ZodString>;
|
|
55
|
+
warning_code: zod.ZodOptional<zod.ZodEnum<{
|
|
56
|
+
vies_unavailable: "vies_unavailable";
|
|
57
|
+
vies_unavailable_last_valid: "vies_unavailable_last_valid";
|
|
58
|
+
}>>;
|
|
59
|
+
warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
|
|
54
60
|
is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
|
|
55
61
|
hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
56
62
|
vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|