| @@ 74-87 (lines=14) @@ | ||
| 71 | }, extra=REMOVE_EXTRA) |
|
| 72 | ||
| 73 | ||
| 74 | class ColetaSimultanea(EntityBase): |
|
| 75 | ||
| 76 | def get_schema(self): |
|
| 77 | return Schema({ |
|
| 78 | Required('tipo'): Any('C', 'A'), |
|
| 79 | Optional('id_cliente'): All(Length(max=30)), |
|
| 80 | Optional('valor_declarado'): float, |
|
| 81 | Optional('descricao'): All(Coerce(str), Length(max=255)), |
|
| 82 | Optional('cklist'): Any(2, 4, 5, 7), |
|
| 83 | Optional('documento'): [str], |
|
| 84 | Required('remetente'): Remetente, |
|
| 85 | Optional('produto'): Produto, |
|
| 86 | Optional('obs'): All(Coerce(str)) |
|
| 87 | }, extra=REMOVE_EXTRA) |
|
| 88 | ||
| 89 | ||
| 90 | class Objeto(EntityBase): |
|
| @@ 90-99 (lines=10) @@ | ||
| 87 | }, extra=REMOVE_EXTRA) |
|
| 88 | ||
| 89 | ||
| 90 | class Objeto(EntityBase): |
|
| 91 | ||
| 92 | def get_schema(self): |
|
| 93 | return Schema({ |
|
| 94 | Required('item'): 1, |
|
| 95 | Optional('id'): All(Coerce(str), Length(max=30)), |
|
| 96 | Optional('desc'): All(Coerce(str), Length(max=255)), |
|
| 97 | Optional('entrega'): All(Coerce(str), Length(max=13)), |
|
| 98 | Optional('num'): All(Coerce(str), Length(max=13)), |
|
| 99 | }, extra=REMOVE_EXTRA) |
|
| 100 | ||
| 101 | ||
| 102 | class Produto(EntityBase): |
|