openapi: 3.2.0 info: title: Sagas Cotações API version: v1 contact: email: engineers@180s.com.br servers: - url: //sagas.staging.180s.com.br security: - oauth: [] tags: - name: Cotações paths: /sagas/v1/cotacoes: post: responses: '200': description: '' content: '*/*': schema: type: object title: camaleao.lib.schema.contracts.sagas.wire-out/CotacaoComboResposta properties: cotacao-produtos: type: array items: type: object title: camaleao.lib.schema.contracts.sagas.wire-out/CotacaoProdutoResposta properties: valor: type: number format: double example: -0.5 instante-vigencia-inicio: type: string format: date-time valor-liquido: type: number format: double example: -0.3984375 iof: type: number format: double example: -3.703125 propriedades: type: object title: camaleao.lib.properties.schema/Materialized additionalProperties: example: J plano: type: string id-produto: type: string format: uuid itens: type: array items: type: object title: camaleao.lib.schema.contracts.sagas.wire-out/ItemCotacaoProduto properties: chave-item: type: string lmi: type: number format: double example: 1 valor-liquido: type: number format: double example: 0.408935546875 additionalProperties: false required: - chave-item instante-vigencia-fim: type: string format: date-time additionalProperties: false required: - valor - itens - iof - valor-liquido - id-produto valida-ate: type: string format: date-time metadados: type: object title: camaleao.lib.schema.shared.model/Metadata additionalProperties: type: string example: ? v4Lcvh6B4oc08YoW3911QHxGaUXTK4660W39h70w1XMOdXp0e4N08Ld05B64Bw2t578yg6c5sQ8F6y614BWe62Or4Gf1I83duk21GT0P4vEQo3W67FPlU8KUPO613 : Z2P2W5QeRig04P5UGgPEkeUTYfCA8I5YIK4A88L97EWId fBV56GX5ux4152H: GYcnI0vnzP3NS04i13PwCvBt1Gb9c3CRA721pT707OBtC36Ub3D0jXTOqEONHftZ8u7U540iRtEY7ruL1A4eRqKI5l18Y11Y70uX 5MZObea6N81VJAtU5DQP2lK7Hjr2j4SagjlxEObYwNx24p4EoT1560e10pw5QcU29r6r3qlV5r32mXiJQe0o15df4iNpZuRrDcl1RI7v8jN61EJFBcTJVqLJoU: c995R0P8J6Ll5lNb2vy988PoyDWaG2qso3CHE196Ja9VbU943Akb94Anq8L2u4ULidm2m2r8GjVpdEFts9zsVXHRPu5YYQ2Bu8Qe80z2Ho5q6g7lZ5q83885FSGb4xItGp6hh51D86r5tGQ vFJXYyFR39e3aSu7uAERhoKYN0O616NSL0gd4p9KbZLrhCr2XBmYbnIKYus6G2CcvUx298XLZZuw6oI0gfEb86u5z0QL32t8MupbrZ3csyih1: ZYW76PgX52Y8YKL5DD9MiRdgrpUtl7s2I506PzW939ZE4dEJjrVHydE8 S5DGW7153IXrM6ZBB4bwg5NnN42F8dBj7Hb3y1C5fiXls67jYvX999n393rcykDU: 4P5ch03QFbOMX7GzLW39239Qv9Wn5V67prIZln3eghcsb5eq0gmU8IlC1Ry5QQ TkvN5GR: R 072Z6z3Pk46wnDuo: zpU577aEYx68JHq6yBz8 ? umIfMXlRgbitV293zYvJ181oz2MZ4KA98kG3eZh6xF41HW8HgQfFQ3PPeml75W52KiVV64Fu6VR8xMDngZ1TQVdpxP85BIj0N8n6wN3y8o46BWuJaX5sjkpg6dN8a7oA4O : EDWeF7RSWLxfQl20zvbRYysAj8MJSmcgv0ju08 R3ok556H4279M41YKZS8CRj9g5SCC45UflUy05QB5I4209pS6Zka29LZ6N87L39809605VTX3g1HPFE0qZ1jT1m0T8j47dKH289f6L: 0T4ywSkU7Q8IM28v4v0KzP71yyTWHDA8f5Apl4kD6Y1K2ECFlsS1KN7S9YgwB0SesbIYY5DoFBLGXWG36Lv5Am0jlmtT1uk4RMiTxS0ZvGiheIuACk919FECTQ23f80z1mr3 1J93iRi0s93xhyle40C3K21l68eK: NeKyoHR9V7AzbxMxYwH7K2rgCDP9j8J0P0jQjGynOv691yzj259v7wjs85UszV809e7V7Wl7Du397q7T8DfC3d5gd36TwCLRs65k1EtESOhPPkiHLb90HAoSDOfsgokkE6L471xqo iof: type: number format: double example: -0.703125 instante-criacao: type: string format: date-time valor-total-liquido: type: number format: double example: 0.5 id-cotacao: type: string format: uuid id-combo-produto: type: string format: uuid id-afiliacao: type: string format: uuid valor-total: type: number format: double example: -0.65625 additionalProperties: false required: - valor-total - valida-ate - valor-total-liquido - iof - id-combo-produto - id-cotacao - cotacao-produtos - instante-criacao requestBody: content: application/json: schema: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/CotacaoComboRequisicao properties: id-combo-produto: type: string format: uuid produtos: type: array items: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/CotacaoProdutoRequisicao properties: instante-vigencia-inicio: type: string format: date-time percentual-comissao: type: number format: double example: 1.5 premio-requerido: type: number format: double example: 2 segmentacao: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/CotacaoProdutoSegmentacao properties: cpf-ou-cnpj: type: string pattern: ^([0-9]{11}|[A-Z0-9]{12}[0-9]{2})$ example: JKK31296000105 celular: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/CotacaoProdutoSegmentacaoCelular properties: marca: type: string enum: - nothing - panasonic - redmagic - samsung - asus - lenovo - realme - motorola - iqoo - micromax - poco - oppo - lava - tecno - meizu - honor - oneplus - zte - nokia - xiaomi - apple - razer - sony - sharp - google - tcl - infinix - blackberry - alcatel - vivo modelo: type: string pattern: ^[a-zA-Z][\w\s\+]*[\w\+]$ example: aUj4QIz additionalProperties: false required: - marca - modelo sexo: type: string enum: - feminino - masculino data-nascimento: type: string pattern: ^\d{4}-\d{2}-\d{2}$ example: '1964-11-19' custo-financiamento: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/SegmentoCustoFinanciamento properties: iof: type: number format: double example: 0.6953125 taxa-juros: type: number format: double example: 0.5 additionalProperties: false required: - iof - taxa-juros additionalProperties: false propriedades: type: object title: camaleao.lib.properties.schema/Materialized additionalProperties: example: -2.5 comissoes: type: array items: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/Comissao properties: id-intermediario: type: string format: uuid percentual-comissao: type: number format: double example: 1.53125 additionalProperties: false required: - id-intermediario - percentual-comissao plano: type: string id-produto: type: string format: uuid itens: type: array items: type: object title: camaleao.lib.schema.contracts.sagas.wire-in/CotacaoProdutoItemRequisicao properties: chave-item: type: string premio: type: number format: double example: 4.7265625 limite-maximo-indenizacao: type: number format: double example: 0.625 additionalProperties: false required: - chave-item instante-vigencia-fim: type: string format: date-time additionalProperties: false required: - id-produto risco-segurado: type: object properties: tipo: type: string enum: - risco-generico - residencial - celular - lmi-variavel - divida-e-residencial - mercadoria - divida - cliente-segurado residencial: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoResidencial properties: endereco: type: object properties: logradouro: type: string numero: type: string complemento: type: - string - 'null' bairro: type: string cidade: type: string estado: type: string enum: - TO - RN - SC - AP - PR - SE - GO - RJ - PI - MG - AL - PE - SP - MA - CE - RO - BA - RS - AC - ES - MT - RR - PB - PA - DF - MS - AM cep: type: string pattern: ^[0-9]{8}$ example: '58849078' tipo-residencia: type: string enum: - apartamento - casa additionalProperties: false required: - logradouro - numero - bairro - cidade - estado - cep tipo-construcao-residencia: type: string enum: - mista-e-inferior - superior - solida tipo-bem-segurado-residencia: type: string enum: - predio-e-conteudo - predio tipo-risco-residencia: type: string enum: - escritorio-ou-consultorio - servico - desocupado - comercio - deposito - industria additionalProperties: false required: - endereco risco-generico: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoGenerico properties: id-externo: type: string descricao: type: string categoria: type: string additionalProperties: false required: - id-externo - descricao - categoria mercadoria: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoMercadoria properties: categoria: type: string data-venda-garantia-estendida: type: string pattern: ^\d{4}-\d{2}-\d{2}$ example: '2019-10-01' id-externo: type: string produto-novo: type: boolean meses-garantia-fabricante: type: integer format: int32 example: 2 descricao: type: string fim-garantia-original: type: string pattern: ^\d{4}-\d{2}-\d{2}$ example: '1975-07-22' data-venda-mercadoria: type: string pattern: ^\d{4}-\d{2}-\d{2}$ example: '2000-06-17' marca: type: string codigo-ean: type: string preco: type: number format: double example: -6.9296875 sub-categoria: type: string additionalProperties: false required: - preco - categoria - id-externo - descricao - fim-garantia-original - marca divida: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoDivida properties: id-externo: type: string descricao: type: string categoria: type: string capital-financiado: type: number format: double example: 0.806640625 prazo: type: integer format: int32 example: 4 mes-ano-parcela-vigente: type: string pattern: ^\d{4}-\d{2}$ example: 1976-09 valor-parcela: type: number format: double example: 3.296875 parcela-vencimento-dia-do-mes: type: integer format: int32 example: 12 additionalProperties: false required: - id-externo - descricao - categoria - capital-financiado - prazo - mes-ano-parcela-vigente divida-e-residencial: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoDividaEResidencial properties: endereco: type: object properties: logradouro: type: string numero: type: string complemento: type: - string - 'null' bairro: type: string cidade: type: string estado: type: string enum: - TO - RN - SC - AP - PR - SE - GO - RJ - PI - MG - AL - PE - SP - MA - CE - RO - BA - RS - AC - ES - MT - RR - PB - PA - DF - MS - AM cep: type: string pattern: ^[0-9]{8}$ example: '11870834' tipo-residencia: type: string enum: - apartamento - casa additionalProperties: false required: - logradouro - numero - bairro - cidade - estado - cep tipo-construcao-residencia: type: string enum: - mista-e-inferior - superior - solida tipo-bem-segurado-residencia: type: string enum: - predio-e-conteudo - predio tipo-risco-residencia: type: string enum: - escritorio-ou-consultorio - servico - desocupado - comercio - deposito - industria id-externo: type: string descricao: type: string categoria: type: string additionalProperties: false required: - endereco - id-externo - descricao - categoria celular: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoCelular properties: marca: type: string enum: - nothing - panasonic - redmagic - samsung - asus - lenovo - realme - motorola - iqoo - micromax - poco - oppo - lava - tecno - meizu - honor - oneplus - zte - nokia - xiaomi - apple - razer - sony - sharp - google - tcl - infinix - blackberry - alcatel - vivo modelo: type: string pattern: ^[a-zA-Z][\w\s\+]*[\w\+]$ example: ap2Tcdz valor: type: number format: double example: 1.125 imei: type: string pattern: ^[0-9]*$ example: '504447460595923' nota-fiscal: type: string pattern: ^[0-9]*$ example: '63302' additionalProperties: false required: - marca - modelo - valor lmi-variavel: type: object title: camaleao.lib.schema.contracts.sagas.model/RiscoLmiVariavel properties: id-externo: type: string descricao: type: string categoria: type: string lmi: type: number format: double example: 6.796875 mes-ano-parcela-vigente: type: string pattern: ^\d{4}-\d{2}$ example: 1941-09 additionalProperties: false required: - descricao - categoria - lmi - mes-ano-parcela-vigente additionalProperties: false required: - tipo example: tipo: lmi-variavel risco-generico: id-externo: zQXs%2 descricao: X+gh{ categoria: do55Ne divida: id-externo: z3 descricao: _ categoria: '|2Z''mo' capital-financiado: 1.5 prazo: 8 mes-ano-parcela-vigente: 1968-11 valor-parcela: 0.4412841796875 parcela-vencimento-dia-do-mes: 12 celular: marca: vivo modelo: apMd4290nnYz valor: 1 nota-fiscal: '1' lmi-variavel: descricao: M}