Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion website/openapi_v2.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13701,7 +13701,22 @@ components:
complement_string:
type: string
description: Original string of the fiscal stamp.
required: [date, sat_signature, sat_cert_number, signature, complement_string]
required: [version, date, sat_signature, sat_cert_number, signature, complement_string]
oneOf:
- type: object
required: [version]
properties:
version:
type: string
enum: ['1.0']
Comment thread
javorosas marked this conversation as resolved.
Resolved
- type: object
required: [version, rfc_provider_cert]
properties:
version:
type: string
enum: ['1.1']
rfc_provider_cert:
type: string
StampProperties:
type: object
description: Information about the digital stamp added by the PAC.
Expand Down
17 changes: 16 additions & 1 deletion website/openapi_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13653,7 +13653,22 @@ components:
complement_string:
type: string
description: Cadena original del timbre fiscal digital.
required: [date, sat_signature, sat_cert_number, signature, complement_string]
required: [version, date, sat_signature, sat_cert_number, signature, complement_string]
oneOf:
- type: object
required: [version]
properties:
version:
type: string
enum: ['1.0']
Comment thread
javorosas marked this conversation as resolved.
Resolved
- type: object
required: [version, rfc_provider_cert]
properties:
version:
type: string
enum: ['1.1']
rfc_provider_cert:
type: string
StampProperties:
type: object
description: Información sobre el timbre fiscal digital agregado por el PAC.
Expand Down
6 changes: 5 additions & 1 deletion website/test/openapi-types.fixture.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const createdInvoiceStamp: components["schemas"]["Stamp"] | null | undefined = c
void createdInvoiceDate;
void createdInvoiceStamp;
if (createdInvoiceResponse.status === 'valid' || createdInvoiceResponse.status === 'canceled') {
const stampedFields: [string, string, string, string, string, string, string | undefined, string | undefined] = [
const stampedFields: [string, string, string, string, string, string, string, string | undefined] = [
createdInvoiceResponse.uuid,
createdInvoiceResponse.stamp.date,
createdInvoiceResponse.stamp.signature,
Expand All @@ -178,6 +178,10 @@ if (createdInvoiceResponse.status === 'valid' || createdInvoiceResponse.status =
createdInvoiceResponse.stamp.legend,
];
void stampedFields;
if (createdInvoiceResponse.stamp.version === '1.1') {
const certifierRfc: string = createdInvoiceResponse.stamp.rfc_provider_cert;
void certifierRfc;
}
}

// A payment summary can be reused directly in a payment complement.
Expand Down
Loading