-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d74d1d8
commit 56bcecd
Showing
2 changed files
with
65 additions
and
75 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 |
---|---|---|
|
@@ -165,78 +165,70 @@ func TestSolicitarPostagemReversa(t *testing.T) { | |
"codigo_servico": "04677", | ||
"cartao": "0067599079", | ||
"destinatario": { | ||
"nome": "João Silva", | ||
"logradouro": "São Paulo", | ||
"numero": "123", | ||
"complemento": "ap 123", | ||
"bairro": "jardim", | ||
"referencia": "alto", | ||
"cidade": "São Paulo", | ||
"uf": "SP", | ||
"cep": "01234567", | ||
"ddd": "11", | ||
"telefone": "99999999", | ||
"ddd_celular": "11", | ||
"celular": "999999999", | ||
"email": "[email protected]", | ||
"identificacao": "aaaaa", | ||
"ciencia_conteudo_proibido": "1", | ||
"dnec": { | ||
"dnec_mensagem": "ccccc", | ||
"dnec_resultset": "dddd", | ||
"dnec_retorno": 100, | ||
"dnec_total": 3.0 | ||
} | ||
"nome": "Fulano", | ||
"logradouro": "SBN", | ||
"numero": "10", | ||
"complemento": "Bloco A", | ||
"bairro": "Plano Piloto", | ||
"referencia": "", | ||
"cidade": "Brasília", | ||
"uf": "DF", | ||
"cep": "70002900", | ||
"ddd": "61", | ||
"telefone": "34261111", | ||
"email": "[email protected]" | ||
}, | ||
"coletas_solicitadas": [ | ||
{ | ||
"tipo": "A", | ||
"id_cliente": "1133566", | ||
"valor_declarado": "100.50", | ||
"descricao": "Documentos importantes", | ||
"cklist": "Item 1, Item 2", | ||
"remetente": { | ||
"nome": "Maria Souza", | ||
"logradouro": "Rio de Janeiro", | ||
"numero": "123", | ||
"complemento": "ap 123", | ||
"bairro": "lapa", | ||
"referencia": "baixo", | ||
"cidade": "Rio de Janeiro", | ||
"uf": "RJ", | ||
"cep": "21000000", | ||
"ddd": "21", | ||
"telefone": "99999999", | ||
"email": "[email protected]", | ||
"ciencia_conteudo_proibido": "aaaaa", | ||
"identificacao": "bbbb", | ||
"ddd_celular": "21", | ||
"celular": "999999999", | ||
"sms": "S", | ||
"restricao_anac": "1", | ||
"documento_estrangeiro": "" | ||
"coletas_solicitadas": { | ||
"tipo": "A", | ||
"id_cliente": "1133566", | ||
"valor_declarado": "1500.00", | ||
"descricao": "", | ||
"cklist": "", | ||
"documento": "", | ||
"remetente": { | ||
"nome": "Ciclano", | ||
"logradouro": "Rua 35", | ||
"numero": "10", | ||
"complemento": "", | ||
"bairro": "Águas Claras(Sul)", | ||
"referencia": "", | ||
"cidade": "Brasília", | ||
"uf": "DF", | ||
"cep": "71931180", | ||
"ddd": "61", | ||
"telefone": "34262222", | ||
"email": "[email protected]", | ||
"identificacao": "12312312387", | ||
"ddd_celular": "61", | ||
"celular": "922366666", | ||
"sms": "S" | ||
}, | ||
"produto": { | ||
"codigo": "116600063", | ||
"tipo": "0", | ||
"qtd": "1" | ||
}, | ||
"numero": "", | ||
"ag": "", | ||
"cartao": "", | ||
"servico_adicional": "", | ||
"ar": "", | ||
"obj_col": [ | ||
{ | ||
"item": "01", | ||
"desc": "Produto A" | ||
}, | ||
"produto": [ | ||
{ | ||
"codigo": "116600063", | ||
"tipo": "0", | ||
"qtd": "1" | ||
} | ||
], | ||
"numero": "string", | ||
"ag": "string", | ||
"cartao": "string", | ||
"servico_adicional": "string", | ||
"ar": 100, | ||
"obj_col": [{ | ||
"item": "1", | ||
"desc": "Certidão de Nascimento", | ||
"entrega": "Normal", | ||
"num": "001", | ||
"id": "555" | ||
}] | ||
} | ||
]} | ||
{ | ||
"item": "02", | ||
"desc": "Produto B" | ||
}, | ||
{ | ||
"item": "03", | ||
"desc": "Produto C" | ||
} | ||
] | ||
} | ||
} | ||
` | ||
|
||
sendRequest := &SolicitarPostagemReversa{} | ||
|
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