@timbro/invoices 0.11.0 → 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.
- package/README.md +20 -0
- package/dist/admin.d.ts +1 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/generated/hosted/index.d.ts +3 -3
- package/dist/generated/hosted/index.d.ts.map +1 -1
- package/dist/generated/hosted/index.js +2 -2
- package/dist/generated/hosted/sdk.gen.d.ts +19 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +225 -1
- package/dist/generated/hosted/types.gen.d.ts +544 -4
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +5734 -223
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +628 -201
- package/dist/generated/hosted/zod.gen.d.ts +1406 -7
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +724 -237
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/types.gen.d.ts +11 -2
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +18 -0
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +11 -1
- package/dist/generated/zod.gen.d.ts +23 -0
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +16 -2
- package/dist/hosted-tenant.d.ts +9 -0
- package/dist/hosted-tenant.d.ts.map +1 -1
- package/dist/hosted-tenant.js +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +22 -3
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +48 -12
- package/package.json +2 -2
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.
|
package/dist/admin.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { toFiscalDocumentSnapshot } from "./fiscal-operation.ts";
|
|
|
8
8
|
export type { FiscalOperationTimingReport, TimingStageId } from "./fiscal-operation-timing.ts";
|
|
9
9
|
export { TIMING_STAGE_IDS } from "./fiscal-operation-timing.ts";
|
|
10
10
|
export type { FiscalOperationOutcomeResource, InvoiceDeliveryResource, InvoicePage, InvoicePreview, InvoiceReceipt, InvoiceReceiptAccess, InvoiceRequest, InvoiceResource, InvoiceType, PrintedRepresentationProfile, SourceCreditNoteCorrection, SourceDebitNoteCorrection, SourceFiscalAction, WebhookDelivery, WebhookDeliveryPage, WebhookDeliveryState, } from "./generated/index.ts";
|
|
11
|
-
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";
|
|
12
12
|
export { createHostedTenantClient } from "./hosted-tenant.ts";
|
|
13
13
|
export type { HostedWorkspaceTransportOptions } from "./hosted-workspace-transport.ts";
|
|
14
14
|
export { createHostedWorkspaceTransport } from "./hosted-workspace-transport.ts";
|
package/dist/admin.d.ts.map
CHANGED
|
@@ -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;AAC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AM,2BAA2B,CAAC;AAC5F,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, 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, 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, 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, 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, zDocumentTypeIssuanceReadiness, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zNumberingRange, 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,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,OAAO,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B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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,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,qCAAqC,EACrC,uBAAuB,EACvB,2BAA2B,EAC3B,kCAAkC,EAClC,2CAA2C,EAC3C,sBAAsB,EACtB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,qCAAqC,EACrC,wCAAwC,EACxC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0BAA0B,EAC1B,6BAA6B,EAC7B,sCAAsC,EACtC,yCAAyC,EACzC,kCAAkC,EAClC,8BAA8B,EAC9B,4BAA4B,EAC5B,qCAAqC,EACrC,uCAAuC,EACvC,4BAA4B,EAC5B,gCAAgC,EAChC,yCAAyC,EACzC,mCAAmC,EACnC,eAAe,EACf,QAAQ,EACR,8BAA8B,EAC9B,kCAAkC,EAClC,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,8CAA8C,EAC9C,4BAA4B,EAC5B,gCAAgC,EAChC,mCAAmC,EACnC,gCAAgC,EAChC,oCAAoC,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, zDocumentTypeIssuanceReadiness, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zNumberingRange, 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,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,kCAAkC,EAClC,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B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,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
|
*
|