Merge branch 'feat/whatsapp-call-incoming-pipeline' into feat/whatsapp-call-meta-bridge
This commit is contained in:
+4
-2
@@ -4,8 +4,10 @@ describe Whatsapp::Providers::WhatsappCloudService do
|
||||
subject(:service) { described_class.new(whatsapp_channel: whatsapp_channel) }
|
||||
|
||||
let(:whatsapp_channel) { create(:channel_whatsapp, provider: 'whatsapp_cloud', validate_provider_config: false, sync_templates: false) }
|
||||
let(:calls_url) { 'https://graph.facebook.com/v13.0/123456789/calls' }
|
||||
let(:messages_url) { 'https://graph.facebook.com/v13.0/123456789/messages' }
|
||||
# Call-flow endpoints use the configured WHATSAPP_API_VERSION (fallback v22.0),
|
||||
# not the OSS v13.0 path locked for legacy /messages compatibility.
|
||||
let(:calls_url) { 'https://graph.facebook.com/v22.0/123456789/calls' }
|
||||
let(:messages_url) { 'https://graph.facebook.com/v22.0/123456789/messages' }
|
||||
let(:headers) { { 'Content-Type' => 'application/json' } }
|
||||
|
||||
before { stub_request(:get, /message_templates/) }
|
||||
|
||||
@@ -19,7 +19,8 @@ describe Whatsapp::CallPermissionReplyService do
|
||||
end
|
||||
|
||||
before do
|
||||
channel.provider_config = channel.provider_config.merge('calling_enabled' => true)
|
||||
account.enable_features!('channel_voice')
|
||||
channel.provider_config = channel.provider_config.merge('source' => 'embedded_signup', 'calling_enabled' => true)
|
||||
channel.save!
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user