forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from chazuttu/coverage_wsfexv1
Coverage wsfexv1
- Loading branch information
Showing
9 changed files
with
2,002 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n | ||
\ \n</soap:Body>\n</soap:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '269' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://ar.gov.afip.dif.fexv1/FEXDummy"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx | ||
response: | ||
body: | ||
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><FEHeaderInfo | ||
xmlns="http://ar.gov.afip.dif.fexv1/"><ambiente>Homologacion - efa</ambiente><fecha>2021-07-22T13:33:56.6270562-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXDummyResponse | ||
xmlns="http://ar.gov.afip.dif.fexv1/"><FEXDummyResult><AppServer>OK</AppServer><DbServer>OK</DbServer><AuthServer>OK</AuthServer></FEXDummyResult></FEXDummyResponse></soap:Body></soap:Envelope> | ||
headers: | ||
Cache-Control: | ||
- private, max-age=0 | ||
Content-Length: | ||
- '626' | ||
Content-Type: | ||
- text/xml; charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 16:33:56 GMT | ||
Expect-CT: | ||
- enforce | ||
MicrosoftOfficeWebServer: | ||
- 5.0_Pub | ||
Set-Cookie: | ||
- TS01983a04=01439f1ddf38288f5f22b0c1f3242c6dd308931ea5042ebfc0fe5eca76c28b53ea6bb0c481; | ||
Path=/ | ||
Strict-Transport-Security: | ||
- nosniff | ||
X-AspNet-Version: | ||
- 2.0.50727 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Powered-By: | ||
- ASP.NET | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n | ||
\ <FEXGetPARAM_Ctz xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIxMDgwODU4NzU2IiBnZW5fdGltZT0iMTYyNjk3NzYwMyIgZXhwX3RpbWU9IjE2MjcwMjA4NjMiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>NWkHNKrzHva56P+1YnxOy+YpddSJfMu3SRsYjZumSB3uyaQPPquZfm5Re8YAQBM5+/ILqDYshvyxyKmlB9Ja2ndvdaW/CEVP5TU3QmNdrpKJEOXFXBY9//oSe5NqXdYSkbIL7kzt5ajCv2so5rOoS4MrSq+3xctKU216Oiit0sk=</Sign><Cuit>20267565393</Cuit></Auth><Mon_id>DOL</Mon_id></FEXGetPARAM_Ctz>\n</soap:Body>\n</soap:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '1372' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://ar.gov.afip.dif.fexv1/FEXGetPARAM_Ctz"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx | ||
response: | ||
body: | ||
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><FEHeaderInfo | ||
xmlns="http://ar.gov.afip.dif.fexv1/"><ambiente>Homologacion - efa</ambiente><fecha>2021-07-22T15:32:42.3620257-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXGetPARAM_CtzResponse | ||
xmlns="http://ar.gov.afip.dif.fexv1/"><FEXGetPARAM_CtzResult><FEXResultGet><Mon_ctz>101.2020</Mon_ctz><Mon_fecha>20210721</Mon_fecha></FEXResultGet><FEXErr><ErrCode>0</ErrCode><ErrMsg>OK</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXGetPARAM_CtzResult></FEXGetPARAM_CtzResponse></soap:Body></soap:Envelope> | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
Content-Length: | ||
- '792' | ||
Content-Type: | ||
- text/xml; charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 18:34:10 GMT | ||
Expect-CT: | ||
- enforce | ||
Expires: | ||
- '-1' | ||
MicrosoftOfficeWebServer: | ||
- 5.0_Pub | ||
Pragma: | ||
- no-cache | ||
Set-Cookie: | ||
- TS01983a04=01439f1ddfc3a2abaa026d00a34ff39b6d716f07a6aaf6f12af5b2e8205510b625df1eabd5; | ||
Path=/ | ||
Strict-Transport-Security: | ||
- nosniff | ||
X-AspNet-Version: | ||
- 2.0.50727 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Powered-By: | ||
- ASP.NET | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n | ||
\ <FEXGetLast_CMP xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIxMjYxMzMyMDQwIiBnZW5fdGltZT0iMTYyNjk3MTQ0MiIgZXhwX3RpbWU9IjE2MjcwMTQ3MDIiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>mbr12ydjJvb9jWZfi9Z8CGgdu7ao/7x1FZCdQYzDkxkNVuWlubMTfz/PYC/EKuoQ1wQxKvJ620XkZ/n2xAGi7JtdmfMdd0cDR8s6TFHCnLznla43iztcDu+NIBXs3vr9qqFoRuXkRI87XTccoo0G/Av7NpcxeRJki3aurvfdSuU=</Sign><Cuit>20267565393</Cuit><Pto_venta>7</Pto_venta><Cbte_Tipo>19</Cbte_Tipo></Auth></FEXGetLast_CMP>\n</soap:Body>\n</soap:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '1399' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://ar.gov.afip.dif.fexv1/FEXGetLast_CMP"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx | ||
response: | ||
body: | ||
string: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Header><FEHeaderInfo | ||
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><ambiente>Homologacion - efa</ambiente><fecha>2021-07-22T13:37:52.0809201-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXGetLast_CMPResponse | ||
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><FEXGetLast_CMPResult><FEXResult_LastCMP><Cbte_nro>411</Cbte_nro><Cbte_fecha>20210618</Cbte_fecha></FEXResult_LastCMP><FEXErr><ErrCode>0</ErrCode><ErrMsg>OK</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXGetLast_CMPResult></FEXGetLast_CMPResponse></soap:Body></soap:Envelope>\r\n" | ||
headers: | ||
Cache-Control: | ||
- private, max-age=0 | ||
Content-Length: | ||
- '799' | ||
Content-Type: | ||
- text/xml; charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 16:37:52 GMT | ||
Expect-CT: | ||
- enforce | ||
MicrosoftOfficeWebServer: | ||
- 5.0_Pub | ||
Set-Cookie: | ||
- TS01983a04=01439f1ddf48f89d77b0307c2808696c8578eff0e3296fc2e31dba101fa9aba90acd56d024; | ||
Path=/ | ||
Strict-Transport-Security: | ||
- nosniff | ||
X-AspNet-Version: | ||
- 2.0.50727 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Powered-By: | ||
- ASP.NET | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n | ||
\ <FEXGetCMP xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIxMjYxMzMyMDQwIiBnZW5fdGltZT0iMTYyNjk3MTQ0MiIgZXhwX3RpbWU9IjE2MjcwMTQ3MDIiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>mbr12ydjJvb9jWZfi9Z8CGgdu7ao/7x1FZCdQYzDkxkNVuWlubMTfz/PYC/EKuoQ1wQxKvJ620XkZ/n2xAGi7JtdmfMdd0cDR8s6TFHCnLznla43iztcDu+NIBXs3vr9qqFoRuXkRI87XTccoo0G/Av7NpcxeRJki3aurvfdSuU=</Sign><Cuit>20267565393</Cuit></Auth><Cmp><Cbte_tipo>19</Cbte_tipo><Punto_vta>7</Punto_vta><Cbte_nro>411</Cbte_nro></Cmp></FEXGetCMP>\n</soap:Body>\n</soap:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '1424' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://ar.gov.afip.dif.fexv1/FEXGetCMP"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx | ||
response: | ||
body: | ||
string: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Header><FEHeaderInfo | ||
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><ambiente>Homologacion - efa</ambiente><fecha>2021-07-22T13:37:52.4871727-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXGetCMPResponse | ||
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><FEXGetCMPResult><FEXResultGet><Id>988888888888344</Id><Fecha_cbte>20210618</Fecha_cbte><Cbte_tipo>19</Cbte_tipo><Punto_vta>7</Punto_vta><Cbte_nro>411</Cbte_nro><Tipo_expo>1</Tipo_expo><Permiso_existente>S</Permiso_existente><Permisos><Permiso><Id_permiso>99999AAXX999999A</Id_permiso><Dst_merc>203</Dst_merc></Permiso></Permisos><Dst_cmp>203</Dst_cmp><Cliente>Joao | ||
Da Silva</Cliente><Cuit_pais_cliente>50000000016</Cuit_pais_cliente><Domicilio_cliente>R\xBFa | ||
\xBF76 km 34.5 Alagoas</Domicilio_cliente><Id_impositivo>PJ54482221-l</Id_impositivo><Moneda_Id>DOL</Moneda_Id><Moneda_ctz>39</Moneda_ctz><Obs_comerciales>Observaciones | ||
comerciales</Obs_comerciales><Imp_total>250</Imp_total><Obs>Sin observaciones</Obs><Forma_pago>30 | ||
dias</Forma_pago><Incoterms>FOB</Incoterms><Incoterms_Ds>Flete a Bordo</Incoterms_Ds><Idioma_cbte>1</Idioma_cbte><Items><Item><Pro_codigo>PRO1</Pro_codigo><Pro_ds>Producto | ||
Tipo 1 Exportacion MERCOSUR ISO 9001</Pro_ds><Pro_qty>2</Pro_qty><Pro_umed>9</Pro_umed><Pro_precio_uni>150</Pro_precio_uni><Pro_bonificacion>50</Pro_bonificacion><Pro_total_item>250</Pro_total_item></Item></Items><Fch_venc_Cae>20210618</Fch_venc_Cae><Cae>71253007399626</Cae><Resultado>A</Resultado><Motivos_Obs | ||
/></FEXResultGet><FEXErr><ErrCode>0</ErrCode><ErrMsg>OK</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXGetCMPResult></FEXGetCMPResponse></soap:Body></soap:Envelope>\r\n" | ||
headers: | ||
Cache-Control: | ||
- private, max-age=0 | ||
Content-Length: | ||
- '1890' | ||
Content-Type: | ||
- text/xml; charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 16:37:52 GMT | ||
Expect-CT: | ||
- enforce | ||
MicrosoftOfficeWebServer: | ||
- 5.0_Pub | ||
Set-Cookie: | ||
- TS01983a04=01439f1ddf2c46f25e020e007c2358bb6c605030876e4727c614ca3c55859f7ff66230f5f6; | ||
Path=/ | ||
Strict-Transport-Security: | ||
- nosniff | ||
X-AspNet-Version: | ||
- 2.0.50727 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Powered-By: | ||
- ASP.NET | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.