Files
leadchat/spec/factories/integrations/hooks.rb
Pranav b34c526c51 feat(apps): Shopify Integration (#11101)
This PR adds native integration with Shopify. No more dashboard apps.
The support agents can view the orders, their status and the link to the
order page on the conversation sidebar.

This PR does the following: 
- Create an integration with Shopify (a new app is added in the
integrations tab)
- Option to configure it in SuperAdmin
- OAuth endpoint and the callbacks.
- Frontend component to render the orders. (We might need to cache it in
the future)
---------

Co-authored-by: iamsivin <iamsivin@gmail.com>
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2025-03-19 15:37:55 -07:00

42 lines
1012 B
Ruby

FactoryBot.define do
factory :integrations_hook, class: 'Integrations::Hook' do
app_id { 'slack' }
account
settings { { test: 'test' } }
status { Integrations::Hook.statuses['enabled'] }
access_token { SecureRandom.hex }
reference_id { SecureRandom.hex }
trait :dialogflow do
app_id { 'dialogflow' }
settings { { project_id: 'test', credentials: {} } }
end
trait :dyte do
app_id { 'dyte' }
settings { { api_key: 'api_key', organization_id: 'org_id' } }
end
trait :google_translate do
app_id { 'google_translate' }
settings { { project_id: 'test', credentials: {} } }
end
trait :openai do
app_id { 'openai' }
settings { { api_key: 'api_key' } }
end
trait :linear do
app_id { 'linear' }
access_token { SecureRandom.hex }
end
trait :shopify do
app_id { 'shopify' }
access_token { SecureRandom.hex }
reference_id { 'test-store.myshopify.com' }
end
end
end