facturacr 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +7 -0
- data/README.md +181 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bin/signer/signer.jar +0 -0
- data/config/config.yml +10 -0
- data/exe/facturacr +3 -0
- data/facturacr.gemspec +31 -0
- data/lib/facturacr.rb +37 -0
- data/lib/facturacr/api.rb +68 -0
- data/lib/facturacr/api/document_status.rb +36 -0
- data/lib/facturacr/builder.rb +223 -0
- data/lib/facturacr/cli.rb +116 -0
- data/lib/facturacr/cli/generate.rb +133 -0
- data/lib/facturacr/configuration.rb +51 -0
- data/lib/facturacr/credit_note.rb +33 -0
- data/lib/facturacr/debit_note.rb +33 -0
- data/lib/facturacr/document.rb +171 -0
- data/lib/facturacr/document/code.rb +4 -0
- data/lib/facturacr/document/exoneration.rb +49 -0
- data/lib/facturacr/document/fax.rb +24 -0
- data/lib/facturacr/document/identification_document.rb +41 -0
- data/lib/facturacr/document/issuer.rb +56 -0
- data/lib/facturacr/document/item.rb +67 -0
- data/lib/facturacr/document/location.rb +49 -0
- data/lib/facturacr/document/phone.rb +22 -0
- data/lib/facturacr/document/phone_type.rb +37 -0
- data/lib/facturacr/document/receiver.rb +59 -0
- data/lib/facturacr/document/reference.rb +46 -0
- data/lib/facturacr/document/regulation.rb +26 -0
- data/lib/facturacr/document/summary.rb +64 -0
- data/lib/facturacr/document/tax.rb +44 -0
- data/lib/facturacr/invoice.rb +34 -0
- data/lib/facturacr/signed_document.rb +19 -0
- data/lib/facturacr/signer/signer.rb +245 -0
- data/lib/facturacr/ticket.rb +34 -0
- data/lib/facturacr/version.rb +3 -0
- data/lib/facturacr/xml_document.rb +161 -0
- data/resources/FacturaElectronica_V.4.2.xsd +1571 -0
- data/resources/NotaCreditoElectronica_V4.2.xsd +1657 -0
- data/resources/credit_note.xml +86 -0
- data/resources/data.yml +73 -0
- data/resources/debit_note.xml +86 -0
- data/resources/invoice.xml +94 -0
- data/resources/pruebas.xml +37 -0
- data/resources/test.p12 +0 -0
- metadata +235 -0
@@ -0,0 +1,86 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<NotaCreditoElectronica xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<Clave>50601041800310263679500100001030000000111199999999</Clave>
|
4
|
+
<NumeroConsecutivo>00100001030000000111</NumeroConsecutivo>
|
5
|
+
<FechaEmision>2018-04-01T01:00:18-06:00</FechaEmision>
|
6
|
+
<Emisor>
|
7
|
+
<Nombre>EMISOR EJEMPLO</Nombre>
|
8
|
+
<Identificacion>
|
9
|
+
<Tipo>02</Tipo>
|
10
|
+
<Numero>3102123456</Numero>
|
11
|
+
</Identificacion>
|
12
|
+
<Ubicacion>
|
13
|
+
<Provincia>1</Provincia>
|
14
|
+
<Canton>01</Canton>
|
15
|
+
<Distrito>01</Distrito>
|
16
|
+
<OtrasSenas>Direccion</OtrasSenas>
|
17
|
+
</Ubicacion>
|
18
|
+
<Telefono>
|
19
|
+
<CodigoPais>506</CodigoPais>
|
20
|
+
<NumTelefono>22222222</NumTelefono>
|
21
|
+
</Telefono>
|
22
|
+
<CorreoElectronico>email@ejemplo.com</CorreoElectronico>
|
23
|
+
</Emisor>
|
24
|
+
<Receptor>
|
25
|
+
<Nombre>RECEPTOR EJEMPLO</Nombre>
|
26
|
+
<Identificacion>
|
27
|
+
<Tipo>01</Tipo>
|
28
|
+
<Numero>112345678</Numero>
|
29
|
+
</Identificacion>
|
30
|
+
</Receptor>
|
31
|
+
<CondicionVenta>01</CondicionVenta>
|
32
|
+
<MedioPago>01</MedioPago>
|
33
|
+
<DetalleServicio>
|
34
|
+
<LineaDetalle>
|
35
|
+
<NumeroLinea>1</NumeroLinea>
|
36
|
+
<Cantidad>1</Cantidad>
|
37
|
+
<UnidadMedida>Sp</UnidadMedida>
|
38
|
+
<Detalle>Honorarios por servicios profesionales</Detalle>
|
39
|
+
<PrecioUnitario>300</PrecioUnitario>
|
40
|
+
<MontoTotal>300</MontoTotal>
|
41
|
+
<SubTotal>300</SubTotal>
|
42
|
+
<MontoTotalLinea>300</MontoTotalLinea>
|
43
|
+
</LineaDetalle>
|
44
|
+
<LineaDetalle>
|
45
|
+
<NumeroLinea>2</NumeroLinea>
|
46
|
+
<Cantidad>2</Cantidad>
|
47
|
+
<UnidadMedida>Unid</UnidadMedida>
|
48
|
+
<Detalle>Articulo de Venta</Detalle>
|
49
|
+
<PrecioUnitario>50</PrecioUnitario>
|
50
|
+
<MontoTotal>100</MontoTotal>
|
51
|
+
<SubTotal>100</SubTotal>
|
52
|
+
<Impuesto>
|
53
|
+
<Codigo>01</Codigo>
|
54
|
+
<Tarifa>13</Tarifa>
|
55
|
+
<Monto>13</Monto>
|
56
|
+
</Impuesto>
|
57
|
+
<MontoTotalLinea>113</MontoTotalLinea>
|
58
|
+
</LineaDetalle>
|
59
|
+
</DetalleServicio>
|
60
|
+
<ResumenFactura>
|
61
|
+
<CodigoMoneda>USD</CodigoMoneda>
|
62
|
+
<TipoCambio>575</TipoCambio>
|
63
|
+
<TotalServGravados>0.0</TotalServGravados>
|
64
|
+
<TotalServExentos>300.0</TotalServExentos>
|
65
|
+
<TotalMercanciasGravadas>100.0</TotalMercanciasGravadas>
|
66
|
+
<TotalMercanciasExentas>0.0</TotalMercanciasExentas>
|
67
|
+
<TotalGravado>100.0</TotalGravado>
|
68
|
+
<TotalExento>300.0</TotalExento>
|
69
|
+
<TotalVenta>400.0</TotalVenta>
|
70
|
+
<TotalDescuentos>0.0</TotalDescuentos>
|
71
|
+
<TotalVentaNeta>400.0</TotalVentaNeta>
|
72
|
+
<TotalImpuesto>13.0</TotalImpuesto>
|
73
|
+
<TotalComprobante>413.0</TotalComprobante>
|
74
|
+
</ResumenFactura>
|
75
|
+
<InformacionReferencia>
|
76
|
+
<TipoDoc>01</TipoDoc>
|
77
|
+
<Numero>50601041800310263679500100001010000000109199999999</Numero>
|
78
|
+
<FechaEmision>2018-04-01T00:19:27-06:00</FechaEmision>
|
79
|
+
<Codigo>01</Codigo>
|
80
|
+
<Razon>Anula documento</Razon>
|
81
|
+
</InformacionReferencia>
|
82
|
+
<Normativa>
|
83
|
+
<NumeroResolucion>DGT-R-48-2016</NumeroResolucion>
|
84
|
+
<FechaResolucion>20-02-2017 13:22:22</FechaResolucion>
|
85
|
+
</Normativa>
|
86
|
+
</NotaCreditoElectronica>
|
data/resources/data.yml
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
issuer: &ISSUER
|
2
|
+
name: EMISOR EJEMPLO
|
3
|
+
identification_document:
|
4
|
+
type: "02"
|
5
|
+
number: "3102123456"
|
6
|
+
phone:
|
7
|
+
number: "22222222"
|
8
|
+
location:
|
9
|
+
province: "1"
|
10
|
+
county: "01"
|
11
|
+
district: "01"
|
12
|
+
others: "Direccion"
|
13
|
+
email: emisor@email.com
|
14
|
+
|
15
|
+
receiver: &RECEIVER
|
16
|
+
name: "RECEPTOR EJEMPLO"
|
17
|
+
identification_document:
|
18
|
+
type: "01"
|
19
|
+
number: "112345678"
|
20
|
+
|
21
|
+
document:
|
22
|
+
issuer: *ISSUER
|
23
|
+
receiver: *RECEIVER
|
24
|
+
number: 100
|
25
|
+
condition: "01"
|
26
|
+
credit_term: ~
|
27
|
+
items:
|
28
|
+
- line_number: 1
|
29
|
+
quantity: 1
|
30
|
+
unit: Sp
|
31
|
+
description: "Honorarios por servicios profesionales"
|
32
|
+
unit_price: 100
|
33
|
+
total: 100
|
34
|
+
subtotal: 100
|
35
|
+
net_total: 100
|
36
|
+
- line_number: 2
|
37
|
+
quantity: 2
|
38
|
+
unit: Unid
|
39
|
+
description: "Articulo de Venta"
|
40
|
+
unit_price: 50
|
41
|
+
total: 100
|
42
|
+
subtotal: 100
|
43
|
+
net_total: 113
|
44
|
+
taxes:
|
45
|
+
- code: "01"
|
46
|
+
rate: 13
|
47
|
+
total: 13
|
48
|
+
summary:
|
49
|
+
currency: "USD"
|
50
|
+
exchange_rate: 575
|
51
|
+
services_exent_total: 100
|
52
|
+
goods_taxable_total: 100
|
53
|
+
exent_total: 100
|
54
|
+
taxable_total: 100
|
55
|
+
subtotal: 200
|
56
|
+
gross_total: 200
|
57
|
+
tax_total: 13
|
58
|
+
net_total: 213
|
59
|
+
document_situation: "1"
|
60
|
+
security_code: "99999999"
|
61
|
+
references:
|
62
|
+
- code: "01"
|
63
|
+
reason: "Anulacion Documento"
|
64
|
+
document_type: "01"
|
65
|
+
number: "50601011600310112345600100010100000000011999999999"
|
66
|
+
date: "2018-03-31T13:58:57-06:00"
|
67
|
+
credit_note:
|
68
|
+
number: 16
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<NotaDebitoElectronica xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaDebitoElectronica" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<Clave>50601041800310263679500100001020000000001199999999</Clave>
|
4
|
+
<NumeroConsecutivo>00100001020000000001</NumeroConsecutivo>
|
5
|
+
<FechaEmision>2018-04-01T01:10:28-06:00</FechaEmision>
|
6
|
+
<Emisor>
|
7
|
+
<Nombre>EMISOR EJEMPLO</Nombre>
|
8
|
+
<Identificacion>
|
9
|
+
<Tipo>02</Tipo>
|
10
|
+
<Numero>3102123456</Numero>
|
11
|
+
</Identificacion>
|
12
|
+
<Ubicacion>
|
13
|
+
<Provincia>1</Provincia>
|
14
|
+
<Canton>01</Canton>
|
15
|
+
<Distrito>01</Distrito>
|
16
|
+
<OtrasSenas>Direccion</OtrasSenas>
|
17
|
+
</Ubicacion>
|
18
|
+
<Telefono>
|
19
|
+
<CodigoPais>506</CodigoPais>
|
20
|
+
<NumTelefono>22222222</NumTelefono>
|
21
|
+
</Telefono>
|
22
|
+
<CorreoElectronico>email@ejemplo.com</CorreoElectronico>
|
23
|
+
</Emisor>
|
24
|
+
<Receptor>
|
25
|
+
<Nombre>RECEPTOR EJEMPLO</Nombre>
|
26
|
+
<Identificacion>
|
27
|
+
<Tipo>01</Tipo>
|
28
|
+
<Numero>112345678</Numero>
|
29
|
+
</Identificacion>
|
30
|
+
</Receptor>
|
31
|
+
<CondicionVenta>01</CondicionVenta>
|
32
|
+
<MedioPago>01</MedioPago>
|
33
|
+
<DetalleServicio>
|
34
|
+
<LineaDetalle>
|
35
|
+
<NumeroLinea>1</NumeroLinea>
|
36
|
+
<Cantidad>1</Cantidad>
|
37
|
+
<UnidadMedida>Sp</UnidadMedida>
|
38
|
+
<Detalle>Honorarios por servicios profesionales</Detalle>
|
39
|
+
<PrecioUnitario>300</PrecioUnitario>
|
40
|
+
<MontoTotal>300</MontoTotal>
|
41
|
+
<SubTotal>300</SubTotal>
|
42
|
+
<MontoTotalLinea>300</MontoTotalLinea>
|
43
|
+
</LineaDetalle>
|
44
|
+
<LineaDetalle>
|
45
|
+
<NumeroLinea>2</NumeroLinea>
|
46
|
+
<Cantidad>2</Cantidad>
|
47
|
+
<UnidadMedida>Unid</UnidadMedida>
|
48
|
+
<Detalle>Articulo de Venta</Detalle>
|
49
|
+
<PrecioUnitario>50</PrecioUnitario>
|
50
|
+
<MontoTotal>100</MontoTotal>
|
51
|
+
<SubTotal>100</SubTotal>
|
52
|
+
<Impuesto>
|
53
|
+
<Codigo>01</Codigo>
|
54
|
+
<Tarifa>13</Tarifa>
|
55
|
+
<Monto>13</Monto>
|
56
|
+
</Impuesto>
|
57
|
+
<MontoTotalLinea>113</MontoTotalLinea>
|
58
|
+
</LineaDetalle>
|
59
|
+
</DetalleServicio>
|
60
|
+
<ResumenFactura>
|
61
|
+
<CodigoMoneda>USD</CodigoMoneda>
|
62
|
+
<TipoCambio>575</TipoCambio>
|
63
|
+
<TotalServGravados>0.0</TotalServGravados>
|
64
|
+
<TotalServExentos>300.0</TotalServExentos>
|
65
|
+
<TotalMercanciasGravadas>100.0</TotalMercanciasGravadas>
|
66
|
+
<TotalMercanciasExentas>0.0</TotalMercanciasExentas>
|
67
|
+
<TotalGravado>100.0</TotalGravado>
|
68
|
+
<TotalExento>300.0</TotalExento>
|
69
|
+
<TotalVenta>400.0</TotalVenta>
|
70
|
+
<TotalDescuentos>0.0</TotalDescuentos>
|
71
|
+
<TotalVentaNeta>400.0</TotalVentaNeta>
|
72
|
+
<TotalImpuesto>13.0</TotalImpuesto>
|
73
|
+
<TotalComprobante>413.0</TotalComprobante>
|
74
|
+
</ResumenFactura>
|
75
|
+
<InformacionReferencia>
|
76
|
+
<TipoDoc>01</TipoDoc>
|
77
|
+
<Numero>50601041800310263679500100001010000000109199999999</Numero>
|
78
|
+
<FechaEmision>2018-04-01T00:19:27-06:00</FechaEmision>
|
79
|
+
<Codigo>01</Codigo>
|
80
|
+
<Razon>Anula documento</Razon>
|
81
|
+
</InformacionReferencia>
|
82
|
+
<Normativa>
|
83
|
+
<NumeroResolucion>DGT-R-48-2016</NumeroResolucion>
|
84
|
+
<FechaResolucion>20-02-2017 13:22:22</FechaResolucion>
|
85
|
+
</Normativa>
|
86
|
+
</NotaDebitoElectronica>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<FacturaElectronica xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/facturaElectronica" xsi:schemaLocation="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/facturaElectronica https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/facturaElectronica.xsd">
|
3
|
+
<Clave>50606031800310111111100100001010000000001199999999</Clave>
|
4
|
+
<NumeroConsecutivo>00100001010000000001</NumeroConsecutivo>
|
5
|
+
<FechaEmision>2018-03-06T17:50:28-06:00</FechaEmision>
|
6
|
+
<Emisor>
|
7
|
+
<Nombre>EMISOR EJEMPLO</Nombre>
|
8
|
+
<Identificacion>
|
9
|
+
<Tipo>02</Tipo>
|
10
|
+
<Numero>003101111111</Numero>
|
11
|
+
</Identificacion>
|
12
|
+
<Ubicacion>
|
13
|
+
<Provincia>1</Provincia>
|
14
|
+
<Canton>01</Canton>
|
15
|
+
<Distrito>01</Distrito>
|
16
|
+
<OtrasSenas>Direccion</OtrasSenas>
|
17
|
+
</Ubicacion>
|
18
|
+
<Telefono>
|
19
|
+
<CodigoPais>506</CodigoPais>
|
20
|
+
<NumTelefono>22222222</NumTelefono>
|
21
|
+
</Telefono>
|
22
|
+
<Fax>
|
23
|
+
<CodigoPais>506</CodigoPais>
|
24
|
+
<NumTelefono>22222222</NumTelefono>
|
25
|
+
</Fax>
|
26
|
+
<CorreoElectronico>ejemplo@email.com</CorreoElectronico>
|
27
|
+
</Emisor>
|
28
|
+
<Receptor>
|
29
|
+
<Nombre>RECEPTOR EJEMPLO</Nombre>
|
30
|
+
<Identificacion>
|
31
|
+
<Tipo>01</Tipo>
|
32
|
+
<Numero>000011111111</Numero>
|
33
|
+
</Identificacion>
|
34
|
+
</Receptor>
|
35
|
+
<CondicionVenta>02</CondicionVenta>
|
36
|
+
<PlazoCredito>15</PlazoCredito>
|
37
|
+
<MedioPago>01</MedioPago>
|
38
|
+
<DetalleServicio>
|
39
|
+
<LineaDetalle>
|
40
|
+
<NumeroLinea>1</NumeroLinea>
|
41
|
+
<Codigo>
|
42
|
+
<Tipo>01</Tipo>
|
43
|
+
<Codigo>001</Codigo>
|
44
|
+
</Codigo>
|
45
|
+
<Cantidad>1</Cantidad>
|
46
|
+
<UnidadMedida>Sp</UnidadMedida>
|
47
|
+
<Detalle>Desarrollo de Software y Mantenimiento</Detalle>
|
48
|
+
<PrecioUnitario>300</PrecioUnitario>
|
49
|
+
<MontoTotal>300</MontoTotal>
|
50
|
+
<SubTotal>300</SubTotal>
|
51
|
+
<MontoTotalLinea>300</MontoTotalLinea>
|
52
|
+
</LineaDetalle>
|
53
|
+
<LineaDetalle>
|
54
|
+
<NumeroLinea>2</NumeroLinea>
|
55
|
+
<Codigo>
|
56
|
+
<Tipo>01</Tipo>
|
57
|
+
<Codigo>002</Codigo>
|
58
|
+
</Codigo>
|
59
|
+
<Cantidad>2</Cantidad>
|
60
|
+
<UnidadMedida>Unid</UnidadMedida>
|
61
|
+
<Detalle>Impresora de POS</Detalle>
|
62
|
+
<PrecioUnitario>50</PrecioUnitario>
|
63
|
+
<MontoTotal>100</MontoTotal>
|
64
|
+
<SubTotal>100</SubTotal>
|
65
|
+
<Impuesto>
|
66
|
+
<Codigo>01</Codigo>
|
67
|
+
<Tarifa>13</Tarifa>
|
68
|
+
<Monto>13.0</Monto>
|
69
|
+
</Impuesto>
|
70
|
+
<MontoTotalLinea>113</MontoTotalLinea>
|
71
|
+
</LineaDetalle>
|
72
|
+
</DetalleServicio>
|
73
|
+
<ResumenFactura>
|
74
|
+
<ResumenFactura>
|
75
|
+
<CodigoMoneda>USD</CodigoMoneda>
|
76
|
+
<TipoCambio>575</TipoCambio>
|
77
|
+
<TotalServGravados>0.0</TotalServGravados>
|
78
|
+
<TotalServExentos>300.0</TotalServExentos>
|
79
|
+
<TotalMercanciasGravadas>100.0</TotalMercanciasGravadas>
|
80
|
+
<TotalMercanciasExentas>0.0</TotalMercanciasExentas>
|
81
|
+
<TotalGravado>100.0</TotalGravado>
|
82
|
+
<TotalExento>300.0</TotalExento>
|
83
|
+
<TotalVenta>400.0</TotalVenta>
|
84
|
+
<TotalDescuentos>0.0</TotalDescuentos>
|
85
|
+
<TotalVentaNeta>400.0</TotalVentaNeta>
|
86
|
+
<TotalImpuesto>13.0</TotalImpuesto>
|
87
|
+
<TotalComprobante>413.0</TotalComprobante>
|
88
|
+
</ResumenFactura>
|
89
|
+
</ResumenFactura>
|
90
|
+
<Normativa>
|
91
|
+
<NumeroRegulacion>DGT-R-48-2016</NumeroRegulacion>
|
92
|
+
<FechaRegulacion>20-02-2017 13:22:22</FechaRegulacion>
|
93
|
+
</Normativa>
|
94
|
+
</FacturaElectronica>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Pruebas Realizadas: Por facilidad, están colocados 1 por línea.
|
4
|
+
-->
|
5
|
+
|
6
|
+
<!--
|
7
|
+
XMLNS => Igual al del XSD de hacienda
|
8
|
+
Sin schemaLocation
|
9
|
+
-->
|
10
|
+
<NotaCreditoElectronica
|
11
|
+
xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica"
|
12
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
13
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">...</NotaCreditoElectronica>
|
14
|
+
|
15
|
+
|
16
|
+
<!--
|
17
|
+
XMLNS => Igual al del XSD de hacienda
|
18
|
+
CON schemaLocation, URL erronea (AL IGUAL QUE LA FACTURA ELECTRONICA QUE SI ES ACEPTADA)
|
19
|
+
-->
|
20
|
+
<NotaCreditoElectronica
|
21
|
+
xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica"
|
22
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
23
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
24
|
+
xsi:schemaLocation="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica.xsd">...</NotaCreditoElectronica>
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
<!--
|
29
|
+
XMLNS => Igual al del XSD de hacienda
|
30
|
+
CON schemaLocation, URL al XSD correcta
|
31
|
+
-->
|
32
|
+
<NotaCreditoElectronica
|
33
|
+
xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica"
|
34
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
35
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
36
|
+
xsi:schemaLocation="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/notaCreditoElectronica https://tribunet.hacienda.go.cr/docs/esquemas/2016/v4.2/NotaCreditoElectronica_V4.2.xsd">...</NotaCreditoElectronica>
|
37
|
+
|
data/resources/test.p12
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: facturacr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josef Sauter
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-colorize
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rest-client
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: colorize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: thor
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: activemodel
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: awesome_print
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email:
|
155
|
+
- Josef.Sauter@gmail.com
|
156
|
+
executables:
|
157
|
+
- facturacr
|
158
|
+
extensions: []
|
159
|
+
extra_rdoc_files: []
|
160
|
+
files:
|
161
|
+
- ".DS_Store"
|
162
|
+
- ".gitignore"
|
163
|
+
- ".travis.yml"
|
164
|
+
- Gemfile
|
165
|
+
- LICENSE.txt
|
166
|
+
- README.md
|
167
|
+
- Rakefile
|
168
|
+
- bin/console
|
169
|
+
- bin/setup
|
170
|
+
- bin/signer/signer.jar
|
171
|
+
- config/config.yml
|
172
|
+
- exe/facturacr
|
173
|
+
- facturacr.gemspec
|
174
|
+
- lib/facturacr.rb
|
175
|
+
- lib/facturacr/api.rb
|
176
|
+
- lib/facturacr/api/document_status.rb
|
177
|
+
- lib/facturacr/builder.rb
|
178
|
+
- lib/facturacr/cli.rb
|
179
|
+
- lib/facturacr/cli/generate.rb
|
180
|
+
- lib/facturacr/configuration.rb
|
181
|
+
- lib/facturacr/credit_note.rb
|
182
|
+
- lib/facturacr/debit_note.rb
|
183
|
+
- lib/facturacr/document.rb
|
184
|
+
- lib/facturacr/document/code.rb
|
185
|
+
- lib/facturacr/document/exoneration.rb
|
186
|
+
- lib/facturacr/document/fax.rb
|
187
|
+
- lib/facturacr/document/identification_document.rb
|
188
|
+
- lib/facturacr/document/issuer.rb
|
189
|
+
- lib/facturacr/document/item.rb
|
190
|
+
- lib/facturacr/document/location.rb
|
191
|
+
- lib/facturacr/document/phone.rb
|
192
|
+
- lib/facturacr/document/phone_type.rb
|
193
|
+
- lib/facturacr/document/receiver.rb
|
194
|
+
- lib/facturacr/document/reference.rb
|
195
|
+
- lib/facturacr/document/regulation.rb
|
196
|
+
- lib/facturacr/document/summary.rb
|
197
|
+
- lib/facturacr/document/tax.rb
|
198
|
+
- lib/facturacr/invoice.rb
|
199
|
+
- lib/facturacr/signed_document.rb
|
200
|
+
- lib/facturacr/signer/signer.rb
|
201
|
+
- lib/facturacr/ticket.rb
|
202
|
+
- lib/facturacr/version.rb
|
203
|
+
- lib/facturacr/xml_document.rb
|
204
|
+
- resources/FacturaElectronica_V.4.2.xsd
|
205
|
+
- resources/NotaCreditoElectronica_V4.2.xsd
|
206
|
+
- resources/credit_note.xml
|
207
|
+
- resources/data.yml
|
208
|
+
- resources/debit_note.xml
|
209
|
+
- resources/invoice.xml
|
210
|
+
- resources/pruebas.xml
|
211
|
+
- resources/test.p12
|
212
|
+
homepage: https://github.com/apokalipto/facturacr
|
213
|
+
licenses: []
|
214
|
+
metadata: {}
|
215
|
+
post_install_message:
|
216
|
+
rdoc_options: []
|
217
|
+
require_paths:
|
218
|
+
- lib
|
219
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '0'
|
229
|
+
requirements: []
|
230
|
+
rubyforge_project:
|
231
|
+
rubygems_version: 2.6.8
|
232
|
+
signing_key:
|
233
|
+
specification_version: 4
|
234
|
+
summary: Facturación Electrónica de Costa Rica
|
235
|
+
test_files: []
|