@timbro/invoices 0.10.3 → 0.12.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.
Files changed (60) hide show
  1. package/README.md +58 -2
  2. package/dist/admin.d.ts +2 -3
  3. package/dist/admin.d.ts.map +1 -1
  4. package/dist/generated/hosted/index.d.ts +3 -3
  5. package/dist/generated/hosted/index.d.ts.map +1 -1
  6. package/dist/generated/hosted/index.js +2 -2
  7. package/dist/generated/hosted/sdk.gen.d.ts +19 -1
  8. package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
  9. package/dist/generated/hosted/sdk.gen.js +225 -1
  10. package/dist/generated/hosted/types.gen.d.ts +583 -5
  11. package/dist/generated/hosted/types.gen.d.ts.map +1 -1
  12. package/dist/generated/hosted/zod-response.gen.d.ts +6678 -208
  13. package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
  14. package/dist/generated/hosted/zod-response.gen.js +694 -207
  15. package/dist/generated/hosted/zod.gen.d.ts +1661 -14
  16. package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
  17. package/dist/generated/hosted/zod.gen.js +772 -222
  18. package/dist/generated/index.d.ts +3 -3
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/index.js +2 -2
  21. package/dist/generated/invoice-api-contract.d.ts +186 -2
  22. package/dist/generated/invoice-api-contract.d.ts.map +1 -1
  23. package/dist/generated/invoice-api-contract.js +211 -1
  24. package/dist/generated/sdk.gen.d.ts +5 -5
  25. package/dist/generated/sdk.gen.d.ts.map +1 -1
  26. package/dist/generated/sdk.gen.js +93 -93
  27. package/dist/generated/types.gen.d.ts +288 -139
  28. package/dist/generated/types.gen.d.ts.map +1 -1
  29. package/dist/generated/zod-response.gen.d.ts +2304 -2548
  30. package/dist/generated/zod-response.gen.d.ts.map +1 -1
  31. package/dist/generated/zod-response.gen.js +179 -109
  32. package/dist/generated/zod.gen.d.ts +1252 -2188
  33. package/dist/generated/zod.gen.d.ts.map +1 -1
  34. package/dist/generated/zod.gen.js +215 -115
  35. package/dist/hosted-tenant.d.ts +9 -0
  36. package/dist/hosted-tenant.d.ts.map +1 -1
  37. package/dist/hosted-tenant.js +7 -0
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/invoice-hosted-controls.d.ts +22 -3
  41. package/dist/invoice-hosted-controls.d.ts.map +1 -1
  42. package/dist/invoice-hosted-controls.js +48 -12
  43. package/dist/invoice.d.ts +5 -0
  44. package/dist/invoice.d.ts.map +1 -1
  45. package/dist/invoice.js +1 -0
  46. package/dist/issuance-readiness.d.ts +9 -0
  47. package/dist/issuance-readiness.d.ts.map +1 -0
  48. package/dist/issuance-readiness.js +19 -0
  49. package/dist/timbro-client.d.ts +6 -8
  50. package/dist/timbro-client.d.ts.map +1 -1
  51. package/dist/timbro-client.js +3 -5
  52. package/dist/webhook-event.d.ts +392 -0
  53. package/dist/webhook-event.d.ts.map +1 -1
  54. package/package.json +3 -3
  55. package/dist/certificate-custody-readiness.d.ts +0 -6
  56. package/dist/certificate-custody-readiness.d.ts.map +0 -1
  57. package/dist/certificate-custody-readiness.js +0 -13
  58. package/dist/fiscal-numbering-readiness.d.ts +0 -6
  59. package/dist/fiscal-numbering-readiness.d.ts.map +0 -1
  60. package/dist/fiscal-numbering-readiness.js +0 -13
