@spaceinvoices/js-sdk 14.12.0 → 14.13.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.
@@ -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';
@@ -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
+ };
@@ -84,6 +84,11 @@ export declare const CheckTransactionTypeResponse: zod.ZodObject<{
84
84
  customer_country_code: zod.ZodNullable<zod.ZodString>;
85
85
  vies_valid: zod.ZodNullable<zod.ZodBoolean>;
86
86
  warning: zod.ZodNullable<zod.ZodString>;
87
+ warning_code: zod.ZodOptional<zod.ZodEnum<{
88
+ vies_unavailable: "vies_unavailable";
89
+ vies_unavailable_last_valid: "vies_unavailable_last_valid";
90
+ }>>;
91
+ warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
87
92
  is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
88
93
  hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
89
94
  vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -84,6 +84,11 @@ export declare const CheckTransactionTypeResponse: zod.ZodObject<{
84
84
  customer_country_code: zod.ZodNullable<zod.ZodString>;
85
85
  vies_valid: zod.ZodNullable<zod.ZodBoolean>;
86
86
  warning: zod.ZodNullable<zod.ZodString>;
87
+ warning_code: zod.ZodOptional<zod.ZodEnum<{
88
+ vies_unavailable: "vies_unavailable";
89
+ vies_unavailable_last_valid: "vies_unavailable_last_valid";
90
+ }>>;
91
+ warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
87
92
  is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
88
93
  hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
89
94
  vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -51,6 +51,11 @@ export declare const CheckViesResponse: zod.ZodObject<{
51
51
  customer_country_code: zod.ZodNullable<zod.ZodString>;
52
52
  vies_valid: zod.ZodNullable<zod.ZodBoolean>;
53
53
  warning: zod.ZodNullable<zod.ZodString>;
54
+ warning_code: zod.ZodOptional<zod.ZodEnum<{
55
+ vies_unavailable: "vies_unavailable";
56
+ vies_unavailable_last_valid: "vies_unavailable_last_valid";
57
+ }>>;
58
+ warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
54
59
  is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
55
60
  hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
56
61
  vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -51,6 +51,11 @@ export declare const CheckViesResponse: zod.ZodObject<{
51
51
  customer_country_code: zod.ZodNullable<zod.ZodString>;
52
52
  vies_valid: zod.ZodNullable<zod.ZodBoolean>;
53
53
  warning: zod.ZodNullable<zod.ZodString>;
54
+ warning_code: zod.ZodOptional<zod.ZodEnum<{
55
+ vies_unavailable: "vies_unavailable";
56
+ vies_unavailable_last_valid: "vies_unavailable_last_valid";
57
+ }>>;
58
+ warning_last_valid_date: zod.ZodOptional<zod.z.ZodISODate>;
54
59
  is_tax_subject: zod.ZodOptional<zod.ZodBoolean>;
55
60
  hmrc_valid: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
56
61
  vat_id_country_code: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;