feat: the cart and the account ask for the customer's name
All checks were successful
Build and deploy / Validate source (push) Successful in 10s
Build and deploy / Integration suite on a real stack (push) Successful in 4m49s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m15s
All checks were successful
Build and deploy / Validate source (push) Successful in 10s
Build and deploy / Integration suite on a real stack (push) Successful in 4m49s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m15s
The Site asked only for CPF/CNPJ, WhatsApp and e-mail, so a person's Tiny contact was named after the recipient or the e-mail, and the WhatsApp notices the client's n8n sends from Tiny greeted "Olá, fulano@gmail.com". The cart's "Seus dados" and the signup now ask for a name, the account page can change it, and it names a CPF customer's Tiny contact (a CNPJ keeps the registry's razão social), the Kanban card and the team's alerts. Orders placed before have none, as the server still accepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -144,6 +144,9 @@ class TinyTests(FakeTinyCase):
|
||||
self.tiny.deliver('k-cpf', person)
|
||||
self.assertEqual((self.contacts[0]['tipoPessoa'], self.contacts[0]['cpfCnpj'], self.contacts[0]['nome']),
|
||||
('F', '52998224725', 'Loja Teste'))
|
||||
# With the name the Site now asks for, the contact is the person's.
|
||||
named = {**person['order'], 'customer': {**person['order']['customer'], 'name': 'Maria da Silva'}}
|
||||
self.assertEqual(contact_payload(named)['nome'], 'Maria da Silva')
|
||||
self.assertEqual(looked_up, [])
|
||||
|
||||
def test_production_events_are_not_sent(self):
|
||||
|
||||
Reference in New Issue
Block a user