@timbro/invoices 0.8.2 → 0.9.0-next.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 +95 -258
- package/dist/admin.d.ts +44 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +16 -0
- package/dist/certificate-custody-import.d.ts +4 -2
- package/dist/certificate-custody-import.d.ts.map +1 -1
- package/dist/certificate-custody-import.js +1 -1
- package/dist/collection.d.ts +1 -1
- package/dist/collection.js +4 -4
- package/dist/fiscal-engine-runtime.manifest.json +16 -16
- package/dist/fiscal-engine-runtime.provenance.json +17 -17
- package/dist/generated/hosted/index.d.ts +4 -0
- package/dist/generated/hosted/index.d.ts.map +1 -0
- package/dist/generated/hosted/index.js +3 -0
- package/dist/generated/hosted/sdk.gen.d.ts +106 -0
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -0
- package/dist/generated/hosted/sdk.gen.js +1049 -0
- package/dist/generated/hosted/types.gen.d.ts +2425 -0
- package/dist/generated/hosted/types.gen.d.ts.map +1 -0
- package/dist/generated/hosted/types.gen.js +2 -0
- package/dist/generated/hosted/zod.gen.d.ts +1772 -0
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -0
- package/dist/generated/hosted/zod.gen.js +2269 -0
- package/dist/generated/index.d.ts +3 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/invoice-api-contract.d.ts +6348 -0
- package/dist/generated/invoice-api-contract.d.ts.map +1 -0
- package/dist/generated/invoice-api-contract.js +11004 -0
- package/dist/generated/problem-catalog.d.ts.map +1 -1
- package/dist/generated/problem-catalog.js +9 -3
- package/dist/generated/sdk.gen.d.ts +70 -38
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +1261 -251
- package/dist/generated/types.gen.d.ts +4349 -2686
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.d.ts +53878 -22744
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +5733 -665
- package/dist/generated-operation-client.d.ts +1 -0
- package/dist/generated-operation-client.d.ts.map +1 -1
- package/dist/generated-operation-client.js +3 -2
- package/dist/generated-problem.d.ts +1 -1
- package/dist/generated-problem.d.ts.map +1 -1
- package/dist/generated-problem.js +4 -4
- package/dist/index.d.ts +8 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -12
- package/dist/{fiscal-error.d.ts → invoice-error.d.ts} +10 -9
- package/dist/invoice-error.d.ts.map +1 -0
- package/dist/{fiscal-error.js → invoice-error.js} +7 -4
- package/dist/invoice-hosted-controls.d.ts +62 -0
- package/dist/invoice-hosted-controls.d.ts.map +1 -0
- package/dist/invoice-hosted-controls.js +188 -0
- package/dist/invoice-receipt.d.ts +10 -0
- package/dist/invoice-receipt.d.ts.map +1 -0
- package/dist/invoice-receipt.js +49 -0
- package/dist/invoice-replacement.d.ts +8 -0
- package/dist/invoice-replacement.d.ts.map +1 -0
- package/dist/invoice-replacement.js +18 -0
- package/dist/invoice.d.ts +94 -0
- package/dist/invoice.d.ts.map +1 -0
- package/dist/invoice.js +251 -0
- package/dist/printed-representation.d.ts +0 -1
- package/dist/printed-representation.d.ts.map +1 -1
- package/dist/printed-representation.js +3 -3
- package/dist/problem-contract.d.ts +17 -114
- package/dist/problem-contract.d.ts.map +1 -1
- package/dist/public-case.d.ts +1 -1
- package/dist/received-documents.d.ts +13 -12
- package/dist/received-documents.d.ts.map +1 -1
- package/dist/received-documents.js +26 -20
- package/dist/source-connection.d.ts +5 -5
- package/dist/source-connection.d.ts.map +1 -1
- package/dist/source-connection.js +8 -9
- package/dist/stamp-server-http-transport.js +6 -6
- package/dist/timbro-client.d.ts +5 -37
- package/dist/timbro-client.d.ts.map +1 -1
- package/dist/timbro-client.js +4 -20
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/dist/transport-contract.d.ts +1 -1
- package/dist/transport-contract.d.ts.map +1 -1
- package/dist/webhook-delivery.js +1 -1
- package/dist/webhook-event.d.ts +124 -842
- package/dist/webhook-event.d.ts.map +1 -1
- package/dist/webhook-event.js +3 -1
- package/dist/webhook-registration.d.ts +1 -2
- package/dist/webhook-registration.d.ts.map +1 -1
- package/dist/webhook-registration.js +1 -2
- package/dist/webhook-replay.d.ts +1 -2
- package/dist/webhook-replay.d.ts.map +1 -1
- package/dist/webhook-replay.js +3 -4
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +2 -2
- package/package.json +26 -16
- package/dist/fiscal-delivery.d.ts +0 -12
- package/dist/fiscal-delivery.d.ts.map +0 -1
- package/dist/fiscal-delivery.js +0 -45
- package/dist/fiscal-error.d.ts.map +0 -1
- package/dist/fiscal-receipt.d.ts +0 -19
- package/dist/fiscal-receipt.d.ts.map +0 -1
- package/dist/fiscal-receipt.js +0 -66
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { zAcceptInvitationResponse, zApproveDirectConnectionRequestResponse, zAuthorizeAuthorityRejectedReplacementResponse, zBeginVercelSourceProviderInstallationResponse, zCancelDirectConnectionRequestResponse, zCloseWorkspaceSessionResponse, zCompleteLegalIssuerProfileResponse, zCompleteSourceConnectionActivationVerificationResponse, zCompleteVercelSourceProviderInstallationResponse, zConfirmDirectConnectionResponse, zCreateCertificateCustodyBindingResponse, zCreateDirectConnectionRequestResponse,
|
|
2
|
+
import { zAcceptInvitationResponse, zApproveDirectConnectionRequestResponse, zAuthorizeAuthorityRejectedReplacementResponse, zBeginVercelSourceProviderInstallationResponse, zCancelDirectConnectionRequestResponse, zCloseWorkspaceSessionResponse, zCompleteLegalIssuerProfileResponse, zCompleteSourceConnectionActivationVerificationResponse, zCompleteVercelSourceProviderInstallationResponse, zConfirmDirectConnectionResponse, zCreateCertificateCustodyBindingResponse, zCreateDirectConnectionRequestResponse, zCreateFiscalOperationResponse, zCreateHostedInvoiceResponse, zCreateHostedTenantResponse, zCreateHostedTenantWebhookSecretRotationResponse, zCreateInvoiceDeliveryResponse, zCreateInvoiceResponse, zCreateOrganizationResponse, zCreateSourceConnectionResponse, zDeclareReceptionMountResponse, zDownloadHostedInvoicePdfResponse, zDownloadHostedInvoiceXmlResponse, zDownloadInvoicePdfResponse, zDownloadInvoiceReceiptPdfResponse, zDownloadInvoiceXmlResponse, zFindFiscalArtifactResponse, zFindFiscalOperationBySourceResponse, zFindFiscalOperationResponse, zGetSourceReceivedDocumentResponse, zHealthLiveResponse, zHealthReadyResponse, zImportHostedCertificateCustodyResponse, zInspectFiscalNumberAuthorizationHistoryResponse, zInviteMemberResponse, zIssueHostedInvoiceCredentialResponse, zListAuthorizedVercelProjectsResponse, zListCertificateCustodyBindingsResponse, zListFiscalOperationsResponse, zListHostedInvoicesResponse, zListInvitationsResponse, zListInvoicesResponse, zListLegalIssuersResponse, zListOrganizationFiscalOperationsResponse, zListReceivedDocumentsResponse, zListSourceConnectionsResponse, zListSourceProviderAuthorizationsResponse, zListSourceReceivedDocumentsResponse, zListWebhookDeliveriesResponse, zOpenWorkspaceSessionResponse, zPollDirectConnectionRequestResponse, zPreviewDirectConnectionRequestResponse, zPreviewHostedInvoiceResponse, zPreviewInvoiceResponse, zProblemBody, zReadAuditEventsResponse, zReadAuthorizedVercelProjectQualificationResponse, zReadCertificateCustodyBindingResponse, zReadCertificateCustodyReadinessResponse, zReadCurrentUserAccountResponse, zReadElectronicFiscalDocumentEligibilityResponse, zReadFiscalNumberAuthorizationReadinessResponse, zReadFiscalOperationTimingResponse, zReadOnboardingLegalIssuerIdentityResponse, zReadOnboardingReadinessResponse, zReadOnboardingServiceScopeResponse, zReadOrganizationFiscalOperationResponse, zReadReceivedDocumentResponse, zReadSourceConnectionResponse, zReadSourceProviderAuthorizationResponse, zRecordCommercialResponseResponse, zRecoverSourceConnectionActivationResponse, zRegisterFiscalNumberAuthorizationResponse, zRegisterLegalIssuerResponse, zRegisterUserAccountResponse, zRegisterWebhookEndpointResponse, zReleaseHostedTenantResponse, zReplaceHostedInvoiceResponse, zReplaceInvoiceResponse, zReplayWebhookEventsResponse, zRespondToReceivedDocumentResponse, zRetrieveFiscalDeliveryPrintedRepresentationResponse, zRetrieveHostedInvoiceResponse, zRetrieveInvoiceDeliveryResponse, zRetrieveInvoiceReceiptResponse, zRetrieveInvoiceResponse, zRetrieveWorkspaceFiscalArtifactResponse, zRevokeCertificateCustodyCertificateVersionResponse, zShareHostedInvoiceReceiptResponse, zShareInvoiceReceiptResponse, zUpdateOnboardingLegalIssuerIdentityResponse, zUpdateOnboardingServiceScopeResponse, } from "./zod.gen.js";
|
|
3
3
|
export const healthLive = (options) => options.client.get({
|
|
4
4
|
response_decoder: (response) => {
|
|
5
5
|
switch (response.status) {
|
|
@@ -251,6 +251,865 @@ export const createHostedTenantWebhookSecretRotation = (options) => options.clie
|
|
|
251
251
|
url: "/hosted/tenants/{source_connection_id}/webhook-secret-rotations",
|
|
252
252
|
...options,
|
|
253
253
|
});
|
|
254
|
+
export const listHostedInvoices = (options) => options.client.get({
|
|
255
|
+
response_decoder: (response) => {
|
|
256
|
+
switch (response.status) {
|
|
257
|
+
case 200:
|
|
258
|
+
return {
|
|
259
|
+
status: 200,
|
|
260
|
+
headers: response.headers,
|
|
261
|
+
body: zListHostedInvoicesResponse.parse(response.body),
|
|
262
|
+
};
|
|
263
|
+
case 400:
|
|
264
|
+
return {
|
|
265
|
+
status: 400,
|
|
266
|
+
headers: response.headers,
|
|
267
|
+
body: zProblemBody.parse(response.body),
|
|
268
|
+
};
|
|
269
|
+
case 401:
|
|
270
|
+
return {
|
|
271
|
+
status: 401,
|
|
272
|
+
headers: response.headers,
|
|
273
|
+
body: zProblemBody.parse(response.body),
|
|
274
|
+
};
|
|
275
|
+
case 404:
|
|
276
|
+
return {
|
|
277
|
+
status: 404,
|
|
278
|
+
headers: response.headers,
|
|
279
|
+
body: zProblemBody.parse(response.body),
|
|
280
|
+
};
|
|
281
|
+
case 409:
|
|
282
|
+
return {
|
|
283
|
+
status: 409,
|
|
284
|
+
headers: response.headers,
|
|
285
|
+
body: zProblemBody.parse(response.body),
|
|
286
|
+
};
|
|
287
|
+
case 500:
|
|
288
|
+
return {
|
|
289
|
+
status: 500,
|
|
290
|
+
headers: response.headers,
|
|
291
|
+
body: zProblemBody.parse(response.body),
|
|
292
|
+
};
|
|
293
|
+
default:
|
|
294
|
+
return {
|
|
295
|
+
status: "unexpected",
|
|
296
|
+
status_code: response.status,
|
|
297
|
+
headers: response.headers,
|
|
298
|
+
body: response.body,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
url: "/internal/hosted/invoices",
|
|
303
|
+
...options,
|
|
304
|
+
});
|
|
305
|
+
export const createHostedInvoice = (options) => options.client.post({
|
|
306
|
+
response_decoder: (response) => {
|
|
307
|
+
switch (response.status) {
|
|
308
|
+
case 200:
|
|
309
|
+
return {
|
|
310
|
+
status: 200,
|
|
311
|
+
headers: response.headers,
|
|
312
|
+
body: zCreateHostedInvoiceResponse.parse(response.body),
|
|
313
|
+
};
|
|
314
|
+
case 201:
|
|
315
|
+
return {
|
|
316
|
+
status: 201,
|
|
317
|
+
headers: response.headers,
|
|
318
|
+
body: zCreateHostedInvoiceResponse.parse(response.body),
|
|
319
|
+
};
|
|
320
|
+
case 400:
|
|
321
|
+
return {
|
|
322
|
+
status: 400,
|
|
323
|
+
headers: response.headers,
|
|
324
|
+
body: zProblemBody.parse(response.body),
|
|
325
|
+
};
|
|
326
|
+
case 401:
|
|
327
|
+
return {
|
|
328
|
+
status: 401,
|
|
329
|
+
headers: response.headers,
|
|
330
|
+
body: zProblemBody.parse(response.body),
|
|
331
|
+
};
|
|
332
|
+
case 409:
|
|
333
|
+
return {
|
|
334
|
+
status: 409,
|
|
335
|
+
headers: response.headers,
|
|
336
|
+
body: zProblemBody.parse(response.body),
|
|
337
|
+
};
|
|
338
|
+
case 413:
|
|
339
|
+
return {
|
|
340
|
+
status: 413,
|
|
341
|
+
headers: response.headers,
|
|
342
|
+
body: zProblemBody.parse(response.body),
|
|
343
|
+
};
|
|
344
|
+
case 415:
|
|
345
|
+
return {
|
|
346
|
+
status: 415,
|
|
347
|
+
headers: response.headers,
|
|
348
|
+
body: zProblemBody.parse(response.body),
|
|
349
|
+
};
|
|
350
|
+
case 500:
|
|
351
|
+
return {
|
|
352
|
+
status: 500,
|
|
353
|
+
headers: response.headers,
|
|
354
|
+
body: zProblemBody.parse(response.body),
|
|
355
|
+
};
|
|
356
|
+
default:
|
|
357
|
+
return {
|
|
358
|
+
status: "unexpected",
|
|
359
|
+
status_code: response.status,
|
|
360
|
+
headers: response.headers,
|
|
361
|
+
body: response.body,
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
url: "/internal/hosted/invoices",
|
|
366
|
+
...options,
|
|
367
|
+
headers: {
|
|
368
|
+
"Content-Type": "application/json",
|
|
369
|
+
...options.headers,
|
|
370
|
+
},
|
|
371
|
+
});
|
|
372
|
+
export const previewHostedInvoice = (options) => options.client.post({
|
|
373
|
+
response_decoder: (response) => {
|
|
374
|
+
switch (response.status) {
|
|
375
|
+
case 200:
|
|
376
|
+
return {
|
|
377
|
+
status: 200,
|
|
378
|
+
headers: response.headers,
|
|
379
|
+
body: zPreviewHostedInvoiceResponse.parse(response.body),
|
|
380
|
+
};
|
|
381
|
+
case 400:
|
|
382
|
+
return {
|
|
383
|
+
status: 400,
|
|
384
|
+
headers: response.headers,
|
|
385
|
+
body: zProblemBody.parse(response.body),
|
|
386
|
+
};
|
|
387
|
+
case 401:
|
|
388
|
+
return {
|
|
389
|
+
status: 401,
|
|
390
|
+
headers: response.headers,
|
|
391
|
+
body: zProblemBody.parse(response.body),
|
|
392
|
+
};
|
|
393
|
+
case 409:
|
|
394
|
+
return {
|
|
395
|
+
status: 409,
|
|
396
|
+
headers: response.headers,
|
|
397
|
+
body: zProblemBody.parse(response.body),
|
|
398
|
+
};
|
|
399
|
+
case 413:
|
|
400
|
+
return {
|
|
401
|
+
status: 413,
|
|
402
|
+
headers: response.headers,
|
|
403
|
+
body: zProblemBody.parse(response.body),
|
|
404
|
+
};
|
|
405
|
+
case 415:
|
|
406
|
+
return {
|
|
407
|
+
status: 415,
|
|
408
|
+
headers: response.headers,
|
|
409
|
+
body: zProblemBody.parse(response.body),
|
|
410
|
+
};
|
|
411
|
+
case 500:
|
|
412
|
+
return {
|
|
413
|
+
status: 500,
|
|
414
|
+
headers: response.headers,
|
|
415
|
+
body: zProblemBody.parse(response.body),
|
|
416
|
+
};
|
|
417
|
+
default:
|
|
418
|
+
return {
|
|
419
|
+
status: "unexpected",
|
|
420
|
+
status_code: response.status,
|
|
421
|
+
headers: response.headers,
|
|
422
|
+
body: response.body,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
url: "/internal/hosted/invoices/preview",
|
|
427
|
+
...options,
|
|
428
|
+
headers: {
|
|
429
|
+
"Content-Type": "application/json",
|
|
430
|
+
...options.headers,
|
|
431
|
+
},
|
|
432
|
+
});
|
|
433
|
+
export const retrieveHostedInvoice = (options) => options.client.get({
|
|
434
|
+
response_decoder: (response) => {
|
|
435
|
+
switch (response.status) {
|
|
436
|
+
case 200:
|
|
437
|
+
return {
|
|
438
|
+
status: 200,
|
|
439
|
+
headers: response.headers,
|
|
440
|
+
body: zRetrieveHostedInvoiceResponse.parse(response.body),
|
|
441
|
+
};
|
|
442
|
+
case 400:
|
|
443
|
+
return {
|
|
444
|
+
status: 400,
|
|
445
|
+
headers: response.headers,
|
|
446
|
+
body: zProblemBody.parse(response.body),
|
|
447
|
+
};
|
|
448
|
+
case 401:
|
|
449
|
+
return {
|
|
450
|
+
status: 401,
|
|
451
|
+
headers: response.headers,
|
|
452
|
+
body: zProblemBody.parse(response.body),
|
|
453
|
+
};
|
|
454
|
+
case 404:
|
|
455
|
+
return {
|
|
456
|
+
status: 404,
|
|
457
|
+
headers: response.headers,
|
|
458
|
+
body: zProblemBody.parse(response.body),
|
|
459
|
+
};
|
|
460
|
+
case 409:
|
|
461
|
+
return {
|
|
462
|
+
status: 409,
|
|
463
|
+
headers: response.headers,
|
|
464
|
+
body: zProblemBody.parse(response.body),
|
|
465
|
+
};
|
|
466
|
+
case 500:
|
|
467
|
+
return {
|
|
468
|
+
status: 500,
|
|
469
|
+
headers: response.headers,
|
|
470
|
+
body: zProblemBody.parse(response.body),
|
|
471
|
+
};
|
|
472
|
+
default:
|
|
473
|
+
return {
|
|
474
|
+
status: "unexpected",
|
|
475
|
+
status_code: response.status,
|
|
476
|
+
headers: response.headers,
|
|
477
|
+
body: response.body,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
url: "/internal/hosted/invoices/{invoiceId}",
|
|
482
|
+
...options,
|
|
483
|
+
});
|
|
484
|
+
export const downloadHostedInvoicePdf = (options) => options.client.get({
|
|
485
|
+
response_decoder: (response) => {
|
|
486
|
+
switch (response.status) {
|
|
487
|
+
case 200:
|
|
488
|
+
return {
|
|
489
|
+
status: 200,
|
|
490
|
+
headers: response.headers,
|
|
491
|
+
body: zDownloadHostedInvoicePdfResponse.parse(response.body),
|
|
492
|
+
};
|
|
493
|
+
case 400:
|
|
494
|
+
return {
|
|
495
|
+
status: 400,
|
|
496
|
+
headers: response.headers,
|
|
497
|
+
body: zProblemBody.parse(response.body),
|
|
498
|
+
};
|
|
499
|
+
case 401:
|
|
500
|
+
return {
|
|
501
|
+
status: 401,
|
|
502
|
+
headers: response.headers,
|
|
503
|
+
body: zProblemBody.parse(response.body),
|
|
504
|
+
};
|
|
505
|
+
case 404:
|
|
506
|
+
return {
|
|
507
|
+
status: 404,
|
|
508
|
+
headers: response.headers,
|
|
509
|
+
body: zProblemBody.parse(response.body),
|
|
510
|
+
};
|
|
511
|
+
case 409:
|
|
512
|
+
return {
|
|
513
|
+
status: 409,
|
|
514
|
+
headers: response.headers,
|
|
515
|
+
body: zProblemBody.parse(response.body),
|
|
516
|
+
};
|
|
517
|
+
case 500:
|
|
518
|
+
return {
|
|
519
|
+
status: 500,
|
|
520
|
+
headers: response.headers,
|
|
521
|
+
body: zProblemBody.parse(response.body),
|
|
522
|
+
};
|
|
523
|
+
default:
|
|
524
|
+
return {
|
|
525
|
+
status: "unexpected",
|
|
526
|
+
status_code: response.status,
|
|
527
|
+
headers: response.headers,
|
|
528
|
+
body: response.body,
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
url: "/internal/hosted/invoices/{invoiceId}/files/pdf",
|
|
533
|
+
...options,
|
|
534
|
+
});
|
|
535
|
+
export const downloadHostedInvoiceXml = (options) => options.client.get({
|
|
536
|
+
response_decoder: (response) => {
|
|
537
|
+
switch (response.status) {
|
|
538
|
+
case 200:
|
|
539
|
+
return {
|
|
540
|
+
status: 200,
|
|
541
|
+
headers: response.headers,
|
|
542
|
+
body: zDownloadHostedInvoiceXmlResponse.parse(response.body),
|
|
543
|
+
};
|
|
544
|
+
case 400:
|
|
545
|
+
return {
|
|
546
|
+
status: 400,
|
|
547
|
+
headers: response.headers,
|
|
548
|
+
body: zProblemBody.parse(response.body),
|
|
549
|
+
};
|
|
550
|
+
case 401:
|
|
551
|
+
return {
|
|
552
|
+
status: 401,
|
|
553
|
+
headers: response.headers,
|
|
554
|
+
body: zProblemBody.parse(response.body),
|
|
555
|
+
};
|
|
556
|
+
case 404:
|
|
557
|
+
return {
|
|
558
|
+
status: 404,
|
|
559
|
+
headers: response.headers,
|
|
560
|
+
body: zProblemBody.parse(response.body),
|
|
561
|
+
};
|
|
562
|
+
case 409:
|
|
563
|
+
return {
|
|
564
|
+
status: 409,
|
|
565
|
+
headers: response.headers,
|
|
566
|
+
body: zProblemBody.parse(response.body),
|
|
567
|
+
};
|
|
568
|
+
case 500:
|
|
569
|
+
return {
|
|
570
|
+
status: 500,
|
|
571
|
+
headers: response.headers,
|
|
572
|
+
body: zProblemBody.parse(response.body),
|
|
573
|
+
};
|
|
574
|
+
default:
|
|
575
|
+
return {
|
|
576
|
+
status: "unexpected",
|
|
577
|
+
status_code: response.status,
|
|
578
|
+
headers: response.headers,
|
|
579
|
+
body: response.body,
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
url: "/internal/hosted/invoices/{invoiceId}/files/xml",
|
|
584
|
+
...options,
|
|
585
|
+
});
|
|
586
|
+
export const shareHostedInvoiceReceipt = (options) => options.client.post({
|
|
587
|
+
response_decoder: (response) => {
|
|
588
|
+
switch (response.status) {
|
|
589
|
+
case 200:
|
|
590
|
+
return {
|
|
591
|
+
status: 200,
|
|
592
|
+
headers: response.headers,
|
|
593
|
+
body: zShareHostedInvoiceReceiptResponse.parse(response.body),
|
|
594
|
+
};
|
|
595
|
+
case 400:
|
|
596
|
+
return {
|
|
597
|
+
status: 400,
|
|
598
|
+
headers: response.headers,
|
|
599
|
+
body: zProblemBody.parse(response.body),
|
|
600
|
+
};
|
|
601
|
+
case 401:
|
|
602
|
+
return {
|
|
603
|
+
status: 401,
|
|
604
|
+
headers: response.headers,
|
|
605
|
+
body: zProblemBody.parse(response.body),
|
|
606
|
+
};
|
|
607
|
+
case 403:
|
|
608
|
+
return {
|
|
609
|
+
status: 403,
|
|
610
|
+
headers: response.headers,
|
|
611
|
+
body: zProblemBody.parse(response.body),
|
|
612
|
+
};
|
|
613
|
+
case 404:
|
|
614
|
+
return {
|
|
615
|
+
status: 404,
|
|
616
|
+
headers: response.headers,
|
|
617
|
+
body: zProblemBody.parse(response.body),
|
|
618
|
+
};
|
|
619
|
+
case 409:
|
|
620
|
+
return {
|
|
621
|
+
status: 409,
|
|
622
|
+
headers: response.headers,
|
|
623
|
+
body: zProblemBody.parse(response.body),
|
|
624
|
+
};
|
|
625
|
+
case 500:
|
|
626
|
+
return {
|
|
627
|
+
status: 500,
|
|
628
|
+
headers: response.headers,
|
|
629
|
+
body: zProblemBody.parse(response.body),
|
|
630
|
+
};
|
|
631
|
+
case 503:
|
|
632
|
+
return {
|
|
633
|
+
status: 503,
|
|
634
|
+
headers: response.headers,
|
|
635
|
+
body: zProblemBody.parse(response.body),
|
|
636
|
+
};
|
|
637
|
+
default:
|
|
638
|
+
return {
|
|
639
|
+
status: "unexpected",
|
|
640
|
+
status_code: response.status,
|
|
641
|
+
headers: response.headers,
|
|
642
|
+
body: response.body,
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
url: "/internal/hosted/invoices/{invoiceId}/receipt-access",
|
|
647
|
+
...options,
|
|
648
|
+
});
|
|
649
|
+
export const replaceHostedInvoice = (options) => options.client.post({
|
|
650
|
+
response_decoder: (response) => {
|
|
651
|
+
switch (response.status) {
|
|
652
|
+
case 200:
|
|
653
|
+
return {
|
|
654
|
+
status: 200,
|
|
655
|
+
headers: response.headers,
|
|
656
|
+
body: zReplaceHostedInvoiceResponse.parse(response.body),
|
|
657
|
+
};
|
|
658
|
+
case 201:
|
|
659
|
+
return {
|
|
660
|
+
status: 201,
|
|
661
|
+
headers: response.headers,
|
|
662
|
+
body: zReplaceHostedInvoiceResponse.parse(response.body),
|
|
663
|
+
};
|
|
664
|
+
case 400:
|
|
665
|
+
return {
|
|
666
|
+
status: 400,
|
|
667
|
+
headers: response.headers,
|
|
668
|
+
body: zProblemBody.parse(response.body),
|
|
669
|
+
};
|
|
670
|
+
case 401:
|
|
671
|
+
return {
|
|
672
|
+
status: 401,
|
|
673
|
+
headers: response.headers,
|
|
674
|
+
body: zProblemBody.parse(response.body),
|
|
675
|
+
};
|
|
676
|
+
case 404:
|
|
677
|
+
return {
|
|
678
|
+
status: 404,
|
|
679
|
+
headers: response.headers,
|
|
680
|
+
body: zProblemBody.parse(response.body),
|
|
681
|
+
};
|
|
682
|
+
case 409:
|
|
683
|
+
return {
|
|
684
|
+
status: 409,
|
|
685
|
+
headers: response.headers,
|
|
686
|
+
body: zProblemBody.parse(response.body),
|
|
687
|
+
};
|
|
688
|
+
case 413:
|
|
689
|
+
return {
|
|
690
|
+
status: 413,
|
|
691
|
+
headers: response.headers,
|
|
692
|
+
body: zProblemBody.parse(response.body),
|
|
693
|
+
};
|
|
694
|
+
case 415:
|
|
695
|
+
return {
|
|
696
|
+
status: 415,
|
|
697
|
+
headers: response.headers,
|
|
698
|
+
body: zProblemBody.parse(response.body),
|
|
699
|
+
};
|
|
700
|
+
case 422:
|
|
701
|
+
return {
|
|
702
|
+
status: 422,
|
|
703
|
+
headers: response.headers,
|
|
704
|
+
body: zProblemBody.parse(response.body),
|
|
705
|
+
};
|
|
706
|
+
case 500:
|
|
707
|
+
return {
|
|
708
|
+
status: 500,
|
|
709
|
+
headers: response.headers,
|
|
710
|
+
body: zProblemBody.parse(response.body),
|
|
711
|
+
};
|
|
712
|
+
case 503:
|
|
713
|
+
return {
|
|
714
|
+
status: 503,
|
|
715
|
+
headers: response.headers,
|
|
716
|
+
body: zProblemBody.parse(response.body),
|
|
717
|
+
};
|
|
718
|
+
default:
|
|
719
|
+
return {
|
|
720
|
+
status: "unexpected",
|
|
721
|
+
status_code: response.status,
|
|
722
|
+
headers: response.headers,
|
|
723
|
+
body: response.body,
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
url: "/internal/hosted/invoices/{invoiceId}/replacements",
|
|
728
|
+
...options,
|
|
729
|
+
headers: {
|
|
730
|
+
"Content-Type": "application/json",
|
|
731
|
+
...options.headers,
|
|
732
|
+
},
|
|
733
|
+
});
|
|
734
|
+
/**
|
|
735
|
+
* Lists Fiscal operations visible to the authenticated Source connection.
|
|
736
|
+
*/
|
|
737
|
+
export const listFiscalOperations = (options) => options.client.get({
|
|
738
|
+
response_decoder: (response) => {
|
|
739
|
+
switch (response.status) {
|
|
740
|
+
case 200:
|
|
741
|
+
return {
|
|
742
|
+
status: 200,
|
|
743
|
+
headers: response.headers,
|
|
744
|
+
body: zListFiscalOperationsResponse.parse(response.body),
|
|
745
|
+
};
|
|
746
|
+
case 400:
|
|
747
|
+
return {
|
|
748
|
+
status: 400,
|
|
749
|
+
headers: response.headers,
|
|
750
|
+
body: zProblemBody.parse(response.body),
|
|
751
|
+
};
|
|
752
|
+
case 401:
|
|
753
|
+
return {
|
|
754
|
+
status: 401,
|
|
755
|
+
headers: response.headers,
|
|
756
|
+
body: zProblemBody.parse(response.body),
|
|
757
|
+
};
|
|
758
|
+
case 403:
|
|
759
|
+
return {
|
|
760
|
+
status: 403,
|
|
761
|
+
headers: response.headers,
|
|
762
|
+
body: zProblemBody.parse(response.body),
|
|
763
|
+
};
|
|
764
|
+
case 409:
|
|
765
|
+
return {
|
|
766
|
+
status: 409,
|
|
767
|
+
headers: response.headers,
|
|
768
|
+
body: zProblemBody.parse(response.body),
|
|
769
|
+
};
|
|
770
|
+
case 500:
|
|
771
|
+
return {
|
|
772
|
+
status: 500,
|
|
773
|
+
headers: response.headers,
|
|
774
|
+
body: zProblemBody.parse(response.body),
|
|
775
|
+
};
|
|
776
|
+
default:
|
|
777
|
+
return {
|
|
778
|
+
status: "unexpected",
|
|
779
|
+
status_code: response.status,
|
|
780
|
+
headers: response.headers,
|
|
781
|
+
body: response.body,
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
url: "/v1/admin/fiscal-operations",
|
|
786
|
+
...options,
|
|
787
|
+
});
|
|
788
|
+
export const createFiscalOperation = (options) => options.client.post({
|
|
789
|
+
response_decoder: (response) => {
|
|
790
|
+
switch (response.status) {
|
|
791
|
+
case 200:
|
|
792
|
+
return {
|
|
793
|
+
status: 200,
|
|
794
|
+
headers: response.headers,
|
|
795
|
+
body: zCreateFiscalOperationResponse.parse(response.body),
|
|
796
|
+
};
|
|
797
|
+
case 202:
|
|
798
|
+
return {
|
|
799
|
+
status: 202,
|
|
800
|
+
headers: response.headers,
|
|
801
|
+
body: zCreateFiscalOperationResponse.parse(response.body),
|
|
802
|
+
};
|
|
803
|
+
case 400:
|
|
804
|
+
return {
|
|
805
|
+
status: 400,
|
|
806
|
+
headers: response.headers,
|
|
807
|
+
body: zProblemBody.parse(response.body),
|
|
808
|
+
};
|
|
809
|
+
case 401:
|
|
810
|
+
return {
|
|
811
|
+
status: 401,
|
|
812
|
+
headers: response.headers,
|
|
813
|
+
body: zProblemBody.parse(response.body),
|
|
814
|
+
};
|
|
815
|
+
case 403:
|
|
816
|
+
return {
|
|
817
|
+
status: 403,
|
|
818
|
+
headers: response.headers,
|
|
819
|
+
body: zProblemBody.parse(response.body),
|
|
820
|
+
};
|
|
821
|
+
case 404:
|
|
822
|
+
return {
|
|
823
|
+
status: 404,
|
|
824
|
+
headers: response.headers,
|
|
825
|
+
body: zProblemBody.parse(response.body),
|
|
826
|
+
};
|
|
827
|
+
case 408:
|
|
828
|
+
return {
|
|
829
|
+
status: 408,
|
|
830
|
+
headers: response.headers,
|
|
831
|
+
body: zProblemBody.parse(response.body),
|
|
832
|
+
};
|
|
833
|
+
case 409:
|
|
834
|
+
return {
|
|
835
|
+
status: 409,
|
|
836
|
+
headers: response.headers,
|
|
837
|
+
body: zProblemBody.parse(response.body),
|
|
838
|
+
};
|
|
839
|
+
case 413:
|
|
840
|
+
return {
|
|
841
|
+
status: 413,
|
|
842
|
+
headers: response.headers,
|
|
843
|
+
body: zProblemBody.parse(response.body),
|
|
844
|
+
};
|
|
845
|
+
case 415:
|
|
846
|
+
return {
|
|
847
|
+
status: 415,
|
|
848
|
+
headers: response.headers,
|
|
849
|
+
body: zProblemBody.parse(response.body),
|
|
850
|
+
};
|
|
851
|
+
case 422:
|
|
852
|
+
return {
|
|
853
|
+
status: 422,
|
|
854
|
+
headers: response.headers,
|
|
855
|
+
body: zProblemBody.parse(response.body),
|
|
856
|
+
};
|
|
857
|
+
case 500:
|
|
858
|
+
return {
|
|
859
|
+
status: 500,
|
|
860
|
+
headers: response.headers,
|
|
861
|
+
body: zProblemBody.parse(response.body),
|
|
862
|
+
};
|
|
863
|
+
case 503:
|
|
864
|
+
return {
|
|
865
|
+
status: 503,
|
|
866
|
+
headers: response.headers,
|
|
867
|
+
body: zProblemBody.parse(response.body),
|
|
868
|
+
};
|
|
869
|
+
default:
|
|
870
|
+
return {
|
|
871
|
+
status: "unexpected",
|
|
872
|
+
status_code: response.status,
|
|
873
|
+
headers: response.headers,
|
|
874
|
+
body: response.body,
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
url: "/v1/admin/fiscal-operations",
|
|
879
|
+
...options,
|
|
880
|
+
headers: {
|
|
881
|
+
"Content-Type": "application/json",
|
|
882
|
+
...options.headers,
|
|
883
|
+
},
|
|
884
|
+
});
|
|
885
|
+
export const findFiscalOperationBySource = (options) => options.client.get({
|
|
886
|
+
response_decoder: (response) => {
|
|
887
|
+
switch (response.status) {
|
|
888
|
+
case 200:
|
|
889
|
+
return {
|
|
890
|
+
status: 200,
|
|
891
|
+
headers: response.headers,
|
|
892
|
+
body: zFindFiscalOperationBySourceResponse.parse(response.body),
|
|
893
|
+
};
|
|
894
|
+
case 400:
|
|
895
|
+
return {
|
|
896
|
+
status: 400,
|
|
897
|
+
headers: response.headers,
|
|
898
|
+
body: zProblemBody.parse(response.body),
|
|
899
|
+
};
|
|
900
|
+
case 401:
|
|
901
|
+
return {
|
|
902
|
+
status: 401,
|
|
903
|
+
headers: response.headers,
|
|
904
|
+
body: zProblemBody.parse(response.body),
|
|
905
|
+
};
|
|
906
|
+
case 403:
|
|
907
|
+
return {
|
|
908
|
+
status: 403,
|
|
909
|
+
headers: response.headers,
|
|
910
|
+
body: zProblemBody.parse(response.body),
|
|
911
|
+
};
|
|
912
|
+
case 404:
|
|
913
|
+
return {
|
|
914
|
+
status: 404,
|
|
915
|
+
headers: response.headers,
|
|
916
|
+
body: zProblemBody.parse(response.body),
|
|
917
|
+
};
|
|
918
|
+
case 409:
|
|
919
|
+
return {
|
|
920
|
+
status: 409,
|
|
921
|
+
headers: response.headers,
|
|
922
|
+
body: zProblemBody.parse(response.body),
|
|
923
|
+
};
|
|
924
|
+
case 500:
|
|
925
|
+
return {
|
|
926
|
+
status: 500,
|
|
927
|
+
headers: response.headers,
|
|
928
|
+
body: zProblemBody.parse(response.body),
|
|
929
|
+
};
|
|
930
|
+
default:
|
|
931
|
+
return {
|
|
932
|
+
status: "unexpected",
|
|
933
|
+
status_code: response.status,
|
|
934
|
+
headers: response.headers,
|
|
935
|
+
body: response.body,
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
url: "/v1/admin/fiscal-operations/by-source/{source_id}/versions/{source_version}",
|
|
940
|
+
...options,
|
|
941
|
+
});
|
|
942
|
+
export const findFiscalOperation = (options) => options.client.get({
|
|
943
|
+
response_decoder: (response) => {
|
|
944
|
+
switch (response.status) {
|
|
945
|
+
case 200:
|
|
946
|
+
return {
|
|
947
|
+
status: 200,
|
|
948
|
+
headers: response.headers,
|
|
949
|
+
body: zFindFiscalOperationResponse.parse(response.body),
|
|
950
|
+
};
|
|
951
|
+
case 400:
|
|
952
|
+
return {
|
|
953
|
+
status: 400,
|
|
954
|
+
headers: response.headers,
|
|
955
|
+
body: zProblemBody.parse(response.body),
|
|
956
|
+
};
|
|
957
|
+
case 401:
|
|
958
|
+
return {
|
|
959
|
+
status: 401,
|
|
960
|
+
headers: response.headers,
|
|
961
|
+
body: zProblemBody.parse(response.body),
|
|
962
|
+
};
|
|
963
|
+
case 403:
|
|
964
|
+
return {
|
|
965
|
+
status: 403,
|
|
966
|
+
headers: response.headers,
|
|
967
|
+
body: zProblemBody.parse(response.body),
|
|
968
|
+
};
|
|
969
|
+
case 404:
|
|
970
|
+
return {
|
|
971
|
+
status: 404,
|
|
972
|
+
headers: response.headers,
|
|
973
|
+
body: zProblemBody.parse(response.body),
|
|
974
|
+
};
|
|
975
|
+
case 409:
|
|
976
|
+
return {
|
|
977
|
+
status: 409,
|
|
978
|
+
headers: response.headers,
|
|
979
|
+
body: zProblemBody.parse(response.body),
|
|
980
|
+
};
|
|
981
|
+
case 500:
|
|
982
|
+
return {
|
|
983
|
+
status: 500,
|
|
984
|
+
headers: response.headers,
|
|
985
|
+
body: zProblemBody.parse(response.body),
|
|
986
|
+
};
|
|
987
|
+
default:
|
|
988
|
+
return {
|
|
989
|
+
status: "unexpected",
|
|
990
|
+
status_code: response.status,
|
|
991
|
+
headers: response.headers,
|
|
992
|
+
body: response.body,
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
url: "/v1/admin/fiscal-operations/{operation_id}",
|
|
997
|
+
...options,
|
|
998
|
+
});
|
|
999
|
+
export const findFiscalArtifact = (options) => options.client.get({
|
|
1000
|
+
response_decoder: (response) => {
|
|
1001
|
+
switch (response.status) {
|
|
1002
|
+
case 200:
|
|
1003
|
+
return {
|
|
1004
|
+
status: 200,
|
|
1005
|
+
headers: response.headers,
|
|
1006
|
+
body: zFindFiscalArtifactResponse.parse(response.body),
|
|
1007
|
+
};
|
|
1008
|
+
case 400:
|
|
1009
|
+
return {
|
|
1010
|
+
status: 400,
|
|
1011
|
+
headers: response.headers,
|
|
1012
|
+
body: zProblemBody.parse(response.body),
|
|
1013
|
+
};
|
|
1014
|
+
case 401:
|
|
1015
|
+
return {
|
|
1016
|
+
status: 401,
|
|
1017
|
+
headers: response.headers,
|
|
1018
|
+
body: zProblemBody.parse(response.body),
|
|
1019
|
+
};
|
|
1020
|
+
case 403:
|
|
1021
|
+
return {
|
|
1022
|
+
status: 403,
|
|
1023
|
+
headers: response.headers,
|
|
1024
|
+
body: zProblemBody.parse(response.body),
|
|
1025
|
+
};
|
|
1026
|
+
case 404:
|
|
1027
|
+
return {
|
|
1028
|
+
status: 404,
|
|
1029
|
+
headers: response.headers,
|
|
1030
|
+
body: zProblemBody.parse(response.body),
|
|
1031
|
+
};
|
|
1032
|
+
case 409:
|
|
1033
|
+
return {
|
|
1034
|
+
status: 409,
|
|
1035
|
+
headers: response.headers,
|
|
1036
|
+
body: zProblemBody.parse(response.body),
|
|
1037
|
+
};
|
|
1038
|
+
case 500:
|
|
1039
|
+
return {
|
|
1040
|
+
status: 500,
|
|
1041
|
+
headers: response.headers,
|
|
1042
|
+
body: zProblemBody.parse(response.body),
|
|
1043
|
+
};
|
|
1044
|
+
default:
|
|
1045
|
+
return {
|
|
1046
|
+
status: "unexpected",
|
|
1047
|
+
status_code: response.status,
|
|
1048
|
+
headers: response.headers,
|
|
1049
|
+
body: response.body,
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
url: "/v1/admin/fiscal-operations/{operation_id}/artifacts/{artifact_kind}",
|
|
1054
|
+
...options,
|
|
1055
|
+
});
|
|
1056
|
+
export const readFiscalOperationTiming = (options) => options.client.get({
|
|
1057
|
+
response_decoder: (response) => {
|
|
1058
|
+
switch (response.status) {
|
|
1059
|
+
case 200:
|
|
1060
|
+
return {
|
|
1061
|
+
status: 200,
|
|
1062
|
+
headers: response.headers,
|
|
1063
|
+
body: zReadFiscalOperationTimingResponse.parse(response.body),
|
|
1064
|
+
};
|
|
1065
|
+
case 400:
|
|
1066
|
+
return {
|
|
1067
|
+
status: 400,
|
|
1068
|
+
headers: response.headers,
|
|
1069
|
+
body: zProblemBody.parse(response.body),
|
|
1070
|
+
};
|
|
1071
|
+
case 401:
|
|
1072
|
+
return {
|
|
1073
|
+
status: 401,
|
|
1074
|
+
headers: response.headers,
|
|
1075
|
+
body: zProblemBody.parse(response.body),
|
|
1076
|
+
};
|
|
1077
|
+
case 403:
|
|
1078
|
+
return {
|
|
1079
|
+
status: 403,
|
|
1080
|
+
headers: response.headers,
|
|
1081
|
+
body: zProblemBody.parse(response.body),
|
|
1082
|
+
};
|
|
1083
|
+
case 404:
|
|
1084
|
+
return {
|
|
1085
|
+
status: 404,
|
|
1086
|
+
headers: response.headers,
|
|
1087
|
+
body: zProblemBody.parse(response.body),
|
|
1088
|
+
};
|
|
1089
|
+
case 409:
|
|
1090
|
+
return {
|
|
1091
|
+
status: 409,
|
|
1092
|
+
headers: response.headers,
|
|
1093
|
+
body: zProblemBody.parse(response.body),
|
|
1094
|
+
};
|
|
1095
|
+
case 500:
|
|
1096
|
+
return {
|
|
1097
|
+
status: 500,
|
|
1098
|
+
headers: response.headers,
|
|
1099
|
+
body: zProblemBody.parse(response.body),
|
|
1100
|
+
};
|
|
1101
|
+
default:
|
|
1102
|
+
return {
|
|
1103
|
+
status: "unexpected",
|
|
1104
|
+
status_code: response.status,
|
|
1105
|
+
headers: response.headers,
|
|
1106
|
+
body: response.body,
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
url: "/v1/admin/fiscal-operations/{operation_id}/timing",
|
|
1111
|
+
...options,
|
|
1112
|
+
});
|
|
254
1113
|
export const readCertificateCustodyReadiness = (options) => options.client.get({
|
|
255
1114
|
response_decoder: (response) => {
|
|
256
1115
|
switch (response.status) {
|
|
@@ -272,6 +1131,12 @@ export const readCertificateCustodyReadiness = (options) => options.client.get({
|
|
|
272
1131
|
headers: response.headers,
|
|
273
1132
|
body: zProblemBody.parse(response.body),
|
|
274
1133
|
};
|
|
1134
|
+
case 409:
|
|
1135
|
+
return {
|
|
1136
|
+
status: 409,
|
|
1137
|
+
headers: response.headers,
|
|
1138
|
+
body: zProblemBody.parse(response.body),
|
|
1139
|
+
};
|
|
275
1140
|
case 500:
|
|
276
1141
|
return {
|
|
277
1142
|
status: 500,
|
|
@@ -450,6 +1315,12 @@ export const readElectronicFiscalDocumentEligibility = (options) => options.clie
|
|
|
450
1315
|
headers: response.headers,
|
|
451
1316
|
body: zProblemBody.parse(response.body),
|
|
452
1317
|
};
|
|
1318
|
+
case 409:
|
|
1319
|
+
return {
|
|
1320
|
+
status: 409,
|
|
1321
|
+
headers: response.headers,
|
|
1322
|
+
body: zProblemBody.parse(response.body),
|
|
1323
|
+
};
|
|
453
1324
|
case 500:
|
|
454
1325
|
return {
|
|
455
1326
|
status: 500,
|
|
@@ -468,20 +1339,107 @@ export const readElectronicFiscalDocumentEligibility = (options) => options.clie
|
|
|
468
1339
|
url: "/v1/electronic-fiscal-document-eligibility",
|
|
469
1340
|
...options,
|
|
470
1341
|
});
|
|
471
|
-
export const
|
|
1342
|
+
export const retrieveFiscalDeliveryPrintedRepresentation = (options) => options.client.get({
|
|
472
1343
|
response_decoder: (response) => {
|
|
473
1344
|
switch (response.status) {
|
|
474
1345
|
case 200:
|
|
475
1346
|
return {
|
|
476
1347
|
status: 200,
|
|
477
1348
|
headers: response.headers,
|
|
478
|
-
body:
|
|
1349
|
+
body: zRetrieveFiscalDeliveryPrintedRepresentationResponse.parse(response.body),
|
|
479
1350
|
};
|
|
480
|
-
case
|
|
1351
|
+
case 404:
|
|
481
1352
|
return {
|
|
482
|
-
status:
|
|
1353
|
+
status: 404,
|
|
1354
|
+
headers: response.headers,
|
|
1355
|
+
body: zProblemBody.parse(response.body),
|
|
1356
|
+
};
|
|
1357
|
+
case 409:
|
|
1358
|
+
return {
|
|
1359
|
+
status: 409,
|
|
1360
|
+
headers: response.headers,
|
|
1361
|
+
body: zProblemBody.parse(response.body),
|
|
1362
|
+
};
|
|
1363
|
+
case 500:
|
|
1364
|
+
return {
|
|
1365
|
+
status: 500,
|
|
1366
|
+
headers: response.headers,
|
|
1367
|
+
body: zProblemBody.parse(response.body),
|
|
1368
|
+
};
|
|
1369
|
+
case 503:
|
|
1370
|
+
return {
|
|
1371
|
+
status: 503,
|
|
1372
|
+
headers: response.headers,
|
|
1373
|
+
body: zProblemBody.parse(response.body),
|
|
1374
|
+
};
|
|
1375
|
+
default:
|
|
1376
|
+
return {
|
|
1377
|
+
status: "unexpected",
|
|
1378
|
+
status_code: response.status,
|
|
1379
|
+
headers: response.headers,
|
|
1380
|
+
body: response.body,
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
url: "/v1/fiscal-deliveries/access/{token}/printed-representation",
|
|
1385
|
+
...options,
|
|
1386
|
+
});
|
|
1387
|
+
export const readFiscalNumberAuthorizationReadiness = (options) => options.client.get({
|
|
1388
|
+
response_decoder: (response) => {
|
|
1389
|
+
switch (response.status) {
|
|
1390
|
+
case 200:
|
|
1391
|
+
return {
|
|
1392
|
+
status: 200,
|
|
1393
|
+
headers: response.headers,
|
|
1394
|
+
body: zReadFiscalNumberAuthorizationReadinessResponse.parse(response.body),
|
|
1395
|
+
};
|
|
1396
|
+
case 401:
|
|
1397
|
+
return {
|
|
1398
|
+
status: 401,
|
|
1399
|
+
headers: response.headers,
|
|
1400
|
+
body: zProblemBody.parse(response.body),
|
|
1401
|
+
};
|
|
1402
|
+
case 403:
|
|
1403
|
+
return {
|
|
1404
|
+
status: 403,
|
|
1405
|
+
headers: response.headers,
|
|
1406
|
+
body: zProblemBody.parse(response.body),
|
|
1407
|
+
};
|
|
1408
|
+
case 409:
|
|
1409
|
+
return {
|
|
1410
|
+
status: 409,
|
|
1411
|
+
headers: response.headers,
|
|
1412
|
+
body: zProblemBody.parse(response.body),
|
|
1413
|
+
};
|
|
1414
|
+
case 500:
|
|
1415
|
+
return {
|
|
1416
|
+
status: 500,
|
|
1417
|
+
headers: response.headers,
|
|
1418
|
+
body: zProblemBody.parse(response.body),
|
|
1419
|
+
};
|
|
1420
|
+
default:
|
|
1421
|
+
return {
|
|
1422
|
+
status: "unexpected",
|
|
1423
|
+
status_code: response.status,
|
|
1424
|
+
headers: response.headers,
|
|
1425
|
+
body: response.body,
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
url: "/v1/fiscal-number-authorizations/readiness",
|
|
1430
|
+
...options,
|
|
1431
|
+
});
|
|
1432
|
+
/**
|
|
1433
|
+
* Imports a hosted tenant's P12 into certificate custody for its exact environment binding. The environment defaults to sandbox; production is available when that tenant has a production binding. Timbro verifies the certificate identity, trust, validity, signer proof, and custody envelope.
|
|
1434
|
+
*/
|
|
1435
|
+
export const importHostedCertificateCustody = (options) => options.client.post({
|
|
1436
|
+
response_decoder: (response) => {
|
|
1437
|
+
switch (response.status) {
|
|
1438
|
+
case 200:
|
|
1439
|
+
return {
|
|
1440
|
+
status: 200,
|
|
483
1441
|
headers: response.headers,
|
|
484
|
-
body:
|
|
1442
|
+
body: zImportHostedCertificateCustodyResponse.parse(response.body),
|
|
485
1443
|
};
|
|
486
1444
|
case 400:
|
|
487
1445
|
return {
|
|
@@ -525,6 +1483,12 @@ export const createFiscalDelivery = (options) => options.client.post({
|
|
|
525
1483
|
headers: response.headers,
|
|
526
1484
|
body: zProblemBody.parse(response.body),
|
|
527
1485
|
};
|
|
1486
|
+
case 422:
|
|
1487
|
+
return {
|
|
1488
|
+
status: 422,
|
|
1489
|
+
headers: response.headers,
|
|
1490
|
+
body: zProblemBody.parse(response.body),
|
|
1491
|
+
};
|
|
528
1492
|
case 500:
|
|
529
1493
|
return {
|
|
530
1494
|
status: 500,
|
|
@@ -546,21 +1510,39 @@ export const createFiscalDelivery = (options) => options.client.post({
|
|
|
546
1510
|
};
|
|
547
1511
|
}
|
|
548
1512
|
},
|
|
549
|
-
url: "/v1/
|
|
1513
|
+
url: "/v1/hosted/certificate-custody/import",
|
|
550
1514
|
...options,
|
|
551
1515
|
headers: {
|
|
552
1516
|
"Content-Type": "application/json",
|
|
553
1517
|
...options.headers,
|
|
554
1518
|
},
|
|
555
1519
|
});
|
|
556
|
-
export const
|
|
1520
|
+
export const issueHostedInvoiceCredential = (options) => options.client.post({
|
|
557
1521
|
response_decoder: (response) => {
|
|
558
1522
|
switch (response.status) {
|
|
559
|
-
case
|
|
1523
|
+
case 201:
|
|
560
1524
|
return {
|
|
561
|
-
status:
|
|
1525
|
+
status: 201,
|
|
562
1526
|
headers: response.headers,
|
|
563
|
-
body:
|
|
1527
|
+
body: zIssueHostedInvoiceCredentialResponse.parse(response.body),
|
|
1528
|
+
};
|
|
1529
|
+
case 400:
|
|
1530
|
+
return {
|
|
1531
|
+
status: 400,
|
|
1532
|
+
headers: response.headers,
|
|
1533
|
+
body: zProblemBody.parse(response.body),
|
|
1534
|
+
};
|
|
1535
|
+
case 401:
|
|
1536
|
+
return {
|
|
1537
|
+
status: 401,
|
|
1538
|
+
headers: response.headers,
|
|
1539
|
+
body: zProblemBody.parse(response.body),
|
|
1540
|
+
};
|
|
1541
|
+
case 403:
|
|
1542
|
+
return {
|
|
1543
|
+
status: 403,
|
|
1544
|
+
headers: response.headers,
|
|
1545
|
+
body: zProblemBody.parse(response.body),
|
|
564
1546
|
};
|
|
565
1547
|
case 404:
|
|
566
1548
|
return {
|
|
@@ -574,15 +1556,21 @@ export const retrieveFiscalDeliveryPrintedRepresentation = (options) => options.
|
|
|
574
1556
|
headers: response.headers,
|
|
575
1557
|
body: zProblemBody.parse(response.body),
|
|
576
1558
|
};
|
|
577
|
-
case
|
|
1559
|
+
case 413:
|
|
578
1560
|
return {
|
|
579
|
-
status:
|
|
1561
|
+
status: 413,
|
|
580
1562
|
headers: response.headers,
|
|
581
1563
|
body: zProblemBody.parse(response.body),
|
|
582
1564
|
};
|
|
583
|
-
case
|
|
1565
|
+
case 415:
|
|
584
1566
|
return {
|
|
585
|
-
status:
|
|
1567
|
+
status: 415,
|
|
1568
|
+
headers: response.headers,
|
|
1569
|
+
body: zProblemBody.parse(response.body),
|
|
1570
|
+
};
|
|
1571
|
+
case 500:
|
|
1572
|
+
return {
|
|
1573
|
+
status: 500,
|
|
586
1574
|
headers: response.headers,
|
|
587
1575
|
body: zProblemBody.parse(response.body),
|
|
588
1576
|
};
|
|
@@ -595,27 +1583,31 @@ export const retrieveFiscalDeliveryPrintedRepresentation = (options) => options.
|
|
|
595
1583
|
};
|
|
596
1584
|
}
|
|
597
1585
|
},
|
|
598
|
-
url: "/v1/
|
|
1586
|
+
url: "/v1/hosted/source-connections/invoice-credentials",
|
|
599
1587
|
...options,
|
|
1588
|
+
headers: {
|
|
1589
|
+
"Content-Type": "application/json",
|
|
1590
|
+
...options.headers,
|
|
1591
|
+
},
|
|
600
1592
|
});
|
|
601
|
-
export const
|
|
1593
|
+
export const acceptInvitation = (options) => options.client.post({
|
|
602
1594
|
response_decoder: (response) => {
|
|
603
1595
|
switch (response.status) {
|
|
604
1596
|
case 200:
|
|
605
1597
|
return {
|
|
606
1598
|
status: 200,
|
|
607
1599
|
headers: response.headers,
|
|
608
|
-
body:
|
|
1600
|
+
body: zAcceptInvitationResponse.parse(response.body),
|
|
609
1601
|
};
|
|
610
|
-
case
|
|
1602
|
+
case 400:
|
|
611
1603
|
return {
|
|
612
|
-
status:
|
|
1604
|
+
status: 400,
|
|
613
1605
|
headers: response.headers,
|
|
614
1606
|
body: zProblemBody.parse(response.body),
|
|
615
1607
|
};
|
|
616
|
-
case
|
|
1608
|
+
case 401:
|
|
617
1609
|
return {
|
|
618
|
-
status:
|
|
1610
|
+
status: 401,
|
|
619
1611
|
headers: response.headers,
|
|
620
1612
|
body: zProblemBody.parse(response.body),
|
|
621
1613
|
};
|
|
@@ -625,15 +1617,33 @@ export const retrieveFiscalDelivery = (options) => options.client.get({
|
|
|
625
1617
|
headers: response.headers,
|
|
626
1618
|
body: zProblemBody.parse(response.body),
|
|
627
1619
|
};
|
|
628
|
-
case
|
|
1620
|
+
case 409:
|
|
629
1621
|
return {
|
|
630
|
-
status:
|
|
1622
|
+
status: 409,
|
|
631
1623
|
headers: response.headers,
|
|
632
1624
|
body: zProblemBody.parse(response.body),
|
|
633
1625
|
};
|
|
634
|
-
case
|
|
1626
|
+
case 410:
|
|
635
1627
|
return {
|
|
636
|
-
status:
|
|
1628
|
+
status: 410,
|
|
1629
|
+
headers: response.headers,
|
|
1630
|
+
body: zProblemBody.parse(response.body),
|
|
1631
|
+
};
|
|
1632
|
+
case 413:
|
|
1633
|
+
return {
|
|
1634
|
+
status: 413,
|
|
1635
|
+
headers: response.headers,
|
|
1636
|
+
body: zProblemBody.parse(response.body),
|
|
1637
|
+
};
|
|
1638
|
+
case 415:
|
|
1639
|
+
return {
|
|
1640
|
+
status: 415,
|
|
1641
|
+
headers: response.headers,
|
|
1642
|
+
body: zProblemBody.parse(response.body),
|
|
1643
|
+
};
|
|
1644
|
+
case 500:
|
|
1645
|
+
return {
|
|
1646
|
+
status: 500,
|
|
637
1647
|
headers: response.headers,
|
|
638
1648
|
body: zProblemBody.parse(response.body),
|
|
639
1649
|
};
|
|
@@ -646,27 +1656,58 @@ export const retrieveFiscalDelivery = (options) => options.client.get({
|
|
|
646
1656
|
};
|
|
647
1657
|
}
|
|
648
1658
|
},
|
|
649
|
-
url: "/v1/
|
|
1659
|
+
url: "/v1/invitations/accept",
|
|
650
1660
|
...options,
|
|
1661
|
+
headers: {
|
|
1662
|
+
"Content-Type": "application/json",
|
|
1663
|
+
...options.headers,
|
|
1664
|
+
},
|
|
651
1665
|
});
|
|
652
|
-
export const
|
|
1666
|
+
export const retrieveInvoiceReceipt = (options) => options.client.get({
|
|
653
1667
|
response_decoder: (response) => {
|
|
654
1668
|
switch (response.status) {
|
|
655
1669
|
case 200:
|
|
656
1670
|
return {
|
|
657
1671
|
status: 200,
|
|
658
1672
|
headers: response.headers,
|
|
659
|
-
body:
|
|
1673
|
+
body: zRetrieveInvoiceReceiptResponse.parse(response.body),
|
|
660
1674
|
};
|
|
661
|
-
case
|
|
1675
|
+
case 404:
|
|
662
1676
|
return {
|
|
663
|
-
status:
|
|
1677
|
+
status: 404,
|
|
664
1678
|
headers: response.headers,
|
|
665
1679
|
body: zProblemBody.parse(response.body),
|
|
666
1680
|
};
|
|
667
|
-
case
|
|
1681
|
+
case 500:
|
|
668
1682
|
return {
|
|
669
|
-
status:
|
|
1683
|
+
status: 500,
|
|
1684
|
+
headers: response.headers,
|
|
1685
|
+
body: zProblemBody.parse(response.body),
|
|
1686
|
+
};
|
|
1687
|
+
default:
|
|
1688
|
+
return {
|
|
1689
|
+
status: "unexpected",
|
|
1690
|
+
status_code: response.status,
|
|
1691
|
+
headers: response.headers,
|
|
1692
|
+
body: response.body,
|
|
1693
|
+
};
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
url: "/v1/invoice-receipts/{receiptId}",
|
|
1697
|
+
...options,
|
|
1698
|
+
});
|
|
1699
|
+
export const downloadInvoiceReceiptPdf = (options) => options.client.get({
|
|
1700
|
+
response_decoder: (response) => {
|
|
1701
|
+
switch (response.status) {
|
|
1702
|
+
case 200:
|
|
1703
|
+
return {
|
|
1704
|
+
status: 200,
|
|
1705
|
+
headers: response.headers,
|
|
1706
|
+
body: zDownloadInvoiceReceiptPdfResponse.parse(response.body),
|
|
1707
|
+
};
|
|
1708
|
+
case 404:
|
|
1709
|
+
return {
|
|
1710
|
+
status: 404,
|
|
670
1711
|
headers: response.headers,
|
|
671
1712
|
body: zProblemBody.parse(response.body),
|
|
672
1713
|
};
|
|
@@ -676,6 +1717,12 @@ export const readFiscalNumberAuthorizationReadiness = (options) => options.clien
|
|
|
676
1717
|
headers: response.headers,
|
|
677
1718
|
body: zProblemBody.parse(response.body),
|
|
678
1719
|
};
|
|
1720
|
+
case 503:
|
|
1721
|
+
return {
|
|
1722
|
+
status: 503,
|
|
1723
|
+
headers: response.headers,
|
|
1724
|
+
body: zProblemBody.parse(response.body),
|
|
1725
|
+
};
|
|
679
1726
|
default:
|
|
680
1727
|
return {
|
|
681
1728
|
status: "unexpected",
|
|
@@ -685,20 +1732,17 @@ export const readFiscalNumberAuthorizationReadiness = (options) => options.clien
|
|
|
685
1732
|
};
|
|
686
1733
|
}
|
|
687
1734
|
},
|
|
688
|
-
url: "/v1/
|
|
1735
|
+
url: "/v1/invoice-receipts/{receiptId}/pdf",
|
|
689
1736
|
...options,
|
|
690
1737
|
});
|
|
691
|
-
|
|
692
|
-
* Lists Fiscal operations visible to the authenticated Source connection.
|
|
693
|
-
*/
|
|
694
|
-
export const listFiscalOperations = (options) => options.client.get({
|
|
1738
|
+
export const listInvoices = (options) => options.client.get({
|
|
695
1739
|
response_decoder: (response) => {
|
|
696
1740
|
switch (response.status) {
|
|
697
1741
|
case 200:
|
|
698
1742
|
return {
|
|
699
1743
|
status: 200,
|
|
700
1744
|
headers: response.headers,
|
|
701
|
-
body:
|
|
1745
|
+
body: zListInvoicesResponse.parse(response.body),
|
|
702
1746
|
};
|
|
703
1747
|
case 400:
|
|
704
1748
|
return {
|
|
@@ -712,9 +1756,9 @@ export const listFiscalOperations = (options) => options.client.get({
|
|
|
712
1756
|
headers: response.headers,
|
|
713
1757
|
body: zProblemBody.parse(response.body),
|
|
714
1758
|
};
|
|
715
|
-
case
|
|
1759
|
+
case 409:
|
|
716
1760
|
return {
|
|
717
|
-
status:
|
|
1761
|
+
status: 409,
|
|
718
1762
|
headers: response.headers,
|
|
719
1763
|
body: zProblemBody.parse(response.body),
|
|
720
1764
|
};
|
|
@@ -733,23 +1777,23 @@ export const listFiscalOperations = (options) => options.client.get({
|
|
|
733
1777
|
};
|
|
734
1778
|
}
|
|
735
1779
|
},
|
|
736
|
-
url: "/v1/
|
|
1780
|
+
url: "/v1/invoices",
|
|
737
1781
|
...options,
|
|
738
1782
|
});
|
|
739
|
-
export const
|
|
1783
|
+
export const createInvoice = (options) => options.client.post({
|
|
740
1784
|
response_decoder: (response) => {
|
|
741
1785
|
switch (response.status) {
|
|
742
1786
|
case 200:
|
|
743
1787
|
return {
|
|
744
1788
|
status: 200,
|
|
745
1789
|
headers: response.headers,
|
|
746
|
-
body:
|
|
1790
|
+
body: zCreateInvoiceResponse.parse(response.body),
|
|
747
1791
|
};
|
|
748
|
-
case
|
|
1792
|
+
case 201:
|
|
749
1793
|
return {
|
|
750
|
-
status:
|
|
1794
|
+
status: 201,
|
|
751
1795
|
headers: response.headers,
|
|
752
|
-
body:
|
|
1796
|
+
body: zCreateInvoiceResponse.parse(response.body),
|
|
753
1797
|
};
|
|
754
1798
|
case 400:
|
|
755
1799
|
return {
|
|
@@ -769,18 +1813,6 @@ export const createFiscalOperation = (options) => options.client.post({
|
|
|
769
1813
|
headers: response.headers,
|
|
770
1814
|
body: zProblemBody.parse(response.body),
|
|
771
1815
|
};
|
|
772
|
-
case 404:
|
|
773
|
-
return {
|
|
774
|
-
status: 404,
|
|
775
|
-
headers: response.headers,
|
|
776
|
-
body: zProblemBody.parse(response.body),
|
|
777
|
-
};
|
|
778
|
-
case 408:
|
|
779
|
-
return {
|
|
780
|
-
status: 408,
|
|
781
|
-
headers: response.headers,
|
|
782
|
-
body: zProblemBody.parse(response.body),
|
|
783
|
-
};
|
|
784
1816
|
case 409:
|
|
785
1817
|
return {
|
|
786
1818
|
status: 409,
|
|
@@ -826,21 +1858,21 @@ export const createFiscalOperation = (options) => options.client.post({
|
|
|
826
1858
|
};
|
|
827
1859
|
}
|
|
828
1860
|
},
|
|
829
|
-
url: "/v1/
|
|
1861
|
+
url: "/v1/invoices",
|
|
830
1862
|
...options,
|
|
831
1863
|
headers: {
|
|
832
1864
|
"Content-Type": "application/json",
|
|
833
1865
|
...options.headers,
|
|
834
1866
|
},
|
|
835
1867
|
});
|
|
836
|
-
export const
|
|
1868
|
+
export const previewInvoice = (options) => options.client.post({
|
|
837
1869
|
response_decoder: (response) => {
|
|
838
1870
|
switch (response.status) {
|
|
839
1871
|
case 200:
|
|
840
1872
|
return {
|
|
841
1873
|
status: 200,
|
|
842
1874
|
headers: response.headers,
|
|
843
|
-
body:
|
|
1875
|
+
body: zPreviewInvoiceResponse.parse(response.body),
|
|
844
1876
|
};
|
|
845
1877
|
case 400:
|
|
846
1878
|
return {
|
|
@@ -854,15 +1886,21 @@ export const findFiscalOperationBySource = (options) => options.client.get({
|
|
|
854
1886
|
headers: response.headers,
|
|
855
1887
|
body: zProblemBody.parse(response.body),
|
|
856
1888
|
};
|
|
857
|
-
case
|
|
1889
|
+
case 409:
|
|
858
1890
|
return {
|
|
859
|
-
status:
|
|
1891
|
+
status: 409,
|
|
860
1892
|
headers: response.headers,
|
|
861
1893
|
body: zProblemBody.parse(response.body),
|
|
862
1894
|
};
|
|
863
|
-
case
|
|
1895
|
+
case 413:
|
|
864
1896
|
return {
|
|
865
|
-
status:
|
|
1897
|
+
status: 413,
|
|
1898
|
+
headers: response.headers,
|
|
1899
|
+
body: zProblemBody.parse(response.body),
|
|
1900
|
+
};
|
|
1901
|
+
case 415:
|
|
1902
|
+
return {
|
|
1903
|
+
status: 415,
|
|
866
1904
|
headers: response.headers,
|
|
867
1905
|
body: zProblemBody.parse(response.body),
|
|
868
1906
|
};
|
|
@@ -881,17 +1919,21 @@ export const findFiscalOperationBySource = (options) => options.client.get({
|
|
|
881
1919
|
};
|
|
882
1920
|
}
|
|
883
1921
|
},
|
|
884
|
-
url: "/v1/
|
|
1922
|
+
url: "/v1/invoices/preview",
|
|
885
1923
|
...options,
|
|
1924
|
+
headers: {
|
|
1925
|
+
"Content-Type": "application/json",
|
|
1926
|
+
...options.headers,
|
|
1927
|
+
},
|
|
886
1928
|
});
|
|
887
|
-
export const
|
|
1929
|
+
export const retrieveInvoice = (options) => options.client.get({
|
|
888
1930
|
response_decoder: (response) => {
|
|
889
1931
|
switch (response.status) {
|
|
890
1932
|
case 200:
|
|
891
1933
|
return {
|
|
892
1934
|
status: 200,
|
|
893
1935
|
headers: response.headers,
|
|
894
|
-
body:
|
|
1936
|
+
body: zRetrieveInvoiceResponse.parse(response.body),
|
|
895
1937
|
};
|
|
896
1938
|
case 400:
|
|
897
1939
|
return {
|
|
@@ -905,15 +1947,15 @@ export const findFiscalOperation = (options) => options.client.get({
|
|
|
905
1947
|
headers: response.headers,
|
|
906
1948
|
body: zProblemBody.parse(response.body),
|
|
907
1949
|
};
|
|
908
|
-
case
|
|
1950
|
+
case 404:
|
|
909
1951
|
return {
|
|
910
|
-
status:
|
|
1952
|
+
status: 404,
|
|
911
1953
|
headers: response.headers,
|
|
912
1954
|
body: zProblemBody.parse(response.body),
|
|
913
1955
|
};
|
|
914
|
-
case
|
|
1956
|
+
case 409:
|
|
915
1957
|
return {
|
|
916
|
-
status:
|
|
1958
|
+
status: 409,
|
|
917
1959
|
headers: response.headers,
|
|
918
1960
|
body: zProblemBody.parse(response.body),
|
|
919
1961
|
};
|
|
@@ -932,17 +1974,23 @@ export const findFiscalOperation = (options) => options.client.get({
|
|
|
932
1974
|
};
|
|
933
1975
|
}
|
|
934
1976
|
},
|
|
935
|
-
url: "/v1/
|
|
1977
|
+
url: "/v1/invoices/{invoiceId}",
|
|
936
1978
|
...options,
|
|
937
1979
|
});
|
|
938
|
-
export const
|
|
1980
|
+
export const createInvoiceDelivery = (options) => options.client.post({
|
|
939
1981
|
response_decoder: (response) => {
|
|
940
1982
|
switch (response.status) {
|
|
941
1983
|
case 200:
|
|
942
1984
|
return {
|
|
943
1985
|
status: 200,
|
|
944
1986
|
headers: response.headers,
|
|
945
|
-
body:
|
|
1987
|
+
body: zCreateInvoiceDeliveryResponse.parse(response.body),
|
|
1988
|
+
};
|
|
1989
|
+
case 201:
|
|
1990
|
+
return {
|
|
1991
|
+
status: 201,
|
|
1992
|
+
headers: response.headers,
|
|
1993
|
+
body: zCreateInvoiceDeliveryResponse.parse(response.body),
|
|
946
1994
|
};
|
|
947
1995
|
case 400:
|
|
948
1996
|
return {
|
|
@@ -968,12 +2016,36 @@ export const findFiscalArtifact = (options) => options.client.get({
|
|
|
968
2016
|
headers: response.headers,
|
|
969
2017
|
body: zProblemBody.parse(response.body),
|
|
970
2018
|
};
|
|
2019
|
+
case 409:
|
|
2020
|
+
return {
|
|
2021
|
+
status: 409,
|
|
2022
|
+
headers: response.headers,
|
|
2023
|
+
body: zProblemBody.parse(response.body),
|
|
2024
|
+
};
|
|
2025
|
+
case 413:
|
|
2026
|
+
return {
|
|
2027
|
+
status: 413,
|
|
2028
|
+
headers: response.headers,
|
|
2029
|
+
body: zProblemBody.parse(response.body),
|
|
2030
|
+
};
|
|
2031
|
+
case 415:
|
|
2032
|
+
return {
|
|
2033
|
+
status: 415,
|
|
2034
|
+
headers: response.headers,
|
|
2035
|
+
body: zProblemBody.parse(response.body),
|
|
2036
|
+
};
|
|
971
2037
|
case 500:
|
|
972
2038
|
return {
|
|
973
2039
|
status: 500,
|
|
974
2040
|
headers: response.headers,
|
|
975
2041
|
body: zProblemBody.parse(response.body),
|
|
976
2042
|
};
|
|
2043
|
+
case 503:
|
|
2044
|
+
return {
|
|
2045
|
+
status: 503,
|
|
2046
|
+
headers: response.headers,
|
|
2047
|
+
body: zProblemBody.parse(response.body),
|
|
2048
|
+
};
|
|
977
2049
|
default:
|
|
978
2050
|
return {
|
|
979
2051
|
status: "unexpected",
|
|
@@ -983,23 +2055,21 @@ export const findFiscalArtifact = (options) => options.client.get({
|
|
|
983
2055
|
};
|
|
984
2056
|
}
|
|
985
2057
|
},
|
|
986
|
-
url: "/v1/
|
|
2058
|
+
url: "/v1/invoices/{invoiceId}/deliveries",
|
|
987
2059
|
...options,
|
|
2060
|
+
headers: {
|
|
2061
|
+
"Content-Type": "application/json",
|
|
2062
|
+
...options.headers,
|
|
2063
|
+
},
|
|
988
2064
|
});
|
|
989
|
-
export const
|
|
2065
|
+
export const retrieveInvoiceDelivery = (options) => options.client.get({
|
|
990
2066
|
response_decoder: (response) => {
|
|
991
2067
|
switch (response.status) {
|
|
992
2068
|
case 200:
|
|
993
2069
|
return {
|
|
994
2070
|
status: 200,
|
|
995
2071
|
headers: response.headers,
|
|
996
|
-
body:
|
|
997
|
-
};
|
|
998
|
-
case 400:
|
|
999
|
-
return {
|
|
1000
|
-
status: 400,
|
|
1001
|
-
headers: response.headers,
|
|
1002
|
-
body: zProblemBody.parse(response.body),
|
|
2072
|
+
body: zRetrieveInvoiceDeliveryResponse.parse(response.body),
|
|
1003
2073
|
};
|
|
1004
2074
|
case 401:
|
|
1005
2075
|
return {
|
|
@@ -1046,17 +2116,17 @@ export const shareFiscalReceipt = (options) => options.client.post({
|
|
|
1046
2116
|
};
|
|
1047
2117
|
}
|
|
1048
2118
|
},
|
|
1049
|
-
url: "/v1/
|
|
2119
|
+
url: "/v1/invoices/{invoiceId}/deliveries/{deliveryId}",
|
|
1050
2120
|
...options,
|
|
1051
2121
|
});
|
|
1052
|
-
export const
|
|
2122
|
+
export const downloadInvoicePdf = (options) => options.client.get({
|
|
1053
2123
|
response_decoder: (response) => {
|
|
1054
2124
|
switch (response.status) {
|
|
1055
2125
|
case 200:
|
|
1056
2126
|
return {
|
|
1057
2127
|
status: 200,
|
|
1058
2128
|
headers: response.headers,
|
|
1059
|
-
body:
|
|
2129
|
+
body: zDownloadInvoicePdfResponse.parse(response.body),
|
|
1060
2130
|
};
|
|
1061
2131
|
case 400:
|
|
1062
2132
|
return {
|
|
@@ -1070,15 +2140,15 @@ export const readFiscalOperationTiming = (options) => options.client.get({
|
|
|
1070
2140
|
headers: response.headers,
|
|
1071
2141
|
body: zProblemBody.parse(response.body),
|
|
1072
2142
|
};
|
|
1073
|
-
case
|
|
2143
|
+
case 404:
|
|
1074
2144
|
return {
|
|
1075
|
-
status:
|
|
2145
|
+
status: 404,
|
|
1076
2146
|
headers: response.headers,
|
|
1077
2147
|
body: zProblemBody.parse(response.body),
|
|
1078
2148
|
};
|
|
1079
|
-
case
|
|
2149
|
+
case 409:
|
|
1080
2150
|
return {
|
|
1081
|
-
status:
|
|
2151
|
+
status: 409,
|
|
1082
2152
|
headers: response.headers,
|
|
1083
2153
|
body: zProblemBody.parse(response.body),
|
|
1084
2154
|
};
|
|
@@ -1097,66 +2167,45 @@ export const readFiscalOperationTiming = (options) => options.client.get({
|
|
|
1097
2167
|
};
|
|
1098
2168
|
}
|
|
1099
2169
|
},
|
|
1100
|
-
url: "/v1/
|
|
2170
|
+
url: "/v1/invoices/{invoiceId}/files/pdf",
|
|
1101
2171
|
...options,
|
|
1102
2172
|
});
|
|
1103
|
-
export const
|
|
2173
|
+
export const downloadInvoiceXml = (options) => options.client.get({
|
|
1104
2174
|
response_decoder: (response) => {
|
|
1105
2175
|
switch (response.status) {
|
|
1106
2176
|
case 200:
|
|
1107
2177
|
return {
|
|
1108
2178
|
status: 200,
|
|
1109
2179
|
headers: response.headers,
|
|
1110
|
-
body:
|
|
2180
|
+
body: zDownloadInvoiceXmlResponse.parse(response.body),
|
|
1111
2181
|
};
|
|
1112
|
-
case
|
|
2182
|
+
case 400:
|
|
1113
2183
|
return {
|
|
1114
|
-
status:
|
|
2184
|
+
status: 400,
|
|
1115
2185
|
headers: response.headers,
|
|
1116
2186
|
body: zProblemBody.parse(response.body),
|
|
1117
2187
|
};
|
|
1118
|
-
case
|
|
2188
|
+
case 401:
|
|
1119
2189
|
return {
|
|
1120
|
-
status:
|
|
2190
|
+
status: 401,
|
|
1121
2191
|
headers: response.headers,
|
|
1122
2192
|
body: zProblemBody.parse(response.body),
|
|
1123
2193
|
};
|
|
1124
|
-
default:
|
|
1125
|
-
return {
|
|
1126
|
-
status: "unexpected",
|
|
1127
|
-
status_code: response.status,
|
|
1128
|
-
headers: response.headers,
|
|
1129
|
-
body: response.body,
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
},
|
|
1133
|
-
url: "/v1/fiscal-receipts/{receipt_id}",
|
|
1134
|
-
...options,
|
|
1135
|
-
});
|
|
1136
|
-
export const retrieveFiscalReceiptPrintedRepresentation = (options) => options.client.get({
|
|
1137
|
-
response_decoder: (response) => {
|
|
1138
|
-
switch (response.status) {
|
|
1139
|
-
case 200:
|
|
1140
|
-
return {
|
|
1141
|
-
status: 200,
|
|
1142
|
-
headers: response.headers,
|
|
1143
|
-
body: zRetrieveFiscalReceiptPrintedRepresentationResponse.parse(response.body),
|
|
1144
|
-
};
|
|
1145
2194
|
case 404:
|
|
1146
2195
|
return {
|
|
1147
2196
|
status: 404,
|
|
1148
2197
|
headers: response.headers,
|
|
1149
2198
|
body: zProblemBody.parse(response.body),
|
|
1150
2199
|
};
|
|
1151
|
-
case
|
|
2200
|
+
case 409:
|
|
1152
2201
|
return {
|
|
1153
|
-
status:
|
|
2202
|
+
status: 409,
|
|
1154
2203
|
headers: response.headers,
|
|
1155
2204
|
body: zProblemBody.parse(response.body),
|
|
1156
2205
|
};
|
|
1157
|
-
case
|
|
2206
|
+
case 500:
|
|
1158
2207
|
return {
|
|
1159
|
-
status:
|
|
2208
|
+
status: 500,
|
|
1160
2209
|
headers: response.headers,
|
|
1161
2210
|
body: zProblemBody.parse(response.body),
|
|
1162
2211
|
};
|
|
@@ -1169,17 +2218,17 @@ export const retrieveFiscalReceiptPrintedRepresentation = (options) => options.c
|
|
|
1169
2218
|
};
|
|
1170
2219
|
}
|
|
1171
2220
|
},
|
|
1172
|
-
url: "/v1/
|
|
2221
|
+
url: "/v1/invoices/{invoiceId}/files/xml",
|
|
1173
2222
|
...options,
|
|
1174
2223
|
});
|
|
1175
|
-
export const
|
|
2224
|
+
export const shareInvoiceReceipt = (options) => options.client.post({
|
|
1176
2225
|
response_decoder: (response) => {
|
|
1177
2226
|
switch (response.status) {
|
|
1178
2227
|
case 200:
|
|
1179
2228
|
return {
|
|
1180
2229
|
status: 200,
|
|
1181
2230
|
headers: response.headers,
|
|
1182
|
-
body:
|
|
2231
|
+
body: zShareInvoiceReceiptResponse.parse(response.body),
|
|
1183
2232
|
};
|
|
1184
2233
|
case 400:
|
|
1185
2234
|
return {
|
|
@@ -1211,24 +2260,6 @@ export const importHostedCertificateCustody = (options) => options.client.post({
|
|
|
1211
2260
|
headers: response.headers,
|
|
1212
2261
|
body: zProblemBody.parse(response.body),
|
|
1213
2262
|
};
|
|
1214
|
-
case 413:
|
|
1215
|
-
return {
|
|
1216
|
-
status: 413,
|
|
1217
|
-
headers: response.headers,
|
|
1218
|
-
body: zProblemBody.parse(response.body),
|
|
1219
|
-
};
|
|
1220
|
-
case 415:
|
|
1221
|
-
return {
|
|
1222
|
-
status: 415,
|
|
1223
|
-
headers: response.headers,
|
|
1224
|
-
body: zProblemBody.parse(response.body),
|
|
1225
|
-
};
|
|
1226
|
-
case 422:
|
|
1227
|
-
return {
|
|
1228
|
-
status: 422,
|
|
1229
|
-
headers: response.headers,
|
|
1230
|
-
body: zProblemBody.parse(response.body),
|
|
1231
|
-
};
|
|
1232
2263
|
case 500:
|
|
1233
2264
|
return {
|
|
1234
2265
|
status: 500,
|
|
@@ -1250,21 +2281,23 @@ export const importHostedCertificateCustody = (options) => options.client.post({
|
|
|
1250
2281
|
};
|
|
1251
2282
|
}
|
|
1252
2283
|
},
|
|
1253
|
-
url: "/v1/
|
|
2284
|
+
url: "/v1/invoices/{invoiceId}/receipt-access",
|
|
1254
2285
|
...options,
|
|
1255
|
-
headers: {
|
|
1256
|
-
"Content-Type": "application/json",
|
|
1257
|
-
...options.headers,
|
|
1258
|
-
},
|
|
1259
2286
|
});
|
|
1260
|
-
export const
|
|
2287
|
+
export const replaceInvoice = (options) => options.client.post({
|
|
1261
2288
|
response_decoder: (response) => {
|
|
1262
2289
|
switch (response.status) {
|
|
2290
|
+
case 200:
|
|
2291
|
+
return {
|
|
2292
|
+
status: 200,
|
|
2293
|
+
headers: response.headers,
|
|
2294
|
+
body: zReplaceInvoiceResponse.parse(response.body),
|
|
2295
|
+
};
|
|
1263
2296
|
case 201:
|
|
1264
2297
|
return {
|
|
1265
2298
|
status: 201,
|
|
1266
2299
|
headers: response.headers,
|
|
1267
|
-
body:
|
|
2300
|
+
body: zReplaceInvoiceResponse.parse(response.body),
|
|
1268
2301
|
};
|
|
1269
2302
|
case 400:
|
|
1270
2303
|
return {
|
|
@@ -1308,82 +2341,21 @@ export const issueHostedSandboxSourceCredential = (options) => options.client.po
|
|
|
1308
2341
|
headers: response.headers,
|
|
1309
2342
|
body: zProblemBody.parse(response.body),
|
|
1310
2343
|
};
|
|
1311
|
-
case
|
|
1312
|
-
return {
|
|
1313
|
-
status: 500,
|
|
1314
|
-
headers: response.headers,
|
|
1315
|
-
body: zProblemBody.parse(response.body),
|
|
1316
|
-
};
|
|
1317
|
-
default:
|
|
1318
|
-
return {
|
|
1319
|
-
status: "unexpected",
|
|
1320
|
-
status_code: response.status,
|
|
1321
|
-
headers: response.headers,
|
|
1322
|
-
body: response.body,
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
},
|
|
1326
|
-
url: "/v1/hosted/source-connections/sandbox-credentials",
|
|
1327
|
-
...options,
|
|
1328
|
-
headers: {
|
|
1329
|
-
"Content-Type": "application/json",
|
|
1330
|
-
...options.headers,
|
|
1331
|
-
},
|
|
1332
|
-
});
|
|
1333
|
-
export const acceptInvitation = (options) => options.client.post({
|
|
1334
|
-
response_decoder: (response) => {
|
|
1335
|
-
switch (response.status) {
|
|
1336
|
-
case 200:
|
|
1337
|
-
return {
|
|
1338
|
-
status: 200,
|
|
1339
|
-
headers: response.headers,
|
|
1340
|
-
body: zAcceptInvitationResponse.parse(response.body),
|
|
1341
|
-
};
|
|
1342
|
-
case 400:
|
|
1343
|
-
return {
|
|
1344
|
-
status: 400,
|
|
1345
|
-
headers: response.headers,
|
|
1346
|
-
body: zProblemBody.parse(response.body),
|
|
1347
|
-
};
|
|
1348
|
-
case 401:
|
|
1349
|
-
return {
|
|
1350
|
-
status: 401,
|
|
1351
|
-
headers: response.headers,
|
|
1352
|
-
body: zProblemBody.parse(response.body),
|
|
1353
|
-
};
|
|
1354
|
-
case 404:
|
|
1355
|
-
return {
|
|
1356
|
-
status: 404,
|
|
1357
|
-
headers: response.headers,
|
|
1358
|
-
body: zProblemBody.parse(response.body),
|
|
1359
|
-
};
|
|
1360
|
-
case 409:
|
|
1361
|
-
return {
|
|
1362
|
-
status: 409,
|
|
1363
|
-
headers: response.headers,
|
|
1364
|
-
body: zProblemBody.parse(response.body),
|
|
1365
|
-
};
|
|
1366
|
-
case 410:
|
|
1367
|
-
return {
|
|
1368
|
-
status: 410,
|
|
1369
|
-
headers: response.headers,
|
|
1370
|
-
body: zProblemBody.parse(response.body),
|
|
1371
|
-
};
|
|
1372
|
-
case 413:
|
|
2344
|
+
case 422:
|
|
1373
2345
|
return {
|
|
1374
|
-
status:
|
|
2346
|
+
status: 422,
|
|
1375
2347
|
headers: response.headers,
|
|
1376
2348
|
body: zProblemBody.parse(response.body),
|
|
1377
2349
|
};
|
|
1378
|
-
case
|
|
2350
|
+
case 500:
|
|
1379
2351
|
return {
|
|
1380
|
-
status:
|
|
2352
|
+
status: 500,
|
|
1381
2353
|
headers: response.headers,
|
|
1382
2354
|
body: zProblemBody.parse(response.body),
|
|
1383
2355
|
};
|
|
1384
|
-
case
|
|
2356
|
+
case 503:
|
|
1385
2357
|
return {
|
|
1386
|
-
status:
|
|
2358
|
+
status: 503,
|
|
1387
2359
|
headers: response.headers,
|
|
1388
2360
|
body: zProblemBody.parse(response.body),
|
|
1389
2361
|
};
|
|
@@ -1396,7 +2368,7 @@ export const acceptInvitation = (options) => options.client.post({
|
|
|
1396
2368
|
};
|
|
1397
2369
|
}
|
|
1398
2370
|
},
|
|
1399
|
-
url: "/v1/
|
|
2371
|
+
url: "/v1/invoices/{invoiceId}/replacements",
|
|
1400
2372
|
...options,
|
|
1401
2373
|
headers: {
|
|
1402
2374
|
"Content-Type": "application/json",
|
|
@@ -2913,7 +3885,7 @@ export const readReceivedDocument = (options) => options.client.get({
|
|
|
2913
3885
|
};
|
|
2914
3886
|
}
|
|
2915
3887
|
},
|
|
2916
|
-
url: "/v1/organizations/{organization_id}/received-documents/{
|
|
3888
|
+
url: "/v1/organizations/{organization_id}/received-documents/{receivedDocumentId}",
|
|
2917
3889
|
...options,
|
|
2918
3890
|
});
|
|
2919
3891
|
export const recordCommercialResponse = (options) => options.client.post({
|
|
@@ -2982,7 +3954,7 @@ export const recordCommercialResponse = (options) => options.client.post({
|
|
|
2982
3954
|
};
|
|
2983
3955
|
}
|
|
2984
3956
|
},
|
|
2985
|
-
url: "/v1/organizations/{organization_id}/received-documents/{
|
|
3957
|
+
url: "/v1/organizations/{organization_id}/received-documents/{receivedDocumentId}/commercial-response",
|
|
2986
3958
|
...options,
|
|
2987
3959
|
headers: {
|
|
2988
3960
|
"Content-Type": "application/json",
|
|
@@ -3580,11 +4552,10 @@ export const readAuthorizedVercelProjectQualification = (options) => options.cli
|
|
|
3580
4552
|
...options,
|
|
3581
4553
|
});
|
|
3582
4554
|
/**
|
|
3583
|
-
* Lists inbound documents in the
|
|
4555
|
+
* Lists inbound documents in the authenticated Source or hosted tenant namespace.
|
|
3584
4556
|
*
|
|
3585
|
-
*
|
|
3586
|
-
*
|
|
3587
|
-
* URL because this route has no such path parameters.
|
|
4557
|
+
* A Source credential uses its retained row. A first-party service must resolve a tenant binding
|
|
4558
|
+
* and environment, which selects the Source connection that already owns the inbound documents.
|
|
3588
4559
|
*/
|
|
3589
4560
|
export const listSourceReceivedDocuments = (options) => options.client.get({
|
|
3590
4561
|
response_decoder: (response) => {
|
|
@@ -3613,6 +4584,12 @@ export const listSourceReceivedDocuments = (options) => options.client.get({
|
|
|
3613
4584
|
headers: response.headers,
|
|
3614
4585
|
body: zProblemBody.parse(response.body),
|
|
3615
4586
|
};
|
|
4587
|
+
case 409:
|
|
4588
|
+
return {
|
|
4589
|
+
status: 409,
|
|
4590
|
+
headers: response.headers,
|
|
4591
|
+
body: zProblemBody.parse(response.body),
|
|
4592
|
+
};
|
|
3616
4593
|
case 500:
|
|
3617
4594
|
return {
|
|
3618
4595
|
status: 500,
|
|
@@ -3652,6 +4629,12 @@ export const getSourceReceivedDocument = (options) => options.client.get({
|
|
|
3652
4629
|
headers: response.headers,
|
|
3653
4630
|
body: zProblemBody.parse(response.body),
|
|
3654
4631
|
};
|
|
4632
|
+
case 409:
|
|
4633
|
+
return {
|
|
4634
|
+
status: 409,
|
|
4635
|
+
headers: response.headers,
|
|
4636
|
+
body: zProblemBody.parse(response.body),
|
|
4637
|
+
};
|
|
3655
4638
|
case 500:
|
|
3656
4639
|
return {
|
|
3657
4640
|
status: 500,
|
|
@@ -3667,7 +4650,7 @@ export const getSourceReceivedDocument = (options) => options.client.get({
|
|
|
3667
4650
|
};
|
|
3668
4651
|
}
|
|
3669
4652
|
},
|
|
3670
|
-
url: "/v1/received-documents/{
|
|
4653
|
+
url: "/v1/received-documents/{receivedDocumentId}",
|
|
3671
4654
|
...options,
|
|
3672
4655
|
});
|
|
3673
4656
|
export const respondToReceivedDocument = (options) => options.client.post({
|
|
@@ -3730,14 +4713,14 @@ export const respondToReceivedDocument = (options) => options.client.post({
|
|
|
3730
4713
|
};
|
|
3731
4714
|
}
|
|
3732
4715
|
},
|
|
3733
|
-
url: "/v1/received-documents/{
|
|
4716
|
+
url: "/v1/received-documents/{receivedDocumentId}/commercial-response",
|
|
3734
4717
|
...options,
|
|
3735
4718
|
headers: {
|
|
3736
4719
|
"Content-Type": "application/json",
|
|
3737
4720
|
...options.headers,
|
|
3738
4721
|
},
|
|
3739
4722
|
});
|
|
3740
|
-
export const
|
|
4723
|
+
export const downloadSourceReceivedDocumentXml = (options) => options.client.get({
|
|
3741
4724
|
response_decoder: (response) => {
|
|
3742
4725
|
switch (response.status) {
|
|
3743
4726
|
case 200:
|
|
@@ -3754,6 +4737,12 @@ export const downloadSourceReceivedDocumentSignedXml = (options) => options.clie
|
|
|
3754
4737
|
headers: response.headers,
|
|
3755
4738
|
body: zProblemBody.parse(response.body),
|
|
3756
4739
|
};
|
|
4740
|
+
case 409:
|
|
4741
|
+
return {
|
|
4742
|
+
status: 409,
|
|
4743
|
+
headers: response.headers,
|
|
4744
|
+
body: zProblemBody.parse(response.body),
|
|
4745
|
+
};
|
|
3757
4746
|
case 422:
|
|
3758
4747
|
return {
|
|
3759
4748
|
status: 422,
|
|
@@ -3781,7 +4770,7 @@ export const downloadSourceReceivedDocumentSignedXml = (options) => options.clie
|
|
|
3781
4770
|
};
|
|
3782
4771
|
}
|
|
3783
4772
|
},
|
|
3784
|
-
url: "/v1/received-documents/{
|
|
4773
|
+
url: "/v1/received-documents/{receivedDocumentId}/files/xml",
|
|
3785
4774
|
...options,
|
|
3786
4775
|
});
|
|
3787
4776
|
export const completeSourceConnectionActivationVerification = (options) => options.client.post({
|
|
@@ -4163,6 +5152,12 @@ export const listWebhookDeliveries = (options) => options.client.get({
|
|
|
4163
5152
|
headers: response.headers,
|
|
4164
5153
|
body: zProblemBody.parse(response.body),
|
|
4165
5154
|
};
|
|
5155
|
+
case 409:
|
|
5156
|
+
return {
|
|
5157
|
+
status: 409,
|
|
5158
|
+
headers: response.headers,
|
|
5159
|
+
body: zProblemBody.parse(response.body),
|
|
5160
|
+
};
|
|
4166
5161
|
case 500:
|
|
4167
5162
|
return {
|
|
4168
5163
|
status: 500,
|
|
@@ -4178,7 +5173,7 @@ export const listWebhookDeliveries = (options) => options.client.get({
|
|
|
4178
5173
|
};
|
|
4179
5174
|
}
|
|
4180
5175
|
},
|
|
4181
|
-
url: "/v1/webhook-endpoints/{
|
|
5176
|
+
url: "/v1/webhook-endpoints/{webhookEndpointId}/deliveries",
|
|
4182
5177
|
...options,
|
|
4183
5178
|
});
|
|
4184
5179
|
export const replayWebhookEvents = (options) => options.client.post({
|
|
@@ -4253,7 +5248,7 @@ export const replayWebhookEvents = (options) => options.client.post({
|
|
|
4253
5248
|
};
|
|
4254
5249
|
}
|
|
4255
5250
|
},
|
|
4256
|
-
url: "/v1/webhook-endpoints/{
|
|
5251
|
+
url: "/v1/webhook-endpoints/{webhookEndpointId}/replays",
|
|
4257
5252
|
...options,
|
|
4258
5253
|
headers: {
|
|
4259
5254
|
"Content-Type": "application/json",
|
|
@@ -4353,27 +5348,42 @@ export const healthReadyPathTemplate = "/health/ready";
|
|
|
4353
5348
|
export const createHostedTenantPathTemplate = "/hosted/tenants";
|
|
4354
5349
|
export const releaseHostedTenantPathTemplate = "/hosted/tenants/releases";
|
|
4355
5350
|
export const createHostedTenantWebhookSecretRotationPathTemplate = "/hosted/tenants/{source_connection_id}/webhook-secret-rotations";
|
|
5351
|
+
export const listHostedInvoicesPathTemplate = "/internal/hosted/invoices";
|
|
5352
|
+
export const createHostedInvoicePathTemplate = "/internal/hosted/invoices";
|
|
5353
|
+
export const previewHostedInvoicePathTemplate = "/internal/hosted/invoices/preview";
|
|
5354
|
+
export const retrieveHostedInvoicePathTemplate = "/internal/hosted/invoices/{invoiceId}";
|
|
5355
|
+
export const downloadHostedInvoicePdfPathTemplate = "/internal/hosted/invoices/{invoiceId}/files/pdf";
|
|
5356
|
+
export const downloadHostedInvoiceXmlPathTemplate = "/internal/hosted/invoices/{invoiceId}/files/xml";
|
|
5357
|
+
export const shareHostedInvoiceReceiptPathTemplate = "/internal/hosted/invoices/{invoiceId}/receipt-access";
|
|
5358
|
+
export const replaceHostedInvoicePathTemplate = "/internal/hosted/invoices/{invoiceId}/replacements";
|
|
5359
|
+
export const listFiscalOperationsPathTemplate = "/v1/admin/fiscal-operations";
|
|
5360
|
+
export const createFiscalOperationPathTemplate = "/v1/admin/fiscal-operations";
|
|
5361
|
+
export const findFiscalOperationBySourcePathTemplate = "/v1/admin/fiscal-operations/by-source/{source_id}/versions/{source_version}";
|
|
5362
|
+
export const findFiscalOperationPathTemplate = "/v1/admin/fiscal-operations/{operation_id}";
|
|
5363
|
+
export const findFiscalArtifactPathTemplate = "/v1/admin/fiscal-operations/{operation_id}/artifacts/{artifact_kind}";
|
|
5364
|
+
export const readFiscalOperationTimingPathTemplate = "/v1/admin/fiscal-operations/{operation_id}/timing";
|
|
4356
5365
|
export const readCertificateCustodyReadinessPathTemplate = "/v1/certificate-custody/readiness";
|
|
4357
5366
|
export const createDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests";
|
|
4358
5367
|
export const cancelDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests/{request_id}/cancel";
|
|
4359
5368
|
export const pollDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests/{request_id}/poll";
|
|
4360
5369
|
export const readElectronicFiscalDocumentEligibilityPathTemplate = "/v1/electronic-fiscal-document-eligibility";
|
|
4361
|
-
export const createFiscalDeliveryPathTemplate = "/v1/fiscal-deliveries";
|
|
4362
5370
|
export const retrieveFiscalDeliveryPrintedRepresentationPathTemplate = "/v1/fiscal-deliveries/access/{token}/printed-representation";
|
|
4363
|
-
export const retrieveFiscalDeliveryPathTemplate = "/v1/fiscal-deliveries/{fiscal_delivery_id}";
|
|
4364
5371
|
export const readFiscalNumberAuthorizationReadinessPathTemplate = "/v1/fiscal-number-authorizations/readiness";
|
|
4365
|
-
export const listFiscalOperationsPathTemplate = "/v1/fiscal-operations";
|
|
4366
|
-
export const createFiscalOperationPathTemplate = "/v1/fiscal-operations";
|
|
4367
|
-
export const findFiscalOperationBySourcePathTemplate = "/v1/fiscal-operations/by-source/{source_id}/versions/{source_version}";
|
|
4368
|
-
export const findFiscalOperationPathTemplate = "/v1/fiscal-operations/{operation_id}";
|
|
4369
|
-
export const findFiscalArtifactPathTemplate = "/v1/fiscal-operations/{operation_id}/artifacts/{artifact_kind}";
|
|
4370
|
-
export const shareFiscalReceiptPathTemplate = "/v1/fiscal-operations/{operation_id}/receipt-access";
|
|
4371
|
-
export const readFiscalOperationTimingPathTemplate = "/v1/fiscal-operations/{operation_id}/timing";
|
|
4372
|
-
export const retrieveFiscalReceiptPathTemplate = "/v1/fiscal-receipts/{receipt_id}";
|
|
4373
|
-
export const retrieveFiscalReceiptPrintedRepresentationPathTemplate = "/v1/fiscal-receipts/{receipt_id}/printed-representation";
|
|
4374
5372
|
export const importHostedCertificateCustodyPathTemplate = "/v1/hosted/certificate-custody/import";
|
|
4375
|
-
export const
|
|
5373
|
+
export const issueHostedInvoiceCredentialPathTemplate = "/v1/hosted/source-connections/invoice-credentials";
|
|
4376
5374
|
export const acceptInvitationPathTemplate = "/v1/invitations/accept";
|
|
5375
|
+
export const retrieveInvoiceReceiptPathTemplate = "/v1/invoice-receipts/{receiptId}";
|
|
5376
|
+
export const downloadInvoiceReceiptPdfPathTemplate = "/v1/invoice-receipts/{receiptId}/pdf";
|
|
5377
|
+
export const listInvoicesPathTemplate = "/v1/invoices";
|
|
5378
|
+
export const createInvoicePathTemplate = "/v1/invoices";
|
|
5379
|
+
export const previewInvoicePathTemplate = "/v1/invoices/preview";
|
|
5380
|
+
export const retrieveInvoicePathTemplate = "/v1/invoices/{invoiceId}";
|
|
5381
|
+
export const createInvoiceDeliveryPathTemplate = "/v1/invoices/{invoiceId}/deliveries";
|
|
5382
|
+
export const retrieveInvoiceDeliveryPathTemplate = "/v1/invoices/{invoiceId}/deliveries/{deliveryId}";
|
|
5383
|
+
export const downloadInvoicePdfPathTemplate = "/v1/invoices/{invoiceId}/files/pdf";
|
|
5384
|
+
export const downloadInvoiceXmlPathTemplate = "/v1/invoices/{invoiceId}/files/xml";
|
|
5385
|
+
export const shareInvoiceReceiptPathTemplate = "/v1/invoices/{invoiceId}/receipt-access";
|
|
5386
|
+
export const replaceInvoicePathTemplate = "/v1/invoices/{invoiceId}/replacements";
|
|
4377
5387
|
export const readOpenApiDocumentPathTemplate = "/v1/openapi.json";
|
|
4378
5388
|
export const createOrganizationPathTemplate = "/v1/organizations";
|
|
4379
5389
|
export const readAuditEventsPathTemplate = "/v1/organizations/{organization_id}/audit-events";
|
|
@@ -4400,8 +5410,8 @@ export const updateOnboardingLegalIssuerIdentityPathTemplate = "/v1/organization
|
|
|
4400
5410
|
export const readOnboardingServiceScopePathTemplate = "/v1/organizations/{organization_id}/onboarding/service-scope";
|
|
4401
5411
|
export const updateOnboardingServiceScopePathTemplate = "/v1/organizations/{organization_id}/onboarding/service-scope";
|
|
4402
5412
|
export const listReceivedDocumentsPathTemplate = "/v1/organizations/{organization_id}/received-documents";
|
|
4403
|
-
export const readReceivedDocumentPathTemplate = "/v1/organizations/{organization_id}/received-documents/{
|
|
4404
|
-
export const recordCommercialResponsePathTemplate = "/v1/organizations/{organization_id}/received-documents/{
|
|
5413
|
+
export const readReceivedDocumentPathTemplate = "/v1/organizations/{organization_id}/received-documents/{receivedDocumentId}";
|
|
5414
|
+
export const recordCommercialResponsePathTemplate = "/v1/organizations/{organization_id}/received-documents/{receivedDocumentId}/commercial-response";
|
|
4405
5415
|
export const declareReceptionMountPathTemplate = "/v1/organizations/{organization_id}/reception-mounts";
|
|
4406
5416
|
export const listSourceConnectionsPathTemplate = "/v1/organizations/{organization_id}/source-connections";
|
|
4407
5417
|
export const createSourceConnectionPathTemplate = "/v1/organizations/{organization_id}/source-connections";
|
|
@@ -4413,17 +5423,17 @@ export const readSourceProviderAuthorizationPathTemplate = "/v1/organizations/{o
|
|
|
4413
5423
|
export const listAuthorizedVercelProjectsPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects";
|
|
4414
5424
|
export const readAuthorizedVercelProjectQualificationPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects/{provider_target_id}/qualification";
|
|
4415
5425
|
export const listSourceReceivedDocumentsPathTemplate = "/v1/received-documents";
|
|
4416
|
-
export const getSourceReceivedDocumentPathTemplate = "/v1/received-documents/{
|
|
4417
|
-
export const respondToReceivedDocumentPathTemplate = "/v1/received-documents/{
|
|
4418
|
-
export const
|
|
5426
|
+
export const getSourceReceivedDocumentPathTemplate = "/v1/received-documents/{receivedDocumentId}";
|
|
5427
|
+
export const respondToReceivedDocumentPathTemplate = "/v1/received-documents/{receivedDocumentId}/commercial-response";
|
|
5428
|
+
export const downloadSourceReceivedDocumentXmlPathTemplate = "/v1/received-documents/{receivedDocumentId}/files/xml";
|
|
4419
5429
|
export const completeSourceConnectionActivationVerificationPathTemplate = "/v1/source-connections/{source_connection_id}/activation-verifications";
|
|
4420
5430
|
export const confirmDirectConnectionPathTemplate = "/v1/source-connections/{source_connection_id}/confirm";
|
|
4421
5431
|
export const completeVercelSourceProviderInstallationPathTemplate = "/v1/source-provider-authorizations/vercel/installation-completions";
|
|
4422
5432
|
export const registerUserAccountPathTemplate = "/v1/user-accounts";
|
|
4423
5433
|
export const readCurrentUserAccountPathTemplate = "/v1/user-accounts/current";
|
|
4424
5434
|
export const registerWebhookEndpointPathTemplate = "/v1/webhook-endpoints";
|
|
4425
|
-
export const listWebhookDeliveriesPathTemplate = "/v1/webhook-endpoints/{
|
|
4426
|
-
export const replayWebhookEventsPathTemplate = "/v1/webhook-endpoints/{
|
|
5435
|
+
export const listWebhookDeliveriesPathTemplate = "/v1/webhook-endpoints/{webhookEndpointId}/deliveries";
|
|
5436
|
+
export const replayWebhookEventsPathTemplate = "/v1/webhook-endpoints/{webhookEndpointId}/replays";
|
|
4427
5437
|
export const openWorkspaceSessionPathTemplate = "/v1/workspace-sessions";
|
|
4428
5438
|
export const closeWorkspaceSessionPathTemplate = "/v1/workspace-sessions/current";
|
|
4429
5439
|
export const findFiscalArtifactResponseHeaders = {
|