@spaceinvoices/js-sdk 2.2.0 → 2.2.2
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/documents/documents.d.cts +42 -1
- package/dist/generated/documents/documents.d.ts +42 -1
- package/dist/generated/documents/documents.d.ts.map +1 -1
- package/dist/generated/model/advanceInvoice.d.cts +6 -11
- package/dist/generated/model/advanceInvoice.d.ts +6 -11
- package/dist/generated/model/advanceInvoice.d.ts.map +1 -1
- package/dist/generated/model/advanceInvoiceItemsItem.d.cts +2 -2
- package/dist/generated/model/advanceInvoiceItemsItem.d.ts +2 -2
- package/dist/generated/model/advanceInvoiceItemsItem.d.ts.map +1 -1
- package/dist/generated/model/completeAdvanceInvoicePreview.d.cts +4 -8
- package/dist/generated/model/completeAdvanceInvoicePreview.d.ts +4 -8
- package/dist/generated/model/completeAdvanceInvoicePreview.d.ts.map +1 -1
- package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.cts +2 -2
- package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.ts +2 -2
- package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.ts.map +1 -1
- package/dist/generated/model/completeCreditNotePreview.d.cts +4 -8
- package/dist/generated/model/completeCreditNotePreview.d.ts +4 -8
- package/dist/generated/model/completeCreditNotePreview.d.ts.map +1 -1
- package/dist/generated/model/completeCreditNotePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/completeCreditNotePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/completeCreditNotePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/completeCreditNotePreviewItemsItem.d.cts +2 -2
- package/dist/generated/model/completeCreditNotePreviewItemsItem.d.ts +2 -2
- package/dist/generated/model/completeCreditNotePreviewItemsItem.d.ts.map +1 -1
- package/dist/generated/model/completeEstimatePreview.d.cts +4 -8
- package/dist/generated/model/completeEstimatePreview.d.ts +4 -8
- package/dist/generated/model/completeEstimatePreview.d.ts.map +1 -1
- package/dist/generated/model/completeEstimatePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/completeEstimatePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/completeEstimatePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/completeEstimatePreviewItemsItem.d.cts +2 -2
- package/dist/generated/model/completeEstimatePreviewItemsItem.d.ts +2 -2
- package/dist/generated/model/completeEstimatePreviewItemsItem.d.ts.map +1 -1
- package/dist/generated/model/completeInvoicePreview.d.cts +4 -8
- package/dist/generated/model/completeInvoicePreview.d.ts +4 -8
- package/dist/generated/model/completeInvoicePreview.d.ts.map +1 -1
- package/dist/generated/model/completeInvoicePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/completeInvoicePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/completeInvoicePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/completeInvoicePreviewItemsItem.d.cts +2 -2
- package/dist/generated/model/completeInvoicePreviewItemsItem.d.ts +2 -2
- package/dist/generated/model/completeInvoicePreviewItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createAdvanceInvoiceBody.d.cts +6 -10
- package/dist/generated/model/createAdvanceInvoiceBody.d.ts +6 -10
- package/dist/generated/model/createAdvanceInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.cts +4 -51
- package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.ts +4 -51
- package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.cts +1 -1
- package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.ts +1 -1
- package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.ts.map +1 -1
- package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCreditNoteBody.d.cts +6 -10
- package/dist/generated/model/createCreditNoteBody.d.ts +6 -10
- package/dist/generated/model/createCreditNoteBody.d.ts.map +1 -1
- package/dist/generated/model/createCreditNoteBodyCustomer.d.cts +4 -51
- package/dist/generated/model/createCreditNoteBodyCustomer.d.ts +4 -51
- package/dist/generated/model/createCreditNoteBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createCreditNoteBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createCreditNoteBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createCreditNoteBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBody.d.cts +5 -9
- package/dist/generated/model/createCustomAdvanceInvoiceBody.d.ts +5 -9
- package/dist/generated/model/createCustomAdvanceInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.cts +3 -50
- package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.ts +3 -50
- package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.cts +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.ts +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.ts.map +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyPayment.d.cts +1 -1
- package/dist/generated/model/createCustomAdvanceInvoiceBodyPayment.d.ts +1 -1
- package/dist/generated/model/createCustomCreditNoteBody.d.cts +5 -9
- package/dist/generated/model/createCustomCreditNoteBody.d.ts +5 -9
- package/dist/generated/model/createCustomCreditNoteBody.d.ts.map +1 -1
- package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.cts +3 -50
- package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.ts +3 -50
- package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCustomCreditNoteBodyPayment.d.cts +1 -1
- package/dist/generated/model/createCustomCreditNoteBodyPayment.d.ts +1 -1
- package/dist/generated/model/createCustomEstimateBody.d.cts +5 -9
- package/dist/generated/model/createCustomEstimateBody.d.ts +5 -9
- package/dist/generated/model/createCustomEstimateBody.d.ts.map +1 -1
- package/dist/generated/model/createCustomEstimateBodyCustomer.d.cts +3 -50
- package/dist/generated/model/createCustomEstimateBodyCustomer.d.ts +3 -50
- package/dist/generated/model/createCustomEstimateBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createCustomEstimateBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createCustomEstimateBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createCustomEstimateBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCustomInvoiceBody.d.cts +5 -9
- package/dist/generated/model/createCustomInvoiceBody.d.ts +5 -9
- package/dist/generated/model/createCustomInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/createCustomInvoiceBodyCustomer.d.cts +3 -50
- package/dist/generated/model/createCustomInvoiceBodyCustomer.d.ts +3 -50
- package/dist/generated/model/createCustomInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createCustomInvoiceBodyPayment.d.cts +1 -1
- package/dist/generated/model/createCustomInvoiceBodyPayment.d.ts +1 -1
- package/dist/generated/model/createDocumentPayment.d.cts +35 -0
- package/dist/generated/model/createDocumentPayment.d.ts +35 -0
- package/dist/generated/model/createDocumentPayment.d.ts.map +1 -0
- package/dist/generated/model/createDocumentPaymentMetadata.d.cts +15 -0
- package/dist/generated/model/createDocumentPaymentMetadata.d.ts +15 -0
- package/dist/generated/model/createDocumentPaymentMetadata.d.ts.map +1 -0
- package/dist/generated/model/createEntityBody.d.cts +2 -2
- package/dist/generated/model/createEntityBody.d.ts +2 -2
- package/dist/generated/model/createEntityBody.d.ts.map +1 -1
- package/dist/generated/model/createEntityBodyEnvironment.d.cts +13 -0
- package/dist/generated/model/createEntityBodyEnvironment.d.ts +13 -0
- package/dist/generated/model/createEntityBodyEnvironment.d.ts.map +1 -0
- package/dist/generated/model/createEstimateBody.d.cts +4 -8
- package/dist/generated/model/createEstimateBody.d.ts +4 -8
- package/dist/generated/model/createEstimateBody.d.ts.map +1 -1
- package/dist/generated/model/createEstimateBodyCustomer.d.cts +4 -51
- package/dist/generated/model/createEstimateBodyCustomer.d.ts +4 -51
- package/dist/generated/model/createEstimateBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createEstimateBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createEstimateBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createEstimateBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createInvoiceBody.d.cts +6 -10
- package/dist/generated/model/createInvoiceBody.d.ts +6 -10
- package/dist/generated/model/createInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/createInvoiceBodyCustomer.d.cts +4 -51
- package/dist/generated/model/createInvoiceBodyCustomer.d.ts +4 -51
- package/dist/generated/model/createInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/createInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/createInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/createInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/createWebhookBodyEventsItem.d.cts +0 -11
- package/dist/generated/model/createWebhookBodyEventsItem.d.ts +0 -11
- package/dist/generated/model/createWebhookBodyEventsItem.d.ts.map +1 -1
- package/dist/generated/model/creditNote.d.cts +6 -11
- package/dist/generated/model/creditNote.d.ts +6 -11
- package/dist/generated/model/creditNote.d.ts.map +1 -1
- package/dist/generated/model/creditNoteItemsItem.d.cts +2 -2
- package/dist/generated/model/creditNoteItemsItem.d.ts +2 -2
- package/dist/generated/model/creditNoteItemsItem.d.ts.map +1 -1
- package/dist/generated/model/documentCustomer.d.cts +61 -0
- package/dist/generated/model/documentCustomer.d.ts +61 -0
- package/dist/generated/model/documentCustomer.d.ts.map +1 -0
- package/dist/generated/model/documentEntity.d.cts +44 -0
- package/dist/generated/model/documentEntity.d.ts +44 -0
- package/dist/generated/model/documentEntity.d.ts.map +1 -0
- package/dist/generated/model/documentEntityBankAccount.d.cts +29 -0
- package/dist/generated/model/documentEntityBankAccount.d.ts +29 -0
- package/dist/generated/model/documentEntityBankAccount.d.ts.map +1 -0
- package/dist/generated/model/documentItemTax.d.cts +18 -0
- package/dist/generated/model/documentItemTax.d.ts +18 -0
- package/dist/generated/model/documentItemTax.d.ts.map +1 -0
- package/dist/generated/model/documentSummaryTax.d.cts +14 -0
- package/dist/generated/model/documentSummaryTax.d.ts +14 -0
- package/dist/generated/model/documentSummaryTax.d.ts.map +1 -0
- package/dist/generated/model/estimate.d.cts +6 -11
- package/dist/generated/model/estimate.d.ts +6 -11
- package/dist/generated/model/estimate.d.ts.map +1 -1
- package/dist/generated/model/estimateItemsItem.d.cts +2 -2
- package/dist/generated/model/estimateItemsItem.d.ts +2 -2
- package/dist/generated/model/estimateItemsItem.d.ts.map +1 -1
- package/dist/generated/model/finaFiscalizationResponse.d.cts +2 -0
- package/dist/generated/model/finaFiscalizationResponse.d.ts +2 -0
- package/dist/generated/model/finaFiscalizationResponse.d.ts.map +1 -1
- package/dist/generated/model/fursFiscalizationResponse.d.cts +5 -1
- package/dist/generated/model/fursFiscalizationResponse.d.ts +5 -1
- package/dist/generated/model/fursFiscalizationResponse.d.ts.map +1 -1
- package/dist/generated/model/index.d.cts +9 -0
- package/dist/generated/model/index.d.ts +9 -0
- package/dist/generated/model/index.d.ts.map +1 -1
- package/dist/generated/model/invoice.d.cts +6 -11
- package/dist/generated/model/invoice.d.ts +6 -11
- package/dist/generated/model/invoice.d.ts.map +1 -1
- package/dist/generated/model/invoiceItemsItem.d.cts +2 -2
- package/dist/generated/model/invoiceItemsItem.d.ts +2 -2
- package/dist/generated/model/invoiceItemsItem.d.ts.map +1 -1
- package/dist/generated/model/partialAdvanceInvoicePreview.d.cts +4 -8
- package/dist/generated/model/partialAdvanceInvoicePreview.d.ts +4 -8
- package/dist/generated/model/partialAdvanceInvoicePreview.d.ts.map +1 -1
- package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/partialCreditNotePreview.d.cts +4 -8
- package/dist/generated/model/partialCreditNotePreview.d.ts +4 -8
- package/dist/generated/model/partialCreditNotePreview.d.ts.map +1 -1
- package/dist/generated/model/partialCreditNotePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/partialCreditNotePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/partialCreditNotePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/partialEstimatePreview.d.cts +4 -8
- package/dist/generated/model/partialEstimatePreview.d.ts +4 -8
- package/dist/generated/model/partialEstimatePreview.d.ts.map +1 -1
- package/dist/generated/model/partialEstimatePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/partialEstimatePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/partialEstimatePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/partialInvoicePreview.d.cts +4 -8
- package/dist/generated/model/partialInvoicePreview.d.ts +4 -8
- package/dist/generated/model/partialInvoicePreview.d.ts.map +1 -1
- package/dist/generated/model/partialInvoicePreviewCustomer.d.cts +4 -51
- package/dist/generated/model/partialInvoicePreviewCustomer.d.ts +4 -51
- package/dist/generated/model/partialInvoicePreviewCustomer.d.ts.map +1 -1
- package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.cts +32 -25
- package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts +32 -25
- package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts.map +1 -1
- package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.cts +15 -0
- package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts +15 -0
- package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts.map +1 -0
- package/dist/generated/model/updateAdvanceInvoiceBody.d.cts +3 -7
- package/dist/generated/model/updateAdvanceInvoiceBody.d.ts +3 -7
- package/dist/generated/model/updateAdvanceInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.cts +3 -50
- package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.ts +3 -50
- package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/updateCreditNoteBody.d.cts +3 -7
- package/dist/generated/model/updateCreditNoteBody.d.ts +3 -7
- package/dist/generated/model/updateCreditNoteBody.d.ts.map +1 -1
- package/dist/generated/model/updateCreditNoteBodyCustomer.d.cts +3 -50
- package/dist/generated/model/updateCreditNoteBodyCustomer.d.ts +3 -50
- package/dist/generated/model/updateCreditNoteBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/updateCreditNoteBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/updateCreditNoteBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/updateCreditNoteBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/updateEstimateBody.d.cts +3 -7
- package/dist/generated/model/updateEstimateBody.d.ts +3 -7
- package/dist/generated/model/updateEstimateBody.d.ts.map +1 -1
- package/dist/generated/model/updateEstimateBodyCustomer.d.cts +3 -50
- package/dist/generated/model/updateEstimateBodyCustomer.d.ts +3 -50
- package/dist/generated/model/updateEstimateBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/updateEstimateBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/updateEstimateBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/updateEstimateBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/updateInvoiceBody.d.cts +3 -7
- package/dist/generated/model/updateInvoiceBody.d.ts +3 -7
- package/dist/generated/model/updateInvoiceBody.d.ts.map +1 -1
- package/dist/generated/model/updateInvoiceBodyCustomer.d.cts +3 -50
- package/dist/generated/model/updateInvoiceBodyCustomer.d.ts +3 -50
- package/dist/generated/model/updateInvoiceBodyCustomer.d.ts.map +1 -1
- package/dist/generated/model/updateInvoiceBodyItemsItem.d.cts +2 -2
- package/dist/generated/model/updateInvoiceBodyItemsItem.d.ts +2 -2
- package/dist/generated/model/updateInvoiceBodyItemsItem.d.ts.map +1 -1
- package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +0 -11
- package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +0 -11
- package/dist/generated/model/updateWebhookBodyEventsItem.d.ts.map +1 -1
- package/dist/generated/model/webhookResponseEventsItem.d.cts +0 -11
- package/dist/generated/model/webhookResponseEventsItem.d.ts +0 -11
- package/dist/generated/model/webhookResponseEventsItem.d.ts.map +1 -1
- package/dist/generated/model/webhookWithSecretEventsItem.d.cts +0 -11
- package/dist/generated/model/webhookWithSecretEventsItem.d.ts +0 -11
- package/dist/generated/model/webhookWithSecretEventsItem.d.ts.map +1 -1
- package/dist/generated/stripe-app/stripe-app.d.cts +42 -1
- package/dist/generated/stripe-app/stripe-app.d.ts +42 -1
- package/dist/generated/stripe-app/stripe-app.d.ts.map +1 -1
- package/dist/generated-zod/advance-invoices/advance-invoices.d.cts +70 -35
- package/dist/generated-zod/advance-invoices/advance-invoices.d.ts +70 -35
- package/dist/generated-zod/advance-invoices/advance-invoices.d.ts.map +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.cts +70 -35
- package/dist/generated-zod/credit-notes/credit-notes.d.ts +70 -35
- package/dist/generated-zod/credit-notes/credit-notes.d.ts.map +1 -1
- package/dist/generated-zod/documents/documents.d.cts +19 -0
- package/dist/generated-zod/documents/documents.d.ts +19 -0
- package/dist/generated-zod/documents/documents.d.ts.map +1 -1
- package/dist/generated-zod/entities/entities.d.cts +4 -2
- package/dist/generated-zod/entities/entities.d.ts +4 -2
- package/dist/generated-zod/entities/entities.d.ts.map +1 -1
- package/dist/generated-zod/estimates/estimates.d.cts +40 -35
- package/dist/generated-zod/estimates/estimates.d.ts +40 -35
- package/dist/generated-zod/estimates/estimates.d.ts.map +1 -1
- package/dist/generated-zod/furs-premises/furs-premises.d.cts +15 -7
- package/dist/generated-zod/furs-premises/furs-premises.d.ts +15 -7
- package/dist/generated-zod/furs-premises/furs-premises.d.ts.map +1 -1
- package/dist/generated-zod/invoices/invoices.d.cts +77 -35
- package/dist/generated-zod/invoices/invoices.d.ts +77 -35
- package/dist/generated-zod/invoices/invoices.d.ts.map +1 -1
- package/dist/generated-zod/stripe-app/stripe-app.d.cts +10 -0
- package/dist/generated-zod/stripe-app/stripe-app.d.ts +10 -0
- package/dist/generated-zod/stripe-app/stripe-app.d.ts.map +1 -1
- package/dist/generated-zod/webhooks/webhooks.d.cts +0 -66
- package/dist/generated-zod/webhooks/webhooks.d.ts +0 -66
- package/dist/generated-zod/webhooks/webhooks.d.ts.map +1 -1
- package/dist/index.cjs +52 -52
- package/dist/index.cjs.map +21 -20
- package/dist/index.js +52 -52
- package/dist/index.js.map +21 -20
- package/dist/sdk/client.d.cts +2 -0
- package/dist/sdk/client.d.ts +2 -0
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/documents.d.cts +2 -0
- package/dist/sdk/documents.d.ts +2 -0
- package/dist/sdk/documents.d.ts.map +1 -1
- package/dist/sdk/stripe-app.d.cts +2 -0
- package/dist/sdk/stripe-app.d.ts +2 -0
- package/dist/sdk/stripe-app.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,66 +5,19 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { DocumentEntity } from './documentEntity';
|
|
8
9
|
/**
|
|
9
10
|
* Customer of the invoice.
|
|
10
11
|
Both `customer` and `customer_id` are optional - invoices can be created without customer information.
|
|
11
12
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
12
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
13
|
-
* @nullable
|
|
13
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
|
|
14
14
|
*/
|
|
15
|
-
export type CompleteInvoicePreviewCustomer = {
|
|
16
|
-
/** @nullable */
|
|
17
|
-
name?: string | null;
|
|
18
|
-
/** @nullable */
|
|
19
|
-
email?: string | null;
|
|
20
|
-
/** @nullable */
|
|
21
|
-
address?: string | null;
|
|
22
|
-
/** @nullable */
|
|
23
|
-
address_2?: string | null;
|
|
24
|
-
/** @nullable */
|
|
25
|
-
post_code?: string | null;
|
|
26
|
-
/** @nullable */
|
|
27
|
-
city?: string | null;
|
|
28
|
-
/** @nullable */
|
|
29
|
-
state?: string | null;
|
|
30
|
-
/** @nullable */
|
|
31
|
-
country?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* @minLength 2
|
|
34
|
-
* @maxLength 2
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
37
|
-
country_code?: string | null;
|
|
38
|
-
/** @nullable */
|
|
39
|
-
tax_number?: string | null;
|
|
40
|
-
/** @nullable */
|
|
41
|
-
tax_number_2?: string | null;
|
|
42
|
-
/** @nullable */
|
|
43
|
-
company_number?: string | null;
|
|
44
|
-
/** @nullable */
|
|
45
|
-
bank_account?: {
|
|
46
|
-
/** Account type determines which fields are used */
|
|
47
|
-
type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
|
|
48
|
-
/** Display name for this account. Falls back to account number if not set */
|
|
49
|
-
name?: string;
|
|
50
|
-
/** Bank name */
|
|
51
|
-
bank_name?: string;
|
|
52
|
-
/** IBAN (for type=iban) */
|
|
53
|
-
iban?: string;
|
|
54
|
-
/** Account number (for us_domestic, uk_domestic, other) */
|
|
55
|
-
account_number?: string;
|
|
56
|
-
/** BIC/SWIFT code for international transfers */
|
|
57
|
-
bic?: string;
|
|
58
|
-
/** US ABA routing number (for type=us_domestic) */
|
|
59
|
-
routing_number?: string;
|
|
60
|
-
/** UK sort code (for type=uk_domestic) */
|
|
61
|
-
sort_code?: string;
|
|
62
|
-
} | null;
|
|
15
|
+
export type CompleteInvoicePreviewCustomer = DocumentEntity & ({
|
|
63
16
|
/** Whether to save (create new or update existing) the customer data.
|
|
64
17
|
Defaults to `true`.
|
|
65
18
|
When `true` with `customer_id`, updates the existing customer.
|
|
66
19
|
When `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.
|
|
67
20
|
When `false`, customer data is stored inline on the document only. */
|
|
68
21
|
save_customer?: boolean;
|
|
69
|
-
} | null;
|
|
22
|
+
} | null);
|
|
70
23
|
//# sourceMappingURL=completeInvoicePreviewCustomer.d.ts.map
|
|
@@ -5,66 +5,19 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { DocumentEntity } from './documentEntity';
|
|
8
9
|
/**
|
|
9
10
|
* Customer of the invoice.
|
|
10
11
|
Both `customer` and `customer_id` are optional - invoices can be created without customer information.
|
|
11
12
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
12
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
13
|
-
* @nullable
|
|
13
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
|
|
14
14
|
*/
|
|
15
|
-
export type CompleteInvoicePreviewCustomer = {
|
|
16
|
-
/** @nullable */
|
|
17
|
-
name?: string | null;
|
|
18
|
-
/** @nullable */
|
|
19
|
-
email?: string | null;
|
|
20
|
-
/** @nullable */
|
|
21
|
-
address?: string | null;
|
|
22
|
-
/** @nullable */
|
|
23
|
-
address_2?: string | null;
|
|
24
|
-
/** @nullable */
|
|
25
|
-
post_code?: string | null;
|
|
26
|
-
/** @nullable */
|
|
27
|
-
city?: string | null;
|
|
28
|
-
/** @nullable */
|
|
29
|
-
state?: string | null;
|
|
30
|
-
/** @nullable */
|
|
31
|
-
country?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* @minLength 2
|
|
34
|
-
* @maxLength 2
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
37
|
-
country_code?: string | null;
|
|
38
|
-
/** @nullable */
|
|
39
|
-
tax_number?: string | null;
|
|
40
|
-
/** @nullable */
|
|
41
|
-
tax_number_2?: string | null;
|
|
42
|
-
/** @nullable */
|
|
43
|
-
company_number?: string | null;
|
|
44
|
-
/** @nullable */
|
|
45
|
-
bank_account?: {
|
|
46
|
-
/** Account type determines which fields are used */
|
|
47
|
-
type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
|
|
48
|
-
/** Display name for this account. Falls back to account number if not set */
|
|
49
|
-
name?: string;
|
|
50
|
-
/** Bank name */
|
|
51
|
-
bank_name?: string;
|
|
52
|
-
/** IBAN (for type=iban) */
|
|
53
|
-
iban?: string;
|
|
54
|
-
/** Account number (for us_domestic, uk_domestic, other) */
|
|
55
|
-
account_number?: string;
|
|
56
|
-
/** BIC/SWIFT code for international transfers */
|
|
57
|
-
bic?: string;
|
|
58
|
-
/** US ABA routing number (for type=us_domestic) */
|
|
59
|
-
routing_number?: string;
|
|
60
|
-
/** UK sort code (for type=uk_domestic) */
|
|
61
|
-
sort_code?: string;
|
|
62
|
-
} | null;
|
|
15
|
+
export type CompleteInvoicePreviewCustomer = DocumentEntity & ({
|
|
63
16
|
/** Whether to save (create new or update existing) the customer data.
|
|
64
17
|
Defaults to `true`.
|
|
65
18
|
When `true` with `customer_id`, updates the existing customer.
|
|
66
19
|
When `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.
|
|
67
20
|
When `false`, customer data is stored inline on the document only. */
|
|
68
21
|
save_customer?: boolean;
|
|
69
|
-
} | null;
|
|
22
|
+
} | null);
|
|
70
23
|
//# sourceMappingURL=completeInvoicePreviewCustomer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeInvoicePreviewCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/completeInvoicePreviewCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"completeInvoicePreviewCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/completeInvoicePreviewCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG,cAAc,GAAG,CAAC;IAC7D;;;;uEAImE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CompleteInvoicePreviewItemsItemMetadata } from './completeInvoicePreviewItemsItemMetadata';
|
|
9
|
-
import type {
|
|
9
|
+
import type { DocumentItemTax } from './documentItemTax';
|
|
10
10
|
import type { LineDiscount } from './lineDiscount';
|
|
11
11
|
export type CompleteInvoicePreviewItemsItem = {
|
|
12
12
|
/**
|
|
@@ -39,7 +39,7 @@ export type CompleteInvoicePreviewItemsItem = {
|
|
|
39
39
|
*/
|
|
40
40
|
unit?: string | null;
|
|
41
41
|
/** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
|
|
42
|
-
taxes?:
|
|
42
|
+
taxes?: DocumentItemTax[];
|
|
43
43
|
/**
|
|
44
44
|
* Line discounts (max 5). Applied sequentially to line subtotal.
|
|
45
45
|
* @maxItems 5
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CompleteInvoicePreviewItemsItemMetadata } from './completeInvoicePreviewItemsItemMetadata';
|
|
9
|
-
import type {
|
|
9
|
+
import type { DocumentItemTax } from './documentItemTax';
|
|
10
10
|
import type { LineDiscount } from './lineDiscount';
|
|
11
11
|
export type CompleteInvoicePreviewItemsItem = {
|
|
12
12
|
/**
|
|
@@ -39,7 +39,7 @@ export type CompleteInvoicePreviewItemsItem = {
|
|
|
39
39
|
*/
|
|
40
40
|
unit?: string | null;
|
|
41
41
|
/** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
|
|
42
|
-
taxes?:
|
|
42
|
+
taxes?: DocumentItemTax[];
|
|
43
43
|
/**
|
|
44
44
|
* Line discounts (max 5). Applied sequentially to line subtotal.
|
|
45
45
|
* @maxItems 5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeInvoicePreviewItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/completeInvoicePreviewItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACzG,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"completeInvoicePreviewItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/completeInvoicePreviewItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACzG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;uCAGmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;kEAE8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import type { CreateAdvanceInvoiceBodyCustomer } from './createAdvanceInvoiceBodyCustomer';
|
|
9
9
|
import type { CreateAdvanceInvoiceBodyFina } from './createAdvanceInvoiceBodyFina';
|
|
10
10
|
import type { CreateAdvanceInvoiceBodyFurs } from './createAdvanceInvoiceBodyFurs';
|
|
11
|
-
import type { CreateAdvanceInvoiceBodyIssuer } from './createAdvanceInvoiceBodyIssuer';
|
|
12
11
|
import type { CreateAdvanceInvoiceBodyItemsItem } from './createAdvanceInvoiceBodyItemsItem';
|
|
13
12
|
import type { CreateAdvanceInvoiceBodyMetadata } from './createAdvanceInvoiceBodyMetadata';
|
|
14
|
-
import type {
|
|
13
|
+
import type { CreateDocumentPayment } from './createDocumentPayment';
|
|
14
|
+
import type { DocumentEntity } from './documentEntity';
|
|
15
15
|
export type CreateAdvanceInvoiceBody = {
|
|
16
16
|
/** Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize. */
|
|
17
17
|
is_draft?: boolean;
|
|
@@ -20,20 +20,16 @@ export type CreateAdvanceInvoiceBody = {
|
|
|
20
20
|
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
|
|
21
21
|
*/
|
|
22
22
|
date?: string;
|
|
23
|
-
|
|
24
|
-
issuer?: CreateAdvanceInvoiceBodyIssuer;
|
|
23
|
+
issuer?: DocumentEntity;
|
|
25
24
|
/**
|
|
26
25
|
* Referenced Customer ID. Required if customer is not provided.
|
|
27
26
|
* @nullable
|
|
28
27
|
*/
|
|
29
28
|
customer_id?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
* Customer of the advance invoice.
|
|
29
|
+
/** Customer of the advance invoice.
|
|
32
30
|
Both `customer` and `customer_id` are optional - advance invoices can be created without customer information.
|
|
33
31
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
34
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
32
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
|
|
37
33
|
customer?: CreateAdvanceInvoiceBodyCustomer;
|
|
38
34
|
/**
|
|
39
35
|
* Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
|
|
@@ -81,7 +77,7 @@ export type CreateAdvanceInvoiceBody = {
|
|
|
81
77
|
* Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status.
|
|
82
78
|
* @nullable
|
|
83
79
|
*/
|
|
84
|
-
payments?:
|
|
80
|
+
payments?: CreateDocumentPayment[] | null;
|
|
85
81
|
/**
|
|
86
82
|
* FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
|
|
87
83
|
* @nullable
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import type { CreateAdvanceInvoiceBodyCustomer } from './createAdvanceInvoiceBodyCustomer';
|
|
9
9
|
import type { CreateAdvanceInvoiceBodyFina } from './createAdvanceInvoiceBodyFina';
|
|
10
10
|
import type { CreateAdvanceInvoiceBodyFurs } from './createAdvanceInvoiceBodyFurs';
|
|
11
|
-
import type { CreateAdvanceInvoiceBodyIssuer } from './createAdvanceInvoiceBodyIssuer';
|
|
12
11
|
import type { CreateAdvanceInvoiceBodyItemsItem } from './createAdvanceInvoiceBodyItemsItem';
|
|
13
12
|
import type { CreateAdvanceInvoiceBodyMetadata } from './createAdvanceInvoiceBodyMetadata';
|
|
14
|
-
import type {
|
|
13
|
+
import type { CreateDocumentPayment } from './createDocumentPayment';
|
|
14
|
+
import type { DocumentEntity } from './documentEntity';
|
|
15
15
|
export type CreateAdvanceInvoiceBody = {
|
|
16
16
|
/** Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize. */
|
|
17
17
|
is_draft?: boolean;
|
|
@@ -20,20 +20,16 @@ export type CreateAdvanceInvoiceBody = {
|
|
|
20
20
|
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
|
|
21
21
|
*/
|
|
22
22
|
date?: string;
|
|
23
|
-
|
|
24
|
-
issuer?: CreateAdvanceInvoiceBodyIssuer;
|
|
23
|
+
issuer?: DocumentEntity;
|
|
25
24
|
/**
|
|
26
25
|
* Referenced Customer ID. Required if customer is not provided.
|
|
27
26
|
* @nullable
|
|
28
27
|
*/
|
|
29
28
|
customer_id?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
* Customer of the advance invoice.
|
|
29
|
+
/** Customer of the advance invoice.
|
|
32
30
|
Both `customer` and `customer_id` are optional - advance invoices can be created without customer information.
|
|
33
31
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
34
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
32
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
|
|
37
33
|
customer?: CreateAdvanceInvoiceBodyCustomer;
|
|
38
34
|
/**
|
|
39
35
|
* Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
|
|
@@ -81,7 +77,7 @@ export type CreateAdvanceInvoiceBody = {
|
|
|
81
77
|
* Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status.
|
|
82
78
|
* @nullable
|
|
83
79
|
*/
|
|
84
|
-
payments?:
|
|
80
|
+
payments?: CreateDocumentPayment[] | null;
|
|
85
81
|
/**
|
|
86
82
|
* FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
|
|
87
83
|
* @nullable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdvanceInvoiceBody.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createAdvanceInvoiceBody.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,yMAAyM;IACzM,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;yIAGqI;IACrI,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAC5C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;OAGG;IACH,KAAK,EAAE,iCAAiC,EAAE,CAAC;IAC3C,8FAA8F;IAC9F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"}
|
|
@@ -5,66 +5,19 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { DocumentEntity } from './documentEntity';
|
|
8
9
|
/**
|
|
9
10
|
* Customer of the advance invoice.
|
|
10
11
|
Both `customer` and `customer_id` are optional - advance invoices can be created without customer information.
|
|
11
12
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
12
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
13
|
-
* @nullable
|
|
13
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
|
|
14
14
|
*/
|
|
15
|
-
export type CreateAdvanceInvoiceBodyCustomer = {
|
|
16
|
-
/** @nullable */
|
|
17
|
-
name?: string | null;
|
|
18
|
-
/** @nullable */
|
|
19
|
-
email?: string | null;
|
|
20
|
-
/** @nullable */
|
|
21
|
-
address?: string | null;
|
|
22
|
-
/** @nullable */
|
|
23
|
-
address_2?: string | null;
|
|
24
|
-
/** @nullable */
|
|
25
|
-
post_code?: string | null;
|
|
26
|
-
/** @nullable */
|
|
27
|
-
city?: string | null;
|
|
28
|
-
/** @nullable */
|
|
29
|
-
state?: string | null;
|
|
30
|
-
/** @nullable */
|
|
31
|
-
country?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* @minLength 2
|
|
34
|
-
* @maxLength 2
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
37
|
-
country_code?: string | null;
|
|
38
|
-
/** @nullable */
|
|
39
|
-
tax_number?: string | null;
|
|
40
|
-
/** @nullable */
|
|
41
|
-
tax_number_2?: string | null;
|
|
42
|
-
/** @nullable */
|
|
43
|
-
company_number?: string | null;
|
|
44
|
-
/** @nullable */
|
|
45
|
-
bank_account?: {
|
|
46
|
-
/** Account type determines which fields are used */
|
|
47
|
-
type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
|
|
48
|
-
/** Display name for this account. Falls back to account number if not set */
|
|
49
|
-
name?: string;
|
|
50
|
-
/** Bank name */
|
|
51
|
-
bank_name?: string;
|
|
52
|
-
/** IBAN (for type=iban) */
|
|
53
|
-
iban?: string;
|
|
54
|
-
/** Account number (for us_domestic, uk_domestic, other) */
|
|
55
|
-
account_number?: string;
|
|
56
|
-
/** BIC/SWIFT code for international transfers */
|
|
57
|
-
bic?: string;
|
|
58
|
-
/** US ABA routing number (for type=us_domestic) */
|
|
59
|
-
routing_number?: string;
|
|
60
|
-
/** UK sort code (for type=uk_domestic) */
|
|
61
|
-
sort_code?: string;
|
|
62
|
-
} | null;
|
|
15
|
+
export type CreateAdvanceInvoiceBodyCustomer = DocumentEntity & ({
|
|
63
16
|
/** Whether to save (create new or update existing) the customer data.
|
|
64
17
|
Defaults to `true`.
|
|
65
18
|
When `true` with `customer_id`, updates the existing customer.
|
|
66
19
|
When `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.
|
|
67
20
|
When `false`, customer data is stored inline on the document only. */
|
|
68
21
|
save_customer?: boolean;
|
|
69
|
-
} | null;
|
|
22
|
+
} | null);
|
|
70
23
|
//# sourceMappingURL=createAdvanceInvoiceBodyCustomer.d.ts.map
|
|
@@ -5,66 +5,19 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { DocumentEntity } from './documentEntity';
|
|
8
9
|
/**
|
|
9
10
|
* Customer of the advance invoice.
|
|
10
11
|
Both `customer` and `customer_id` are optional - advance invoices can be created without customer information.
|
|
11
12
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
12
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
13
|
-
* @nullable
|
|
13
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
|
|
14
14
|
*/
|
|
15
|
-
export type CreateAdvanceInvoiceBodyCustomer = {
|
|
16
|
-
/** @nullable */
|
|
17
|
-
name?: string | null;
|
|
18
|
-
/** @nullable */
|
|
19
|
-
email?: string | null;
|
|
20
|
-
/** @nullable */
|
|
21
|
-
address?: string | null;
|
|
22
|
-
/** @nullable */
|
|
23
|
-
address_2?: string | null;
|
|
24
|
-
/** @nullable */
|
|
25
|
-
post_code?: string | null;
|
|
26
|
-
/** @nullable */
|
|
27
|
-
city?: string | null;
|
|
28
|
-
/** @nullable */
|
|
29
|
-
state?: string | null;
|
|
30
|
-
/** @nullable */
|
|
31
|
-
country?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* @minLength 2
|
|
34
|
-
* @maxLength 2
|
|
35
|
-
* @nullable
|
|
36
|
-
*/
|
|
37
|
-
country_code?: string | null;
|
|
38
|
-
/** @nullable */
|
|
39
|
-
tax_number?: string | null;
|
|
40
|
-
/** @nullable */
|
|
41
|
-
tax_number_2?: string | null;
|
|
42
|
-
/** @nullable */
|
|
43
|
-
company_number?: string | null;
|
|
44
|
-
/** @nullable */
|
|
45
|
-
bank_account?: {
|
|
46
|
-
/** Account type determines which fields are used */
|
|
47
|
-
type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
|
|
48
|
-
/** Display name for this account. Falls back to account number if not set */
|
|
49
|
-
name?: string;
|
|
50
|
-
/** Bank name */
|
|
51
|
-
bank_name?: string;
|
|
52
|
-
/** IBAN (for type=iban) */
|
|
53
|
-
iban?: string;
|
|
54
|
-
/** Account number (for us_domestic, uk_domestic, other) */
|
|
55
|
-
account_number?: string;
|
|
56
|
-
/** BIC/SWIFT code for international transfers */
|
|
57
|
-
bic?: string;
|
|
58
|
-
/** US ABA routing number (for type=us_domestic) */
|
|
59
|
-
routing_number?: string;
|
|
60
|
-
/** UK sort code (for type=uk_domestic) */
|
|
61
|
-
sort_code?: string;
|
|
62
|
-
} | null;
|
|
15
|
+
export type CreateAdvanceInvoiceBodyCustomer = DocumentEntity & ({
|
|
63
16
|
/** Whether to save (create new or update existing) the customer data.
|
|
64
17
|
Defaults to `true`.
|
|
65
18
|
When `true` with `customer_id`, updates the existing customer.
|
|
66
19
|
When `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.
|
|
67
20
|
When `false`, customer data is stored inline on the document only. */
|
|
68
21
|
save_customer?: boolean;
|
|
69
|
-
} | null;
|
|
22
|
+
} | null);
|
|
70
23
|
//# sourceMappingURL=createAdvanceInvoiceBodyCustomer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdvanceInvoiceBodyCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"createAdvanceInvoiceBodyCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,cAAc,GAAG,CAAC;IAC/D;;;;uEAImE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@ export type CreateAdvanceInvoiceBodyFurs = {
|
|
|
24
24
|
operator_tax_number?: string;
|
|
25
25
|
/** Operator label/name. If not provided and using user authentication, defaults to user's FURS settings. */
|
|
26
26
|
operator_label?: string;
|
|
27
|
-
/** Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid
|
|
27
|
+
/** Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law. */
|
|
28
28
|
skip?: boolean;
|
|
29
29
|
} | null;
|
|
30
30
|
//# sourceMappingURL=createAdvanceInvoiceBodyFurs.d.ts.map
|
|
@@ -24,7 +24,7 @@ export type CreateAdvanceInvoiceBodyFurs = {
|
|
|
24
24
|
operator_tax_number?: string;
|
|
25
25
|
/** Operator label/name. If not provided and using user authentication, defaults to user's FURS settings. */
|
|
26
26
|
operator_label?: string;
|
|
27
|
-
/** Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid
|
|
27
|
+
/** Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law. */
|
|
28
28
|
skip?: boolean;
|
|
29
29
|
} | null;
|
|
30
30
|
//# sourceMappingURL=createAdvanceInvoiceBodyFurs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdvanceInvoiceBodyFurs.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyFurs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,4GAA4G;IAC5G,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4GAA4G;IAC5G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,
|
|
1
|
+
{"version":3,"file":"createAdvanceInvoiceBodyFurs.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyFurs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,4GAA4G;IAC5G,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4GAA4G;IAC5G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oKAAoK;IACpK,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,IAAI,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CreateAdvanceInvoiceBodyItemsItemMetadata } from './createAdvanceInvoiceBodyItemsItemMetadata';
|
|
9
|
-
import type {
|
|
9
|
+
import type { DocumentItemTax } from './documentItemTax';
|
|
10
10
|
import type { LineDiscount } from './lineDiscount';
|
|
11
11
|
export type CreateAdvanceInvoiceBodyItemsItem = {
|
|
12
12
|
/**
|
|
@@ -39,7 +39,7 @@ export type CreateAdvanceInvoiceBodyItemsItem = {
|
|
|
39
39
|
*/
|
|
40
40
|
unit?: string | null;
|
|
41
41
|
/** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
|
|
42
|
-
taxes?:
|
|
42
|
+
taxes?: DocumentItemTax[];
|
|
43
43
|
/**
|
|
44
44
|
* Line discounts (max 5). Applied sequentially to line subtotal.
|
|
45
45
|
* @maxItems 5
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CreateAdvanceInvoiceBodyItemsItemMetadata } from './createAdvanceInvoiceBodyItemsItemMetadata';
|
|
9
|
-
import type {
|
|
9
|
+
import type { DocumentItemTax } from './documentItemTax';
|
|
10
10
|
import type { LineDiscount } from './lineDiscount';
|
|
11
11
|
export type CreateAdvanceInvoiceBodyItemsItem = {
|
|
12
12
|
/**
|
|
@@ -39,7 +39,7 @@ export type CreateAdvanceInvoiceBodyItemsItem = {
|
|
|
39
39
|
*/
|
|
40
40
|
unit?: string | null;
|
|
41
41
|
/** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
|
|
42
|
-
taxes?:
|
|
42
|
+
taxes?: DocumentItemTax[];
|
|
43
43
|
/**
|
|
44
44
|
* Line discounts (max 5). Applied sequentially to line subtotal.
|
|
45
45
|
* @maxItems 5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdvanceInvoiceBodyItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAC7G,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createAdvanceInvoiceBodyItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createAdvanceInvoiceBodyItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;uCAGmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,yCAAyC,CAAC;IACrD;;kEAE8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -9,10 +9,10 @@ import type { CreateCreditNoteBodyCustomer } from './createCreditNoteBodyCustome
|
|
|
9
9
|
import type { CreateCreditNoteBodyEslog } from './createCreditNoteBodyEslog';
|
|
10
10
|
import type { CreateCreditNoteBodyFina } from './createCreditNoteBodyFina';
|
|
11
11
|
import type { CreateCreditNoteBodyFurs } from './createCreditNoteBodyFurs';
|
|
12
|
-
import type { CreateCreditNoteBodyIssuer } from './createCreditNoteBodyIssuer';
|
|
13
12
|
import type { CreateCreditNoteBodyItemsItem } from './createCreditNoteBodyItemsItem';
|
|
14
13
|
import type { CreateCreditNoteBodyMetadata } from './createCreditNoteBodyMetadata';
|
|
15
|
-
import type {
|
|
14
|
+
import type { CreateDocumentPayment } from './createDocumentPayment';
|
|
15
|
+
import type { DocumentEntity } from './documentEntity';
|
|
16
16
|
export type CreateCreditNoteBody = {
|
|
17
17
|
/** Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize. */
|
|
18
18
|
is_draft?: boolean;
|
|
@@ -21,20 +21,16 @@ export type CreateCreditNoteBody = {
|
|
|
21
21
|
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
|
|
22
22
|
*/
|
|
23
23
|
date?: string;
|
|
24
|
-
|
|
25
|
-
issuer?: CreateCreditNoteBodyIssuer;
|
|
24
|
+
issuer?: DocumentEntity;
|
|
26
25
|
/**
|
|
27
26
|
* Referenced Customer ID. Required if customer is not provided.
|
|
28
27
|
* @nullable
|
|
29
28
|
*/
|
|
30
29
|
customer_id?: string | null;
|
|
31
|
-
/**
|
|
32
|
-
* Customer of the credit note.
|
|
30
|
+
/** Customer of the credit note.
|
|
33
31
|
Both `customer` and `customer_id` are optional - credit notes can be created without customer information.
|
|
34
32
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
35
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
36
|
-
* @nullable
|
|
37
|
-
*/
|
|
33
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
|
|
38
34
|
customer?: CreateCreditNoteBodyCustomer;
|
|
39
35
|
/**
|
|
40
36
|
* Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
|
|
@@ -87,7 +83,7 @@ export type CreateCreditNoteBody = {
|
|
|
87
83
|
* Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status.
|
|
88
84
|
* @nullable
|
|
89
85
|
*/
|
|
90
|
-
payments?:
|
|
86
|
+
payments?: CreateDocumentPayment[] | null;
|
|
91
87
|
/**
|
|
92
88
|
* FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
|
|
93
89
|
* @nullable
|
|
@@ -9,10 +9,10 @@ import type { CreateCreditNoteBodyCustomer } from './createCreditNoteBodyCustome
|
|
|
9
9
|
import type { CreateCreditNoteBodyEslog } from './createCreditNoteBodyEslog';
|
|
10
10
|
import type { CreateCreditNoteBodyFina } from './createCreditNoteBodyFina';
|
|
11
11
|
import type { CreateCreditNoteBodyFurs } from './createCreditNoteBodyFurs';
|
|
12
|
-
import type { CreateCreditNoteBodyIssuer } from './createCreditNoteBodyIssuer';
|
|
13
12
|
import type { CreateCreditNoteBodyItemsItem } from './createCreditNoteBodyItemsItem';
|
|
14
13
|
import type { CreateCreditNoteBodyMetadata } from './createCreditNoteBodyMetadata';
|
|
15
|
-
import type {
|
|
14
|
+
import type { CreateDocumentPayment } from './createDocumentPayment';
|
|
15
|
+
import type { DocumentEntity } from './documentEntity';
|
|
16
16
|
export type CreateCreditNoteBody = {
|
|
17
17
|
/** Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize. */
|
|
18
18
|
is_draft?: boolean;
|
|
@@ -21,20 +21,16 @@ export type CreateCreditNoteBody = {
|
|
|
21
21
|
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
|
|
22
22
|
*/
|
|
23
23
|
date?: string;
|
|
24
|
-
|
|
25
|
-
issuer?: CreateCreditNoteBodyIssuer;
|
|
24
|
+
issuer?: DocumentEntity;
|
|
26
25
|
/**
|
|
27
26
|
* Referenced Customer ID. Required if customer is not provided.
|
|
28
27
|
* @nullable
|
|
29
28
|
*/
|
|
30
29
|
customer_id?: string | null;
|
|
31
|
-
/**
|
|
32
|
-
* Customer of the credit note.
|
|
30
|
+
/** Customer of the credit note.
|
|
33
31
|
Both `customer` and `customer_id` are optional - credit notes can be created without customer information.
|
|
34
32
|
If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
|
|
35
|
-
If only `customer` is provided, the system checks for duplicates by `tax_number` or `
|
|
36
|
-
* @nullable
|
|
37
|
-
*/
|
|
33
|
+
If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
|
|
38
34
|
customer?: CreateCreditNoteBodyCustomer;
|
|
39
35
|
/**
|
|
40
36
|
* Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
|
|
@@ -87,7 +83,7 @@ export type CreateCreditNoteBody = {
|
|
|
87
83
|
* Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status.
|
|
88
84
|
* @nullable
|
|
89
85
|
*/
|
|
90
|
-
payments?:
|
|
86
|
+
payments?: CreateDocumentPayment[] | null;
|
|
91
87
|
/**
|
|
92
88
|
* FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
|
|
93
89
|
* @nullable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCreditNoteBody.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createCreditNoteBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createCreditNoteBody.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createCreditNoteBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC,yMAAyM;IACzM,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;yIAGqI;IACrI,QAAQ,CAAC,EAAE,4BAA4B,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,4BAA4B,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;OAGG;IACH,KAAK,EAAE,6BAA6B,EAAE,CAAC;IACvC,+OAA+O;IAC/O,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"}
|