diff --git a/src/comex_stat/assets/fixtures/assetexportfacts.json b/src/comex_stat/assets/fixtures/assetexportfacts.json index 0f7eee9..8d14b20 100644 --- a/src/comex_stat/assets/fixtures/assetexportfacts.json +++ b/src/comex_stat/assets/fixtures/assetexportfacts.json @@ -3,85 +3,80 @@ "model": "assets.assetexportfacts", "pk": 1, "fields": { - "origin_fed_unit": "RS", - "destination_country": "Bolívia", - "date": "03/2018", + "origin_fed_unit": 45, + "destination_country": 97, + "date": "2018-03-01", "name": "Outras partes para motores de explosão", - "ncm": "84099190", - "port": "0147600 - ALF - CORUMBÁ", - "port_code": "0147600", - "transportation": "FERROVIARIA", - "registries": "1", - "net_kilogram": "1", - "fob_value": "191" + "ncm": 84099190, + "urf": 147600, + "transportation": 1, + "registries": 1, + "net_kilogram": 1, + "fob_value": 191 } }, { "model": "assets.assetexportfacts", "pk": 2, "fields": { - "origin_fed_unit": "SP", - "destination_country": "Honduras", - "date": "03/2018", + "origin_fed_unit": 41, + "destination_country": 345, + "date": "2018-03-05", "name": "Painéis de fibras madeira de média densidade (denominados MDF), com densidade superior a 0,8 g/cm3, não trabalhados mecanicamente nem recobertos à superfície", - "ncm": "44119210", - "port": "0147600 - ALF - CORUMBÁ", - "port_code": "147600", - "transportation": "RODOVIARIA", - "registries": "39", - "net_kilogram": "39071", - "fob_value": "16590" + "ncm": 44119210, + "urf": 147600, + "transportation": 1, + "registries": 39, + "net_kilogram": 39071, + "fob_value": 16590 } }, { "model": "assets.assetexportfacts", "pk": 3, "fields": { - "origin_fed_unit": "SP", - "destination_country": "Uruguai", - "date": "03/18", + "origin_fed_unit": 41, + "destination_country": 845, + "date": "2018-03-09", "name": "Calças, jardineiras, bermudas e shorts (calções), de uso feminino, de fibras sintéticas", - "ncm": "62046300", - "port": "0817700 - AEROPORTO INTERNACIONAL DE VIRACOPOS", - "port_code": "0817700", - "transportation": "AEREA", - "registries": "14", - "net_kilogram": "6", - "fob_value": "769" + "ncm": 62046300, + "urf": 817700, + "transportation": 4, + "registries": 14, + "net_kilogram": 6, + "fob_value": 769 } }, { "model": "assets.assetexportfacts", "pk": 4, "fields": { - "origin_fed_unit": "SP", - "destination_country": "Paraguai", - "date": "08/2018", - "name": "Outros produtos de beleza ou de maquiagem preparados, etc", - "ncm": "33049990", - "port": "0917500 - ALF - FOZ DO IGUAÇU", - "port_code": "0917500", - "transportation": "FERROVIARIA", - "registries": "3399", - "net_kilogram": "3399", - "fob_value": "39508" + "origin_fed_unit": 41, + "destination_country": 586, + "date": "2018-08-15", + "name": "Produtos de maquiagem para os lábios", + "ncm": 33049990, + "urf": 917500, + "transportation": 6, + "registries": 3399, + "net_kilogram": 3399, + "fob_value": 39508 } }, { "model": "assets.assetexportfacts", "pk": 5, "fields": { - "origin_fed_unit": "MG", - "destination_country": "Equador", - "date": "06/2018", + "origin_fed_unit": 33, + "destination_country": 239, + "date": "2018-06-19", "name": "Outros parafusos e pinos ou pernos, mesmo com as porcas e arruelas, de ferro fundido, ferro ou aço", - "ncm": "73181500", - "port": "0817700 - AEROPORTO INTERNACIONAL DE VIRACOPOS", - "port_code": "0817700", - "transportation": "AEREA", - "registries": "0", - "net_kilogram": "0", - "fob_value": "9" + "ncm": 73181500, + "urf": 817700, + "transportation": 4, + "registries": 0, + "net_kilogram": 0, + "fob_value": 9 } - }, + } ] diff --git a/src/comex_stat/assets/fixtures/assetimportfacts.json b/src/comex_stat/assets/fixtures/assetimportfacts.json index 6db10c1..69d0646 100644 --- a/src/comex_stat/assets/fixtures/assetimportfacts.json +++ b/src/comex_stat/assets/fixtures/assetimportfacts.json @@ -3,85 +3,80 @@ "model": "assets.assetimportfacts", "pk": 1, "fields": { - "destination_fed_unit": "BA", - "origin_country": "Alemanha", - "date": "05/2018", + "destination_fed_unit": 32, + "origin_country": 23, + "date": "2018-05-01", "name": "Guarnições para móveis, carrocerias e semelhantes, de plásticos", - "ncm": "39263000", - "port": "0817800 - PORTO DE SANTOS", - "port_code": "0817800", - "transportation": "MARITIMA", - "registries": "4", - "net_kilogram": "4", - "fob_value": "555" + "ncm": 39263000, + "transportation": 1, + "urf": 817800, + "registries": 4, + "net_kilogram": 4, + "fob_value": 555 } }, { "model": "assets.assetimportfacts", "pk": 2, "fields": { - "destination_fed_unit": "SP", - "origin_country": "Estados Unidos", - "date": "05/2018", + "destination_fed_unit": 41, + "origin_country": 249, + "date": "2018-05-01", "name": "Outras obras de cortiça aglomerada", - "ncm": "45049000", - "port": "0000000", - "port_code": "0000000 - NAO INFORMADO", - "transportation": "VIA NAO DECLARADA", - "registries": "26", - "net_kilogram": "26", - "fob_value": "3215" + "ncm": 45049000, + "urf": 0, + "transportation": 0, + "registries": 26, + "net_kilogram": 26, + "fob_value": 3215 } }, { "model": "assets.assetimportfacts", "pk": 3, "fields": { - "destination_fed_unit": "PE", - "origin_country": "China", - "date": "05/2018", + "destination_fed_unit": 26, + "origin_country": 160, + "date": "2018-05-01", "name": "Porcas de ferro fundido, ferro ou aço", - "ncm": "73181600", - "port": "0417902 - IRF - PORTO DE SUAPE", - "port_code": "0417902", - "transportation": "MARITIMA", - "registries": "370", - "net_kilogram": "370", - "fob_value": "2283" + "ncm": 73181600, + "urf": 417902, + "transportation": 1, + "registries": 370, + "net_kilogram": 370, + "fob_value": 2283 } }, { "model": "assets.assetimportfacts", "pk": 4, "fields": { - "destination_fed_unit": "SP", - "origin_country": "Estados Unidos", - "date": "05/2018", + "destination_fed_unit": 41, + "origin_country": 249, + "date": "2018-05-01", "name": "Outras partes de bombas para líquidos", - "ncm": "84139190", - "port": "0817600 - AEROPORTO INTERNACIONAL DE SAO PAULO/GUARULHOS", - "port_code": "817600", - "transportation": "AEREA", - "registries": "4424", - "net_kilogram": "4424", - "fob_value": "332623" + "ncm": 84139190, + "urf": 817600, + "transportation": 4, + "registries": 4424, + "net_kilogram": 4424, + "fob_value": 332623 } }, { "model": "assets.assetimportfacts", "pk": 5, "fields": { - "destination_fed_unit": "SP", - "origin_country": "Itália", - "date": "05/2018", + "destination_fed_unit": 41, + "origin_country": 386, + "date": "2018-05-01", "name": "Outras partes de bombas para líquidos", - "ncm": "84139190", - "port": "0817600 - AEROPORTO INTERNACIONAL DE SAO PAULO/GUARULHOS", - "port_code": "817600", - "transportation": "AEREA", - "registries": "464", - "net_kilogram": "464", - "fob_value": "31454" + "ncm": 84139190, + "urf": 817600, + "transportation": 4, + "registries": 464, + "net_kilogram": 464, + "fob_value": 31454 } } ] diff --git a/src/comex_stat/assets/fixtures/cgce.json b/src/comex_stat/assets/fixtures/cgce.json new file mode 100644 index 0000000..d88048a --- /dev/null +++ b/src/comex_stat/assets/fixtures/cgce.json @@ -0,0 +1,92 @@ +[ + { + "model": "assets.CGCE", + "pk": 280, + "fields": { + "level1_code": "280", + "level1_name_pt": "Peças para equipamentos de transporte", + "level1_name_en": "Parts for transport equipment", + "level1_name_es": "Piezas para equipos de transporte", + "level2_code": "28", + "level2_name_pt": "Peças para equipamentos de transporte", + "level2_name_en": "Parts for transport equipment", + "level2_name_es": "Piezas para equipos de transporte", + "level3_code": "2", + "level3_name_pt": "BENS INTERMEDIÁRIOS (BI)", + "level3_name_en": "INTERMEDIATE GOODS (BI)", + "level3_name_es": "BIENES INTERMEDIOS (BI)" + } + }, + { + "model": "assets.CGCE", + "pk": 240, + "fields": { + "level1_code": "240", + "level1_name_pt": "Insumos industriais elaborados", + "level1_name_en": "Elaborated industrial inputs", + "level1_name_es": "Insumos industriales elaborados", + "level2_code": "24", + "level2_name_pt": "Insumos industriais elaborados", + "level2_name_en": "Elaborated industrial inputs", + "level2_name_es": "Insumos industriales elaborados", + "level3_code": "2", + "level3_name_pt": "BENS INTERMEDIÁRIOS (BI)", + "level3_name_en": "INTERMEDIATE GOODS (BI)", + "level3_name_es": "BIENES INTERMEDIOS (BI)" + } + }, + { + "model": "assets.CGCE", + "pk": 321, + "fields": { + "level1_code": "321", + "level1_name_pt": "Bens de consumo semiduráveis", + "level1_name_en": "Semi-durable consumer goods", + "level1_name_es": "Bienes de consumo semidurables", + "level2_code": "321", + "level2_name_pt": "Bens de consumo semiduráveis e não duráveis", + "level2_name_en": "Consumer goods semi-durable and non-durable", + "level2_name_es": "Bienes de consumo semidurables y no durables", + "level3_code": "3", + "level3_name_pt": "BENS DE CONSUMO (BC)", + "level3_name_en": "CONSUMER GOODS (BC)", + "level3_name_es": "BIENES DE CONSUMO (BC)" + } + }, + { + "model": "assets.CGCE", + "pk": 322, + "fields": { + "level1_code": "322", + "level1_name_pt": "Bens de consumo não duráveis", + "level1_name_en": "Non-durable goods", + "level1_name_es": "Bienes de consumo no durables", + "level2_code": "32", + "level2_name_pt": "Bens de consumo semiduráveis e não duráveis", + "level2_name_en": "Consumer goods semi-durable and non-durable", + "level2_name_es": "Bienes de consumo semidurables y no durables", + "level3_code": "3", + "level3_name_pt": "BENS DE CONSUMO (BC)", + "level3_name_en": "CONSUMER GOODS (BC)", + "level3_name_es": "BIENES DE CONSUMO (BC)" + } + }, + { + "model": "assets.CGCE", + "pk": 270, + "fields": { + "level1_code": "270", + "level1_name_pt": "Peças e acessórios para bens de capital", + "level1_name_en": "Parts and accessories for capital goods", + "level1_name_es": "Piezas y accesorios para bienes de capital", + "level2_code": "27", + "level2_name_pt": "Peças e acessórios para bens de capital", + "level2_name_en": "Parts and accessories for capital goods", + "level2_name_es": "Piezas y accesorios para bienes de capital", + "level3_code": "2", + "level3_name_pt": "BENS INTERMEDIÁRIOS (BI)", + "level3_name_en": "INTERMEDIATE GOODS (BI)", + "level3_name_es": "BIENES INTERMEDIOS (BI)" + } + } +] diff --git a/src/comex_stat/assets/fixtures/country.json b/src/comex_stat/assets/fixtures/country.json new file mode 100644 index 0000000..8346106 --- /dev/null +++ b/src/comex_stat/assets/fixtures/country.json @@ -0,0 +1,101 @@ +[ + { + "model": "assets.Country", + "pk": 249, + "fields": { + "name_portuguese": "Estados Unidos", + "name_english": "United States", + "name_spanish": "Estados Unidos", + "code_iso3": "USA", + "trade_bloc": 107 + } + }, + { + "model": "assets.Country", + "pk": 160, + "fields": { + "name_portuguese": "China", + "name_english": "China", + "name_spanish": "China", + "code_iso3": "CHN", + "trade_bloc": 39 + } + }, + { + "model": "assets.Country", + "pk": 23, + "fields": { + "name_portuguese": "Alemanha", + "name_english": "Germany", + "name_spanish": "Alemania", + "code_iso3": "DEU", + "trade_bloc": 112 + } + }, + { + "model": "assets.Country", + "pk": 386, + "fields": { + "name_portuguese": "Itália", + "name_english": "Italy", + "name_spanish": "Italia", + "code_iso3": "ITA", + "trade_bloc": 112 + } + }, + { + "model": "assets.Country", + "pk": 97, + "fields": { + "name_portuguese": "Bolívia", + "name_english": "Bolivia", + "name_spanish": "Bolivia", + "code_iso3": "BOL", + "trade_bloc": 48 + } + }, + { + "model": "assets.Country", + "pk": 345, + "fields": { + "name_portuguese": "Honduras", + "name_english": "Honduras", + "name_spanish": "Honduras", + "code_iso3": "HND", + "trade_bloc": 105 + } + }, + { + "model": "assets.Country", + "pk": 845, + "fields": { + "name_portuguese": "Uruguai", + "name_english": "Uruguay", + "name_spanish": "Uruguay", + "code_iso3": "URY", + "trade_bloc": 48 + } + }, + { + "model": "assets.Country", + "pk": 586, + "fields": { + "name_portuguese": "Paraguai", + "name_english": "Paraguay", + "name_spanish": "Paraguay", + "code_iso3": "PRY", + "trade_bloc": 111 + } + }, + { + "model": "assets.Country", + "pk": 239, + "fields": { + "name_portuguese": "Equador", + "name_english": "Ecuador", + "name_spanish": "Ecuador", + "code_iso3": "ECU", + "trade_bloc": 48 + } + } +] diff --git a/src/comex_stat/assets/fixtures/cuci.json b/src/comex_stat/assets/fixtures/cuci.json new file mode 100644 index 0000000..f2b60cb --- /dev/null +++ b/src/comex_stat/assets/fixtures/cuci.json @@ -0,0 +1,210 @@ +[ + { + "model": "assets.CUCI", + "pk": 71391, + "fields": { + "item_code": "", + "item_name_pt": "Peças, n.e.p., para motores de ignição por centelha dos subgrupos 713.2, 713.3 e 713.8, exclusiva ou principalmente com ignição por centelha motores de pistão de combustão interna.", + "item_name_en": "Parts, n.e.s, for the internal combustion piston engines of subgroups 713.2, 713.3 & 713.8, suitable for use solely/principally with spark-ignition internal combustion piston engines.", + "item_name_es": "", + "subitem_code": "7139", + "subitem_name_pt": "Peças, n.e.p., para motores de ignição por centelha dos subgrupos 713.2, 713.3 e 713.8", + "subitem_name_en": "Parts, n.e.s, for the internal combustion piston engines of subgroups 713.2, 713.3 and 713.8", + "subitem_name_es": "", + "position_code": "713", + "position_name_pt": "Motores de pistão, e suas partes, n.e.p.", + "position_name_en": "Internal combustion piston engines and parts thereof, n.e.s.", + "position_name_es": "", + "chapter_code": "71", + "chapter_name_pt": "Máquinas e equipamentos de geração de energia", + "chapter_name_en": "Power-generating machinery and equipment", + "chapter_name_es": "", + "section_code": "7", + "section_name_pt": "MAQUINAS E EQUIPAMENTOS DE TRANSPORTE", + "section_name_en": "MACHINERY AND TRANSPORT EQUIPMENT", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 63459, + "fields": { + "item_code": "63459", + "item_name_pt": "Painéis de fibras de madeira ou de outras matérias lenhosas, n.e.p.", + "item_name_en": "Fibreboard of wood/other ligneous materials, n.e.s.", + "item_name_es": "", + "subitem_code": "6345", + "subitem_name_pt": "Painéis de fibras de madeira ou de outras matérias lenhosas, mesmo aglomeradas com resinas ou outras substâncias orgânicas", + "subitem_name_en": "Fibreboard of wood or other ligneous materials, whether or not bonded with resins or other organic substances", + "subitem_name_es": "", + "position_code": "634", + "position_name_pt": "Folheados, contraplacados, aglomerados, e outras madeiras, trabalhoados, n.e.p.", + "position_name_en": "Veneers, plywood, particle board, and other wood, worked, n.e.s.", + "position_name_es": "", + "chapter_code": "63", + "chapter_name_pt": "Manufaturas de cortiça e madeira (exceto mobiliário)", + "chapter_name_en": "Cork and wood manufactures (excluding furniture)", + "chapter_name_es": "", + "section_code": "6", + "section_name_pt": "ARTIGOS MANUFATURADOS, CLASSIFICADOS PRINCIPALMENTE PELO MATERIAL", + "section_name_en": "MANUFACTURED GOODS CLASSIFIED CHIEFLY BY MATERIAL", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 8426, + "fields": { + "item_code": "8426", + "item_name_pt": "Calças, jardineiras, bermudas e shorts", + "item_name_en": "Trousers, bib & brace overalls, breeches & shorts, women's/girls', of textile materials, not knitted/crocheted", + "item_name_es": "", + "subitem_code": "8426", + "subitem_name_pt": "Calças, jardineiras, bermudas e shorts", + "subitem_name_en": "Trousers, bib & brace overalls, breeches & shorts, women's/girls', of textile materials, not knitted/crocheted", + "subitem_name_es": "", + "position_code": "842", + "position_name_pt": "Casacos femininos e infantis (de meninas), capas, jaquetas, ternos, calças, shorts, camisas, vestidos e saias, roupa interior, roupa de dormir e artigos semelhantes de tecidos, de malha (exceto os do subgrupo 845.2)", + "position_name_en": "Women's or girls' coats, capes, jackets, suits, trousers, shorts, shirts, dresses and skirts, underwear, nightwear and similar articles of textile fabrics, not knitted or crocheted (other than those of subgroup 845.2)", + "position_name_es": "", + "chapter_code": "84", + "chapter_name_pt": "Artigos de vestuário e seus acessórios", + "chapter_name_en": "Articles of apparel and clothing accessories", + "chapter_name_es": "", + "section_code": "8", + "section_name_pt": "OBRAS DIVERSAS", + "section_name_en": "MISCELLANEOUS MANUFACTURED ARTICLES", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 5532, + "fields": { + "item_code": "5532", + "item_name_pt": "Preparações de beleza ou de maquiagem para os cuidados da pele (exceto medicamentos), incluindo protetores solares e bronzeadores preparações; manicure e pedicure", + "item_name_en": "Beauty/make-up preparations for the care of the skin (other than medicaments), including sunscreen/suntan preparations; manicure/pedicure preparations", + "item_name_es": "", + "subitem_code": "5532", + "subitem_name_pt": "Preparações de beleza ou de maquiagem para os cuidados da pele (exceto medicamentos), incluindo protetores solares e bronzeadores preparações; manicure e pedicure", + "subitem_name_en": "Beauty/make-up preparations for the care of the skin (other than medicaments), including sunscreen/suntan preparations; manicure/pedicure preparations", + "subitem_name_es": "", + "position_code": "553", + "position_name_pt": "Produtos de perfumaria ou de toucador (excluindo sabonetes)", + "position_name_en": "Perfumery, cosmetic or toilet preparations (excluding soaps)", + "position_name_es": "", + "chapter_code": "55", + "chapter_name_pt": "Óleos essenciais e resinóides e produtos de perfumaria; higiene, polimento e preparações de limpeza", + "chapter_name_en": "Essential oils and resinoids and perfume materials; toilet, polishing and cleansing preparations", + "chapter_name_es": "", + "section_code": "5", + "section_name_pt": "PRODUTOS QUIMICOS E RELACIONADOS, N.E.P.", + "section_name_en": "CHEMICALS AND RELATED PRODUCTS, N.E.S.", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 69421, + "fields": { + "item_code": "69421", + "item_name_pt": "Parafusos, parafusos, porcas, tirafundos, ganchos, rebites, chavetas, cavilhas, contrapinos, arruelas (incluídas as de pressão) e artefatos semelhantes, de ferro ou aço Enroscados", + "item_name_en": "Screws, bolts, nuts, coach screws, screw hooks, rivets, cotters, cotter pins, washers (including spring washers) & similar articles, of iron/steel, threaded", + "item_name_es": "", + "subitem_code": "6942", + "subitem_name_pt": "Parafusos, parafusos, porcas, tirafundos, ganchos, rebites, chavetas, cavilhas, contrapinos, arruelas (incluídas as de pressão) e artefatos semelhantes, de ferro ou aço", + "subitem_name_en": "Screws, bolts, nuts, coach screws, screw hooks, rivets, cotters, cotter pins, washers (including spring washers) and similar articles, of iron or steel", + "subitem_name_es": "", + "position_code": "694", + "position_name_pt": "Pregos, parafusos, porcas, parafusos, rebites e semelhantes, de ferro, aço, cobre ou alumínio", + "position_name_en": "Nails, screws, nuts, bolts, rivets and the like, of iron, steel, copper or aluminium", + "position_name_es": "", + "chapter_code": "69", + "chapter_name_pt": "Produtos metálicos, n.e.p.", + "chapter_name_en": "Manufactures of metals, n.e.s.", + "chapter_name_es": "", + "section_code": "6", + "section_name_pt": "ARTIGOS MANUFATURADOS, CLASSIFICADOS PRINCIPALMENTE PELO MATERIAL", + "section_name_en": "MANUFACTURED GOODS CLASSIFIED CHIEFLY BY MATERIAL", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 89395, + "fields": { + "item_code": "89395", + "item_name_pt": "Guarnições para móveis, carroçarias ou semelhantes", + "item_name_en": "Fittings for furniture, coachwork/the like, of plastics", + "item_name_es": "", + "subitem_code": "8939", + "subitem_name_pt": "Obras de plástico, n.e.p.", + "subitem_name_en": "Articles of plastics, n.e.s.", + "subitem_name_es": "", + "position_code": "893", + "position_name_pt": "Artigos, n.e.p., de plásticos", + "position_name_en": "Articles, n.e.s., of plastics", + "position_name_es": "", + "chapter_code": "89", + "chapter_name_pt": "Artigos manufaturados diversos, n.e.p.", + "chapter_name_en": "Miscellaneous manufactured articles, n.e.s.", + "chapter_name_es": "", + "section_code": "8", + "section_name_pt": "OBRAS DIVERSAS", + "section_name_en": "MISCELLANEOUS MANUFACTURED ARTICLES", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 63329, + "fields": { + "item_code": "63329", + "item_name_pt": "Outros", + "item_name_en": "Articles of agglomerated cork, not of 633.21", + "item_name_es": "", + "subitem_code": "6332", + "subitem_name_pt": "Cortiça aglomerada (com ou sem aglutinantes) e artigos de cortiça aglomerada.", + "subitem_name_en": "Agglomerated cork (with or without a binding substance) and articles of agglomerated cork.", + "subitem_name_es": "", + "position_code": "633", + "position_name_pt": "Manufaturas de cortiça ", + "position_name_en": "Cork manufactures", + "position_name_es": "", + "chapter_code": "63", + "chapter_name_pt": "Manufaturas de cortiça e madeira (exceto mobiliário)", + "chapter_name_en": "Cork and wood manufactures (excluding furniture)", + "chapter_name_es": "", + "section_code": "6", + "section_name_pt": "ARTIGOS MANUFATURADOS, CLASSIFICADOS PRINCIPALMENTE PELO MATERIAL", + "section_name_en": "MANUFACTURED GOODS CLASSIFIED CHIEFLY BY MATERIAL", + "section_name_es": "" + } + }, + { + "model": "assets.CUCI", + "pk": 74291, + "fields": { + "item_code": "74291", + "item_name_pt": "Partes das bombas do grupo 742", + "item_name_en": "Parts of the pumps of group 742", + "item_name_es": "", + "subitem_code": "7429", + "subitem_name_pt": "Partes das bombas e elevadores de líquidos do grupo 742", + "subitem_name_en": "Parts of the pumps and liquid elevators of group 742", + "subitem_name_es": "", + "position_code": "742", + "position_name_pt": "Bombas para líquidos, mesmo equipados com dispositivo medidor; elevadores de líquidos; peças para essas bombas e elevadores de líquidos", + "position_name_en": "Pumps for liquids, whether or not fitted with a measuring device; liquid elevators; parts for such pumps and liquid elevators", + "position_name_es": "", + "chapter_code": "74", + "chapter_name_pt": "Máquinas em geral e equipamentos industriais, n.e.p., e peças de máquinas, n.e.p.", + "chapter_name_en": "General industrial machinery and equipment, n.e.s., and machine parts, n.e.s.", + "chapter_name_es": "", + "section_code": "7", + "section_name_pt": "MAQUINAS E EQUIPAMENTOS DE TRANSPORTE", + "section_name_en": "MACHINERY AND TRANSPORT EQUIPMENT", + "section_name_es": "" + } + } +] diff --git a/src/comex_stat/assets/fixtures/federativeunit.json b/src/comex_stat/assets/fixtures/federativeunit.json new file mode 100644 index 0000000..2580e6a --- /dev/null +++ b/src/comex_stat/assets/fixtures/federativeunit.json @@ -0,0 +1,47 @@ +[ + { + "model": "assets.FederativeUnit", + "pk": 45, + "fields": { + "name": "Rio Grande do Sul", + "code": "45", + "initials": "RS" + } + }, + { + "model": "assets.FederativeUnit", + "pk": 41, + "fields": { + "name": "São Paulo", + "code": "41", + "initials": "SP" + } + }, + { + "model": "assets.FederativeUnit", + "pk": 33, + "fields": { + "name": "Minas Gerais", + "code": "33", + "initials": "MG" + } + }, + { + "model": "assets.FederativeUnit", + "pk": 32, + "fields": { + "name": "Bahia", + "code": "32", + "initials": "BA" + } + }, + { + "model": "assets.FederativeUnit", + "pk": 26, + "fields": { + "name": "Pernambuco", + "code": "26", + "initials": "PE" + } + } +] diff --git a/src/comex_stat/assets/fixtures/ncm.json b/src/comex_stat/assets/fixtures/ncm.json index 6a781e6..2548aa5 100644 --- a/src/comex_stat/assets/fixtures/ncm.json +++ b/src/comex_stat/assets/fixtures/ncm.json @@ -1,172 +1,182 @@ [ { "model": "assets.ncm", - "pk": 1, + "pk": 84099190, "fields": { - "ncm": "84099190", - "unid": "10", - "ppe": "3193", - "ppi": "3172", - "fat_agreg": "03", - "isic4": "29", - "exp_subset": "1005", - "ncm_por": "Outras partes para motores de explosão", - "ncm_en": "Other parts for internal combustion engines", - "ncm_es": "Otras partes para motores de explosión", - "siit": "2000" + "ncm_code": "84099190", + "statistic_unit_code": "10", + "ppe_code": "3193", + "ppi_code": "3172", + "aggregate_factor_code": "03", + "isic4_code": "29", + "exportation_subset": "1005", + "ncm_name_pt": "Outras partes para motores de explosão", + "ncm_name_es": "Other parts for internal combustion engines", + "ncm_name_en": "Otras partes para motores de explosión", + "siit_code": "2000", + "cuci": 71391, + "cgce": 280, + "sh": 840991 } }, { "model": "assets.ncm", - "pk": 2, + "pk": 44119210, "fields": { - "ncm": "44119210", - "unid": "16", - "ppe": "3580", - "ppi": "3580", - "fat_agreg": "03", - "isic4": "16", - "exp_subset": "0805", - "ncm_por": "Painéis de fibras madeira de média densidade (denominados MDF), com densidade superior a 0,8 g/cm3, não trabalhados mecanicamente nem recobertos à superfície", - "ncm_en": "Medium density fibreboard (called MDF), with a density of more than 0,8 g / cm3, not mechanically worked or surface covered", - "ncm_es": "Paneles de fibras de madera de media densidad (denominados MDF), con una densidad superior a 0,8 g / cm3, no trabajados mecánicamente ni recubiertos a la superficie", - "siit": "4000" + "ncm_code": "44119210", + "statistic_unit_code": "16", + "ppe_code": "3580", + "ppi_code": "3580", + "aggregate_factor_code": "03", + "isic4_code": "16", + "exportation_subset": "0805", + "ncm_name_pt": "Painéis de fibras madeira de média densidade (denominados MDF), com densidade superior a 0,8 g/cm3, não trabalhados mecanicamente nem recobertos à superfície", + "ncm_name_en": "Medium density fibreboard (called MDF), with a density of more than 0,8 g / cm3, not mechanically worked or surface covered", + "ncm_name_es": "Paneles de fibras de madera de media densidad (denominados MDF), con una densidad superior a 0,8 g / cm3, no trabajados mecánicamente ni recubiertos a la superficie", + "siit_code": "4000", + "cuci": 63459, + "cgce": 240, + "sh": 441192 } }, { "model": "assets.ncm", - "pk": 3, + "pk": 62046300, "fields": { - "ncm": "62046300", - "unid": "11", - "ppe": "3499", - "ppi": "3083", - "fat_agreg": "03", - "isic4": "14", - "exp_subset": "1602", - "ncm_por": "Calças, jardineiras, bermudas e shorts (calções), de uso feminino, de fibras sintéticas", - "ncm_en": "Women's or girls' trousers, bib and brace overalls, breeches and shorts of synthetic fibers", - "ncm_es": "Pantalones, pantalones cortos, bermudas y pantalones cortos (pantalones), de uso femenino, de fibras sintéticas", - "siit": "4000" + "ncm_code": "62046300", + "statistic_unit_code": "11", + "ppe_code": "3499", + "ppi_code": "3083", + "aggregate_factor_code": "03", + "isic4_code": "14", + "exportation_subset": "1602", + "ncm_name_pt": "Calças, jardineiras, bermudas e shorts (calções), de uso feminino, de fibras sintéticas", + "ncm_name_en": "Women's or girls' trousers, bib and brace overalls, breeches and shorts of synthetic fibers", + "ncm_name_es": "Pantalones, pantalones cortos, bermudas y pantalones cortos (pantalones), de uso femenino, de fibras sintéticas", + "siit_code": "4000", + "cuci": 8426, + "cgce": 321, + "sh": 620463 } }, { "model": "assets.ncm", - "pk": 4, + "pk": 33049990, "fields": { - "ncm": "33049990", - "unid": "10", - "ppe": "3681", - "ppi": "3681", - "fat_agreg": "03", - "isic4": "20", - "exp_subset": "1404", - "ncm_por": "Outros sabões/produtos/preparações, em barras, pedaços, etc.", - "ncm_en": "Other soaps / products / preparations, in bars, pieces, etc.", - "ncm_es": "Otros jabones / productos / preparaciones, en barras, pedazos, etc.", - "siit": "2000" + "ncm_code": "33049990", + "statistic_unit_code": "10", + "ppe_code": "3681", + "ppi_code": "3681", + "aggregate_factor_code": "03", + "isic4_code": "20", + "exportation_subset": "1404", + "ncm_name_pt": "Outros sabões/produtos/preparações, em barras, pedaços, etc.", + "ncm_name_en": "Other soaps / products / preparations, in bars, pieces, etc.", + "ncm_name_es": "Otros jabones / productos / preparaciones, en barras, pedazos, etc.", + "siit_code": "2000", + "cuci": 5532, + "cgce": 322, + "sh": 330499 } }, { "model": "assets.ncm", - "pk": 5, + "pk": 73181500, "fields": { - "ncm": "73181500", - "unid": "10", - "ppe": "3671", - "ppi": "3671", - "fat_agreg": "03", - "isic4": "25", - "exp_subset": "1599", - "ncm_por": "Outros parafusos e pinos ou pernos, mesmo com as porcas e arruelas, de ferro fundido, ferro ou aço", - "ncm_en": "Other screws and bolts, whether or not with their nuts and washers, of cast iron, iron or steel", - "ncm_es": "Otros tornillos y pernos o pernos, incluso con las tuercas y arandelas, de fundición, hierro o acero", - "siit": "3000" + "ncm_code": "73181500", + "statistic_unit_code": "10", + "ppe_code": "3671", + "ppi_code": "3671", + "aggregate_factor_code": "03", + "isic4_code": "25", + "exportation_subset": "1599", + "ncm_name_pt": "Outros parafusos e pinos ou pernos, mesmo com as porcas e arruelas, de ferro fundido, ferro ou aço", + "ncm_name_en": "Other screws and bolts, whether or not with their nuts and washers, of cast iron, iron or steel", + "ncm_name_es": "Otros tornillos y pernos o pernos, incluso con las tuercas y arandelas, de fundición, hierro o acero", + "siit_code": "3000", + "cuci": 69421, + "cgce": 240, + "sh": 731815 } }, { "model": "assets.ncm", - "pk": 6, + "pk": 39263000, "fields": { - "ncm": "39263000", - "unid": "10", - "ppe": "3619", - "ppi": "3427", - "fat_agreg": "03", - "isic4": "22", - "exp_subset": "1407", - "ncm_por": "Guarnições para móveis, carrocerias e semelhantes, de plásticos", - "ncm_en": "Fittings for furniture, coachwork and the like, of plastics", - "ncm_es": "Guarniciones para muebles, carrocerías y similares, de plástico", - "siit": "3000" + "ncm_code": "39263000", + "statistic_unit_code": "10", + "ppe_code": "3619", + "ppi_code": "3427", + "aggregate_factor_code": "03", + "isic4_code": "22", + "exportation_subset": "1407", + "ncm_name_pt": "Guarnições para móveis, carrocerias e semelhantes, de plásticos", + "ncm_name_en": "Fittings for furniture, coachwork and the like, of plastics", + "ncm_name_es": "Guarniciones para muebles, carrocerías y similares, de plástico", + "siit_code": "3000", + "cuci": 89395, + "cgce": 240, + "sh": 392630 } }, { "model": "assets.ncm", - "pk": 7, + "pk": 45049000, "fields": { - "ncm": "45049000", - "unid": "10", - "ppe": "3990", - "ppi": "3990", - "fat_agreg": "03", - "isic4": "16", - "exp_subset": "8099", - "ncm_por": "Outras obras de cortiça aglomerada", - "ncm_en": "Other articles of agglomerated cork", - "ncm_es": "Otras manufacturas de corcho aglomerado", - "siit": "4000" + "ncm_code": "45049000", + "statistic_unit_code": "10", + "ppe_code": "3990", + "ppi_code": "3990", + "aggregate_factor_code": "03", + "isic4_code": "16", + "exportation_subset": "8099", + "ncm_name_pt": "Outras obras de cortiça aglomerada", + "ncm_name_en": "Other articles of agglomerated cork", + "ncm_name_es": "Otras manufacturas de corcho aglomerado", + "siit_code": "4000", + "cuci": 63329, + "cgce": 240, + "sh": 450490 } }, { "model": "assets.ncm", - "pk": 8, + "pk": 73181600, "fields": { - "ncm": "73181600", - "unid": "10", - "ppe": "3671", - "ppi": "3671", - "fat_agreg": "03", - "isic4": "25", - "exp_subset": "1599", - "ncm_por": "Porcas de ferro fundido, ferro ou aço", - "ncm_en": "Nuts of cast iron, iron or steel", - "ncm_es": "Tuercas de hierro fundido, hierro o acero", - "siit": "3000" + "ncm_code": "73181600", + "statistic_unit_code": "10", + "ppe_code": "3671", + "ppi_code": "3671", + "aggregate_factor_code": "03", + "isic4_code": "25", + "exportation_subset": "1599", + "ncm_name_pt": "Porcas de ferro fundido, ferro ou aço", + "ncm_name_en": "Nuts of cast iron, iron or steel", + "ncm_name_es": "Tuercas de hierro fundido, hierro o acero", + "siit_code": "3000", + "cuci": 69421, + "cgce": 240, + "sh": 731816 } }, { "model": "assets.ncm", - "pk": 9, + "pk": 84139190, "fields": { - "ncm": "84139190", - "unid": "10", - "ppe": "3060", - "ppi": "3060", - "fat_agreg": "03", - "isic4": "28", - "exp_subset": "0901", - "ncm_por": "Outras partes de bombas para líquidos", - "ncm_en": "Other parts of pumps for liquids", - "ncm_es": "Otras partes de bombas para líquidos", - "siit": "2000" - } - }, - { - "model": "assets.ncm", - "pk": 10, - "fields": { - "ncm": "84139190", - "unid": "10", - "ppe": "3060", - "ppi": "3060", - "fat_agreg": "03", - "isic4": "28", - "exp_subset": "0901", - "ncm_por": "Outras partes de bombas para líquidos", - "ncm_en": "Other parts of pumps for liquids", - "ncm_es": "Otras partes de bombas para líquidos", - "siit": "2000" + "ncm_code": "84139190", + "statistic_unit_code": "10", + "ppe_code": "3060", + "ppi_code": "3060", + "aggregate_factor_code": "03", + "isic4_code": "28", + "exportation_subset": "0901", + "ncm_name_pt": "Outras partes de bombas para líquidos", + "ncm_name_en": "Other parts of pumps for liquids", + "ncm_name_es": "Otras partes de bombas para líquidos", + "siit_code": "2000", + "cuci": 74291, + "cgce": 270, + "sh": 841391 } } ] diff --git a/src/comex_stat/assets/fixtures/sh.json b/src/comex_stat/assets/fixtures/sh.json new file mode 100644 index 0000000..3d44b18 --- /dev/null +++ b/src/comex_stat/assets/fixtures/sh.json @@ -0,0 +1,200 @@ +[ + { + "model": "assets.SH", + "pk": 840991, + "fields": { + "chapter_code": "84", + "chapter_name_pt": "Reatores nucleares, caldeiras, máquinas, aparelhos e instrumentos mecânicos, e suas partes", + "chapter_name_en": "Nuclear reactors, boilers, machinery and mechanical appliances; others", + "chapter_name_es": "Reactores nucleares, calderas, máquinas, otros.", + "position_code": "8409", + "position_name_pt": "Partes reconhecíveis como exclusiva ou principalmente destinadas aos motores das posições 8407 ou 8408", + "position_name_en": "Parts suitable for use solely or principally with the engines of heading No 8407 or 8408", + "position_name_es": "Partes identificables como destinadas, exclusiva o principalmente, a los motores de las partidas 8407 u 8408", + "subposition_code": "840991", + "subposition_name_pt": "Outras partes exclusiva ou principalmente destinadas aos motores de pistão, de ignição por centelha", + "subposition_name_en": "Parts suitable for use solely or principally with spark-ignition internal combustion piston engine, n.e.s.", + "subposition_name_es": "Partes identificables como destinadas exclusiva o principalmente a motores de émbolo pistón de encendido por chispa, n.c.o.p.", + "section_code": "XVI", + "section_name_pt": "Máquinas e aparelhos, material elétrico e suas partes; Aparelhos de gravação ou reprodução de som, aparelhos de gravação ou reprodução de imagens e de som em televisão, e suas partes e acessórios", + "section_name_en": "Machinery and mechanical appliances; Electrical equipment and parts thereof; Sound recorders and reproducers, sound recorders and producers of television image; Parts and accessoires of such articles", + "section_name_es": "Máquinas y aparatos, material eléctrico e sus partes; Aparatos de grabación o reproducción de sonido, aparatos de grabación o reproducción de imágenes y sonido en televisión, y las partes y accesorios de estos aparatos" + } + }, + { + "model": "assets.SH", + "pk": 441192, + "fields": { + "chapter_code": "44", + "chapter_name_pt": "Madeira, carvão vegetal e obras de madeira", + "chapter_name_en": "Wood and articles of wood; wood charcoal", + "chapter_name_es": "Madera, carbón vegetal y manufacturas de madera", + "position_code": "4411", + "position_name_pt": "Painéis de fibras de madeira ou de outras matérias lenhosas, mesmo aglomeradas com resinas ou com outros aglutinantes orgânicos", + "position_name_en": "Tableros de fibra de madera u otras materias leñosas, incluso aglomerados con resinas u otros aglutinantes orgánicos", + "position_name_es": "Fibreboard of wood or other ligneous materials, whether or not bonded with resins or other organic substances", + "subposition_code": "441192", + "subposition_name_pt": "Painéis de fibra de madeira ou de outras matérias lenhosas, mesmo aglomeradas com resinas ou outros algutinantes orgânicos, com densidade superior a 0,8g/cm3", + "subposition_name_en": "Other fibreboard of wood, 0.35 0,8 g/cm³", + "section_code": "IX", + "section_name_pt": "Madeira, carvão vegetal e obras de madeira; Cortiça e suas obras; Obras de espartaria ou de cestaria", + "section_name_en": "Madera, carbón vegetal y manufacturas de madera; Corcho y manufacturas de corcho; Manufacturas de espartería o de cestería", + "section_name_es": "Wood, vegetal charcoal and wood manufactures" + } + }, + { + "model": "assets.SH", + "pk": 620463, + "fields": { + "chapter_code": "62", + "chapter_name_pt": "Vestuário e seus acessórios, exceto de Malha", + "chapter_name_en": "Articles of apparel and clothing accessories, not knitted or crocheted", + "chapter_name_es": "Prendas y complementos (accesorios), de vestir, excepto los de punto", + "position_code": "6204", + "position_name_pt": "Fatos de saia-casaco, conjuntos, casacos, vestidos, saias, saias-calças, calças, jardineiras, bermudas e calções (shorts) (exceto de banho), de uso feminino", + "position_name_en": "Women's or girls' suits, ensembles, jackets, blazers, dresses, skirts, divided skirts, trousers, bib and brace overalls, breeches and shorts (other than swimwear)", + "position_name_es": "Trajes sastre, conjuntos, chaquetas (sacos), vestidos, faldas, faldas pantalón, pantalones largos, pantalones con peto, pantalones cortos (calzones) y shorts (excepto de baño), para mujeres o niñas", + "subposition_code": "620463", + "subposition_name_pt": "Camisas de algodão, de uso masculino", + "subposition_name_en": "Women''s or girls'' trousers, bib and brace overalls, breeches and shorts of synthetic fibres (excl. knitted or crocheted, panties and swimwear)", + "subposition_name_es": "Camisas de fibras sintéticas o artificiales, para hombres o niños (exc. de punto, así como camisones y camisetas)", + "section_code": "XI", + "section_name_pt": "Matérias têxteis e suas obras", + "section_name_en": "Textiles and textiles articles", + "section_name_es": "Materias textiles y sus manufacturas" + } + }, + { + "model": "assets.SH", + "pk": 330499, + "fields": { + "chapter_code": "33", + "chapter_name_pt": "Óleos essenciais e resinóides; produtos de perfumaria ou de toucador preparados e preparações cosméticas", + "chapter_name_en": "Essential oils and resinoids; perfumery, cosmetic or toilet preparations", + "chapter_name_es": "Aceites esenciales y resinoides; preparaciones de perfumería, otros.", + "position_code": "3304", + "position_name_pt": "Produtos de beleza ou de maquilhagem preparados e preparações para conservação ou cuidados da pele (exceto medicamentos), incluídas as preparações anti-solares e os bronzeadores; preparações para manicuros e pedicuros", + "position_name_en": "Beauty or make-up preparations and preparations for the care of the skin (other than medicaments), including sunscreen or sun tan preparations; manicure or pedicure preparations", + "position_name_es": "Preparaciones capilares", + "subposition_code": "330499", + "subposition_name_pt": "Outros produtos de beleza ou de maquilagem preparados", + "subposition_name_en": "Beauty or make-up preparations and preparations for the care of the skin (other than medicaments), incl. sunscreen or suntan preparations (excl. medicaments, lip and eye make-up preparations, manicure or pedicure preparations and make-up", + "subposition_name_es": "Preparaciones de belleza, maquillaje y para el cuidado de la piel, incl. las preparaciones antisolares y las bronceadoras (exc. medicamentos, preparaciones para el maquillaje de los labios o de los ojos, preparaciones para manicuras", + "section_code": "VI", + "section_name_pt": "Produtos das indústrias químicas ou indústrias conexas", + "section_name_en": "Products of chemical or allied industries", + "section_name_es": "Productos de las industrias químicas o de las industrias conexas" + } + }, + { + "model": "assets.SH", + "pk": 731815, + "fields": { + "chapter_code": "73", + "chapter_name_pt": "Obras de ferro fundido, ferro ou aço", + "chapter_name_en": "Articles of iron or steel", + "chapter_name_es": "Manufacturas de fundición, de hierro o acero", + "position_code": "7318", + "position_name_pt": "Parafusos, pernos ou pinos, roscados, porcas, tira-fundos, ganchos roscados, rebites, chavetas, cavilhas, contrapinos ou troços, anilhas ou arruelas", + "position_name_en": "Screws, bolts, nuts, coach screws, screw hooks, rivets, cotters, cotter-pins, washers (including spring washers) and similar articles, of iron or steel", + "position_name_es": "Tornillos, pernos, tuercas, tirafondos, escarpias roscadas, remaches, pasadores, clavijas, chavetas, arandelas, incluidas las arandelas de muelle (resorte) y artículos similares, de fundición, hierro o acero", + "subposition_code": "731815", + "subposition_name_pt": "Outros parafusos e pinos ou pernos, mesmo com as porcas e arruelas, de ferro fundido, ferro ou aço", + "subposition_name_en": "Screws, bolts, nuts, coach screws, screw hooks, rivets, cotters, cotter-pins, washers (including spring washers) and similar articles, of iron or steel", + "subposition_name_es": "Tornillos y pernos, roscados, de fundición, hierro o acero, incl. con sus tuercas y arandelas (exc. tirafondos y demás tornillos para madera; escarpias y armellas, roscadas; tornillos taladradores; clavos-tornillo, tapones metálicos roscados", + "section_code": "XV", + "section_name_pt": "Metais comuns e suas obras", + "section_name_en": "Metales comunes y manufacturas de estos metales", + "section_name_es": "Base metals and articles of base metal" + } + }, + { + "model": "assets.SH", + "pk": 392630, + "fields": { + "chapter_code": "39", + "chapter_name_pt": "Plásticos e suas obras", + "chapter_name_en": "Plastics and articles thereof", + "chapter_name_es": "Plástico y sus manufacturas", + "position_code": "3926", + "position_name_pt": "Outras obras de plástico e obras de outras matérias das posições 3901 a 3914", + "position_name_en": "Other articles of plastics and articles of other materials of headings 3901 to 3914", + "position_name_es": "Demás manufacturas de plástico y manufacturas de las demás materias de las partidas 3901 a 3914", + "subposition_code": "392630", + "subposition_name_pt": "Outras obras de plásticos e obras de outras matérias das posições 3901 a 3904", + "subposition_name_en": "Articles of plastics and articles of other materials of heading 3901 to 3914, n.e.s", + "subposition_name_es": "Manufacturas de plástico y manufacturas de las demás materias de las partidas 3901 a 3914, n.c.o.p.", + "section_code": "VII", + "section_name_pt": "Plásticos e suas obras; Borracha e suas obras", + "section_name_en": "Plastics and articles thereof", + "section_name_es": "Materias plásticas y manufacturas de estas materias; Caucho y manufacturas de caucho" + } + }, + { + "model": "assets.SH", + "pk": 450490, + "fields": { + "chapter_code": "45", + "chapter_name_pt": "Cortiça e suas obras", + "chapter_name_en": "Cork and articles of cork", + "chapter_name_es": "Corcho y sus manufacturas", + "position_code": "4054", + "position_name_pt": "Cortiça aglomerada (com ou sem aglutinantes) e suas obras", + "position_name_en": "Agglomerated cork (with or without a binding substance) and articles of agglomerated cork", + "position_name_es": "Corcho aglomerado, incluso con aglutinante, y manufacturas de corcho aglomerado", + "subposition_code": "450490", + "subposition_name_pt": "Outras obras de cortiça aglomerada", + "subposition_name_en": "Agglomerated cork, with or without a binding substance, and articles of agglomerated cork (excl. footware and parts thereof; insoles, whether or not removable; headgear and parts thereof", + "subposition_name_es": "Corcho aglomerado, incl. con aglutinante, y manufacturas de corcho aglomerado (exc. calzado y sus partes, principalmente las plantillas no fijas; artículos de sombrerería y sus partes", + "section_code": "IX", + "section_name_pt": "Madeira, carvão vegetal e obras de madeira; Cortiça e suas obras; Obras de espartaria ou de cestaria", + "section_name_en": "Madera, carbón vegetal y manufacturas de madera; Corcho y manufacturas de corcho; Manufacturas de espartería o de cestería", + "section_name_es": "Wood and articles of wood; Wood charcoal; Cork and articles of cork; Manufactures of straw, of esparto or of other plaiting materials; Basketware and wickerwork" + } + }, + { + "model": "assets.SH", + "pk": 731816, + "fields": { + "chapter_code": "73", + "chapter_name_pt": "Obras de ferro fundido, ferro ou aço", + "chapter_name_en": "Articles of iron or steel", + "chapter_name_es": "Manufacturas de fundición, de hierro o acero", + "position_code": "7318", + "position_name_pt": "Parafusos, pernos ou pinos, roscados, porcas, tira-fundos, ganchos roscados, rebites, chavetas, cavilhas, contrapinos ou troços, anilhas ou arruelas (incluídas as de pressão) e artefactos semelhantes", + "position_name_en": "Screws, bolts, nuts, coach screws, screw hooks, rivets, cotters, cotter-pins, washers (including spring washers) and similar articles, of iron or steel", + "position_name_es": "Tornillos, pernos, tuercas, tirafondos, escarpias roscadas, remaches, pasadores, clavijas, chavetas, arandelas, incluidas las arandelas de muelle (resorte) y artículos similares, de fundición, hierro o acero", + "subposition_code": "731816", + "subposition_name_pt": "Porcas de ferro fundido, ferro ou aço", + "subposition_name_en": "Nuts of iron or steel", + "subposition_name_es": "Tuercas, de fundición, hierro o acero", + "section_code": "XV", + "section_name_pt": "Metais comuns e suas obras", + "section_name_en": "Metales comunes y manufacturas de estos metales", + "section_name_es": "Base metals and articles of base metal" + } + }, + { + "model": "assets.SH", + "pk": 841391, + "fields": { + "chapter_code": "84", + "chapter_name_pt": "Reatores nucleares, caldeiras, máquinas, aparelhos e instrumentos mecânicos, e suas partes", + "chapter_name_en": "Nuclear reactors, boilers, machinery and mechanical appliances; others", + "chapter_name_es": "Reactores nucleares, calderas, máquinas, otros.", + "position_code": "8412", + "position_name_pt": "Bombas para líquidos, mesmo com dispositivo medidor; elevadores de líquidos", + "position_name_en": "Pumps for liquids, whether or not fitted with a measuring device; liquid elevators", + "position_name_es": "Bombas para líquidos, incluso con dispositivo medidor incorporado; elevadores de líquidos", + "subposition_code": "841391", + "subposition_name_pt": "Bombas de vácuo", + "subposition_name_en": "Vacuum pumps", + "subposition_name_es": "Bombas de vacío", + "section_code": "XVI", + "section_name_pt": "Máquinas e aparelhos, material elétrico e suas partes; Aparelhos de gravação ou reprodução de som, aparelhos de gravação ou reprodução de imagens e de som em televisão, e suas partes e acessórios", + "section_name_en": "Machinery and mechanical appliances", + "section_name_es": "Máquinas y aparatos, material eléctrico e sus partes; Aparatos de grabación o reproducción de sonido, aparatos de grabación o reproducción de imágenes y sonido en televisión, y las partes y accesorios de estos aparatos" + } + } +] diff --git a/src/comex_stat/assets/fixtures/tradeblocs.json b/src/comex_stat/assets/fixtures/tradeblocs.json new file mode 100644 index 0000000..2e2934e --- /dev/null +++ b/src/comex_stat/assets/fixtures/tradeblocs.json @@ -0,0 +1,112 @@ +[ + { + "model": "assets.TradeBlocs", + "pk": 51, + "fields": { + "name_portuguese": "África", + "name_english": "Africa (minus MIDDLE EAST)", + "name_spanish": "África (menos ORIENTE MEDIO)", + "code": "51" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 105, + "fields": { + "name_portuguese": "América Central e Caribe", + "name_english": "Central America and Caribbean", + "name_spanish": "América Central y Caribe", + "code": "105" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 107, + "fields": { + "name_portuguese": "América do Norte", + "name_english": "North America", + "name_spanish": "América del norte", + "code": "107" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 48, + "fields": { + "name_portuguese": "América do Sul", + "name_english": "South America", + "name_spanish": "América del Sur", + "code": "48" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 39, + "fields": { + "name_portuguese": "Ásia (Exclusive Oriente Médio)", + "name_english": "Asia (minus MIDDLE EAST)", + "name_spanish": "Asia (menos Oriente Medio)", + "code": "39" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 53, + "fields": { + "name_portuguese": "Associcação de Nações do Sudeste Asiático - ASEAN", + "name_english": "Association Of Southeast Asian Nations (ASEAN)", + "name_spanish": "Asociación de Países del Sudeste Asiático (ASEAN)", + "code": "53" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 112, + "fields": { + "name_portuguese": "Europa", + "name_english": "Europe", + "name_spanish": "Europa", + "code": "112" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 111, + "fields": { + "name_portuguese": "Mercado Comum do Sul - Mercosul", + "name_english": "Southern Common Market (MERCOSUL)", + "name_spanish": "Mercado Comum del Sur (MERCOSUR)", + "code": "111" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 61, + "fields": { + "name_portuguese": "Oceania", + "name_english": "Oceania", + "name_spanish": "Oceania", + "code": "61" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 41, + "fields": { + "name_portuguese": "Oriente Médio", + "name_english": "Middle East", + "name_spanish": "Oriente Medio", + "code": "41" + } + }, + { + "model": "assets.TradeBlocs", + "pk": 22, + "fields": { + "name_portuguese": "União Europeia - UE", + "name_english": "European Union (EU)", + "name_spanish": "Uniao Europea (UE)", + "code": "22" + } + } +] diff --git a/src/comex_stat/assets/fixtures/transportation.json b/src/comex_stat/assets/fixtures/transportation.json new file mode 100644 index 0000000..99c37bb --- /dev/null +++ b/src/comex_stat/assets/fixtures/transportation.json @@ -0,0 +1,98 @@ +[ + { + "model": "assets.Transportation", + "pk": 0, + "fields": { + "name": "VIA NAO DECLARADA", + "code": "00" + } + }, + { + "model": "assets.Transportation", + "pk": 1, + "fields": { + "name": "MARITIMA", + "code": "01" + } + }, + { + "model": "assets.Transportation", + "pk": 2, + "fields": { + "name": "FLUVIAL", + "code": "02" + } + }, + { + "model": "assets.Transportation", + "pk": 3, + "fields": { + "name": "LACUSTRE", + "code": "03" + } + }, + { + "model": "assets.Transportation", + "pk": 4, + "fields": { + "name": "AEREA", + "code": "04" + } + }, + { + "model": "assets.Transportation", + "pk": 5, + "fields": { + "name": "POSTAL", + "code": "05" + } + }, + { + "model": "assets.Transportation", + "pk": 6, + "fields": { + "name": "FERROVIARIA", + "code": "06" + } + }, + { + "model": "assets.Transportation", + "pk": 7, + "fields": { + "name": "RODOVIARIA", + "code": "07" + } + }, + { + "model": "assets.Transportation", + "pk": 8, + "fields": { + "name": "CONDUTO/REDE DE TRANSMISSAO", + "code": "08" + } + }, + { + "model": "assets.Transportation", + "pk": 9, + "fields": { + "name": "MEIOS PROPRIOS", + "code": "09" + } + }, + { + "model": "assets.Transportation", + "pk": 99, + "fields": { + "name": "VIA DESCONHECIDA", + "code": "99" + } + }, + { + "model": "assets.Transportation", + "pk": 10, + "fields": { + "name": "ENTRADA/SAIDA FICTA", + "code": "10" + } + } +] diff --git a/src/comex_stat/assets/fixtures/urf.json b/src/comex_stat/assets/fixtures/urf.json new file mode 100644 index 0000000..737855f --- /dev/null +++ b/src/comex_stat/assets/fixtures/urf.json @@ -0,0 +1,58 @@ +[ + { + "model": "assets.Urf", + "pk": 817800, + "fields": { + "name": "0817800 - PORTO DE SANTOS", + "code": "817800" + } + }, + { + "model": "assets.Urf", + "pk": 0, + "fields": { + "name": "0000000 - NAO INFORMADO", + "code": "0" + } + }, + { + "model": "assets.Urf", + "pk": 417902, + "fields": { + "name": "0417902 - IRF - PORTO DE SUAPE", + "code": "417902" + } + }, + { + "model": "assets.Urf", + "pk": 817600, + "fields": { + "name": "0817600 - AEROPORTO INTERNACIONAL DE SAO PAULO/GUARULHOS", + "code": "817600" + } + }, + { + "model": "assets.Urf", + "pk": 147600, + "fields": { + "name": "0147600 - ALF - CORUMBÁ", + "code": "147600" + } + }, + { + "model": "assets.Urf", + "pk": 817700, + "fields": { + "name": "0817700 - AEROPORTO INTERNACIONAL DE VIRACOPOS", + "code": "817700" + } + }, + { + "model": "assets.Urf", + "pk": 917500, + "fields": { + "name": "0917500 - ALF - FOZ DO IGUAÇU", + "code": "917500" + } + } +]