-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from takenet/feature/609831-receptive-call
feat(BlipCallsVoiceRequest): change voice request class name
- Loading branch information
Showing
2 changed files
with
58 additions
and
31 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 |
---|---|---|
|
@@ -131,6 +131,9 @@ | |
<button class="button" @click="sendNoAnswerCallsVideoEnd"> | ||
ENVIAR Fim de chamada vídeo não respondida | ||
</button> | ||
<button class="button" @click="sendCallsVoiceRequest"> | ||
ENVIAR Solicitação de chamada | ||
</button> | ||
<button class="button" @click="sendRaw"> | ||
ENVIAR Unsupported Content | ||
</button> | ||
|
@@ -733,6 +736,31 @@ export default { | |
}) | ||
this.send() | ||
}, | ||
sendCallsVoiceRequest() { | ||
this.json = JSON.stringify({ | ||
id: '1', | ||
to: '[email protected]', | ||
type: 'application/json', | ||
content: { | ||
recipient_type: 'individual', | ||
type: 'interactive', | ||
interactive: { | ||
type: 'voice_call', | ||
body: { | ||
text: | ||
'Olá! Para um atendimento mais rápido, você pode entrar em contato através de uma chamada WhatsApp.' | ||
}, | ||
action: { | ||
name: 'voice_call', | ||
parameters: { | ||
display_text: 'Ligar agora' | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
this.send() | ||
}, | ||
sendRaw: function() { | ||
this.json = JSON.stringify({ | ||
id: '1', | ||
|
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