feat: send pix button

This commit is contained in:
Davidson Gomes
2024-10-29 07:36:24 -03:00
parent 9f39ec2110
commit fce3e55e91
3 changed files with 133 additions and 6 deletions

View File

@@ -413,14 +413,18 @@ export const buttonsMessageSchema: JSONSchema7 = {
properties: {
type: {
type: 'string',
enum: ['reply', 'copy', 'url', 'call'],
enum: ['reply', 'copy', 'url', 'call', 'pix'],
},
displayText: { type: 'string' },
id: { type: 'string' },
url: { type: 'string' },
phoneNumber: { type: 'string' },
currency: { type: 'string' },
name: { type: 'string' },
keyType: { type: 'string', enum: ['phone', 'email', 'cpf', 'cnpj', 'random'] },
key: { type: 'string' },
},
required: ['type', 'displayText'],
required: ['type'],
...isNotEmpty('id', 'url', 'phoneNumber'),
},
},