diff --git a/docs/shopify_app/webhooks.md b/docs/shopify_app/webhooks.md index f7e9c3d20..eed665c27 100644 --- a/docs/shopify_app/webhooks.md +++ b/docs/shopify_app/webhooks.md @@ -3,7 +3,7 @@ #### Table of contents [Manage webhooks using `ShopifyApp::WebhooksManager`](#manage-webhooks-using-shopifyappwebhooksmanager) -[Mandatory GDPR Webhooks](#mandatory-gdpr-webhooks) +[Mandatory Privacy Webhooks](#mandatory-privacy-webhooks) ## Manage webhooks using `ShopifyApp::WebhooksManager` @@ -72,9 +72,9 @@ rails g shopify_app:add_webhook --topic carts/update --path webhooks/carts_updat Where `--topic` is the topic and `--path` is the path the webhook should be sent to. -## Mandatory GDPR Webhooks +## Mandatory Privacy Webhooks -We have three mandatory GDPR webhooks +We have three mandatory privacy webhooks 1. `customers/data_request` 2. `customer/redact` diff --git a/lib/generators/shopify_app/add_gdpr_jobs/add_gdpr_jobs_generator.rb b/lib/generators/shopify_app/add_privacy_jobs/add_privacy_jobs_generator.rb similarity index 90% rename from lib/generators/shopify_app/add_gdpr_jobs/add_gdpr_jobs_generator.rb rename to lib/generators/shopify_app/add_privacy_jobs/add_privacy_jobs_generator.rb index 3e5434b6c..d0b3424fc 100644 --- a/lib/generators/shopify_app/add_gdpr_jobs/add_gdpr_jobs_generator.rb +++ b/lib/generators/shopify_app/add_privacy_jobs/add_privacy_jobs_generator.rb @@ -4,7 +4,7 @@ module ShopifyApp module Generators - class AddGdprJobsGenerator < Rails::Generators::Base + class AddPrivacyJobsGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add_customer_data_request_job diff --git a/lib/generators/shopify_app/add_gdpr_jobs/templates/customers_data_request_job.rb.tt b/lib/generators/shopify_app/add_privacy_jobs/templates/customers_data_request_job.rb.tt similarity index 100% rename from lib/generators/shopify_app/add_gdpr_jobs/templates/customers_data_request_job.rb.tt rename to lib/generators/shopify_app/add_privacy_jobs/templates/customers_data_request_job.rb.tt diff --git a/lib/generators/shopify_app/add_gdpr_jobs/templates/customers_redact_job.rb.tt b/lib/generators/shopify_app/add_privacy_jobs/templates/customers_redact_job.rb.tt similarity index 100% rename from lib/generators/shopify_app/add_gdpr_jobs/templates/customers_redact_job.rb.tt rename to lib/generators/shopify_app/add_privacy_jobs/templates/customers_redact_job.rb.tt diff --git a/lib/generators/shopify_app/add_gdpr_jobs/templates/shop_redact_job.rb.tt b/lib/generators/shopify_app/add_privacy_jobs/templates/shop_redact_job.rb.tt similarity index 100% rename from lib/generators/shopify_app/add_gdpr_jobs/templates/shop_redact_job.rb.tt rename to lib/generators/shopify_app/add_privacy_jobs/templates/shop_redact_job.rb.tt diff --git a/lib/generators/shopify_app/shopify_app_generator.rb b/lib/generators/shopify_app/shopify_app_generator.rb index baee3b0fe..4f3f92c5d 100644 --- a/lib/generators/shopify_app/shopify_app_generator.rb +++ b/lib/generators/shopify_app/shopify_app_generator.rb @@ -10,7 +10,7 @@ def initialize(args, *options) def run_all_generators generate("shopify_app:add_app_uninstalled_job") - generate("shopify_app:add_gdpr_jobs") + generate("shopify_app:add_privacy_jobs") generate("shopify_app:install #{@opts.join(" ")}") generate("shopify_app:shop_model #{@opts.join(" ")}") generate("shopify_app:authenticated_controller") diff --git a/test/generators/add_gdpr_jobs_generator_job_test.rb b/test/generators/add_privacy_jobs_generator_job_test.rb similarity index 74% rename from test/generators/add_gdpr_jobs_generator_job_test.rb rename to test/generators/add_privacy_jobs_generator_job_test.rb index 2927b1b6e..70d509fb5 100644 --- a/test/generators/add_gdpr_jobs_generator_job_test.rb +++ b/test/generators/add_privacy_jobs_generator_job_test.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true require "test_helper" -require "generators/shopify_app/add_gdpr_jobs/add_gdpr_jobs_generator" +require "generators/shopify_app/add_privacy_jobs/add_privacy_jobs_generator" -class AddGdprJobsGeneratorJobTest < Rails::Generators::TestCase - tests ShopifyApp::Generators::AddGdprJobsGenerator +class AddPrivacyJobsGeneratorJobTest < Rails::Generators::TestCase + tests ShopifyApp::Generators::AddPrivacyJobsGenerator destination File.expand_path("../tmp", File.dirname(__FILE__)) setup do