We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6648b commit 590a0c1Copy full SHA for 590a0c1
packages/apps/asaas/src/asaas-create-transaction.ts
@@ -61,10 +61,10 @@ export default async (modBody: AppModuleBody<'create_transaction'>) => {
61
id: asaasCustomerId,
62
},
63
} = await asaasAxios.post('/v3/customers', {
64
- 'name': getFullname(buyer),
+ 'name': buyer.fullname || getFullname(buyer) || customerAddr?.name || buyer.email,
65
'cpfCnpj': buyer.doc_number,
66
'email': buyer.email,
67
- 'mobilePhone': getPhone(buyer),
+ 'mobilePhone': getPhone(buyer) || undefined,
68
'address': customerAddr?.street,
69
'addressNumber': customerAddr?.number?.toString(),
70
'complement': customerAddr?.complement,
0 commit comments