@spaceinvoices/js-sdk 14.29.0 → 14.31.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/advance-invoices/advance-invoices.d.cts +10 -2
- package/dist/generated/advance-invoices/advance-invoices.d.ts +10 -2
- package/dist/generated/credit-notes/credit-notes.d.cts +10 -2
- package/dist/generated/credit-notes/credit-notes.d.ts +10 -2
- package/dist/generated/customers/customers.d.cts +2 -0
- package/dist/generated/customers/customers.d.ts +2 -0
- package/dist/generated/documents/documents.d.cts +5 -1
- package/dist/generated/documents/documents.d.ts +5 -1
- package/dist/generated/entities/entities.d.cts +2 -2
- package/dist/generated/entities/entities.d.ts +2 -2
- package/dist/generated/invoices/invoices.d.cts +15 -3
- package/dist/generated/invoices/invoices.d.ts +15 -3
- package/dist/generated/model/accountWebhookResponseEventsItem.d.cts +2 -0
- package/dist/generated/model/accountWebhookResponseEventsItem.d.ts +2 -0
- package/dist/generated/model/accountWebhookWithSecretEventsItem.d.cts +2 -0
- package/dist/generated/model/accountWebhookWithSecretEventsItem.d.ts +2 -0
- package/dist/generated/model/createAccountWebhookBodyEventsItem.d.cts +2 -0
- package/dist/generated/model/createAccountWebhookBodyEventsItem.d.ts +2 -0
- package/dist/generated/model/createWebhookBodyEventsItem.d.cts +2 -0
- package/dist/generated/model/createWebhookBodyEventsItem.d.ts +2 -0
- package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.cts +2 -0
- package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.ts +2 -0
- package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +2 -0
- package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +2 -0
- package/dist/generated/model/webhookResponseEventsItem.d.cts +2 -0
- package/dist/generated/model/webhookResponseEventsItem.d.ts +2 -0
- package/dist/generated/model/webhookWithSecretEventsItem.d.cts +2 -0
- package/dist/generated/model/webhookWithSecretEventsItem.d.ts +2 -0
- package/dist/generated/orders/orders.d.cts +5 -1
- package/dist/generated/orders/orders.d.ts +5 -1
- package/dist/generated-zod/account-webhooks/account-webhooks.d.cts +12 -0
- package/dist/generated-zod/account-webhooks/account-webhooks.d.ts +12 -0
- package/dist/generated-zod/customers/customers.d.cts +2 -0
- package/dist/generated-zod/customers/customers.d.ts +2 -0
- package/dist/generated-zod/entities/entities.d.cts +2 -2
- package/dist/generated-zod/entities/entities.d.ts +2 -2
- package/dist/generated-zod/webhooks/webhooks.d.cts +12 -0
- package/dist/generated-zod/webhooks/webhooks.d.ts +12 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -264,10 +264,14 @@ export type createAdvanceInvoiceResponse500 = {
|
|
|
264
264
|
data: Error;
|
|
265
265
|
status: 500;
|
|
266
266
|
};
|
|
267
|
+
export type createAdvanceInvoiceResponse503 = {
|
|
268
|
+
data: Error;
|
|
269
|
+
status: 503;
|
|
270
|
+
};
|
|
267
271
|
export type createAdvanceInvoiceResponseSuccess = (createAdvanceInvoiceResponse201) & {
|
|
268
272
|
headers: Headers;
|
|
269
273
|
};
|
|
270
|
-
export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500) & {
|
|
274
|
+
export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500 | createAdvanceInvoiceResponse503) & {
|
|
271
275
|
headers: Headers;
|
|
272
276
|
};
|
|
273
277
|
export type createAdvanceInvoiceResponse = (createAdvanceInvoiceResponseSuccess | createAdvanceInvoiceResponseError);
|
|
@@ -348,10 +352,14 @@ export type createCustomAdvanceInvoiceResponse500 = {
|
|
|
348
352
|
data: Error;
|
|
349
353
|
status: 500;
|
|
350
354
|
};
|
|
355
|
+
export type createCustomAdvanceInvoiceResponse503 = {
|
|
356
|
+
data: Error;
|
|
357
|
+
status: 503;
|
|
358
|
+
};
|
|
351
359
|
export type createCustomAdvanceInvoiceResponseSuccess = (createCustomAdvanceInvoiceResponse201) & {
|
|
352
360
|
headers: Headers;
|
|
353
361
|
};
|
|
354
|
-
export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500) & {
|
|
362
|
+
export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500 | createCustomAdvanceInvoiceResponse503) & {
|
|
355
363
|
headers: Headers;
|
|
356
364
|
};
|
|
357
365
|
export type createCustomAdvanceInvoiceResponse = (createCustomAdvanceInvoiceResponseSuccess | createCustomAdvanceInvoiceResponseError);
|
|
@@ -264,10 +264,14 @@ export type createAdvanceInvoiceResponse500 = {
|
|
|
264
264
|
data: Error;
|
|
265
265
|
status: 500;
|
|
266
266
|
};
|
|
267
|
+
export type createAdvanceInvoiceResponse503 = {
|
|
268
|
+
data: Error;
|
|
269
|
+
status: 503;
|
|
270
|
+
};
|
|
267
271
|
export type createAdvanceInvoiceResponseSuccess = (createAdvanceInvoiceResponse201) & {
|
|
268
272
|
headers: Headers;
|
|
269
273
|
};
|
|
270
|
-
export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500) & {
|
|
274
|
+
export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500 | createAdvanceInvoiceResponse503) & {
|
|
271
275
|
headers: Headers;
|
|
272
276
|
};
|
|
273
277
|
export type createAdvanceInvoiceResponse = (createAdvanceInvoiceResponseSuccess | createAdvanceInvoiceResponseError);
|
|
@@ -348,10 +352,14 @@ export type createCustomAdvanceInvoiceResponse500 = {
|
|
|
348
352
|
data: Error;
|
|
349
353
|
status: 500;
|
|
350
354
|
};
|
|
355
|
+
export type createCustomAdvanceInvoiceResponse503 = {
|
|
356
|
+
data: Error;
|
|
357
|
+
status: 503;
|
|
358
|
+
};
|
|
351
359
|
export type createCustomAdvanceInvoiceResponseSuccess = (createCustomAdvanceInvoiceResponse201) & {
|
|
352
360
|
headers: Headers;
|
|
353
361
|
};
|
|
354
|
-
export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500) & {
|
|
362
|
+
export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500 | createCustomAdvanceInvoiceResponse503) & {
|
|
355
363
|
headers: Headers;
|
|
356
364
|
};
|
|
357
365
|
export type createCustomAdvanceInvoiceResponse = (createCustomAdvanceInvoiceResponseSuccess | createCustomAdvanceInvoiceResponseError);
|
|
@@ -448,10 +448,14 @@ export type createCreditNoteResponse500 = {
|
|
|
448
448
|
data: Error;
|
|
449
449
|
status: 500;
|
|
450
450
|
};
|
|
451
|
+
export type createCreditNoteResponse503 = {
|
|
452
|
+
data: Error;
|
|
453
|
+
status: 503;
|
|
454
|
+
};
|
|
451
455
|
export type createCreditNoteResponseSuccess = (createCreditNoteResponse201) & {
|
|
452
456
|
headers: Headers;
|
|
453
457
|
};
|
|
454
|
-
export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500) & {
|
|
458
|
+
export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500 | createCreditNoteResponse503) & {
|
|
455
459
|
headers: Headers;
|
|
456
460
|
};
|
|
457
461
|
export type createCreditNoteResponse = (createCreditNoteResponseSuccess | createCreditNoteResponseError);
|
|
@@ -534,10 +538,14 @@ export type createCustomCreditNoteResponse500 = {
|
|
|
534
538
|
data: Error;
|
|
535
539
|
status: 500;
|
|
536
540
|
};
|
|
541
|
+
export type createCustomCreditNoteResponse503 = {
|
|
542
|
+
data: Error;
|
|
543
|
+
status: 503;
|
|
544
|
+
};
|
|
537
545
|
export type createCustomCreditNoteResponseSuccess = (createCustomCreditNoteResponse201) & {
|
|
538
546
|
headers: Headers;
|
|
539
547
|
};
|
|
540
|
-
export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500) & {
|
|
548
|
+
export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500 | createCustomCreditNoteResponse503) & {
|
|
541
549
|
headers: Headers;
|
|
542
550
|
};
|
|
543
551
|
export type createCustomCreditNoteResponse = (createCustomCreditNoteResponseSuccess | createCustomCreditNoteResponseError);
|
|
@@ -448,10 +448,14 @@ export type createCreditNoteResponse500 = {
|
|
|
448
448
|
data: Error;
|
|
449
449
|
status: 500;
|
|
450
450
|
};
|
|
451
|
+
export type createCreditNoteResponse503 = {
|
|
452
|
+
data: Error;
|
|
453
|
+
status: 503;
|
|
454
|
+
};
|
|
451
455
|
export type createCreditNoteResponseSuccess = (createCreditNoteResponse201) & {
|
|
452
456
|
headers: Headers;
|
|
453
457
|
};
|
|
454
|
-
export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500) & {
|
|
458
|
+
export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500 | createCreditNoteResponse503) & {
|
|
455
459
|
headers: Headers;
|
|
456
460
|
};
|
|
457
461
|
export type createCreditNoteResponse = (createCreditNoteResponseSuccess | createCreditNoteResponseError);
|
|
@@ -534,10 +538,14 @@ export type createCustomCreditNoteResponse500 = {
|
|
|
534
538
|
data: Error;
|
|
535
539
|
status: 500;
|
|
536
540
|
};
|
|
541
|
+
export type createCustomCreditNoteResponse503 = {
|
|
542
|
+
data: Error;
|
|
543
|
+
status: 503;
|
|
544
|
+
};
|
|
537
545
|
export type createCustomCreditNoteResponseSuccess = (createCustomCreditNoteResponse201) & {
|
|
538
546
|
headers: Headers;
|
|
539
547
|
};
|
|
540
|
-
export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500) & {
|
|
548
|
+
export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500 | createCustomCreditNoteResponse503) & {
|
|
541
549
|
headers: Headers;
|
|
542
550
|
};
|
|
543
551
|
export type createCustomCreditNoteResponse = (createCustomCreditNoteResponseSuccess | createCustomCreditNoteResponseError);
|
|
@@ -10,6 +10,7 @@ import type { CreateCustomerBody, Customer, Error, GetCustomers200, GetCustomers
|
|
|
10
10
|
* Create a new customer for use in invoices.
|
|
11
11
|
Store customer details including name, address, and tax information.
|
|
12
12
|
All fields except name are optional.
|
|
13
|
+
For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
|
|
13
14
|
* @summary Create a new customer
|
|
14
15
|
*/
|
|
15
16
|
export type createCustomerResponse201 = {
|
|
@@ -125,6 +126,7 @@ export declare const getCustomerById: (id: string, options?: RequestInit) => Pro
|
|
|
125
126
|
* Update an existing customer.
|
|
126
127
|
Only the provided fields will be updated.
|
|
127
128
|
All fields are optional for partial updates.
|
|
129
|
+
For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
|
|
128
130
|
* @summary Update a customer
|
|
129
131
|
*/
|
|
130
132
|
export type updateCustomerResponse200 = {
|
|
@@ -10,6 +10,7 @@ import type { CreateCustomerBody, Customer, Error, GetCustomers200, GetCustomers
|
|
|
10
10
|
* Create a new customer for use in invoices.
|
|
11
11
|
Store customer details including name, address, and tax information.
|
|
12
12
|
All fields except name are optional.
|
|
13
|
+
For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
|
|
13
14
|
* @summary Create a new customer
|
|
14
15
|
*/
|
|
15
16
|
export type createCustomerResponse201 = {
|
|
@@ -125,6 +126,7 @@ export declare const getCustomerById: (id: string, options?: RequestInit) => Pro
|
|
|
125
126
|
* Update an existing customer.
|
|
126
127
|
Only the provided fields will be updated.
|
|
127
128
|
All fields are optional for partial updates.
|
|
129
|
+
For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
|
|
128
130
|
* @summary Update a customer
|
|
129
131
|
*/
|
|
130
132
|
export type updateCustomerResponse200 = {
|
|
@@ -117,10 +117,14 @@ export type finalizeDocumentResponse500 = {
|
|
|
117
117
|
data: Error;
|
|
118
118
|
status: 500;
|
|
119
119
|
};
|
|
120
|
+
export type finalizeDocumentResponse503 = {
|
|
121
|
+
data: Error;
|
|
122
|
+
status: 503;
|
|
123
|
+
};
|
|
120
124
|
export type finalizeDocumentResponseSuccess = (finalizeDocumentResponse200) & {
|
|
121
125
|
headers: Headers;
|
|
122
126
|
};
|
|
123
|
-
export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500) & {
|
|
127
|
+
export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500 | finalizeDocumentResponse503) & {
|
|
124
128
|
headers: Headers;
|
|
125
129
|
};
|
|
126
130
|
export type finalizeDocumentResponse = (finalizeDocumentResponseSuccess | finalizeDocumentResponseError);
|
|
@@ -117,10 +117,14 @@ export type finalizeDocumentResponse500 = {
|
|
|
117
117
|
data: Error;
|
|
118
118
|
status: 500;
|
|
119
119
|
};
|
|
120
|
+
export type finalizeDocumentResponse503 = {
|
|
121
|
+
data: Error;
|
|
122
|
+
status: 503;
|
|
123
|
+
};
|
|
120
124
|
export type finalizeDocumentResponseSuccess = (finalizeDocumentResponse200) & {
|
|
121
125
|
headers: Headers;
|
|
122
126
|
};
|
|
123
|
-
export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500) & {
|
|
127
|
+
export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500 | finalizeDocumentResponse503) & {
|
|
124
128
|
headers: Headers;
|
|
125
129
|
};
|
|
126
130
|
export type finalizeDocumentResponse = (finalizeDocumentResponseSuccess | finalizeDocumentResponseError);
|
|
@@ -416,7 +416,7 @@ export type removeEntityKsefCredentialResponse = (removeEntityKsefCredentialResp
|
|
|
416
416
|
export declare const getRemoveEntityKsefCredentialUrl: (id: string) => string;
|
|
417
417
|
export declare const removeEntityKsefCredential: (id: string, options?: RequestInit) => Promise<removeEntityKsefCredentialResponse>;
|
|
418
418
|
/**
|
|
419
|
-
* Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
|
|
419
|
+
* Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
|
|
420
420
|
* @summary Create a new entity
|
|
421
421
|
*/
|
|
422
422
|
export type createEntityResponse201 = {
|
|
@@ -527,7 +527,7 @@ export type getEntityByIdResponse = (getEntityByIdResponseSuccess | getEntityByI
|
|
|
527
527
|
export declare const getGetEntityByIdUrl: (id: string) => string;
|
|
528
528
|
export declare const getEntityById: (id: string, options?: RequestInit) => Promise<getEntityByIdResponse>;
|
|
529
529
|
/**
|
|
530
|
-
* Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
|
|
530
|
+
* Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
|
|
531
531
|
* @summary Update an entity
|
|
532
532
|
*/
|
|
533
533
|
export type patchEntityResponse200 = {
|
|
@@ -416,7 +416,7 @@ export type removeEntityKsefCredentialResponse = (removeEntityKsefCredentialResp
|
|
|
416
416
|
export declare const getRemoveEntityKsefCredentialUrl: (id: string) => string;
|
|
417
417
|
export declare const removeEntityKsefCredential: (id: string, options?: RequestInit) => Promise<removeEntityKsefCredentialResponse>;
|
|
418
418
|
/**
|
|
419
|
-
* Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
|
|
419
|
+
* Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
|
|
420
420
|
* @summary Create a new entity
|
|
421
421
|
*/
|
|
422
422
|
export type createEntityResponse201 = {
|
|
@@ -527,7 +527,7 @@ export type getEntityByIdResponse = (getEntityByIdResponseSuccess | getEntityByI
|
|
|
527
527
|
export declare const getGetEntityByIdUrl: (id: string) => string;
|
|
528
528
|
export declare const getEntityById: (id: string, options?: RequestInit) => Promise<getEntityByIdResponse>;
|
|
529
529
|
/**
|
|
530
|
-
* Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
|
|
530
|
+
* Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
|
|
531
531
|
* @summary Update an entity
|
|
532
532
|
*/
|
|
533
533
|
export type patchEntityResponse200 = {
|
|
@@ -447,10 +447,14 @@ export type createInvoiceResponse500 = {
|
|
|
447
447
|
data: Error;
|
|
448
448
|
status: 500;
|
|
449
449
|
};
|
|
450
|
+
export type createInvoiceResponse503 = {
|
|
451
|
+
data: Error;
|
|
452
|
+
status: 503;
|
|
453
|
+
};
|
|
450
454
|
export type createInvoiceResponseSuccess = (createInvoiceResponse201) & {
|
|
451
455
|
headers: Headers;
|
|
452
456
|
};
|
|
453
|
-
export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500) & {
|
|
457
|
+
export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500 | createInvoiceResponse503) & {
|
|
454
458
|
headers: Headers;
|
|
455
459
|
};
|
|
456
460
|
export type createInvoiceResponse = (createInvoiceResponseSuccess | createInvoiceResponseError);
|
|
@@ -533,10 +537,14 @@ export type createCustomInvoiceResponse500 = {
|
|
|
533
537
|
data: Error;
|
|
534
538
|
status: 500;
|
|
535
539
|
};
|
|
540
|
+
export type createCustomInvoiceResponse503 = {
|
|
541
|
+
data: Error;
|
|
542
|
+
status: 503;
|
|
543
|
+
};
|
|
536
544
|
export type createCustomInvoiceResponseSuccess = (createCustomInvoiceResponse201) & {
|
|
537
545
|
headers: Headers;
|
|
538
546
|
};
|
|
539
|
-
export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500) & {
|
|
547
|
+
export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500 | createCustomInvoiceResponse503) & {
|
|
540
548
|
headers: Headers;
|
|
541
549
|
};
|
|
542
550
|
export type createCustomInvoiceResponse = (createCustomInvoiceResponseSuccess | createCustomInvoiceResponseError);
|
|
@@ -878,10 +886,14 @@ export type voidInvoiceResponse500 = {
|
|
|
878
886
|
data: Error;
|
|
879
887
|
status: 500;
|
|
880
888
|
};
|
|
889
|
+
export type voidInvoiceResponse503 = {
|
|
890
|
+
data: Error;
|
|
891
|
+
status: 503;
|
|
892
|
+
};
|
|
881
893
|
export type voidInvoiceResponseSuccess = (voidInvoiceResponse200) & {
|
|
882
894
|
headers: Headers;
|
|
883
895
|
};
|
|
884
|
-
export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500) & {
|
|
896
|
+
export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500 | voidInvoiceResponse503) & {
|
|
885
897
|
headers: Headers;
|
|
886
898
|
};
|
|
887
899
|
export type voidInvoiceResponse = (voidInvoiceResponseSuccess | voidInvoiceResponseError);
|
|
@@ -447,10 +447,14 @@ export type createInvoiceResponse500 = {
|
|
|
447
447
|
data: Error;
|
|
448
448
|
status: 500;
|
|
449
449
|
};
|
|
450
|
+
export type createInvoiceResponse503 = {
|
|
451
|
+
data: Error;
|
|
452
|
+
status: 503;
|
|
453
|
+
};
|
|
450
454
|
export type createInvoiceResponseSuccess = (createInvoiceResponse201) & {
|
|
451
455
|
headers: Headers;
|
|
452
456
|
};
|
|
453
|
-
export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500) & {
|
|
457
|
+
export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500 | createInvoiceResponse503) & {
|
|
454
458
|
headers: Headers;
|
|
455
459
|
};
|
|
456
460
|
export type createInvoiceResponse = (createInvoiceResponseSuccess | createInvoiceResponseError);
|
|
@@ -533,10 +537,14 @@ export type createCustomInvoiceResponse500 = {
|
|
|
533
537
|
data: Error;
|
|
534
538
|
status: 500;
|
|
535
539
|
};
|
|
540
|
+
export type createCustomInvoiceResponse503 = {
|
|
541
|
+
data: Error;
|
|
542
|
+
status: 503;
|
|
543
|
+
};
|
|
536
544
|
export type createCustomInvoiceResponseSuccess = (createCustomInvoiceResponse201) & {
|
|
537
545
|
headers: Headers;
|
|
538
546
|
};
|
|
539
|
-
export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500) & {
|
|
547
|
+
export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500 | createCustomInvoiceResponse503) & {
|
|
540
548
|
headers: Headers;
|
|
541
549
|
};
|
|
542
550
|
export type createCustomInvoiceResponse = (createCustomInvoiceResponseSuccess | createCustomInvoiceResponseError);
|
|
@@ -878,10 +886,14 @@ export type voidInvoiceResponse500 = {
|
|
|
878
886
|
data: Error;
|
|
879
887
|
status: 500;
|
|
880
888
|
};
|
|
889
|
+
export type voidInvoiceResponse503 = {
|
|
890
|
+
data: Error;
|
|
891
|
+
status: 503;
|
|
892
|
+
};
|
|
881
893
|
export type voidInvoiceResponseSuccess = (voidInvoiceResponse200) & {
|
|
882
894
|
headers: Headers;
|
|
883
895
|
};
|
|
884
|
-
export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500) & {
|
|
896
|
+
export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500 | voidInvoiceResponse503) & {
|
|
885
897
|
headers: Headers;
|
|
886
898
|
};
|
|
887
899
|
export type voidInvoiceResponse = (voidInvoiceResponseSuccess | voidInvoiceResponseError);
|
|
@@ -16,4 +16,6 @@ export declare const AccountWebhookResponseEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const AccountWebhookResponseEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const AccountWebhookWithSecretEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const AccountWebhookWithSecretEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const CreateAccountWebhookBodyEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const CreateAccountWebhookBodyEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -104,4 +104,6 @@ export declare const CreateWebhookBodyEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const CreateWebhookBodyEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -16,4 +16,6 @@ export declare const UpdateAccountWebhookBodyEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -16,4 +16,6 @@ export declare const UpdateAccountWebhookBodyEventsItem: {
|
|
|
16
16
|
readonly white_label_subscriptionrenewed: "white_label_subscription.renewed";
|
|
17
17
|
readonly white_label_subscriptionexpired: "white_label_subscription.expired";
|
|
18
18
|
readonly white_label_subscriptionpayment_failed: "white_label_subscription.payment_failed";
|
|
19
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
20
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
19
21
|
};
|
|
@@ -104,4 +104,6 @@ export declare const UpdateWebhookBodyEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const UpdateWebhookBodyEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const WebhookResponseEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const WebhookResponseEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const WebhookWithSecretEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -104,4 +104,6 @@ export declare const WebhookWithSecretEventsItem: {
|
|
|
104
104
|
readonly emailbounced: "email.bounced";
|
|
105
105
|
readonly emailcomplained: "email.complained";
|
|
106
106
|
readonly emailopened: "email.opened";
|
|
107
|
+
readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
|
|
108
|
+
readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
|
|
107
109
|
};
|
|
@@ -232,10 +232,14 @@ export type processOrderResponse500 = {
|
|
|
232
232
|
data: Error;
|
|
233
233
|
status: 500;
|
|
234
234
|
};
|
|
235
|
+
export type processOrderResponse503 = {
|
|
236
|
+
data: Error;
|
|
237
|
+
status: 503;
|
|
238
|
+
};
|
|
235
239
|
export type processOrderResponseSuccess = (processOrderResponse200) & {
|
|
236
240
|
headers: Headers;
|
|
237
241
|
};
|
|
238
|
-
export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500) & {
|
|
242
|
+
export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500 | processOrderResponse503) & {
|
|
239
243
|
headers: Headers;
|
|
240
244
|
};
|
|
241
245
|
export type processOrderResponse = (processOrderResponseSuccess | processOrderResponseError);
|
|
@@ -232,10 +232,14 @@ export type processOrderResponse500 = {
|
|
|
232
232
|
data: Error;
|
|
233
233
|
status: 500;
|
|
234
234
|
};
|
|
235
|
+
export type processOrderResponse503 = {
|
|
236
|
+
data: Error;
|
|
237
|
+
status: 503;
|
|
238
|
+
};
|
|
235
239
|
export type processOrderResponseSuccess = (processOrderResponse200) & {
|
|
236
240
|
headers: Headers;
|
|
237
241
|
};
|
|
238
|
-
export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500) & {
|
|
242
|
+
export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500 | processOrderResponse503) & {
|
|
239
243
|
headers: Headers;
|
|
240
244
|
};
|
|
241
245
|
export type processOrderResponse = (processOrderResponseSuccess | processOrderResponseError);
|
|
@@ -29,6 +29,8 @@ export declare const CreateAccountWebhookBody: zod.ZodObject<{
|
|
|
29
29
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
30
30
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
31
31
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
32
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
33
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
32
34
|
}>>;
|
|
33
35
|
active: zod.ZodDefault<zod.ZodBoolean>;
|
|
34
36
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
@@ -69,6 +71,8 @@ export declare const GetAccountWebhooksResponse: zod.ZodObject<{
|
|
|
69
71
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
70
72
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
71
73
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
74
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
75
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
72
76
|
}>>;
|
|
73
77
|
active: zod.ZodBoolean;
|
|
74
78
|
metadata: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
@@ -114,6 +118,8 @@ export declare const GetAccountWebhookByIdResponse: zod.ZodObject<{
|
|
|
114
118
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
115
119
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
116
120
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
121
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
122
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
117
123
|
}>>;
|
|
118
124
|
active: zod.ZodBoolean;
|
|
119
125
|
metadata: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
@@ -147,6 +153,8 @@ export declare const UpdateAccountWebhookBody: zod.ZodObject<{
|
|
|
147
153
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
148
154
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
149
155
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
156
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
157
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
150
158
|
}>>>;
|
|
151
159
|
active: zod.ZodOptional<zod.ZodBoolean>;
|
|
152
160
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
@@ -171,6 +179,8 @@ export declare const UpdateAccountWebhookResponse: zod.ZodObject<{
|
|
|
171
179
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
172
180
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
173
181
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
182
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
183
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
174
184
|
}>>;
|
|
175
185
|
active: zod.ZodBoolean;
|
|
176
186
|
metadata: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
@@ -337,6 +347,8 @@ export declare const RotateAccountWebhookSecretResponse: zod.ZodObject<{
|
|
|
337
347
|
"white_label_subscription.renewed": "white_label_subscription.renewed";
|
|
338
348
|
"white_label_subscription.expired": "white_label_subscription.expired";
|
|
339
349
|
"white_label_subscription.payment_failed": "white_label_subscription.payment_failed";
|
|
350
|
+
"fiscalization.certificate_expiring": "fiscalization.certificate_expiring";
|
|
351
|
+
"fiscalization.certificate_expired": "fiscalization.certificate_expired";
|
|
340
352
|
}>>;
|
|
341
353
|
active: zod.ZodBoolean;
|
|
342
354
|
metadata: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|