package/README.md CHANGED
@@ -74,6 +74,26 @@ if (deliveries.hasMore && deliveries.nextCursor !== null) {
74
74
 
75
75
  `business.retrieve` returns current capabilities, setup status, and requirements. Update only the business members being replaced with `business.update`; import a signing certificate with `business.importSigningCertificate`; and read the business again to confirm retained state. `issueTestInvoice` always uses the test environment. Invoice API keys are issued for one explicit mode and returned once. The Gateway enforces credential authority for each task.
76
76
 
77
+ Certification has its own retained progress and certificate purpose. Start preparation once, then read the same resource to resume. Use the returned service URLs in DGII; these are assigned for the authenticated business and do not change its production directory entries.
78
+
79
+ ```ts
80
+ const certification = await timbro.business.certification.start({
81
+ path: "external_software",
82
+ idempotencyKey: "certification-start-1",
83
+ });
84
+ const progress = await timbro.business.certification.retrieve();
85
+ if (progress.status === "in_progress") {
86
+ await timbro.business.certification.submitEvidence({
87
+ expectedRevision: progress.revision,
88
+ step: 1,
89
+ outcome: "submitted",
90
+ idempotencyKey: "report-1",
91
+ });
92
+ }
93
+ ```
94
+
95
+ Keep each command's idempotency key and reuse it after a timeout. `expectedRevision` prevents a report from overwriting newer progress. Reported DGII outcomes remain unverified until their evidence is reviewed; a report does not authorize invoicing. A server handling a person's certificate upload uses `business.importSigningCertificate` with `purpose: "certification"`, `certificateP12Base64`, and `password`. It receives certification progress and leaves the test and live certificates unchanged.
96
+
77
97
  Webhook endpoints support list, create, retrieve, delete, delivery listing, event replay, secret rotation, suspension, and reactivation. Lists return `data`, `hasMore`, and `nextCursor`; pass the cursor to the next page with the same filters. Delivery `eventType` remains a string so stored deliveries from earlier event contracts can still be read. Use a Gateway host for these hosted controls; native Source origins expose their Source operations separately.
78
98
 
79
99
  Persist the request and its `invoiceReference` before submitting it. An equivalent retry returns the same retained Invoice ID and current state. Changed content under that reference returns `invoice_reference_conflict`. An optional `idempotencyKey` in the second argument binds a command independently of the reference. A timeout or lost response does not justify a new reference or a second invoice.
@@ -84,6 +104,22 @@ Amounts are exact decimal strings. `unitPrice` is interpreted using the item's `
84
104
 
85
105
  The request is discriminated by `type`. E31 and E32 have sales fields, E41 has supplier and withholding fields, and E45 has buyer and government eligibility fields. They use the same methods and Invoice identity.
86
106
 
107
+ Before offering a document type, read whether the issuer can issue it now:
108
+
109
+ ```ts
110
+ import { createTimbroClient } from "@timbro/invoices/admin";
111
+
112
+ const timbro = createTimbroClient({ baseUrl, authentication: { mode: "source_connection", credential } });
113
+ const readiness = await timbro.issuanceReadiness.retrieve();
114
+ for (const documentType of readiness.documentTypes) {
115
+ if (documentType.status === "actionRequired") {
116
+ console.warn(documentType.type, documentType.reasons);
117
+ }
118
+ }
119
+ ```
120
+
121
+ Each of the ten e-CF types is `ready` only when the issuer profile is complete, the signing certificate is valid now, and a numbering range is eligible. `reasons` lists every blocker in issuer, certificate, numbering order, and `numbering.remaining` and `numbering.expiresOn` describe the range Timbro assigns from next. Admission still decides each document. Pass `hosted: { checkoutTenantId, environment }` to read a hosted tenant with a first-party service credential; an ERP connected through the Checkout Gateway reads the same verdicts on `GET /v1/business`.
122
+
87
123
  An optional preview evaluates the request without creating an Invoice, reserving a number, or producing files:
88
124
 
89
125
  ```ts
@@ -95,7 +131,25 @@ if (preview.status === "invalid") {
95
131
  }
96
132
  ```
97
133
 
98
- `status` describes fiscal progress. `processing` and `verifying` retain the same identity while work continues. Acceptance, file readiness, buyer delivery readiness, and payment success are separate facts. `latestEvent` is null until a real notification has been retained. Do not use file availability or the latest notification timestamp as authority acceptance evidence.
134
+ `status` describes fiscal progress. `processing` and `verifying` retain the same identity while work continues. Acceptance, file readiness, and payment success are separate facts. `buyerDeliveryReadiness` becomes `ready` only once DGII has accepted the e-CF, with or without observations. `latestEvent` is null until a real notification has been retained. Do not use file availability or the latest notification timestamp as authority acceptance evidence.
135
+
136
+ A point-of-sale or ERP receipt prints three facts DGII requires on every printed e-CF: the QR code, the security code below it, and the signing time. Read them from `fiscalIdentity.signature` instead of deriving them from the XML; Timbro's PDF prints the same values.
137
+
138
+ ```ts
139
+ const invoice = await timbro.invoices.retrieve(invoiceId);
140
+ if (invoice?.status === "accepted" || invoice?.status === "acceptedWithObservations") {
141
+ const signature = invoice.fiscalIdentity.signature;
142
+ if (signature !== null) {
143
+ printReceipt({
144
+ qrCode: signature.verificationUrl,
145
+ securityCode: signature.securityCode,
146
+ signedAt: signature.signedAt, // "2026-10-05T04:44:45-04:00", printed as 05-10-2026 04:44:45
147
+ });
148
+ }
149
+ }
150
+ ```
151
+
152
+ `signature` is `null` until the complete e-CF is signed. Print the buyer's copy only after DGII accepts the Invoice: DGII sequences the printed e-CF after its answer for every type, including a Type 32 below DOP 250,000.
99
153
 
100
154
  Replace a retained Invoice after authority rejection by sending a new canonical request. The replacement keeps the predecessor's Source ID, uses a new Source version and `invoiceReference`, and returns a new Invoice whose `replacesInvoiceId` identifies the predecessor. A `422` admission refusal has no retained Invoice ID, so correct the request and call `create`; `replace` applies only to a retained, replaceable Invoice. Authority-rejected numbering gaps still require the existing administrator authorization.
101
155
 
@@ -145,7 +199,9 @@ if (
145
199
  }
146
200
  ```
147
201
 
148
- Register the receiving endpoint through the hosting service's webhook endpoint API. All invoice types share these four event types. `invoice.ready` means a positive authority outcome and retained XML/PDF files; it does not promise payment or email delivery. A notification can arrive before create returns. Match the recovered reference and source coordinates, and apply it through your existing durable processor.
202
+ Register the receiving endpoint through the hosting service's webhook endpoint API. All invoice types share these event types. `invoice.ready` means a positive authority outcome and retained XML/PDF files; it does not promise payment or email delivery. A notification can arrive before create returns. Match the recovered reference and source coordinates, and apply it through your existing durable processor.
203
+
204
+ Ask Timbro to email the buyer with `invoices.deliver({ invoiceId, recipientEmail, idempotencyKey, attachments: { pdf: true, xml: true } })`. The email leaves only after DGII accepts the Invoice, and always links the PDF; `attachments` adds the PDF, the signed XML, or both as `{RNC}{e-NCF}.pdf` and `.xml`. A rejected Invoice fails its pending emails. `invoice.deliverySent` and `invoice.deliveryFailed` announce each email once, with `data.deliveryId` naming it; `retrieveDelivery` returns its current state and `lastResultCode`. Call `deliver` only when Timbro is the company's declared e-CF sender, so the buyer never receives two copies.
149
205
 
150
206
  Deduplicate notifications by `event.id`. `data.id` identifies the Invoice, and `sequence` stays a decimal string. Verification accepts any configured rotation secret and rejects invalid signatures, stale timestamps, malformed envelopes, and mismatched event IDs. It throws `WebhookVerificationError` with a specific `rejection`. An unusable configured secret requires receiver recovery; no rejected delivery should cause an application side effect.
151
207
 
package/dist/admin.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  export type { CertificateCustodyImportCommand, CertificateCustodyImportResult, } from "./certificate-custody-import.ts";
2
- export type { CertificateCustodyReadiness } from "./certificate-custody-readiness.ts";
3
2
  export type { CollectionPage } from "./collection.ts";
4
3
  export { walkCollectionPages } from "./collection.ts";
5
4
  export type { DirectConnectionApproval, DirectConnectionApprovalCommand, DirectConnectionClient, DirectConnectionClientOptions, DirectConnectionConfirmation, DirectConnectionCreateCommand, DirectConnectionEnvironment, DirectConnectionPoll, DirectConnectionPreview, DirectConnectionRequest, DirectConnectionRequestCommand, } from "./direct-connection.ts";
6
5
  export { createDirectConnectionClient, generateDirectConnectionCredential, } from "./direct-connection.ts";
7
- export type { FiscalNumberingReadiness } from "./fiscal-numbering-readiness.ts";
8
6
  export type { FiscalDocument, FiscalDocumentAction, FiscalDocumentIssueCommand, FiscalDocumentListCommand, FiscalDocumentNumberingInstruction, FiscalDocumentPage, FiscalOperationResource, FiscalOriginalSource, FiscalSource, HostedFiscalTenant, SourceType31Snapshot, SourceType32Snapshot, SourceType33Snapshot, SourceType34Snapshot, SourceType41Snapshot, SourceType43Snapshot, SourceType44Snapshot, SourceType45Snapshot, SourceType46Snapshot, SourceType47Snapshot, } from "./fiscal-operation.ts";
9
7
  export { toFiscalDocumentSnapshot } from "./fiscal-operation.ts";
10
8
  export type { FiscalOperationTimingReport, TimingStageId } from "./fiscal-operation-timing.ts";
11
9
  export { TIMING_STAGE_IDS } from "./fiscal-operation-timing.ts";
12
10
  export type { FiscalOperationOutcomeResource, InvoiceDeliveryResource, InvoicePage, InvoicePreview, InvoiceReceipt, InvoiceReceiptAccess, InvoiceRequest, InvoiceResource, InvoiceType, PrintedRepresentationProfile, SourceCreditNoteCorrection, SourceDebitNoteCorrection, SourceFiscalAction, WebhookDelivery, WebhookDeliveryPage, WebhookDeliveryState, } from "./generated/index.ts";
13
- export type { HostedTenant, HostedTenantClient, HostedTenantClientOptions, HostedTenantCreateCommand, HostedTenantEnvironment, HostedTenantRelease, HostedTenantReleaseCommand, HostedTenantWebhookSecretRotationCommand, HostedWebhookSecretRotation, } from "./hosted-tenant.ts";
11
+ export type { HostedTenant, HostedTenantCertificateImportCommand, HostedTenantClient, HostedTenantClientOptions, HostedTenantCreateCommand, HostedTenantEnvironment, HostedTenantRelease, HostedTenantReleaseCommand, HostedTenantWebhookSecretRotationCommand, HostedWebhookSecretRotation, } from "./hosted-tenant.ts";
14
12
  export { createHostedTenantClient } from "./hosted-tenant.ts";
15
13
  export type { HostedWorkspaceTransportOptions } from "./hosted-workspace-transport.ts";
16
14
  export { createHostedWorkspaceTransport } from "./hosted-workspace-transport.ts";
@@ -19,6 +17,7 @@ export { createTimbroInvoices, verifyInvoicePdfDownload, verifyInvoiceXmlDownloa
19
17
  export type { InvoiceErrorDetail, InvoiceFailure } from "./invoice-error.ts";
20
18
  export { InvoiceError } from "./invoice-error.ts";
21
19
  export type { BusinessConfigureInvoicingCommand, BusinessImportSigningCertificateCommand, BusinessIssueInvoiceKeyCommand, BusinessIssueTestInvoiceCommand, BusinessIssueTestInvoiceOptions, BusinessUpdateCommand, InvoiceHostedControls, WebhookEndpointCreateCommand, WebhookEndpointListDeliveriesCommand, WebhookEndpointListFilters, WebhookEndpointReplayCommand, } from "./invoice-hosted-controls.ts";
20
+ export type { IssuanceReadiness } from "./issuance-readiness.ts";
22
21
  export type { PrintedRepresentationDownload } from "./printed-representation.ts";
23
22
  export type { ProblemBody, ProblemCatalogEntry, ProblemCode, ProblemFailure, PublicProblemCode, } from "./problem-contract.ts";
24
23
  export { PROBLEM_CATALOG } from "./problem-contract.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,+BAA+B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B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ningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, type Options, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.ts";
2
- export type { ClientOptions, ConfigureInvoicingData, ConfigureInvoicingError, ConfigureInvoicingErrors, ConfigureInvoicingResponse, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointError, CreateWebhookEndpointErrors, CreateWebhookEndpointResponse, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointError, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponse, DeleteWebhookEndpointResponses, ImportSigningCertificateData, ImportSigningCertificateError, ImportSigningCertificateErrors, ImportSigningCertificateResponse, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyError, IssueInvoiceKeyErrors, IssueInvoiceKeyResponse, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceError, IssueTestInvoiceErrors, IssueTestInvoiceResponse, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsError, ListWebhookEndpointsErrors, ListWebhookEndpointsResponse, ListWebhookEndpointsResponses, MerchantBusinessFiscalBinding, MerchantBusinessFiscalSetup, MerchantBusinessFiscalSetupAvailable, MerchantBusinessFiscalSetupUnavailable, MerchantBusinessLegalIssuer, MerchantBusinessLiveFiscalSetup, MerchantBusinessLiveFiscalSetupAvailable, MerchantBusinessSigningCertificate, Problem, ReactivateWebhookEndpointData, ReactivateWebhookEndpointError, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponse, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsError, ReplayWebhookEventsErrors, ReplayWebhookEventsResponse, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessError, RetrieveBusinessErrors, RetrieveBusinessResponse, RetrieveBusinessResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointError, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponse, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretError, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponse, RotateWebhookEndpointSecretResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointError, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponse, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessError, UpdateBusinessErrors, UpdateBusinessResponse, UpdateBusinessResponses, } from "./types.gen.ts";
3
- export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.ts";
1
+ export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, type Options, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveMerchantBusinessCertification, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, startMerchantBusinessCertification, submitMerchantBusinessCertificationEvidence, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.ts";
2
+ export type { ClientOptions, ConfigureInvoicingData, ConfigureInvoicingError, ConfigureInvoicingErrors, ConfigureInvoicingResponse, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointError, CreateWebhookEndpointErrors, CreateWebhookEndpointResponse, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointError, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponse, DeleteWebhookEndpointResponses, DocumentTypeIssuanceReadiness, ImportSigningCertificateData, ImportSigningCertificateError, ImportSigningCertificateErrors, ImportSigningCertificateResponse, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyError, IssueInvoiceKeyErrors, IssueInvoiceKeyResponse, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceError, IssueTestInvoiceErrors, IssueTestInvoiceResponse, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsError, ListWebhookEndpointsErrors, ListWebhookEndpointsResponse, ListWebhookEndpointsResponses, MerchantBusinessCertificationEvidence, MerchantBusinessCertificationRequirement, MerchantBusinessCertificationStep, MerchantBusinessFiscalBinding, MerchantBusinessFiscalSetup, MerchantBusinessFiscalSetupAvailable, MerchantBusinessFiscalSetupUnavailable, MerchantBusinessLegalIssuer, MerchantBusinessLiveFiscalSetup, MerchantBusinessLiveFiscalSetupAvailable, MerchantBusinessSigningCertificate, NumberingRange, Problem, ReactivateWebhookEndpointData, ReactivateWebhookEndpointError, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponse, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsError, ReplayWebhookEventsErrors, ReplayWebhookEventsResponse, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessError, RetrieveBusinessErrors, RetrieveBusinessResponse, RetrieveBusinessResponses, RetrieveMerchantBusinessCertificationData, RetrieveMerchantBusinessCertificationError, RetrieveMerchantBusinessCertificationErrors, RetrieveMerchantBusinessCertificationResponse, RetrieveMerchantBusinessCertificationResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointError, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponse, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretError, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponse, RotateWebhookEndpointSecretResponses, StartMerchantBusinessCertificationData, StartMerchantBusinessCertificationError, StartMerchantBusinessCertificationErrors, StartMerchantBusinessCertificationResponse, StartMerchantBusinessCertificationResponses, SubmitMerchantBusinessCertificationEvidenceData, SubmitMerchantBusinessCertificationEvidenceError, SubmitMerchantBusinessCertificationEvidenceErrors, SubmitMerchantBusinessCertificationEvidenceResponse, SubmitMerchantBusinessCertificationEvidenceResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointError, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponse, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessError, UpdateBusinessErrors, UpdateBusinessResponse, UpdateBusinessResponses, } from "./types.gen.ts";
3
+ export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zDocumentTypeIssuanceReadiness, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessCertificationEvidence, zMerchantBusinessCertificationRequirement, zMerchantBusinessCertificationStep, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zNumberingRange, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveMerchantBusinessCertificationResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zStartMerchantBusinessCertificationBody, zStartMerchantBusinessCertificationHeaders, zStartMerchantBusinessCertificationResponse, zSubmitMerchantBusinessCertificationEvidenceBody, zSubmitMerchantBusinessCertificationEvidenceHeaders, zSubmitMerchantBusinessCertificationEvidenceResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.ts";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACr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B,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,oCAAoC,EACpC,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,iCAAiC,EACjC,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,4BAA4B,EAC5B,qCAAqC,EACrC,uCAAuC,EACvC,4BAA4B,EAC5B,gCAAgC,EAChC,yCAAyC,EACzC,mCAAmC,EACnC,QAAQ,EACR,8BAA8B,EAC9B,kCAAkC,EAClC,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,mCAAmC,EACnC,gCAAgC,EAChC,oCAAoC,EACpC,2BAA2B,EAC3B,+BAA+B,EAC/B,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,OAAO,EACZ,yBAAy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EACpC,uCAAuC,EACvC,0CAA0C,EAC1C,2CAA2C,EAC3C,gDAAgD,EAChD,mDAAmD,EACnD,oDAAoD,EACpD,2BAA2B,EAC3B,+BAA+B,EAC/B,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.js";
3
- export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.js";
2
+ export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveMerchantBusinessCertification, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, startMerchantBusinessCertification, submitMerchantBusinessCertificationEvidence, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.js";
3
+ export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zDocumentTypeIssuanceReadiness, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessCertificationEvidence, zMerchantBusinessCertificationRequirement, zMerchantBusinessCertificationStep, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zNumberingRange, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveMerchantBusinessCertificationResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zStartMerchantBusinessCertificationBody, zStartMerchantBusinessCertificationHeaders, zStartMerchantBusinessCertificationResponse, zSubmitMerchantBusinessCertificationEvidenceBody, zSubmitMerchantBusinessCertificationEvidenceHeaders, zSubmitMerchantBusinessCertificationEvidenceResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.js";
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from "../../generated-operation-client.ts";
2
- import type { ConfigureInvoicingData, ConfigureInvoicingErrors, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointErrors, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponses, ImportSigningCertificateData, ImportSigningCertificateErrors, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyErrors, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceErrors, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsErrors, ListWebhookEndpointsResponses, ReactivateWebhookEndpointData, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsErrors, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessErrors, RetrieveBusinessResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessErrors, UpdateBusinessResponses } from "./types.gen.ts";
2
+ import type { ConfigureInvoicingData, ConfigureInvoicingErrors, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointErrors, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponses, ImportSigningCertificateData, ImportSigningCertificateErrors, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyErrors, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceErrors, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsErrors, ListWebhookEndpointsResponses, ReactivateWebhookEndpointData, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsErrors, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessErrors, RetrieveBusinessResponses, RetrieveMerchantBusinessCertificationData, RetrieveMerchantBusinessCertificationErrors, RetrieveMerchantBusinessCertificationResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponses, StartMerchantBusinessCertificationData, StartMerchantBusinessCertificationErrors, StartMerchantBusinessCertificationResponses, SubmitMerchantBusinessCertificationEvidenceData, SubmitMerchantBusinessCertificationEvidenceErrors, SubmitMerchantBusinessCertificationEvidenceResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessErrors, UpdateBusinessResponses } from "./types.gen.ts";
3
3
  export type Options<TData extends TDataShape = TDataShape, TResponse = unknown> = Options2<TData, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -25,6 +25,24 @@ export declare const retrieveBusiness: (options: Options<RetrieveBusinessData>)
25
25
  * Replaces each member the request carries: requested capabilities, any subset of the fiscal details, or the whole payments profile. The server then provisions whatever the new state allows.
26
26
  */
27
27
  export declare const updateBusiness: (options: Options<UpdateBusinessData>) => RequestResult<UpdateBusinessResponses, UpdateBusinessErrors>;
28
+ /**
29
+ * Retrieve the business certification process
30
+ *
31
+ * Returns the authenticated business's DGII certification path, prerequisites, all 15 official steps, and reported evidence. A reported DGII outcome is not treated as verified until an operator reviews its evidence.
32
+ */
33
+ export declare const retrieveMerchantBusinessCertification: (options: Options<RetrieveMerchantBusinessCertificationData>) => RequestResult<RetrieveMerchantBusinessCertificationResponses, RetrieveMerchantBusinessCertificationErrors>;
34
+ /**
35
+ * Prepare a business certification process
36
+ *
37
+ * Creates the certification environment binding and a durable 15-step DGII process. external_software is available to businesses using Timbro; own_software requires operator-verified eligibility. Software version is assigned by Timbro.
38
+ */
39
+ export declare const startMerchantBusinessCertification: (options: Options<StartMerchantBusinessCertificationData>) => RequestResult<StartMerchantBusinessCertificationResponses, StartMerchantBusinessCertificationErrors>;
40
+ /**
41
+ * Report an outcome for a DGII certification step
42
+ *
43
+ * Appends a user-reported outcome for the current step. A reported approval remains unverified and cannot advance the process until an operator reviews the supporting evidence.
44
+ */
45
+ export declare const submitMerchantBusinessCertificationEvidence: (options: Options<SubmitMerchantBusinessCertificationEvidenceData>) => RequestResult<SubmitMerchantBusinessCertificationEvidenceResponses, SubmitMerchantBusinessCertificationEvidenceErrors>;
28
46
  /**
29
47
  * Configure a Timbro invoice environment
30
48
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/sdk.gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,OAAO,IAAI,QAAQ,EACnB,aAAa,EACb,UAAU,EACX,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3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B,YAC7B,OAAO,CAAC,+BAA+B,CAAC,KAChD,aAAa,CAAC,oCAAoC,EAAE,iCAAiC,CAuEpF,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,YACxB,OAAO,CAAC,0BAA0B,CAAC,KAC3C,aAAa,CAAC,+BAA+B,EAAE,4BAA4B,CA2D1E,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,YAC3B,OAAO,CAAC,6BAA6B,CAAC,KAC9C,aAAa,CAAC,kCAAkC,EAAE,+BAA+B,CA2DhF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { zConfigureInvoicingResponse, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointResponse, zImportSigningCertificateResponse, zIssueInvoiceKeyResponse, zIssueTestInvoiceResponse, zListWebhookDeliveriesResponse, zListWebhookEndpointsResponse, zProblem, zReactivateWebhookEndpointResponse, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointResponse, zUpdateBusinessResponse, } from "./zod-response.gen.js";
1
+ import { zConfigureInvoicingResponse, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointResponse, zImportSigningCertificateResponse, zIssueInvoiceKeyResponse, zIssueTestInvoiceResponse, zListWebhookDeliveriesResponse, zListWebhookEndpointsResponse, zProblem, zReactivateWebhookEndpointResponse, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveMerchantBusinessCertificationResponse, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretResponse, zStartMerchantBusinessCertificationResponse, zSubmitMerchantBusinessCertificationEvidenceResponse, zSuspendWebhookEndpointResponse, zUpdateBusinessResponse, } from "./zod-response.gen.js";
2
2
  /**
3
3
  * Retrieve the merchant business
4
4
  *
@@ -139,6 +139,230 @@ export const updateBusiness = (options) => options.client.patch({
139
139
  ...options.headers,
140
140
  },
141
141
  });
142
+ /**
143
+ * Retrieve the business certification process
144
+ *
145
+ * Returns the authenticated business's DGII certification path, prerequisites, all 15 official steps, and reported evidence. A reported DGII outcome is not treated as verified until an operator reviews its evidence.
146
+ */
147
+ export const retrieveMerchantBusinessCertification = (options) => options.client.get({
148
+ response_decoder: (response) => {
149
+ switch (response.status) {
150
+ case 200:
151
+ return {
152
+ status: 200,
153
+ headers: response.headers,
154
+ body: zRetrieveMerchantBusinessCertificationResponse.parse(response.body),
155
+ };
156
+ case 400:
157
+ return {
158
+ status: 400,
159
+ headers: response.headers,
160
+ body: zProblem.parse(response.body),
161
+ };
162
+ case 401:
163
+ return {
164
+ status: 401,
165
+ headers: response.headers,
166
+ body: zProblem.parse(response.body),
167
+ };
168
+ case 403:
169
+ return {
170
+ status: 403,
171
+ headers: response.headers,
172
+ body: zProblem.parse(response.body),
173
+ };
174
+ case 404:
175
+ return {
176
+ status: 404,
177
+ headers: response.headers,
178
+ body: zProblem.parse(response.body),
179
+ };
180
+ case 500:
181
+ return {
182
+ status: 500,
183
+ headers: response.headers,
184
+ body: zProblem.parse(response.body),
185
+ };
186
+ default:
187
+ return {
188
+ status: "unexpected",
189
+ status_code: response.status,
190
+ headers: response.headers,
191
+ body: response.body,
192
+ };
193
+ }
194
+ },
195
+ url: "/v1/business/certification",
196
+ ...options,
197
+ });
198
+ /**
199
+ * Prepare a business certification process
200
+ *
201
+ * Creates the certification environment binding and a durable 15-step DGII process. external_software is available to businesses using Timbro; own_software requires operator-verified eligibility. Software version is assigned by Timbro.
202
+ */
203
+ export const startMerchantBusinessCertification = (options) => options.client.post({
204
+ response_decoder: (response) => {
205
+ switch (response.status) {
206
+ case 200:
207
+ return {
208
+ status: 200,
209
+ headers: response.headers,
210
+ body: zStartMerchantBusinessCertificationResponse.parse(response.body),
211
+ };
212
+ case 201:
213
+ return {
214
+ status: 201,
215
+ headers: response.headers,
216
+ body: zStartMerchantBusinessCertificationResponse.parse(response.body),
217
+ };
218
+ case 400:
219
+ return {
220
+ status: 400,
221
+ headers: response.headers,
222
+ body: zProblem.parse(response.body),
223
+ };
224
+ case 401:
225
+ return {
226
+ status: 401,
227
+ headers: response.headers,
228
+ body: zProblem.parse(response.body),
229
+ };
230
+ case 403:
231
+ return {
232
+ status: 403,
233
+ headers: response.headers,
234
+ body: zProblem.parse(response.body),
235
+ };
236
+ case 404:
237
+ return {
238
+ status: 404,
239
+ headers: response.headers,
240
+ body: zProblem.parse(response.body),
241
+ };
242
+ case 409:
243
+ return {
244
+ status: 409,
245
+ headers: response.headers,
246
+ body: zProblem.parse(response.body),
247
+ };
248
+ case 413:
249
+ return {
250
+ status: 413,
251
+ headers: response.headers,
252
+ body: zProblem.parse(response.body),
253
+ };
254
+ case 415:
255
+ return {
256
+ status: 415,
257
+ headers: response.headers,
258
+ body: zProblem.parse(response.body),
259
+ };
260
+ case 500:
261
+ return {
262
+ status: 500,
263
+ headers: response.headers,
264
+ body: zProblem.parse(response.body),
265
+ };
266
+ case 503:
267
+ return {
268
+ status: 503,
269
+ headers: response.headers,
270
+ body: zProblem.parse(response.body),
271
+ };
272
+ default:
273
+ return {
274
+ status: "unexpected",
275
+ status_code: response.status,
276
+ headers: response.headers,
277
+ body: response.body,
278
+ };
279
+ }
280
+ },
281
+ url: "/v1/business/certification",
282
+ ...options,
283
+ headers: {
284
+ "Content-Type": "application/json",
285
+ ...options.headers,
286
+ },
287
+ });
288
+ /**
289
+ * Report an outcome for a DGII certification step
290
+ *
291
+ * Appends a user-reported outcome for the current step. A reported approval remains unverified and cannot advance the process until an operator reviews the supporting evidence.
292
+ */
293
+ export const submitMerchantBusinessCertificationEvidence = (options) => options.client.post({
294
+ response_decoder: (response) => {
295
+ switch (response.status) {
296
+ case 200:
297
+ return {
298
+ status: 200,
299
+ headers: response.headers,
300
+ body: zSubmitMerchantBusinessCertificationEvidenceResponse.parse(response.body),
301
+ };
302
+ case 400:
303
+ return {
304
+ status: 400,
305
+ headers: response.headers,
306
+ body: zProblem.parse(response.body),
307
+ };
308
+ case 401:
309
+ return {
310
+ status: 401,
311
+ headers: response.headers,
312
+ body: zProblem.parse(response.body),
313
+ };
314
+ case 403:
315
+ return {
316
+ status: 403,
317
+ headers: response.headers,
318
+ body: zProblem.parse(response.body),
319
+ };
320
+ case 404:
321
+ return {
322
+ status: 404,
323
+ headers: response.headers,
324
+ body: zProblem.parse(response.body),
325
+ };
326
+ case 409:
327
+ return {
328
+ status: 409,
329
+ headers: response.headers,
330
+ body: zProblem.parse(response.body),
331
+ };
332
+ case 413:
333
+ return {
334
+ status: 413,
335
+ headers: response.headers,
336
+ body: zProblem.parse(response.body),
337
+ };
338
+ case 415:
339
+ return {
340
+ status: 415,
341
+ headers: response.headers,
342
+ body: zProblem.parse(response.body),
343
+ };
344
+ case 500:
345
+ return {
346
+ status: 500,
347
+ headers: response.headers,
348
+ body: zProblem.parse(response.body),
349
+ };
350
+ default:
351
+ return {
352
+ status: "unexpected",
353
+ status_code: response.status,
354
+ headers: response.headers,
355
+ body: response.body,
356
+ };
357
+ }
358
+ },
359
+ url: "/v1/business/certification/evidence",
360
+ ...options,
361
+ headers: {
362
+ "Content-Type": "application/json",
363
+ ...options.headers,
364
+ },
365
+ });
142
366
  /**
143
367
  * Configure a Timbro invoice environment
144
368
  *