export type ClientOptions = { baseUrl: `${string}://${string}` | (string & {}); }; export type AcceptInvitationRequest = { token: string; }; export type AcceptedMembership = { organization_id: string; role: MembershipRole; }; export type ActiveCertificateCustodyBindingResource = { binding_id: string; certificate_version: string; expected_certificate_sha256: string; }; /** * Buyer identity alternatives admitted by official conditional Type 33 and Type 34 `Comprador`. */ export type AdjustmentNoteBuyer = { identity_kind: "anonymous"; } | { address?: string | undefined; contact_name?: string | undefined; delivery_on?: string | undefined; email?: string | undefined; identity_kind: "domestic"; internal_code?: string | undefined; legal_name: string; municipality_code?: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703" | undefined; province_code?: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703" | undefined; purchase_order_number?: string | undefined; purchase_order_on?: string | undefined; tax_id: string; } | { foreign_identifier: string; identity_kind: "foreign"; legal_name: string; }; /** * Attributable ownership of the affected document reference. */ export type AffectedFiscalDocumentAttribution = { fiscal_operation_id: string; kind: "internal_operation"; } | { environment: FiscalEnvironment; issuer_tax_id: string; kind: "external_document"; source_reference: string; }; export type AffectedFiscalDocumentAttributionResource = { fiscal_operation_id: string; kind: "internal_operation"; } | { kind: "external_document"; source_reference: string; }; export type AffectedFiscalDocumentResource = { attribution: AffectedFiscalDocumentAttributionResource; environment: FiscalEnvironment; fiscal_number: string; issued_on: string; issuer_tax_id: string; }; export type AuditEventAction = "organization_created" | "legal_issuer_registered" | "member_invited" | "invitation_accepted" | "source_connection_created" | "source_connection_activation_retried" | "source_connection_rotated" | "source_connection_revoked" | "certificate_custody_enrollment_created" | "certificate_custody_certificate_version_revoked" | "reception_mount_declared" | "commercial_response_recorded"; export type AuditEventPage = { audit_events: Array; schema: AuditEventPageSchema; }; export type AuditEventPageSchema = "timbro.audit-events.v1"; export type AuditEventResource = { action: AuditEventAction; actor_user_account_id: string | null; detail: { [key: string]: never; }; id: string; occurred_at: string; subject_id: string | null; subject_kind: AuditEventSubjectKind; }; export type AuditEventSubjectKind = "organization" | "legal_issuer" | "membership_invitation" | "organization_membership" | "source_connection" | "certificate_custody_enrollment" | "certificate_custody_binding" | "reception_mount" | "fiscal_reception"; /** * Identified buyer values shared by sales-document profiles that name their counterparty. * * Every field the official `Comprador` area marks `minOccurs="0"` is omissible here; an omitted * field emits no element at all. */ export type Buyer = { address?: string | undefined; contact_name?: string | undefined; delivery_on?: string | undefined; email?: string | undefined; internal_code?: string | undefined; legal_name: string; municipality_code?: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703" | undefined; province_code?: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703" | undefined; purchase_order_number?: string | undefined; purchase_order_on?: string | undefined; tax_id: string; }; /** * Actor-facing buyer-delivery milestone projected from the immutable lifecycle event ledger. */ export type BuyerDeliveryReadinessResource = { status: "not_applicable"; } | { authority_route: FiscalAuthorityRoute; status: "pending"; } | { authority_route: FiscalAuthorityRoute; ready_at: string; status: "ready"; } | { status: "unavailable"; terminal_result_code: BuyerDeliveryTerminalResultCode; }; /** * Terminal lifecycle outcomes that can make buyer delivery permanently unavailable. */ export type BuyerDeliveryTerminalResultCode = "authority_status_accepted" | "authority_status_accepted_with_findings" | "authority_status_rejected" | "authority_submission_rejected" | "consumer_summary_accepted" | "consumer_summary_accepted_with_findings" | "consumer_summary_rejected"; /** * Exporter classification retained as a caller declaration, not authority confirmation. */ export type CallerDeclaredExportEligibility = { authority_reference: string; exporter_kind: "national_exporter"; } | { authority_reference: string; exporter_kind: "free_zone_business"; }; /** * Caller-declared legal basis retained without claiming authority adjudication. */ export type CallerDeclaredForeignPaymentWithholdingBasis = { authority_reference: string; basis_kind: "dominican_source_income"; }; /** * Caller-declared government classification retained without claiming authority verification. */ export type CallerDeclaredGovernmentEligibility = { authority_reference: string; entity_kind: "central_government"; } | { authority_reference: string; entity_kind: "decentralized_or_autonomous"; } | { authority_reference: string; entity_kind: "social_security"; } | { authority_reference: string; entity_kind: "other_noncommercial_government"; }; /** * Caller-declared legal basis whose eligibility Timbro records but cannot adjudicate. */ export type CallerDeclaredSpecialRegimeEligibility = { authority_reference: string; basis_kind: "special_law"; } | { authority_reference: string; basis_kind: "ratified_contract"; } | { authority_reference: string; basis_kind: "ratified_agreement"; }; export type CertificateCustodyBindingList = { bindings: Array; schema: CertificateCustodyBindingListSchema; }; export type CertificateCustodyBindingListSchema = "timbro.certificate-custody-binding-list.v1"; export type CertificateCustodyBindingResource = { active_certificate_version: null | CertificateCustodyCertificateVersionResource; certificate_custody_binding_id: string; connection_readiness: CertificateCustodyConnectionReadiness; created_at: string; environment: FiscalEnvironment; expected_signer_subject_serial_number: string; legal_issuer_id: string; organization_id: string; schema: CertificateCustodyBindingSchema; }; export type CertificateCustodyBindingSchema = "timbro.certificate-custody-binding.v1"; export type CertificateCustodyCertificateVersionResource = { certificate_custody_certificate_version: LedgerCounter; certificate_not_after: string; certificate_not_before: string; certificate_sha256: string; certificate_subject_serial_number: string; effect_replay_retention_seconds: number; signature_algorithm: CertificateCustodySignatureAlgorithm; }; export type CertificateCustodyConnectionReadiness = { status: "awaiting_certificate_registration"; } | { status: "unobserved"; } | { expires_at: string; last_signed_at: string | null; observed_at: string; status: "ready"; } | { expires_at: string; failure: CertificateCustodyFailure; last_signed_at: string | null; observed_at: string; status: "unavailable"; }; export type CertificateCustodyEnrollmentGrant = { certificate_custody_enrollment_id: string; enrollment_code: string; environment: FiscalEnvironment; expected_signer_subject_serial_number: string; expires_at: string; legal_issuer_id: string; organization_id: string; schema: CertificateCustodyEnrollmentGrantSchema; }; export type CertificateCustodyEnrollmentGrantSchema = "timbro.certificate-custody-enrollment-grant.v1"; export type CertificateCustodyFailure = { result_code: "custody_p12_password_invalid"; stage: "p12_password"; } | { result_code: "custody_p12_malformed"; stage: "p12_archive"; } | { result_code: "custody_private_key_missing"; stage: "private_key"; } | { result_code: "custody_certificate_missing"; stage: "certificate"; } | { result_code: "custody_certificate_malformed"; stage: "certificate"; } | { result_code: "custody_certificate_subject_invalid"; stage: "certificate"; } | { result_code: "custody_key_certificate_mismatch"; stage: "key_certificate_pairing"; } | { result_code: "custody_signature_algorithm_unsupported"; stage: "certificate_algorithm"; } | { result_code: "custody_certificate_trust_profile_unsupported"; stage: "certificate_trust"; } | { result_code: "custody_certificate_purpose_unsupported"; stage: "certificate_purpose"; } | { result_code: "custody_certificate_chain_untrusted"; stage: "certificate_trust"; } | { result_code: "custody_signer_identity_mismatch"; stage: "certificate_signer_identity"; } | { result_code: "custody_certificate_not_yet_valid"; stage: "certificate_validity"; } | { result_code: "custody_certificate_expired"; stage: "certificate_validity"; } | { result_code: "custody_credential_encryption_failed"; stage: "credential_encryption"; } | { result_code: "custody_unavailable"; stage: "credential_encryption"; } | { result_code: "custody_credential_load_failed"; stage: "credential_loading"; } | { result_code: "custody_unavailable"; stage: "credential_loading"; } | { result_code: "custody_certificate_version_conflict"; stage: "certificate_version_registration"; } | { result_code: "custody_unavailable"; stage: "certificate_version_registration"; } | { result_code: "custody_unavailable"; stage: "connection_lease"; } | { result_code: "custody_unavailable"; stage: "signing_journal_replay"; } | { result_code: "custody_unavailable"; stage: "signing_journal_append"; } | { result_code: "custody_unavailable"; stage: "signature"; }; export type CertificateCustodyReadiness = { environment: FiscalEnvironment; legal_issuer_id: string; organization_id: string; schema: CertificateCustodyReadinessSchema; status: "not_configured"; } | { binding: EnrolledCertificateCustodyBindingResource; environment: FiscalEnvironment; legal_issuer_id: string; organization_id: string; schema: CertificateCustodyReadinessSchema; status: "awaiting_certificate_registration"; } | { binding: ActiveCertificateCustodyBindingResource; environment: FiscalEnvironment; legal_issuer_id: string; organization_id: string; schema: CertificateCustodyReadinessSchema; status: "unobserved"; } | { binding: ActiveCertificateCustodyBindingResource; environment: FiscalEnvironment; legal_issuer_id: string; observation: CertificateCustodyReadinessObservation; organization_id: string; schema: CertificateCustodyReadinessSchema; status: "ready"; } | { binding: ActiveCertificateCustodyBindingResource; environment: FiscalEnvironment; failure: CertificateCustodyFailure; legal_issuer_id: string; observed_at: string; organization_id: string; schema: CertificateCustodyReadinessSchema; status: "unavailable"; }; export type CertificateCustodyReadinessObservation = { certificate_expires_at: string; certificate_sha256: string; certificate_subject_serial_number: string; effect_replay_retention_seconds: number; last_signed_at: string | null; observed_at: string; }; export type CertificateCustodyReadinessSchema = "timbro.certificate-custody-readiness.v1"; /** * Signature algorithm pinned with a certificate-custody binding. */ export type CertificateCustodySignatureAlgorithm = "rsa_sha256"; /** * The receiver's commercial decision over one received e-CF. * * DGII's ACECF XSD requires `DetalleMotivoRechazo` exactly when `Estado` is 2 (rejected). * Modeling the decision as a tagged enum makes an accepted response carrying a motive * unrepresentable, instead of a nullable field every consumer re-checks. */ export type CommercialResponse = { decision: "accepted"; } | { decision: "rejected"; /** * `DetalleMotivoRechazo`: required and non-blank whenever `Estado` is 2. */ motive: string; }; /** * The counterparty buyer's recorded commercial decision over one Fiscal operation, or its * absence. */ export type CommercialResponseProjection = { decision: "accepted"; recorded_at: string; responded_at: string; } | { decision: "rejected"; motive: string; recorded_at: string; responded_at: string; }; /** * The outbound ACECF submission's advisory state, shown to the workspace as context only. */ export type CommercialResponseSubmissionStateResource = "pending" | "in_flight" | "submitted" | "dgii_rejected" | "submission_refused" | "signing_refused" | "construction_refused" | "authentication_failed" | "unavailable" | "outcome_unknown"; export type CompleteActivationVerificationRequest = { activation_attempt_id: string; challenge: string; proof: string; runtime_provider_deployment_id: string; runtime_provider_target_id: string; }; export type CompleteVercelInstallationRequest = { code: string; configuration_id: string; state: string; team_id: string | null; }; export type CreateCertificateCustodyEnrollmentRequest = { environment: FiscalEnvironment; expected_signer_subject_serial_number: string; legal_issuer_id: string; }; export type CreateFiscalDeliveryRequest = { fiscal_operation_id: string; recipient_email: string; }; export type CreateOrganizationRequest = { legal_name: string; slug: string; }; export type CreateSourceConnectionRequest = { fiscal_environment: FiscalEnvironment; legal_issuer_id: string; name: string; production_origin: string; provider_target_id: string; source_provider_authorization_id: string; }; export type DeclareReceptionMountRequest = { environment: FiscalEnvironment; legal_issuer_id: string; peer_authentication_declared: boolean; }; /** * One global discount or surcharge that affects the taxable base. */ export type DiscountOrSurcharge = { adjustment_kind: "D" | "R"; amount: string; billing_indicator: "0" | "1" | "2" | "3" | "4"; description?: string | undefined; rate?: string | undefined; value_kind: "%" | "$"; }; /** * The native artifact family selected for one schema validation. */ export type DocumentSchemaArtifactKind = "complete_document" | "rfce"; export type ElectronicFiscalDocumentEligibilityResource = { counterparty_class: FiscalCounterpartyClass; direction: FiscalIssuanceDirection; document_types: Array; }; export type ElectronicFiscalDocumentSeries = "E"; /** * One document type in the DGII-published electronic fiscal-document catalog. */ export type ElectronicFiscalDocumentType = "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47"; /** * The Rust engine build identity carried by every response. */ export type EngineIdentity = { name: string; version: string; }; export type EngineProblem = { code: string; message: string; path: string; }; export type EngineProtocol = "timbro.fiscal-engine.v3"; export type EnrolledCertificateCustodyBindingResource = { binding_id: string; }; /** * A successful deterministic fiscal-document engine response. */ export type EvaluatedEngineResponse = { canonical_intent_sha256: string; document_type: EvaluatedFiscalDocumentType; engine: EngineIdentity; outcome: EvaluatedOutcome; printed_representation: PlannedPrintedRepresentation; protocol: EngineProtocol; request_id: string; totals: FiscalTotals; unsigned_xml_base64: string; unsigned_xml_sha256: string; }; /** * One e-CF document type implemented by this engine protocol revision. */ export type EvaluatedFiscalDocumentType = "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47"; export type EvaluatedOutcome = "evaluated"; export type EvidenceAccessPurpose = "source_connection_artifact" | "workspace_user_artifact" | "fiscal_delivery_link"; export type EvidenceAccessResultCode = "artifact_retrieved" | "artifact_missing" | "hash_mismatch" | "write_failed" | "vault_unavailable"; /** * One fiscal line whose profile permits only the exempt indicator 4. */ export type ExemptFiscalLine = { billing_indicator: "4"; goods_or_service_indicator: "1" | "2"; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; }; export type ExpectedAuthorizationHead = { kind: "absent"; } | { generation: LedgerCounter; id: string; kind: "authorization"; }; /** * Foreign customer identity admitted by the Type 46 export profile. */ export type ExportCustomer = { foreign_identifier: string; identity_kind: "foreign"; legal_name: string; }; /** * Stable category of one requested external operation. */ export type ExternalEffectKind = "sign_complete_document" | "submit_complete_ecf" | "poll_authority_by_track_id" | "reconcile_authority_by_fiscal_identity" | "sign_consumer_summary" | "submit_consumer_summary" | "inquire_consumer_summary"; /** * Canonical request values whose content determines generic admission equivalence. */ export type FiscalAdmissionPayload = { intent: FiscalIntent; numbering_instruction: FiscalNumberingInstruction; printed_representation_profile: PrintedRepresentationProfile; source_content_sha256: string; source_record_id: string; source_revision: number; }; /** * One stable public document problem retained for a rejected admission. */ export type FiscalAdmissionProblem = { code: string; message: string; path: string; }; export type FiscalArtifactBytes = Uint8Array; /** * One retained fiscal artifact kind addressable on the artifact route. */ export type FiscalArtifactKind = "unsigned_complete_document" | "signed_complete_document" | "unsigned_consumer_summary" | "signed_consumer_summary" | "printed_representation"; export type FiscalArtifactMediaType = "application/xml" | "application/pdf"; /** * DGII authority protocol selected by the Rust decision core from admitted fiscal facts. */ export type FiscalAuthorityRoute = "complete_ecf_reception" | "consumer_summary_reception"; /** * Counterparty class that selects the legal e-CF type set. */ export type FiscalCounterpartyClass = "taxpayer" | "consumer" | "government" | "special_regime" | "foreign" | "unregistered" | "no_counterparty"; export type FiscalDeliveryResource = { created_at: string; id: string; last_result_code: string | null; link: string; provider_delivery_id: string | null; recipient_email: string; schema: FiscalDeliverySchema; source: FiscalDeliverySource; state: FiscalDeliveryState; updated_at: string; }; export type FiscalDeliverySchema = "timbro.fiscal-delivery.v1"; export type FiscalDeliverySource = { record_id: string; revision: number; }; export type FiscalDeliveryState = "pending" | "submitted" | "delivered" | "bounced" | "failed" | "suppressed"; /** * Stable semantic kind for a cross-document fiscal relationship. */ export type FiscalDocumentRelationshipKind = "modification"; export type FiscalDocumentRelationshipResource = { affected_document: AffectedFiscalDocumentResource; created_at: string; modification_code: string; reason: string; relationship_kind: FiscalDocumentRelationshipKind; }; /** * One request accepted by the authoritative Rust fiscal-document engine. */ export type FiscalEngineEvaluationRequest = { intent: FiscalIntent; numbering: NumberedFiscalDocument; printed_representation_profile: PrintedRepresentationProfile; protocol: EngineProtocol; request_id: string; }; /** * One response emitted by the authoritative Rust fiscal-document engine. */ export type FiscalEngineResponse = EvaluatedEngineResponse | RejectedEngineResponse; /** * DGII execution environment selected before lifecycle admission. */ export type FiscalEnvironment = "sandbox" | "certification" | "production"; export type FiscalEnvironmentName = "sandbox"; export type FiscalIdentityResource = { document_type: "31"; fiscal_number: string; } | { document_type: "32"; fiscal_number: string; } | { document_type: "33"; fiscal_number: string; } | { document_type: "34"; fiscal_number: string; } | { document_type: "41"; fiscal_number: string; } | { document_type: "43"; fiscal_number: string; } | { document_type: "44"; fiscal_number: string; } | { document_type: "45"; fiscal_number: string; } | { document_type: "46"; fiscal_number: string; } | { document_type: "47"; fiscal_number: string; }; /** * One supported, explicitly versioned fiscal intent. * * The DGII document type is the wire discriminator. Variant-owned fields are never projected as * nullable members of a universal fiscal payload. */ export type FiscalIntent = Type31Intent | Type32Intent | Type33Intent | Type34Intent | Type41Intent | Type43Intent | Type44Intent | Type45Intent | Type46Intent | Type47Intent; /** * Issued versus acquisition commercial direction. */ export type FiscalIssuanceDirection = "issued" | "acquisition"; /** * Closed result vocabulary emitted by persisted fiscal lifecycle events. */ export type FiscalLifecycleResultCode = "authority_fiscal_identity_not_found" | "authority_fiscal_identity_reconciliation_requested" | "authority_inquiry_inconclusive" | "authority_inquiry_retry_requested" | "authority_status_accepted" | "authority_status_accepted_with_findings" | "authority_status_processing" | "authority_status_rejected" | "authority_submission_outcome_unknown" | "authority_submission_recorded" | "authority_submission_rejected" | "authority_submission_requested" | "authority_submission_retry_requested" | "authority_track_poll_not_found" | "authority_track_poll_requested" | "commercially_accepted" | "commercially_rejected" | "consumer_summary_accepted" | "consumer_summary_accepted_with_findings" | "consumer_summary_inquiry_inconclusive" | "consumer_summary_inquiry_not_found" | "consumer_summary_inquiry_requested" | "consumer_summary_inquiry_retry_requested" | "consumer_summary_rejected" | "consumer_summary_signed" | "consumer_summary_signing_failed" | "consumer_summary_signing_replay_horizon_expired" | "consumer_summary_signing_requested" | "consumer_summary_signing_retry_requested" | "consumer_summary_submission_outcome_unknown" | "consumer_summary_submission_requested" | "consumer_summary_submission_retry_requested" | "custody_effect_replay_capability_unavailable" | "custody_effect_replay_horizon_expired" | "fiscal_attempt_budget_exhausted" | "fiscal_document_signed" | "fiscal_operation_admitted" | "fiscal_operation_delivery_ready" | "fiscal_operation_rejected" | "fiscal_signing_failed" | "fiscal_signing_replay_capability_unavailable" | "fiscal_signing_replay_horizon_expired" | "fiscal_signing_requested" | "fiscal_signing_retry_requested"; /** * One fiscal line admitted by sales and adjustment document profiles. */ export type FiscalLine = { billing_indicator: "0" | "1" | "2" | "3" | "4"; goods_or_service_indicator: "1" | "2"; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; }; /** * Deterministic totals calculated for one fiscal line. */ export type FiscalLineTotal = { net: string; source_line_id: string; tax: string; total: string; }; /** * One ordinary fiscal line whose profile admits only the legal-tip code. */ export type FiscalLineWithLegalTip = { additional_tax_codes?: Array<"001"> | undefined; billing_indicator: "0" | "1" | "2" | "3" | "4"; goods_or_service_indicator: "1" | "2"; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; }; export type FiscalNumberAuthorizationHistoryResource = { authorizations: Array; document_type: ElectronicFiscalDocumentType; environment: FiscalEnvironment; legal_issuer_id: string; }; /** * Provenance strength of a fiscal-number authorization fact. */ export type FiscalNumberAuthorizationKnowledge = "verified" | "reported"; export type FiscalNumberAuthorizationLineage = { current: FiscalNumberAuthorizationResource; generations: Array; lineage_id: string; }; export type FiscalNumberAuthorizationResource = { created_at: string; document_type: ElectronicFiscalDocumentType; ends_at: LedgerCounter; environment: FiscalEnvironment; expires_on: string | null; generation: LedgerCounter; id: string; knowledge: FiscalNumberAuthorizationKnowledge; legal_issuer_id: string; lineage_id: string; observed_at: string; provenance_sha256: string; series: ElectronicFiscalDocumentSeries; source_kind: FiscalNumberAuthorizationSourceKind; source_record_id: string; source_reference: string; starts_at: LedgerCounter; state: FiscalNumberAuthorizationState; supersedes_id: string | null; }; /** * Origin of a fiscal-number authorization fact. */ export type FiscalNumberAuthorizationSourceKind = "official_source_manifest" | "operator_attested" | "caller_reported"; /** * Lifecycle state of a fiscal-number authorization fact. */ export type FiscalNumberAuthorizationState = "active" | "suspended" | "cancelled" | "superseded" | "exhausted" | "conflicting"; /** * Caller instruction that selects how a Fiscal operation obtains its e-NCF. * * The instruction is independent from every commercial document variant. Both assignment * strategies resolve to the same [`NumberedFiscalDocument`] value. */ export type FiscalNumberingInstruction = { fiscal_number: string; kind: "external_assignment"; sequence_expires_on?: string | null | undefined; } | { kind: "central_assignment"; }; export type FiscalOperationAmountsResource = { net: string; non_billable: string; tax: string; total: string; }; export type FiscalOperationDiagnosticResource = { code: string; message: string; path: string; }; export type FiscalOperationLatestEventResource = { event_id: string; occurred_at: string; sequence: string; }; export type FiscalOperationOperatorRequiredTerminality = "operator_required"; export type FiscalOperationOutcomeResource = { outcome: "rejected"; terminality: FiscalOperationTerminalTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "processing"; stage: FiscalOperationProcessingStage; terminality: FiscalOperationPendingTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "outcome_unknown"; terminality: FiscalOperationPendingTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "accepted"; terminality: FiscalOperationTerminalTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "accepted_with_findings"; terminality: FiscalOperationTerminalTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "authority_rejected"; terminality: FiscalOperationOperatorRequiredTerminality; } | { fiscal_identity: FiscalIdentityResource; outcome: "intervention_required"; terminality: FiscalOperationOperatorRequiredTerminality; }; export type FiscalOperationPendingTerminality = "pending"; export type FiscalOperationProcessingStage = "admitted" | "signed" | "consumer_summary_signed" | "submitted" | "authority_processing"; export type FiscalOperationResource = { action: SourceFiscalAction; buyer_delivery_readiness: BuyerDeliveryReadinessResource; corrections: Array; created_at: string; diagnostics: Array; environment: FiscalEnvironment; id: string; latest_event: FiscalOperationLatestEventResource; outcome: FiscalOperationOutcomeResource; printed_representation: PrintedRepresentationResource; schema: FiscalOperationResourceSchema; signed_document: SignedDocumentReadinessResource; source: FiscalOperationSource; totals: FiscalOperationTotalsResource; updated_at: string; }; export type FiscalOperationResourceSchema = "timbro.fiscal-operation.v13"; export type FiscalOperationSource = { content_sha256: string; record_id: string; revision: number; }; export type FiscalOperationTerminalTerminality = "terminal"; export type FiscalOperationTotalsResource = { comparison: "unavailable"; } | { comparison: "declared_only"; source: FiscalOperationAmountsResource; } | { comparison: "evaluated_only"; evaluated: FiscalOperationAmountsResource; } | { comparison: "compared"; diverges: boolean; evaluated: FiscalOperationAmountsResource; source: FiscalOperationAmountsResource; }; /** * Adds the pre-lifecycle rejection that no [`FiscalOperationStage`] represents. */ export type FiscalOperationTransitionState = "rejected" | "admitted" | "signed" | "consumer_summary_signed" | "submitted" | "authority_processing" | "submission_outcome_unknown" | "authority_accepted" | "authority_accepted_with_findings" | "authority_rejected" | "intervention_required"; /** * Deterministic totals calculated for one fiscal document. * * `total` covers the billable lines only, so the line totals reconcile as * `total + non_billable`. */ export type FiscalTotals = { lines: Array; net: string; non_billable: string; tax: string; total: string; }; /** * Other-currency header: official currency code and conversion factor. */ export type ForeignCurrencyIntent = { currency_code: "BRL" | "CAD" | "CHF" | "CHY" | "XDR" | "DKK" | "EUR" | "GBP" | "JPY" | "NOK" | "SCP" | "SEK" | "USD" | "VEF" | "HTG" | "MXN" | "COP"; exchange_rate: string; }; /** * Nonresident recipient identity carried by a Type 47 payment. */ export type ForeignPayee = { foreign_identifier: string; legal_name: string; }; /** * One exempt Type 47 line with its required income-tax withholding amount. */ export type ForeignPaymentLine = { billing_indicator: "4"; goods_or_service_indicator: "1" | "2"; income_tax_withheld: string; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; }; export type HealthResponse = { status: HealthStatus; }; export type HealthStatus = "ok" | "unavailable"; export type IdentityEmailSchema = string; export type InvitationGrant = { invitation: InvitationGrantResource; schema: InvitationResourceSchema; }; export type InvitationGrantResource = { email: IdentityEmailSchema; expires_at: string; id: string; role: MembershipRole; token: string; }; export type InvitationList = { invitations: Array; schema: InvitationResourceSchema; }; export type InvitationResource = { created_at: string; email: IdentityEmailSchema; expires_at: string; id: string; role: MembershipRole; status: InvitationStatus; }; export type InvitationResourceSchema = "timbro.membership-invitation.v1"; export type InvitationStatus = "pending" | "accepted" | "expired"; export type InviteMemberRequest = { email: IdentityEmailSchema; role: MembershipRole; }; /** * One stable reason the authoritative rules refuse to issue. */ export type IssuanceBlocker = "invalid_request" | "unsupported_protocol" | "unsupported_rules_version" | "invalid_resolved_facts" | "numbering_verifier_missing" | "numbering_mode_not_enabled" | "document_type_not_recognized" | "authorization_missing" | "authorization_not_observed_on_effective_date" | "authorization_suspended" | "authorization_cancelled" | "authorization_superseded" | "authorization_exhausted" | "authorization_conflicting" | "authorization_document_type_mismatch" | "central_assignment_requires_verified_authorization" | "authorization_expired" | "authorization_range_overlap" | "fiscal_number_capacity_exhausted" | "invalid_fiscal_number" | "fiscal_number_outside_authorized_range" | "sequence_expiration_mismatch"; export type LedgerCounter = string; export type LegalIssuer = { address: string; commercial_name: string; created_at: string; default_income_type: string; email: string; id: string; legal_name: string; municipality_code: string; phone: string; province_code: string; sales_zone: string; seller_code: string; tax_id: string; verification: LegalIssuerVerification; website: string; }; export type LegalIssuerList = { legal_issuers: Array; schema: LegalIssuerResourceSchema; }; export type LegalIssuerResource = { legal_issuer: LegalIssuer; schema: LegalIssuerResourceSchema; }; export type LegalIssuerResourceSchema = "timbro.legal-issuer.v1"; export type LegalIssuerVerification = "verified" | "unverified"; export type MembershipAcceptance = { membership: AcceptedMembership; schema: InvitationResourceSchema; }; export type MembershipResource = { legal_name: string; organization_id: string; role: MembershipRole; slug: string; }; export type MembershipRole = "administrator" | "operator"; /** * Closed `CodigoMotivoNoRecibido` vocabulary for a not-received e-CF. */ export type NotReceivedReason = "schema_error" | "signature_error" | "duplicate_submission" | "buyer_rnc_mismatch"; /** * Numbering values resolved before deterministic fiscal-document construction. */ export type NumberedFiscalDocument = { fiscal_number: string; sequence_expires_on: string | null; }; export type OnboardingReadiness = { complete: boolean; environment: FiscalEnvironmentName; requirements: Array; schema: ReadinessResourceSchema; }; export type OnboardingRequirement = { blocked_by: Array; fiscal_operation_id: string | null; id: RequirementId; remediation: Array; status: RequirementStatus; verification: null | VerificationStatus; }; export type OpenWorkspaceSessionRequest = { email: IdentityEmailSchema; password: string; }; export type OrganizationIdentity = { created_at: string; id: string; legal_name: string; slug: string; }; export type OrganizationResource = { organization: OrganizationIdentity; schema: OrganizationResourceSchema; }; export type OrganizationResourceSchema = "timbro.organization.v1"; /** * One authoritative payment-method and amount pair from `TablaFormasPago`. */ export type PaymentAllocation = { amount: string; method: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8"; }; /** * Retained plan and its canonical SHA-256 identity. */ export type PlannedPrintedRepresentation = { plan: PrintedRepresentationPlan; plan_sha256: string; }; export type PrintedRepresentationA4ProfileVersion = "a4.v1"; /** * Immutable line range and fiscal subtotals assigned to one printed page or receipt segment. */ export type PrintedRepresentationPagePlan = { additional_tax_subtotal: string; detail_row_count: number; exempt_subtotal: string; first_line_number: number; itbis_16_subtotal: string; itbis_18_subtotal: string; last_line_number: number; non_billable_subtotal: string; page_number: number; page_total: string; taxable_0_subtotal: string; taxable_16_subtotal: string; taxable_18_subtotal: string; }; export type PrintedRepresentationPdfMediaType = "application/pdf"; /** * Durable generation stage for a representation that is not ready yet. */ export type PrintedRepresentationPendingStage = "awaiting_signed_source" | "queued" | "rendering" | "retry_scheduled"; /** * Deterministic pagination facts used by both signed XML and native PDF rendering. */ export type PrintedRepresentationPlan = { page_count: number; pages: Array; profile: PrintedRepresentationProfile; rendering_profile_version: string; }; /** * Certification-candidate layout bound to a Fiscal operation before its XML is serialized. */ export type PrintedRepresentationProfile = "receipt_80mm" | "a4"; export type PrintedRepresentationProfileIdentity = { profile: "receipt_80mm"; profile_version: PrintedRepresentationReceiptProfileVersion; } | { profile: "a4"; profile_version: PrintedRepresentationA4ProfileVersion; }; export type PrintedRepresentationReceiptProfileVersion = "receipt_80mm.v1"; /** * Presentation-artifact readiness, independent of DGII authority state and buyer delivery. */ export type PrintedRepresentationResource = { status: "not_applicable"; } | { stage: PrintedRepresentationPendingStage; status: "pending"; } | { artifact_id: string; byte_length: number; created_at: string; fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; media_type: PrintedRepresentationPdfMediaType; page_count: number; pagination_plan_sha256: string; pdf_sha256: string; profile_identity: PrintedRepresentationProfileIdentity; renderer_identity: string; signed_source_sha256: string; status: "ready"; } | { profile: PrintedRepresentationProfile; result_code: string; status: "unavailable"; }; /** * One RFC 9457 problem body returned on the `/v1` surface. */ export type ProblemBody = { code: PublicProblemCode; /** * Present only when the rejected request produced a Fiscal operation. */ fiscal_operation_id?: string | undefined; /** * Present only when the authoritative issuance rules refused to issue. */ issuance_blockers?: Array | undefined; /** * Present only when the Fiscal intent itself was rejected. */ problems?: Array | undefined; request_id: string; status: number; title: string; type: string; }; /** * One stable public problem code returned on the `/v1` surface. */ export type PublicProblemCode = "unauthenticated" | "invalid_login" | "email_already_registered" | "organization_slug_taken" | "organization_not_found" | "administrator_role_required" | "invalid_fiscal_identity" | "invalid_certificate_custody_signer_identity" | "legal_issuer_already_registered" | "legal_issuer_not_found" | "invitation_invalid" | "invitation_expired" | "already_a_member" | "environment_not_active" | "certificate_custody_enrollment_conflict" | "certificate_custody_binding_already_exists" | "certificate_custody_binding_not_found" | "certificate_custody_certificate_version_not_active" | "source_connection_not_found" | "source_connection_not_connected" | "source_provider_unavailable" | "source_provider_authorization_required" | "source_provider_installation_disabled" | "source_provider_installation_removed" | "source_provider_scope_insufficient" | "source_provider_target_access_removed" | "source_provider_throttled" | "source_provider_outcome_unknown" | "source_provider_authorization_not_found" | "source_provider_authorization_conflict" | "source_provider_installation_request_invalid" | "source_provider_installation_request_expired" | "source_provider_installation_callback_replayed" | "source_connection_creation_conflict" | "source_connection_activation_conflict" | "source_connection_activation_verification_rejected" | "delegated_authorization_verifier_forbidden" | "invalid_credential" | "credential_revoked" | "issuer_not_authorized" | "missing_idempotency_key" | "invalid_idempotency_key" | "unsupported_media_type" | "request_too_large" | "request_body_timeout" | "malformed_json" | "invalid_request" | "invalid_history_query" | "invalid_history_cursor" | "document_type_not_enabled" | "fiscal_intent_rejected" | "idempotency_key_conflict" | "fiscal_number_already_used" | "fiscal_number_authorization_changed" | "fiscal_number_authorization_source_record_conflict" | "source_revision_stale" | "source_content_conflict" | "source_action_conflict" | "source_command_conflict" | "printed_representation_profile_conflict" | "source_record_already_fiscalized" | "source_operation_pending" | "source_outcome_unknown" | "authority_rejected_replacement" | "correction_target_unsettled" | "unsupported_printed_representation_profile" | "affected_fiscal_operation_unsupported" | "fiscal_issuance_blocked" | "fiscal_operation_not_found" | "fiscal_artifact_not_found" | "fiscal_artifact_unverified" | "fiscal_artifact_unavailable" | "fiscal_delivery_not_found" | "fiscal_delivery_unavailable" | "fiscal_delivery_outcome_conflict" | "webhook_endpoint_not_found" | "webhook_endpoint_suspended" | "webhook_endpoint_deleted" | "webhook_event_not_found" | "invalid_replay_scope" | "webhook_destination_not_allowed" | "unsigned_document_schema_invalid" | "signed_document_schema_invalid" | "custody_unavailable" | "received_document_not_found" | "commercial_response_motive_invalid" | "commercial_response_decision_conflict" | "route_not_found" | "method_not_allowed" | "internal_error"; export type QualifiedProductionOrigin = { domain: string; origin: string; }; export type ReadinessResourceSchema = "timbro.onboarding.v1"; /** * Actor-facing commercial-response state, projected from the receiver's own decision row. */ export type ReceivedDocumentCommercialResponseResource = { status: "not_reviewable"; } | { status: "pending"; } | { recorded_at: string; status: "accepted"; submission_state: CommercialResponseSubmissionStateResource; } | { motive: string; recorded_at: string; status: "rejected"; submission_state: CommercialResponseSubmissionStateResource; }; export type ReceivedDocumentList = { is_truncated: boolean; next_cursor: string | null; received_documents: Array; schema: ReceivedDocumentListSchema; }; export type ReceivedDocumentListSchema = "timbro.received-document-list.v1"; export type ReceivedDocumentResource = { not_received_reason: null | NotReceivedReason; received_xml_sha256: string; schema: ReceivedDocumentResourceSchema; summary: ReceivedDocumentSummary; }; export type ReceivedDocumentResourceSchema = "timbro.received-document.v1"; export type ReceivedDocumentStateResource = "received" | "not_received"; export type ReceivedDocumentSummary = { commercial_response: ReceivedDocumentCommercialResponseResource; e_ncf: string; environment: FiscalEnvironment; fiscal_reception_id: string; received_at: string; rnc_comprador: string; rnc_emisor: string; state: ReceivedDocumentStateResource; }; export type ReceptionMountResource = { declared_at: string; environment: FiscalEnvironment; legal_issuer_id: string; organization_id: string; peer_authentication_declared: boolean; reception_mount_id: string; schema: ReceptionMountSchema; }; export type ReceptionMountSchema = "timbro.reception-mount.v1"; export type ReceptionWebhookEventEnvelope = { data: { e_ncf: string; fiscal_reception_id: string; received_at: string; received_xml_sha256: string; rnc_comprador: string; rnc_emisor: string; }; environment: FiscalEnvironment; event_type: "fiscal_reception.received"; occurred_at: string; organization_id: string; schema: ReceptionWebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { e_ncf: string; fiscal_reception_id: string; not_received_reason: NotReceivedReason; received_at: string; received_xml_sha256: string; rnc_comprador: string; rnc_emisor: string; }; environment: FiscalEnvironment; event_type: "fiscal_reception.not_received"; occurred_at: string; organization_id: string; schema: ReceptionWebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; }; export type ReceptionWebhookEventSchema = "timbro.reception-webhook-event.v2"; /** * Optional `InformacionReferencia` on types whose official obligation is conditional rather than required. */ export type ReferenceInformation = { attribution: AffectedFiscalDocumentAttribution; consumer_invoice_total?: string | undefined; fiscal_number: string; issued_on: string; modification_code: "1" | "2" | "3" | "4" | "5"; reason: string; }; export type RegisterFiscalNumberAuthorizationRequest = { document_type: ElectronicFiscalDocumentType; ends_at: LedgerCounter; environment: FiscalEnvironment; expected_head: ExpectedAuthorizationHead; expires_on: string | null; knowledge: FiscalNumberAuthorizationKnowledge; legal_issuer_id: string; observed_at: string; provenance_sha256: string; series: ElectronicFiscalDocumentSeries; source_kind: FiscalNumberAuthorizationSourceKind; source_record_id: string; source_reference: string; starts_at: LedgerCounter; state: FiscalNumberAuthorizationState; }; export type RegisterLegalIssuerRequest = { address: string; commercial_name: string; default_income_type: string; email: string; legal_name: string; municipality_code: string; phone: string; province_code: string; sales_zone: string; seller_code: string; tax_id: string; website: string; }; export type RegisterUserAccountRequest = { display_name: string; email: IdentityEmailSchema; password: string; }; /** * A fiscal-document engine rejection carrying stable field problems. */ export type RejectedEngineResponse = { engine: EngineIdentity; outcome: RejectedOutcome; problems: Array; protocol: EngineProtocol; request_id: string; }; export type RejectedOutcome = "rejected"; export type ReplayEventIdsScope = { webhook_event_ids: Array; }; export type ReplayScope = ReplayEventIdsScope | ReplayWindowScope; export type ReplayWindowScope = { from: string; to: string; }; export type RequirementId = "organization_identity" | "legal_issuer_identity" | "team_roles" | "source_connection" | "certificate_custody" | "first_fiscal_operation"; export type RequirementStatus = "complete" | "pending" | "blocked" | "action_required"; export type RevokeCertificateCustodyCertificateVersionRequest = { certificate_custody_certificate_version: LedgerCounter; }; /** * Safe, schema-owned classification for one validation failure. */ export type SchemaValidationDiagnosticCode = "document_xml_unreadable" | "document_schema_rejected"; /** * Whether schema validation succeeded or retained a safe diagnostic. */ export type SchemaValidationOutcome = "succeeded" | "failed"; /** * Stage at which a fiscal XML artifact was validated. */ export type SchemaValidationStage = "unsigned" | "signed"; export type SignedDocumentReadinessResource = { status: "not_applicable"; } | { status: "pending"; } | { byte_length: number; created_at: string; media_type: FiscalArtifactMediaType; sha256: string; status: "ready"; }; /** * Named additional taxes supported by the common Source contract. */ export type SourceAdditionalTax = "legal_tip"; export type SourceConnection = { created_at: string; fiscal_environment: FiscalEnvironment; id: string; legal_issuer_id: string; lifecycle: SourceConnectionLifecycle; name: string; production_origin: string; provider: SourceConnectionProvider; provider_account: SourceProviderAccount; provider_target: SourceProviderTarget; source_provider_authorization_id: string; updated_at: string; }; export type SourceConnectionActionReason = "authorization_disabled" | "authorization_scope_insufficient" | "target_access_removed" | "target_origin_unavailable" | "target_configuration_rejected" | "target_deployment_failed" | "target_release_identity_unavailable" | "target_verification_failed" | "credential_reprovisioning_required"; export type SourceConnectionActivationPhase = "credential_staging" | "target_configuring" | "deployment_requesting" | "deployment_observing" | "verification_requesting" | "verification_observing"; export type SourceConnectionAuthorizationReason = "authorization_removed" | "credential_rejected"; export type SourceConnectionLifecycle = { reason: SourceConnectionAuthorizationReason; state: "authorization_required"; } | { phase: SourceConnectionActivationPhase; state: "activating"; } | { connected_at: string; state: "connected"; } | { reason: SourceConnectionActionReason; state: "action_required"; } | { revoked_at: string; state: "revoked"; }; export type SourceConnectionListResource = { schema: SourceConnectionListResourceSchema; source_connections: Array; }; export type SourceConnectionListResourceSchema = "timbro.source-connection-list.v1"; export type SourceConnectionProvider = "vercel"; export type SourceConnectionResource = { schema: SourceConnectionResourceSchema; source_connection: SourceConnection; }; export type SourceConnectionResourceSchema = "timbro.source-connection.v1"; /** * Consumer buyer alternatives supported by the common Source contract. */ export type SourceConsumerBuyer = { identity_kind: "anonymous"; } | { buyer: SourceDomesticBuyer; identity_kind: "domestic"; } | { foreign_identifier: string; identity_kind: "foreign"; legal_name: string; }; /** * Supported credit-note purposes on the common Source path. */ export type SourceCreditNoteCorrection = "cancel" | "correct_text" | "correct_amounts"; /** * Actor-facing currency selection closed over DOP and supported foreign currencies. */ export type SourceCurrency = { kind: "dop"; } | { currency_code: "BRL" | "CAD" | "CHF" | "CHY" | "XDR" | "DKK" | "EUR" | "GBP" | "JPY" | "NOK" | "SCP" | "SEK" | "USD" | "VEF" | "HTG" | "MXN" | "COP"; exchange_rate: string; kind: "foreign"; }; /** * Supported debit-note purposes on the common Source path. */ export type SourceDebitNoteCorrection = "correct_text" | "correct_amounts"; /** * Exact decimal totals declared by the Source system before fiscal evaluation. */ export type SourceDeclaredTotals = { net: string; non_billable: string; tax: string; total: string; }; /** * Domestic buyer identity supported by taxpayer and government sales. */ export type SourceDomesticBuyer = { address?: string | undefined; contact_name?: string | undefined; email?: string | undefined; legal_name: string; tax_id: string; }; /** * Actor-level action identity retained with one Source command. */ export type SourceFiscalAction = "issue" | "credit_note" | "debit_note"; /** * Closed common-path Fiscal actions over one Source sales document. */ export type SourceFiscalActionCommand = { kind: "issue"; } | { affected_fiscal_operation_id: string; correction: SourceCreditNoteCorrection; kind: "credit_note"; reason: string; } | { affected_fiscal_operation_id: string; correction: SourceDebitNoteCorrection; kind: "debit_note"; reason: string; }; /** * Common Source command admitted without exposing Fiscal-intent or numbering vocabulary. */ export type SourceFiscalOperationRequest = { action: SourceFiscalActionCommand; document: SourceSalesDocument; printed_representation_profile: PrintedRepresentationProfile; source_content_sha256: string; source_record_id: string; source_revision: number; }; /** * Government classification retained as caller-declared Source context. */ export type SourceGovernmentEligibility = { authority_reference: string; entity_kind: "central_government"; } | { authority_reference: string; entity_kind: "decentralized_or_autonomous"; } | { authority_reference: string; entity_kind: "social_security"; } | { authority_reference: string; entity_kind: "other_noncommercial_government"; }; /** * Whether a Source line describes a good or a service. */ export type SourceItemKind = "good" | "service"; /** * One exact decimal payment allocation declared by the Source system. */ export type SourcePaymentAllocation = { amount: string; method: SourcePaymentMethod; }; /** * Optional payment allocation facts retained only when the Source consumer uses them. */ export type SourcePaymentDetails = { allocations: Array; }; /** * Named payment methods whose official codes are owned by fiscal-document. */ export type SourcePaymentMethod = "cash" | "bank_transfer" | "card" | "credit_sale" | "gift_certificate" | "barter" | "credit_note" | "other"; export type SourceProviderAccount = { id: string; kind: SourceProviderAccountKind; }; export type SourceProviderAccountKind = "user" | "team"; export type SourceProviderAuthorization = { created_at: string; id: string; lifecycle: SourceProviderAuthorizationLifecycle; provider: SourceConnectionProvider; provider_account: SourceProviderAccount; updated_at: string; }; export type SourceProviderAuthorizationActionReason = "installation_disabled" | "scope_insufficient"; export type SourceProviderAuthorizationLifecycle = { authorized_at: string; state: "authorized"; } | { reason: SourceProviderAuthorizationRequiredReason; state: "authorization_required"; } | { reason: SourceProviderAuthorizationActionReason; state: "action_required"; }; export type SourceProviderAuthorizationListResource = { schema: SourceProviderAuthorizationListResourceSchema; source_provider_authorizations: Array; }; export type SourceProviderAuthorizationListResourceSchema = "timbro.source-provider-authorization-list.v1"; export type SourceProviderAuthorizationRequiredReason = "installation_removed" | "credential_rejected"; export type SourceProviderAuthorizationResource = { schema: SourceProviderAuthorizationResourceSchema; source_provider_authorization: SourceProviderAuthorization; }; export type SourceProviderAuthorizationResourceSchema = "timbro.source-provider-authorization.v1"; export type SourceProviderTarget = { id: string; name: string; }; /** * Sales-document families supported by the common Source contract. */ export type SourceSalesDocument = { buyer: SourceConsumerBuyer; kind: "consumer"; sale: SourceSalesDocumentContent; } | { buyer: SourceDomesticBuyer; kind: "domestic_taxpayer"; sale: SourceSalesDocumentContent; } | { buyer: SourceDomesticBuyer; eligibility: SourceGovernmentEligibility; kind: "government"; sale: SourceSalesDocumentContent; }; /** * Common values carried by every supported Source sales-document family. */ export type SourceSalesDocumentContent = { currency: SourceCurrency; declared_totals: SourceDeclaredTotals; internal_invoice_number?: null | string | undefined; internal_order_number?: null | string | undefined; lines: Array; payment_terms: SourceSalesPayment; }; /** * One normalized line from the Source sales document. */ export type SourceSalesLine = { additional_taxes?: Array | undefined; description: string; item_kind: SourceItemKind; /** * Common semantic measurement units mapped to official DGII catalog codes by fiscal-document. */ measurement_unit: "unit" | "kilogram" | "litre" | "metre" | "piece"; quantity: string; source_line_id: string; tax_treatment: SourceTaxTreatment; /** * Tax-inclusive unit price for taxable common lines; fiscal-document maps this semantic value to the official DGII amount. */ unit_price: string; }; /** * Payment terms with their valid due-date and allocation shapes closed in the wire type. */ export type SourceSalesPayment = { payment?: null | SourcePaymentDetails | undefined; terms: "cash"; } | { due_on: string; payment?: null | SourcePaymentDetails | undefined; terms: "credit"; } | { terms: "free"; }; /** * Named tax treatment whose official billing indicator is owned by fiscal-document. */ export type SourceTaxTreatment = "itbis_18" | "itbis_16" | "zero_rated" | "exempt" | "non_billable"; /** * One Type 44 line with an optional field carrying one or two official other-additional-tax codes. */ export type SpecialRegimeLine = { additional_tax_codes?: Array<"001" | "002" | "003" | "004" | "005"> | undefined; billing_indicator: "4"; goods_or_service_indicator: "1" | "2"; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; }; /** * Factura de Crédito Fiscal Electrónica, code 31. */ export type Type31Intent = { buyer: Buyer; currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "31"; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type31.v4"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Buyer identity alternatives admitted by the bounded Type 32 profile. * * The tagged variants prevent mutually exclusive domestic and foreign identifiers from * coexisting. Anonymous buyers remain valid only while the calculated document total is below * the official DOP 250,000 identity threshold. */ export type Type32Buyer = { identity_kind: "anonymous"; } | { identity_kind: "domestic"; legal_name: string; tax_id: string; } | { foreign_identifier: string; identity_kind: "foreign"; legal_name: string; }; /** * Factura de Consumo Electrónica, code 32. */ export type Type32Intent = { buyer: Type32Buyer; currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "32"; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type32.v3"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Nota de Débito Electrónica, code 33. */ export type Type33Intent = { /** * Typed reference to the fiscal document affected by an adjustment note. */ affected_document: { attribution: AffectedFiscalDocumentAttribution; consumer_invoice_total?: string | undefined; fiscal_number: string; issued_on: string; modification_code: "2" | "3" | "4" | "5"; reason: string; }; buyer: AdjustmentNoteBuyer; currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "33"; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; schema_version: "timbro.fiscal-intent.type33.v3"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Nota de Crédito Electrónica, code 34. */ export type Type34Intent = { /** * Typed reference to the fiscal document affected by an adjustment note. */ affected_document: { attribution: AffectedFiscalDocumentAttribution; consumer_invoice_total?: string | undefined; fiscal_number: string; issued_on: string; modification_code: "1" | "2" | "3" | "4" | "5"; reason: string; }; buyer: AdjustmentNoteBuyer; currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "34"; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; schema_version: "timbro.fiscal-intent.type34.v2"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Comprobante Electrónico de Compras, code 41. */ export type Type41Intent = { currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "41"; foreign_currency?: ForeignCurrencyIntent | undefined; issued_on: string; /** * Issuer values shared by acquisition-side document profiles. */ issuer: { address: string; commercial_name: string; economic_activity: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type41.v2"; signed_at: string; supplier: UnregisteredSupplier; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * One Type 41 line with the mandatory official withholding section. */ export type Type41Line = { billing_indicator: "1" | "2" | "3" | "4"; goods_or_service_indicator: "1" | "2"; measurement_unit: string; name: string; quantity: string; source_line_id: string; unit_price: string; withholding: Type41LineWithholding; }; /** * Withholding amounts attributable to one Type 41 purchase line. */ export type Type41LineWithholding = { income_tax_amount?: string | undefined; itbis_amount?: string | undefined; }; /** * Comprobante Electrónico para Gastos Menores, code 43. */ export type Type43Intent = { currency: "DOP"; document_type: "43"; foreign_currency?: ForeignCurrencyIntent | undefined; issued_on: string; /** * Issuer values shared by acquisition-side document profiles. */ issuer: { address: string; commercial_name: string; economic_activity: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; tax_id: string; website: string; }; lines: Array; payment_type?: "1" | "2" | "3" | undefined; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type43.v1"; signed_at: string; }; /** * Comprobante Electrónico para Regímenes Especiales, code 44. */ export type Type44Intent = { /** * Buyer identity alternatives admitted by the official Type 44 buyer area. */ buyer: { identity_kind: "domestic"; legal_name: string; tax_id: string; } | { foreign_identifier: string; identity_kind: "foreign_diplomat"; legal_name: string; }; caller_declared_eligibility: CallerDeclaredSpecialRegimeEligibility; currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "44"; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type44.v2"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Comprobante Electrónico Gubernamental, code 45. */ export type Type45Intent = { currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "45"; foreign_currency?: ForeignCurrencyIntent | undefined; government_customer: Buyer; government_eligibility: CallerDeclaredGovernmentEligibility; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type45.v2"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Comprobante para Exportaciones Electrónico, code 46. */ export type Type46Intent = { currency: "DOP"; deferred_submission?: "1" | undefined; discounts_or_surcharges?: Array | undefined; document_type: "46"; export_customer: ExportCustomer; export_eligibility: CallerDeclaredExportEligibility; foreign_currency?: ForeignCurrencyIntent | undefined; income_type: "01" | "02" | "03" | "04" | "05" | "06"; issued_on: string; /** * Issuer values shared by buyer-facing sales-document profiles. */ issuer: { address: string; commercial_name: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; sales_zone: string; seller_code: string; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type: "1" | "2" | "3"; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type46.v2"; signed_at: string; tax_inclusive_amounts?: "0" | "1" | undefined; }; /** * Comprobante para Pagos al Exterior Electrónico, code 47. */ export type Type47Intent = { currency: "DOP"; document_type: "47"; foreign_currency?: ForeignCurrencyIntent | undefined; foreign_payee: ForeignPayee; issued_on: string; /** * Issuer values shared by acquisition-side document profiles. */ issuer: { address: string; commercial_name: string; economic_activity: string; email: string; internal_invoice_number?: string | undefined; internal_order_number?: string | undefined; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; phone: string; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; tax_id: string; website: string; }; lines: Array; payment_allocations?: Array | undefined; payment_due_on?: string | undefined; payment_type?: "1" | "2" | "3" | undefined; reference_information?: ReferenceInformation | undefined; schema_version: "timbro.fiscal-intent.type47.v2"; signed_at: string; withholding_basis: CallerDeclaredForeignPaymentWithholdingBasis; }; /** * The unregistered supplier whose goods or services the Legal issuer purchased. */ export type UnregisteredSupplier = { address: string; contact_name: string; email: string; identity_number: string; internal_code: string; legal_name: string; municipality_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; province_code: "010000" | "010100" | "010101" | "020000" | "020100" | "020101" | "020102" | "020103" | "020104" | "020105" | "020106" | "020107" | "020108" | "020109" | "020200" | "020201" | "020202" | "020300" | "020301" | "020302" | "020303" | "020400" | "020401" | "020402" | "020403" | "020404" | "020405" | "020500" | "020501" | "020600" | "020601" | "020602" | "020603" | "020604" | "020700" | "020701" | "020702" | "020800" | "020801" | "020802" | "020803" | "020804" | "020900" | "020901" | "021000" | "021001" | "030000" | "030001" | "030101" | "030102" | "030200" | "030201" | "030202" | "030300" | "030301" | "030302" | "030303" | "030304" | "030305" | "030306" | "030307" | "030400" | "030401" | "030500" | "030501" | "030502" | "040000" | "040100" | "040101" | "040102" | "040103" | "040104" | "040200" | "040201" | "040300" | "040301" | "040302" | "040400" | "040401" | "040402" | "040500" | "040501" | "040502" | "040503" | "040504" | "040600" | "040601" | "040700" | "040701" | "040702" | "040800" | "040801" | "040802" | "040900" | "040901" | "041000" | "041001" | "041100" | "041101" | "041102" | "050000" | "050100" | "050101" | "050102" | "050200" | "050201" | "050202" | "050203" | "050300" | "050301" | "050400" | "050401" | "050500" | "050501" | "050502" | "060000" | "060100" | "060101" | "060102" | "060103" | "060104" | "060105" | "060200" | "060201" | "060202" | "060203" | "060300" | "060301" | "060400" | "060401" | "060500" | "060501" | "060502" | "060503" | "060504" | "060505" | "060600" | "060601" | "060700" | "060701" | "060702" | "070000" | "070100" | "070101" | "070102" | "070103" | "070200" | "070201" | "070202" | "070203" | "070300" | "070301" | "070302" | "070400" | "070401" | "070402" | "070500" | "070501" | "070502" | "070600" | "070601" | "080000" | "080100" | "080101" | "080102" | "080103" | "080104" | "080200" | "080201" | "080202" | "080203" | "090000" | "090100" | "090101" | "090102" | "090103" | "090104" | "090105" | "090106" | "090107" | "090108" | "090109" | "090200" | "090201" | "090300" | "090301" | "090302" | "090303" | "090304" | "090400" | "090401" | "100000" | "100100" | "100101" | "100102" | "100103" | "100200" | "100201" | "100202" | "100300" | "100301" | "100400" | "100401" | "100402" | "100500" | "100501" | "100502" | "100600" | "100601" | "100602" | "110000" | "110100" | "110101" | "110102" | "110103" | "110104" | "110200" | "110201" | "110202" | "110203" | "120000" | "120100" | "120101" | "120102" | "120200" | "120201" | "120300" | "120301" | "120302" | "130000" | "130100" | "130101" | "130102" | "130103" | "130104" | "130105" | "130200" | "130201" | "130202" | "130203" | "130300" | "130301" | "130302" | "130303" | "130400" | "130401" | "130402" | "140000" | "140100" | "140101" | "140102" | "140103" | "140104" | "140200" | "140201" | "140202" | "140203" | "140300" | "140301" | "140302" | "140400" | "140401" | "150000" | "150100" | "150101" | "150200" | "150201" | "150202" | "150300" | "150301" | "150302" | "150303" | "150304" | "150400" | "150401" | "150500" | "150501" | "150502" | "150600" | "150601" | "160000" | "160100" | "160101" | "160102" | "160200" | "160201" | "160202" | "170000" | "170100" | "170101" | "170102" | "170103" | "170104" | "170105" | "170106" | "170107" | "170108" | "170109" | "170110" | "170200" | "170201" | "170202" | "170203" | "170300" | "170301" | "180000" | "180100" | "180101" | "180102" | "180103" | "180200" | "180201" | "180202" | "180300" | "180301" | "180400" | "180401" | "180500" | "180501" | "180502" | "180600" | "180601" | "180602" | "180603" | "180604" | "180700" | "180701" | "180702" | "180703" | "180800" | "180801" | "180802" | "180803" | "180804" | "180900" | "180901" | "190000" | "190100" | "190101" | "190102" | "190200" | "190201" | "190202" | "190300" | "190301" | "200000" | "200100" | "200101" | "200102" | "200103" | "200104" | "200200" | "200201" | "200300" | "200301" | "210000" | "210100" | "210101" | "210102" | "210103" | "210200" | "210201" | "210300" | "210301" | "210302" | "210303" | "210400" | "210401" | "210402" | "210500" | "210501" | "210502" | "210503" | "210504" | "210600" | "210601" | "210602" | "210700" | "210701" | "210800" | "210801" | "220000" | "220100" | "220101" | "220102" | "220103" | "220104" | "220105" | "220106" | "220107" | "220108" | "220109" | "220110" | "220111" | "220200" | "220201" | "220202" | "220203" | "220300" | "220301" | "220302" | "220303" | "220400" | "220401" | "220402" | "220500" | "220501" | "220502" | "220503" | "220600" | "220601" | "220602" | "230000" | "230100" | "230101" | "230200" | "230201" | "230202" | "230203" | "230300" | "230301" | "230400" | "230401" | "230500" | "230501" | "230600" | "230601" | "240000" | "240100" | "240101" | "240102" | "240103" | "240104" | "240105" | "240106" | "240200" | "240201" | "240202" | "240300" | "240301" | "240400" | "240401" | "240402" | "240403" | "240404" | "250000" | "250100" | "250101" | "250102" | "250104" | "250105" | "250106" | "250107" | "250200" | "250201" | "250300" | "250301" | "250302" | "250303" | "250400" | "250401" | "250402" | "250500" | "250501" | "250502" | "250503" | "250504" | "250600" | "250601" | "250602" | "250700" | "250701" | "250702" | "250703" | "250800" | "250801" | "250802" | "250803" | "250900" | "250901" | "251000" | "251001" | "260000" | "260100" | "260101" | "260200" | "260201" | "260300" | "260301" | "270000" | "270100" | "270101" | "270102" | "270103" | "270104" | "270200" | "270201" | "270202" | "270203" | "270204" | "270205" | "270300" | "270301" | "270302" | "270303" | "270304" | "280000" | "280100" | "280101" | "280102" | "280103" | "280104" | "280105" | "280106" | "280200" | "280201" | "280300" | "280301" | "280302" | "280303" | "290000" | "290100" | "290101" | "290102" | "290103" | "290104" | "290200" | "290201" | "290300" | "290301" | "290302" | "290303" | "290400" | "290402" | "290403" | "290500" | "290501" | "300000" | "300100" | "300101" | "300102" | "300103" | "300104" | "300200" | "300201" | "300202" | "300300" | "300301" | "310000" | "310100" | "310101" | "310102" | "310103" | "310104" | "310105" | "310200" | "310201" | "310300" | "310301" | "320000" | "320100" | "320101" | "320102" | "320200" | "320201" | "320300" | "320301" | "320302" | "320400" | "320401" | "320402" | "320500" | "320501" | "320502" | "320600" | "320601" | "320602" | "320603" | "320700" | "320701" | "320702" | "320703"; }; export type UserAccountIdentity = { created_at: string; display_name: string; email: IdentityEmailSchema; id: string; }; export type UserAccountResource = { memberships: Array; schema: UserAccountResourceSchema; user_account: UserAccountIdentity; }; export type UserAccountResourceSchema = "timbro.user-account.v1"; export type VercelInstallationCompletionResource = { organization_id: string; schema: VercelInstallationCompletionResourceSchema; source_provider_authorization: SourceProviderAuthorization; }; export type VercelInstallationCompletionResourceSchema = "timbro.vercel-installation-completion.v1"; export type VercelInstallationRequest = { authorization_url: string; expires_at: string; id: string; }; export type VercelInstallationRequestResource = { installation_request: VercelInstallationRequest; schema: VercelInstallationRequestResourceSchema; }; export type VercelInstallationRequestResourceSchema = "timbro.vercel-installation-request.v1"; export type VercelProject = { id: string; name: string; }; export type VercelProjectListResource = { next_cursor: string | null; projects: Array; schema: VercelProjectListResourceSchema; }; export type VercelProjectListResourceSchema = "timbro.vercel-project-list.v1"; export type VercelProjectQualification = { id: string; name: string; qualified_production_origins: Array; }; export type VercelProjectQualificationResource = { project: VercelProjectQualification; schema: VercelProjectQualificationResourceSchema; }; export type VercelProjectQualificationResourceSchema = "timbro.vercel-project-qualification.v1"; export type VerificationStatus = "verified" | "unverified"; export type WebhookDelivery = { attempt_count: number; attempts: Array; event: WebhookEventEnvelope; id: string; last_http_status: number | null; last_result_code: null | WebhookDeliveryResultCode; next_attempt_at: string; occurred_at: string; settled_at: string | null; state: WebhookDeliveryState; webhook_endpoint_id: string; webhook_event_id: string; webhook_replay_id: string | null; }; export type WebhookDeliveryAttempt = { fence_token: LedgerCounter; outcome: "in_flight"; sequence: number; started_at: string; } | { completed_at: string; fence_token: LedgerCounter; http_status: number; outcome: "delivered"; sequence: number; started_at: string; } | { completed_at: string; fence_token: LedgerCounter; http_status: number | null; outcome: "failed"; result_code: WebhookDeliveryFailureResultCode; sequence: number; started_at: string; } | { completed_at: string; fence_token: LedgerCounter; outcome: "outcome_unknown"; sequence: number; started_at: string; }; export type WebhookDeliveryFailureResultCode = "delivery_timed_out" | "destination_resolution_failed" | "receiver_connection_failed" | "receiver_redirected" | "receiver_rejected" | "receiver_unavailable" | "endpoint_suspended" | "endpoint_deleted" | "attempt_budget_exhausted" | "delivery_deadline_exceeded"; export type WebhookDeliveryList = { schema: WebhookDeliveryResourceSchema; webhook_deliveries: Array; }; export type WebhookDeliveryResourceSchema = "timbro.webhook-delivery.v2"; export type WebhookDeliveryResultCode = "delivered" | "delivery_timed_out" | "destination_resolution_failed" | "receiver_connection_failed" | "receiver_redirected" | "receiver_rejected" | "receiver_unavailable" | "delivery_outcome_unknown" | "endpoint_suspended" | "endpoint_deleted" | "attempt_budget_exhausted" | "delivery_deadline_exceeded"; export type WebhookDeliveryState = "pending" | "in_flight" | "delivered" | "dead_lettered"; export type WebhookEventEnvelope = { data: { fiscal_operation_id: string; terminality: FiscalOperationTerminalTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.rejected"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; stage: FiscalOperationProcessingStage; terminality: FiscalOperationPendingTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.processing"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; terminality: FiscalOperationPendingTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.submission_outcome_unknown"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; terminality: FiscalOperationTerminalTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.authority_accepted"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; terminality: FiscalOperationTerminalTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.authority_accepted_with_findings"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; terminality: FiscalOperationOperatorRequiredTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.authority_rejected"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_identity: FiscalIdentityResource; fiscal_operation_id: string; terminality: FiscalOperationOperatorRequiredTerminality; }; environment: FiscalEnvironment; event_type: "fiscal_operation.intervention_required"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_operation_id: string; fiscal_operation_outcome: FiscalOperationOutcomeResource; }; environment: FiscalEnvironment; event_type: "fiscal_operation.commercially_accepted"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { fiscal_operation_id: string; fiscal_operation_outcome: FiscalOperationOutcomeResource; }; environment: FiscalEnvironment; event_type: "fiscal_operation.commercially_rejected"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; } | { data: { activation_attempt_id: string; challenge: string; expires_at: string; provider_deployment_id: string; provider_target_id: string; }; environment: FiscalEnvironment; event_type: "source_connection.verification_requested"; occurred_at: string; organization_id: string; schema: WebhookEventSchema; sequence: string; source_connection_id: string; webhook_event_id: string; }; export type WebhookEventSchema = "timbro.webhook-event.v4"; export type WebhookReplayResource = { event_count: number; schema: WebhookReplayResourceSchema; webhook_event_ids: Array; webhook_replay_id: string; }; export type WebhookReplayResourceSchema = "timbro.webhook-replay.v1"; export type WorkspaceAttemptOutcome = "signed" | "failed" | "unavailable" | "automatic_replay_horizon_expired" | "authority_response" | "authentication_failed"; export type WorkspaceDecisionKind = "admission" | "lifecycle"; export type WorkspaceEvidenceAccessActor = { principal_kind: "source_connection"; source_connection_id: string; } | { principal_kind: "user_account"; user_account_id: string; } | { fiscal_delivery_id: string; principal_kind: "fiscal_delivery"; }; export type WorkspaceFiscalOperationList = { is_truncated: boolean; next_cursor: string | null; operations: Array; schema: WorkspaceFiscalOperationListSchema; }; export type WorkspaceFiscalOperationListSchema = "timbro.workspace-fiscal-operation-list.v1"; export type WorkspaceFiscalOperationResource = { commercial_response: null | CommercialResponseProjection; is_truncated: boolean; next_cursor: string | null; operation: FiscalOperationResource; schema: WorkspaceFiscalOperationResourceSchema; timeline: Array; }; export type WorkspaceFiscalOperationResourceSchema = "timbro.workspace-fiscal-operation.v6"; export type WorkspaceFiscalOperationSummary = { action: SourceFiscalAction; created_at: string; environment: FiscalEnvironment; operation_id: string; outcome: FiscalOperationOutcomeResource; source: FiscalOperationSource; updated_at: string; }; export type WorkspaceFiscalTimelineEntry = { attempt_sequence: number | null; entry_id: string; from_state: null | FiscalOperationTransitionState; kind: "transition"; occurred_at: string; result_code: FiscalLifecycleResultCode; sequence: number; to_state: FiscalOperationTransitionState; } | { decision_kind: WorkspaceDecisionKind; entry_id: string; kind: "decision"; protocol: string; recorded_at: string; rules_version: string; } | { decision_id: string; entry_id: string; kind: "lifecycle_event"; ordinal: number; recorded_at: string; result_code: FiscalLifecycleResultCode; } | { claim_expires_at: string | null; claimed_at: string | null; claimed_by: string | null; created_at: string; due_at: string; effect_id: string | null; effect_kind: null | ExternalEffectKind; entry_id: string; expected_revision: number; fence_token: string; kind: "work"; settled_at: string | null; settled_by_decision_id: string | null; state: WorkspaceLifecycleWorkState; work_id: string; work_kind: WorkspaceLifecycleWorkKind; } | { capability: WorkspaceLifecycleCapability; effect_id: string; effect_kind: ExternalEffectKind; effect_replay_retention_seconds: number | null; entry_id: string; fence_token: string; kind: "attempt"; observation_sha256: string | null; observed_at: string | null; outcome: null | WorkspaceAttemptOutcome; sequence: number; started_at: string; work_id: string; } | { artifact_kind: FiscalArtifactKind; byte_length: number; certificate_sha256: string | null; content_sha256: string; created_at: string; entry_id: string; kind: "artifact"; media_type: FiscalArtifactMediaType; } | { artifact_byte_length: number; artifact_kind: DocumentSchemaArtifactKind; artifact_sha256: string; diagnostic_code: null | SchemaValidationDiagnosticCode; diagnostic_path: string | null; entry_id: string; kind: "evidence"; outcome: SchemaValidationOutcome; recorded_at: string; schema_manifest_sha256: string; stage: SchemaValidationStage; validation_root_sha256: string; } | { actor: WorkspaceEvidenceAccessActor; artifact_id: string; artifact_kind: FiscalArtifactKind; content_sha256: string; entry_id: string; kind: "evidence_access"; occurred_at: string; purpose: EvidenceAccessPurpose; result_code: EvidenceAccessResultCode; }; export type WorkspaceLifecycleCapability = "custody_sign" | "authority_submission" | "authority_inquiry" | "authority_poll"; export type WorkspaceLifecycleWorkKind = "advance" | "external_effect"; export type WorkspaceLifecycleWorkState = "pending" | "claimed" | "settled"; export type HealthLiveData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/health/live"; }; export type HealthLiveResponses = { /** * The stamp server process is live. */ 200: HealthResponse; }; export type HealthLiveResponse = HealthLiveResponses[keyof HealthLiveResponses]; export type HealthReadyData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/health/ready"; }; export type HealthReadyErrors = { /** * The stamp server is draining or unavailable. */ 503: HealthResponse; }; export type HealthReadyError = HealthReadyErrors[keyof HealthReadyErrors]; export type HealthReadyResponses = { /** * The stamp server is ready to serve requests. */ 200: HealthResponse; }; export type HealthReadyResponse = HealthReadyResponses[keyof HealthReadyResponses]; export type ReadCertificateCustodyReadinessData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/v1/certificate-custody/readiness"; }; export type ReadCertificateCustodyReadinessErrors = { /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Fiscal operation. */ 403: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadCertificateCustodyReadinessError = ReadCertificateCustodyReadinessErrors[keyof ReadCertificateCustodyReadinessErrors]; export type ReadCertificateCustodyReadinessResponses = { /** * The authenticated tenant's certificate-custody readiness resource. */ 200: CertificateCustodyReadiness; }; export type ReadCertificateCustodyReadinessResponse = ReadCertificateCustodyReadinessResponses[keyof ReadCertificateCustodyReadinessResponses]; export type ReadElectronicFiscalDocumentEligibilityData = { body?: never | undefined; path?: never | undefined; query: { /** * Whether the Legal issuer is the seller or the purchaser. */ direction: FiscalIssuanceDirection; /** * Counterparty class that selects the legal e-CF type set. */ counterparty_class: FiscalCounterpartyClass; }; url: "/v1/electronic-fiscal-document-eligibility"; }; export type ReadElectronicFiscalDocumentEligibilityErrors = { /** * The query failed the contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to evaluate this numbering task for the bound issuer. */ 403: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadElectronicFiscalDocumentEligibilityError = ReadElectronicFiscalDocumentEligibilityErrors[keyof ReadElectronicFiscalDocumentEligibilityErrors]; export type ReadElectronicFiscalDocumentEligibilityResponses = { /** * The e-CF types legal for the direction and counterparty class. */ 200: ElectronicFiscalDocumentEligibilityResource; }; export type ReadElectronicFiscalDocumentEligibilityResponse = ReadElectronicFiscalDocumentEligibilityResponses[keyof ReadElectronicFiscalDocumentEligibilityResponses]; export type CreateFiscalDeliveryData = { body: CreateFiscalDeliveryRequest; path?: never | undefined; query?: never | undefined; url: "/v1/fiscal-deliveries"; }; export type CreateFiscalDeliveryErrors = { /** * The source, recipient, or Idempotency-Key failed validation. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to manage Fiscal delivery for the bound operation. */ 403: ProblemBody; /** * The source Fiscal operation is not visible to this credential. */ 404: ProblemBody; /** * The Idempotency-Key conflicts with an existing request. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type CreateFiscalDeliveryError = CreateFiscalDeliveryErrors[keyof CreateFiscalDeliveryErrors]; export type CreateFiscalDeliveryResponses = { /** * The idempotent Fiscal email delivery replay. */ 200: FiscalDeliveryResource; /** * A new durable Fiscal email delivery request. */ 201: FiscalDeliveryResource; }; export type CreateFiscalDeliveryResponse = CreateFiscalDeliveryResponses[keyof CreateFiscalDeliveryResponses]; export type RetrieveFiscalDeliveryPrintedRepresentationData = { body?: never | undefined; path: { /** * An unguessable Timbro-hosted delivery capability. */ token: string; }; query?: never | undefined; url: "/v1/fiscal-deliveries/access/{token}/printed-representation"; }; export type RetrieveFiscalDeliveryPrintedRepresentationErrors = { /** * The delivery capability or printed representation is not visible. */ 404: ProblemBody; /** * The printed representation failed integrity verification. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The retained PDF is temporarily unavailable. */ 503: ProblemBody; }; export type RetrieveFiscalDeliveryPrintedRepresentationError = RetrieveFiscalDeliveryPrintedRepresentationErrors[keyof RetrieveFiscalDeliveryPrintedRepresentationErrors]; export type RetrieveFiscalDeliveryPrintedRepresentationResponses = { /** * The verified retained printed representation PDF. */ 200: Uint8Array; }; export type RetrieveFiscalDeliveryPrintedRepresentationResponse = RetrieveFiscalDeliveryPrintedRepresentationResponses[keyof RetrieveFiscalDeliveryPrintedRepresentationResponses]; export type RetrieveFiscalDeliveryData = { body?: never | undefined; path: { /** * The Fiscal delivery identity. */ fiscal_delivery_id: string; }; query?: never | undefined; url: "/v1/fiscal-deliveries/{fiscal_delivery_id}"; }; export type RetrieveFiscalDeliveryErrors = { /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Fiscal delivery. */ 403: ProblemBody; /** * No Fiscal delivery with that identity is visible to this credential. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RetrieveFiscalDeliveryError = RetrieveFiscalDeliveryErrors[keyof RetrieveFiscalDeliveryErrors]; export type RetrieveFiscalDeliveryResponses = { /** * The tenant-scoped Fiscal delivery state. */ 200: FiscalDeliveryResource; }; export type RetrieveFiscalDeliveryResponse = RetrieveFiscalDeliveryResponses[keyof RetrieveFiscalDeliveryResponses]; export type AdmitFiscalIntentData = { /** * One Fiscal intent and the numbering instruction that admits it. */ body: FiscalAdmissionPayload; headers: { /** * 16 to 255 characters from [A-Za-z0-9._:-]. */ "idempotency-key": string; }; path?: never | undefined; query?: never | undefined; url: "/v1/fiscal-intent-admissions"; }; export type AdmitFiscalIntentErrors = { /** * The request, idempotency key, or body failed the contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to submit this Fiscal task for the bound issuer. */ 403: ProblemBody; /** * The request body exceeded its idle interval or total body-read deadline. */ 408: ProblemBody; /** * The idempotency or fiscal-document identity conflicts. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The Fiscal intent was rejected or its document type is not admitted. */ 422: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * No healthy certificate custody binding backs the Legal issuer. */ 503: ProblemBody; }; export type AdmitFiscalIntentError = AdmitFiscalIntentErrors[keyof AdmitFiscalIntentErrors]; export type AdmitFiscalIntentResponses = { /** * The Fiscal intent was retained as a rejected Fiscal operation. */ 200: FiscalOperationResource; /** * The Fiscal intent was admitted and a Fiscal operation exists. */ 202: FiscalOperationResource; }; export type AdmitFiscalIntentResponse = AdmitFiscalIntentResponses[keyof AdmitFiscalIntentResponses]; export type CreateFiscalOperationData = { /** * One immutable Source sales or correction command admitted under the authenticated enrollment. */ body: SourceFiscalOperationRequest; headers: { /** * 16 to 255 characters from [A-Za-z0-9._:-]. */ "idempotency-key": string; }; path?: never | undefined; query?: never | undefined; url: "/v1/fiscal-operations"; }; export type CreateFiscalOperationErrors = { /** * The request or commercial document failed the closed contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The credential lacks fiscal submission authority. */ 403: ProblemBody; /** * The request body exceeded its read deadline. */ 408: ProblemBody; /** * The idempotency or source-revision identity conflicts. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The derived Fiscal intent was rejected. */ 422: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * Required issuer custody or issuance authority is unavailable. */ 503: ProblemBody; }; export type CreateFiscalOperationError = CreateFiscalOperationErrors[keyof CreateFiscalOperationErrors]; export type CreateFiscalOperationResponses = { /** * The source revision was retained as a rejected Fiscal operation. */ 200: FiscalOperationResource; /** * The source revision was admitted and a Fiscal operation exists. */ 202: FiscalOperationResource; }; export type CreateFiscalOperationResponse = CreateFiscalOperationResponses[keyof CreateFiscalOperationResponses]; export type FindFiscalOperationBySourceData = { body?: never | undefined; path: { /** * The source system's immutable record identity. */ source_record_id: string; /** * The immutable source revision. */ source_revision: number; }; query?: never | undefined; url: "/v1/fiscal-operations/by-source/{source_record_id}/revisions/{source_revision}"; }; export type FindFiscalOperationBySourceErrors = { /** * The source identity or revision failed the public contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Fiscal artifact. */ 403: ProblemBody; /** * No Fiscal operation with that source revision is visible to this credential. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type FindFiscalOperationBySourceError = FindFiscalOperationBySourceErrors[keyof FindFiscalOperationBySourceErrors]; export type FindFiscalOperationBySourceResponses = { /** * The Fiscal operation currently bound to the source revision. */ 200: FiscalOperationResource; }; export type FindFiscalOperationBySourceResponse = FindFiscalOperationBySourceResponses[keyof FindFiscalOperationBySourceResponses]; export type FindFiscalOperationData = { body?: never | undefined; path: { /** * The Fiscal operation identity returned by admission. */ operation_id: string; }; query?: never | undefined; url: "/v1/fiscal-operations/{operation_id}"; }; export type FindFiscalOperationErrors = { /** * The Fiscal operation id is not a UUID. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Fiscal operation. */ 403: ProblemBody; /** * No Fiscal operation with that id exists for this Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type FindFiscalOperationError = FindFiscalOperationErrors[keyof FindFiscalOperationErrors]; export type FindFiscalOperationResponses = { /** * The Fiscal operation as it currently stands. */ 200: FiscalOperationResource; }; export type FindFiscalOperationResponse = FindFiscalOperationResponses[keyof FindFiscalOperationResponses]; export type FindFiscalArtifactData = { body?: never | undefined; path: { /** * The Fiscal operation the artifact was retained for. */ operation_id: string; /** * One retained fiscal artifact kind addressable on the artifact route. */ artifact_kind: "unsigned_complete_document" | "signed_complete_document" | "unsigned_consumer_summary" | "signed_consumer_summary" | "printed_representation"; }; query?: never | undefined; url: "/v1/fiscal-operations/{operation_id}/artifacts/{artifact_kind}"; }; export type FindFiscalArtifactErrors = { /** * The Fiscal operation id or artifact kind failed the contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Fiscal operation. */ 403: ProblemBody; /** * The Fiscal operation holds no artifact of that kind. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type FindFiscalArtifactError = FindFiscalArtifactErrors[keyof FindFiscalArtifactErrors]; export type FindFiscalArtifactResponses = { /** * The exact retained artifact bytes and their integrity headers. */ 200: FiscalArtifactBytes; }; export type FindFiscalArtifactResponse = FindFiscalArtifactResponses[keyof FindFiscalArtifactResponses]; export type AcceptInvitationData = { body: AcceptInvitationRequest; path?: never | undefined; query?: never | undefined; url: "/v1/invitations/accept"; }; export type AcceptInvitationErrors = { /** * The request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * No open invitation matches that token. */ 404: ProblemBody; /** * The account already belongs to that Organization. */ 409: ProblemBody; /** * The invitation expired. */ 410: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type AcceptInvitationError = AcceptInvitationErrors[keyof AcceptInvitationErrors]; export type AcceptInvitationResponses = { /** * The signed-in account holds the invited membership. */ 200: MembershipAcceptance; }; export type AcceptInvitationResponse = AcceptInvitationResponses[keyof AcceptInvitationResponses]; export type ReadOpenApiDocumentData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/v1/openapi.json"; }; export type ReadOpenApiDocumentResponses = { /** * The reviewed native OpenAPI document. */ 200: unknown; }; export type CreateOrganizationData = { body: CreateOrganizationRequest; path?: never | undefined; query?: never | undefined; url: "/v1/organizations"; }; export type CreateOrganizationErrors = { /** * The request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The slug is taken. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type CreateOrganizationError = CreateOrganizationErrors[keyof CreateOrganizationErrors]; export type CreateOrganizationResponses = { /** * The Organization exists with the caller as administrator. */ 201: OrganizationResource; }; export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses]; export type ReadAuditEventsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/audit-events"; }; export type ReadAuditEventsErrors = { /** * The Organization path is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadAuditEventsError = ReadAuditEventsErrors[keyof ReadAuditEventsErrors]; export type ReadAuditEventsResponses = { /** * The most recent audit events, newest first. */ 200: AuditEventPage; }; export type ReadAuditEventsResponse = ReadAuditEventsResponses[keyof ReadAuditEventsResponses]; export type ListCertificateCustodyBindingsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/certificate-custody/bindings"; }; export type ListCertificateCustodyBindingsErrors = { /** * The Organization path is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListCertificateCustodyBindingsError = ListCertificateCustodyBindingsErrors[keyof ListCertificateCustodyBindingsErrors]; export type ListCertificateCustodyBindingsResponses = { /** * Every non-secret certificate-custody binding in the Organization. */ 200: CertificateCustodyBindingList; }; export type ListCertificateCustodyBindingsResponse = ListCertificateCustodyBindingsResponses[keyof ListCertificateCustodyBindingsResponses]; export type ReadCertificateCustodyBindingData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The certificate-custody binding identity. */ certificate_custody_binding_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}"; }; export type ReadCertificateCustodyBindingErrors = { /** * A path parameter is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member or the binding is not in that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadCertificateCustodyBindingError = ReadCertificateCustodyBindingErrors[keyof ReadCertificateCustodyBindingErrors]; export type ReadCertificateCustodyBindingResponses = { /** * The requested non-secret certificate-custody binding. */ 200: CertificateCustodyBindingResource; }; export type ReadCertificateCustodyBindingResponse = ReadCertificateCustodyBindingResponses[keyof ReadCertificateCustodyBindingResponses]; export type RevokeCertificateCustodyCertificateVersionData = { body: RevokeCertificateCustodyCertificateVersionRequest; path: { /** * The Organization identity. */ organization_id: string; /** * The certificate-custody binding identity. */ certificate_custody_binding_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}/revocations"; }; export type RevokeCertificateCustodyCertificateVersionErrors = { /** * A path parameter or the request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The member is not an Organization administrator. */ 403: ProblemBody; /** * The Organization or binding was not found in the caller's scope. */ 404: ProblemBody; /** * The named certificate version is not the binding's active version. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RevokeCertificateCustodyCertificateVersionError = RevokeCertificateCustodyCertificateVersionErrors[keyof RevokeCertificateCustodyCertificateVersionErrors]; export type RevokeCertificateCustodyCertificateVersionResponses = { /** * The certificate version is revoked and the binding stamps with nothing until a new version is registered. */ 200: CertificateCustodyBindingResource; }; export type RevokeCertificateCustodyCertificateVersionResponse = RevokeCertificateCustodyCertificateVersionResponses[keyof RevokeCertificateCustodyCertificateVersionResponses]; export type CreateCertificateCustodyEnrollmentData = { body: CreateCertificateCustodyEnrollmentRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/certificate-custody/enrollments"; }; export type CreateCertificateCustodyEnrollmentErrors = { /** * The path or request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The member is not an Organization administrator. */ 403: ProblemBody; /** * The Organization or Legal issuer was not found in the caller's scope. */ 404: ProblemBody; /** * The environment is unavailable, a live grant already exists, or the scope already has a binding. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The expected signer identity is invalid. */ 422: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type CreateCertificateCustodyEnrollmentError = CreateCertificateCustodyEnrollmentErrors[keyof CreateCertificateCustodyEnrollmentErrors]; export type CreateCertificateCustodyEnrollmentResponses = { /** * A short-lived single-use certificate-custody enrollment grant. The enrollment code is shown once. */ 201: CertificateCustodyEnrollmentGrant; }; export type CreateCertificateCustodyEnrollmentResponse = CreateCertificateCustodyEnrollmentResponses[keyof CreateCertificateCustodyEnrollmentResponses]; export type InspectFiscalNumberAuthorizationHistoryData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query: { legal_issuer_id: string; environment: FiscalEnvironment; document_type: string; }; url: "/v1/organizations/{organization_id}/fiscal-number-authorizations"; }; export type InspectFiscalNumberAuthorizationHistoryErrors = { /** * The scope query or Organization path failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account, Organization, or Legal issuer does not exist for this caller. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type InspectFiscalNumberAuthorizationHistoryError = InspectFiscalNumberAuthorizationHistoryErrors[keyof InspectFiscalNumberAuthorizationHistoryErrors]; export type InspectFiscalNumberAuthorizationHistoryResponses = { /** * Current authorization heads and every immutable generation in the exact scope. */ 200: FiscalNumberAuthorizationHistoryResource; }; export type InspectFiscalNumberAuthorizationHistoryResponse = InspectFiscalNumberAuthorizationHistoryResponses[keyof InspectFiscalNumberAuthorizationHistoryResponses]; export type RegisterFiscalNumberAuthorizationData = { body: RegisterFiscalNumberAuthorizationRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/fiscal-number-authorizations"; }; export type RegisterFiscalNumberAuthorizationErrors = { /** * The request body or Organization path failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account, Organization, or Legal issuer does not exist for this caller. */ 404: ProblemBody; /** * The expected head changed or the source record carries different content. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RegisterFiscalNumberAuthorizationError = RegisterFiscalNumberAuthorizationErrors[keyof RegisterFiscalNumberAuthorizationErrors]; export type RegisterFiscalNumberAuthorizationResponses = { /** * The source record already produced this exact authorization generation. */ 200: FiscalNumberAuthorizationResource; /** * A new immutable authorization generation is current. */ 201: FiscalNumberAuthorizationResource; }; export type RegisterFiscalNumberAuthorizationResponse = RegisterFiscalNumberAuthorizationResponses[keyof RegisterFiscalNumberAuthorizationResponses]; export type ListOrganizationFiscalOperationsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: { /** * Opaque recent-first keyset cursor. */ cursor?: string | undefined; /** * Maximum summaries, bounded to 50. */ limit?: number | undefined; }; url: "/v1/organizations/{organization_id}/fiscal-operations"; }; export type ListOrganizationFiscalOperationsErrors = { /** * The authenticated path, query, limit, or cursor is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or invalid. */ 401: ProblemBody; /** * The Organization is not visible to this session. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListOrganizationFiscalOperationsError = ListOrganizationFiscalOperationsErrors[keyof ListOrganizationFiscalOperationsErrors]; export type ListOrganizationFiscalOperationsResponses = { /** * Bounded Fiscal-operation summaries for the authenticated Organization member. */ 200: WorkspaceFiscalOperationList; }; export type ListOrganizationFiscalOperationsResponse = ListOrganizationFiscalOperationsResponses[keyof ListOrganizationFiscalOperationsResponses]; export type ReadOrganizationFiscalOperationData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Fiscal operation identity. */ fiscal_operation_id: string; }; query?: { /** * Opaque recent-first timeline keyset cursor. */ cursor?: string | undefined; /** * Maximum timeline entries, bounded to 200. */ limit?: number | undefined; }; url: "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}"; }; export type ReadOrganizationFiscalOperationErrors = { /** * The authenticated path, query, limit, or cursor is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or invalid. */ 401: ProblemBody; /** * The Organization or Fiscal operation is not visible to this session. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadOrganizationFiscalOperationError = ReadOrganizationFiscalOperationErrors[keyof ReadOrganizationFiscalOperationErrors]; export type ReadOrganizationFiscalOperationResponses = { /** * The actor-facing Fiscal-operation projection with Workspace-only response and timeline details. */ 200: WorkspaceFiscalOperationResource; }; export type ReadOrganizationFiscalOperationResponse = ReadOrganizationFiscalOperationResponses[keyof ReadOrganizationFiscalOperationResponses]; export type RetrieveWorkspaceFiscalArtifactData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Fiscal operation identity. */ fiscal_operation_id: string; /** * One retained fiscal artifact kind addressable on the artifact route. */ artifact_kind: "unsigned_complete_document" | "signed_complete_document" | "unsigned_consumer_summary" | "signed_consumer_summary" | "printed_representation"; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}/artifacts/{artifact_kind}"; }; export type RetrieveWorkspaceFiscalArtifactErrors = { /** * The artifact path failed the public contract after authentication. */ 400: ProblemBody; /** * The Workspace session is missing or invalid. */ 401: ProblemBody; /** * The Organization, operation, or artifact is not visible to this session. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The retained artifact vault is unavailable. */ 503: ProblemBody; }; export type RetrieveWorkspaceFiscalArtifactError = RetrieveWorkspaceFiscalArtifactErrors[keyof RetrieveWorkspaceFiscalArtifactErrors]; export type RetrieveWorkspaceFiscalArtifactResponses = { /** * Verified retained Fiscal artifact bytes. */ 200: FiscalArtifactBytes; }; export type RetrieveWorkspaceFiscalArtifactResponse = RetrieveWorkspaceFiscalArtifactResponses[keyof RetrieveWorkspaceFiscalArtifactResponses]; export type ListInvitationsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/invitations"; }; export type ListInvitationsErrors = { /** * The Organization path is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListInvitationsError = ListInvitationsErrors[keyof ListInvitationsErrors]; export type ListInvitationsResponses = { /** * Every invitation with its derived status. */ 200: InvitationList; }; export type ListInvitationsResponse = ListInvitationsResponses[keyof ListInvitationsResponses]; export type InviteMemberData = { body: InviteMemberRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/invitations"; }; export type InviteMemberErrors = { /** * The request body or Organization path failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type InviteMemberError = InviteMemberErrors[keyof InviteMemberErrors]; export type InviteMemberResponses = { /** * The invitation exists and carries its one-time token. */ 201: InvitationGrant; }; export type InviteMemberResponse = InviteMemberResponses[keyof InviteMemberResponses]; export type ListLegalIssuersData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/legal-issuers"; }; export type ListLegalIssuersErrors = { /** * The Organization path is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListLegalIssuersError = ListLegalIssuersErrors[keyof ListLegalIssuersErrors]; export type ListLegalIssuersResponses = { /** * Every Legal issuer the Organization owns. */ 200: LegalIssuerList; }; export type ListLegalIssuersResponse = ListLegalIssuersResponses[keyof ListLegalIssuersResponses]; export type RegisterLegalIssuerData = { body: RegisterLegalIssuerRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/legal-issuers"; }; export type RegisterLegalIssuerErrors = { /** * The request body or Organization path failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The taxpayer registry number is already registered. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The taxpayer registry number is not 9 or 11 digits. */ 422: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RegisterLegalIssuerError = RegisterLegalIssuerErrors[keyof RegisterLegalIssuerErrors]; export type RegisterLegalIssuerResponses = { /** * The Legal issuer belongs to the Organization. */ 201: LegalIssuerResource; }; export type RegisterLegalIssuerResponse = RegisterLegalIssuerResponses[keyof RegisterLegalIssuerResponses]; export type ReadOnboardingReadinessData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/onboarding"; }; export type ReadOnboardingReadinessErrors = { /** * The Organization path is not a valid UUID. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadOnboardingReadinessError = ReadOnboardingReadinessErrors[keyof ReadOnboardingReadinessErrors]; export type ReadOnboardingReadinessResponses = { /** * The readiness graph as it currently stands. */ 200: OnboardingReadiness; }; export type ReadOnboardingReadinessResponse = ReadOnboardingReadinessResponses[keyof ReadOnboardingReadinessResponses]; export type ListReceivedDocumentsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: { /** * Opaque recent-first keyset cursor. */ cursor?: string | undefined; /** * Maximum received documents, bounded to 50. */ limit?: number | undefined; }; url: "/v1/organizations/{organization_id}/received-documents"; }; export type ListReceivedDocumentsErrors = { /** * The authenticated path, query, or cursor is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The Organization is not visible to this session. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListReceivedDocumentsError = ListReceivedDocumentsErrors[keyof ListReceivedDocumentsErrors]; export type ListReceivedDocumentsResponses = { /** * A page of received documents, most recent first. */ 200: ReceivedDocumentList; }; export type ListReceivedDocumentsResponse = ListReceivedDocumentsResponses[keyof ListReceivedDocumentsResponses]; export type ReadReceivedDocumentData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The received document identity. */ fiscal_reception_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}"; }; export type ReadReceivedDocumentErrors = { /** * The authenticated path is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The Organization or received document is not visible to this session. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadReceivedDocumentError = ReadReceivedDocumentErrors[keyof ReadReceivedDocumentErrors]; export type ReadReceivedDocumentResponses = { /** * The received document and its commercial-response state. */ 200: ReceivedDocumentResource; }; export type ReadReceivedDocumentResponse = ReadReceivedDocumentResponses[keyof ReadReceivedDocumentResponses]; export type RecordCommercialResponseData = { body: CommercialResponse; path: { /** * The Organization identity. */ organization_id: string; /** * The received document identity. */ fiscal_reception_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}/commercial-response"; }; export type RecordCommercialResponseErrors = { /** * The path or a rejection motive failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The member is not an Organization administrator. */ 403: ProblemBody; /** * The Organization or reviewable received document is not visible to this session. */ 404: ProblemBody; /** * A different decision or motive was already recorded. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RecordCommercialResponseError = RecordCommercialResponseErrors[keyof RecordCommercialResponseErrors]; export type RecordCommercialResponseResponses = { /** * The recorded commercial response, new or replayed. */ 200: ReceivedDocumentResource; }; export type RecordCommercialResponseResponse = RecordCommercialResponseResponses[keyof RecordCommercialResponseResponses]; export type DeclareReceptionMountData = { body: DeclareReceptionMountRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/reception-mounts"; }; export type DeclareReceptionMountErrors = { /** * The path or request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The member is not an Organization administrator. */ 403: ProblemBody; /** * The Organization or Legal issuer was not found in the caller's scope. */ 404: ProblemBody; /** * The environment is unavailable. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type DeclareReceptionMountError = DeclareReceptionMountErrors[keyof DeclareReceptionMountErrors]; export type DeclareReceptionMountResponses = { /** * The reception mount and the peer services it declares. */ 200: ReceptionMountResource; }; export type DeclareReceptionMountResponse = DeclareReceptionMountResponses[keyof DeclareReceptionMountResponses]; export type ListSourceConnectionsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-connections"; }; export type ListSourceConnectionsErrors = { /** * The Organization path identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListSourceConnectionsError = ListSourceConnectionsErrors[keyof ListSourceConnectionsErrors]; export type ListSourceConnectionsResponses = { /** * Every Source connection owned by the Organization. */ 200: SourceConnectionListResource; }; export type ListSourceConnectionsResponse = ListSourceConnectionsResponses[keyof ListSourceConnectionsResponses]; export type CreateSourceConnectionData = { body: CreateSourceConnectionRequest; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-connections"; }; export type CreateSourceConnectionErrors = { /** * The target or request body failed the contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The issuer or authorization is not visible to the Organization. */ 404: ProblemBody; /** * The provider authorization requires action or the target is already bound to a different Source connection request. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The provider cannot currently validate the target. */ 503: ProblemBody; }; export type CreateSourceConnectionError = CreateSourceConnectionErrors[keyof CreateSourceConnectionErrors]; export type CreateSourceConnectionResponses = { /** * The existing stable Source connection identity for an exact creation replay. */ 200: SourceConnectionResource; /** * The newly created stable Source connection identity and its explicit lifecycle. */ 201: SourceConnectionResource; }; export type CreateSourceConnectionResponse = CreateSourceConnectionResponses[keyof CreateSourceConnectionResponses]; export type ReadSourceConnectionData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Source connection identity. */ source_connection_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-connections/{source_connection_id}"; }; export type ReadSourceConnectionErrors = { /** * A path identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The Source connection is not visible to this Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadSourceConnectionError = ReadSourceConnectionErrors[keyof ReadSourceConnectionErrors]; export type ReadSourceConnectionResponses = { /** * The Source connection and its explicit lifecycle. */ 200: SourceConnectionResource; }; export type ReadSourceConnectionResponse = ReadSourceConnectionResponses[keyof ReadSourceConnectionResponses]; export type RecoverSourceConnectionActivationData = { body?: never | undefined; headers: { /** * A stable activation-recovery identity containing only ASCII letters, digits, dot, underscore, colon, and hyphen. */ "Idempotency-Key": string; }; path: { /** * The Organization identity. */ organization_id: string; /** * The Source connection identity. */ source_connection_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-connections/{source_connection_id}/activation-recovery"; }; export type RecoverSourceConnectionActivationErrors = { /** * The Idempotency-Key failed the activation-recovery contract. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The Source connection or its current provider authorization is not visible to the Organization. */ 404: ProblemBody; /** * Activation recovery is not permitted by the current Source connection lifecycle. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The provider cannot currently revalidate the retained target. */ 503: ProblemBody; }; export type RecoverSourceConnectionActivationError = RecoverSourceConnectionActivationErrors[keyof RecoverSourceConnectionActivationErrors]; export type RecoverSourceConnectionActivationResponses = { /** * The Source connection for an exact activation-recovery replay. */ 200: SourceConnectionResource; /** * The Source connection accepted a new durable activation recovery. */ 202: SourceConnectionResource; }; export type RecoverSourceConnectionActivationResponse = RecoverSourceConnectionActivationResponses[keyof RecoverSourceConnectionActivationResponses]; export type ListSourceProviderAuthorizationsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-provider-authorizations"; }; export type ListSourceProviderAuthorizationsErrors = { /** * The Organization path identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListSourceProviderAuthorizationsError = ListSourceProviderAuthorizationsErrors[keyof ListSourceProviderAuthorizationsErrors]; export type ListSourceProviderAuthorizationsResponses = { /** * Every Source provider authorization owned by the Organization. */ 200: SourceProviderAuthorizationListResource; }; export type ListSourceProviderAuthorizationsResponse = ListSourceProviderAuthorizationsResponses[keyof ListSourceProviderAuthorizationsResponses]; export type BeginVercelSourceProviderInstallationData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-provider-authorizations/vercel/installation-requests"; }; export type BeginVercelSourceProviderInstallationErrors = { /** * The Organization path identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The account is not a member of that Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The Vercel Source provider adapter is unavailable. */ 503: ProblemBody; }; export type BeginVercelSourceProviderInstallationError = BeginVercelSourceProviderInstallationErrors[keyof BeginVercelSourceProviderInstallationErrors]; export type BeginVercelSourceProviderInstallationResponses = { /** * A short-lived, user-bound Vercel installation request. */ 201: VercelInstallationRequestResource; }; export type BeginVercelSourceProviderInstallationResponse = BeginVercelSourceProviderInstallationResponses[keyof BeginVercelSourceProviderInstallationResponses]; export type ReadSourceProviderAuthorizationData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Source provider authorization identity. */ source_provider_authorization_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}"; }; export type ReadSourceProviderAuthorizationErrors = { /** * A path identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The authorization is not visible to this Organization. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadSourceProviderAuthorizationError = ReadSourceProviderAuthorizationErrors[keyof ReadSourceProviderAuthorizationErrors]; export type ReadSourceProviderAuthorizationResponses = { /** * The Source provider authorization. */ 200: SourceProviderAuthorizationResource; }; export type ReadSourceProviderAuthorizationResponse = ReadSourceProviderAuthorizationResponses[keyof ReadSourceProviderAuthorizationResponses]; export type ListAuthorizedVercelProjectsData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Source provider authorization identity. */ source_provider_authorization_id: string; }; query?: { cursor?: string | undefined; }; url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects"; }; export type ListAuthorizedVercelProjectsErrors = { /** * A path identity or cursor is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * Administrator access is required to use provider authority. */ 403: ProblemBody; /** * The authorization is not visible to this Organization. */ 404: ProblemBody; /** * The provider authorization requires administrator action. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The provider cannot currently answer. */ 503: ProblemBody; }; export type ListAuthorizedVercelProjectsError = ListAuthorizedVercelProjectsErrors[keyof ListAuthorizedVercelProjectsErrors]; export type ListAuthorizedVercelProjectsResponses = { /** * One bounded provider project page. */ 200: VercelProjectListResource; }; export type ListAuthorizedVercelProjectsResponse = ListAuthorizedVercelProjectsResponses[keyof ListAuthorizedVercelProjectsResponses]; export type ReadAuthorizedVercelProjectQualificationData = { body?: never | undefined; path: { /** * The Organization identity. */ organization_id: string; /** * The Source provider authorization identity. */ source_provider_authorization_id: string; /** * The Vercel project identity. */ provider_target_id: string; }; query?: never | undefined; url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects/{provider_target_id}/qualification"; }; export type ReadAuthorizedVercelProjectQualificationErrors = { /** * The provider target identity is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * Administrator access is required to use provider authority. */ 403: ProblemBody; /** * The authorization is not visible to this Organization. */ 404: ProblemBody; /** * The provider authorization or selected target requires administrator action. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The provider cannot currently answer. */ 503: ProblemBody; }; export type ReadAuthorizedVercelProjectQualificationError = ReadAuthorizedVercelProjectQualificationErrors[keyof ReadAuthorizedVercelProjectQualificationErrors]; export type ReadAuthorizedVercelProjectQualificationResponses = { /** * The selected project and its qualified production origins. */ 200: VercelProjectQualificationResource; }; export type ReadAuthorizedVercelProjectQualificationResponse = ReadAuthorizedVercelProjectQualificationResponses[keyof ReadAuthorizedVercelProjectQualificationResponses]; export type CompleteSourceConnectionActivationVerificationData = { body: CompleteActivationVerificationRequest; path: { /** * The Source connection identity carried by the signed verification event. */ source_connection_id: string; }; query?: never | undefined; url: "/v1/source-connections/{source_connection_id}/activation-verifications"; }; export type CompleteSourceConnectionActivationVerificationErrors = { /** * The verification request failed the closed contract. */ 400: ProblemBody; /** * The pending Source connection credential is missing or invalid. */ 401: ProblemBody; /** * The activation verification was rejected and retained. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The Source provider adapter is unavailable. */ 503: ProblemBody; }; export type CompleteSourceConnectionActivationVerificationError = CompleteSourceConnectionActivationVerificationErrors[keyof CompleteSourceConnectionActivationVerificationErrors]; export type CompleteSourceConnectionActivationVerificationResponses = { /** * The deployed pending credential and release identity were verified. */ 204: void; }; export type CompleteSourceConnectionActivationVerificationResponse = CompleteSourceConnectionActivationVerificationResponses[keyof CompleteSourceConnectionActivationVerificationResponses]; export type CompleteVercelSourceProviderInstallationData = { body: CompleteVercelInstallationRequest; path?: never | undefined; query?: never | undefined; url: "/v1/source-provider-authorizations/vercel/installation-completions"; }; export type CompleteVercelSourceProviderInstallationErrors = { /** * The callback request or one-time state is invalid. */ 400: ProblemBody; /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The membership is not an administrator. */ 403: ProblemBody; /** * The callback was replayed or the Vercel account belongs to another Organization. */ 409: ProblemBody; /** * The one-time state expired. */ 410: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; /** * The provider outcome is unavailable or possibly submitted. */ 503: ProblemBody; }; export type CompleteVercelSourceProviderInstallationError = CompleteVercelSourceProviderInstallationErrors[keyof CompleteVercelSourceProviderInstallationErrors]; export type CompleteVercelSourceProviderInstallationResponses = { /** * The Vercel account authorization and its state-bound Organization are retained. */ 200: VercelInstallationCompletionResource; }; export type CompleteVercelSourceProviderInstallationResponse = CompleteVercelSourceProviderInstallationResponses[keyof CompleteVercelSourceProviderInstallationResponses]; export type RegisterUserAccountData = { body: RegisterUserAccountRequest; path?: never | undefined; query?: never | undefined; url: "/v1/user-accounts"; }; export type RegisterUserAccountErrors = { /** * The request body failed the contract. */ 400: ProblemBody; /** * The email is already registered. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type RegisterUserAccountError = RegisterUserAccountErrors[keyof RegisterUserAccountErrors]; export type RegisterUserAccountResponses = { /** * The account exists and the caller holds a Workspace session. */ 201: UserAccountResource; }; export type RegisterUserAccountResponse = RegisterUserAccountResponses[keyof RegisterUserAccountResponses]; export type ReadCurrentUserAccountData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/v1/user-accounts/current"; }; export type ReadCurrentUserAccountErrors = { /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReadCurrentUserAccountError = ReadCurrentUserAccountErrors[keyof ReadCurrentUserAccountErrors]; export type ReadCurrentUserAccountResponses = { /** * The account and every membership it holds. */ 200: UserAccountResource; }; export type ReadCurrentUserAccountResponse = ReadCurrentUserAccountResponses[keyof ReadCurrentUserAccountResponses]; export type ListWebhookDeliveriesData = { body?: never | undefined; path: { /** * The Webhook endpoint identity. */ webhook_endpoint_id: string; }; query?: { state?: WebhookDeliveryState | undefined; limit?: number | undefined; }; url: "/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries"; }; export type ListWebhookDeliveriesErrors = { /** * The endpoint id or delivery query failed the contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to read this Webhook endpoint. */ 403: ProblemBody; /** * No Webhook endpoint with that id exists for the authenticated Source connection. */ 404: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ListWebhookDeliveriesError = ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors]; export type ListWebhookDeliveriesResponses = { /** * The newest matching Webhook deliveries and their durable Attempts. */ 200: WebhookDeliveryList; }; export type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses]; export type ReplayWebhookEventsData = { body: ReplayScope; path: { /** * The Webhook endpoint identity. */ webhook_endpoint_id: string; }; query?: never | undefined; url: "/v1/webhook-endpoints/{webhook_endpoint_id}/replays"; }; export type ReplayWebhookEventsErrors = { /** * The replay scope or Idempotency-Key failed the contract. */ 400: ProblemBody; /** * The Source connection credential is missing, invalid, or revoked. */ 401: ProblemBody; /** * The Source connection is not authorized to manage this Webhook endpoint. */ 403: ProblemBody; /** * A selected Webhook event does not exist in the caller's Organization and Environment. */ 404: ProblemBody; /** * The endpoint is suspended/deleted or the Idempotency-Key conflicts with another request. */ 409: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type ReplayWebhookEventsError = ReplayWebhookEventsErrors[keyof ReplayWebhookEventsErrors]; export type ReplayWebhookEventsResponses = { /** * The Idempotency-Key repeated the same replay request. */ 200: WebhookReplayResource; /** * A durable replay and its selected events were created. */ 201: WebhookReplayResource; }; export type ReplayWebhookEventsResponse = ReplayWebhookEventsResponses[keyof ReplayWebhookEventsResponses]; export type OpenWorkspaceSessionData = { body: OpenWorkspaceSessionRequest; path?: never | undefined; query?: never | undefined; url: "/v1/workspace-sessions"; }; export type OpenWorkspaceSessionErrors = { /** * The request body failed the contract. */ 400: ProblemBody; /** * The email or password is wrong. */ 401: ProblemBody; /** * The native stamp server returned a typed Problem. */ 413: ProblemBody; /** * The native stamp server returned a typed Problem. */ 415: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type OpenWorkspaceSessionError = OpenWorkspaceSessionErrors[keyof OpenWorkspaceSessionErrors]; export type OpenWorkspaceSessionResponses = { /** * The caller holds a Workspace session. */ 200: UserAccountResource; }; export type OpenWorkspaceSessionResponse = OpenWorkspaceSessionResponses[keyof OpenWorkspaceSessionResponses]; export type CloseWorkspaceSessionData = { body?: never | undefined; path?: never | undefined; query?: never | undefined; url: "/v1/workspace-sessions/current"; }; export type CloseWorkspaceSessionErrors = { /** * The Workspace session is missing or expired. */ 401: ProblemBody; /** * The native stamp server returned a typed Problem. */ 500: ProblemBody; }; export type CloseWorkspaceSessionError = CloseWorkspaceSessionErrors[keyof CloseWorkspaceSessionErrors]; export type CloseWorkspaceSessionResponses = { /** * The session no longer exists and the cookie is cleared. */ 204: void; }; export type CloseWorkspaceSessionResponse = CloseWorkspaceSessionResponses[keyof CloseWorkspaceSessionResponses]; //# sourceMappingURL=types.gen.d.ts.map