Skip to content

Commit

Permalink
1388 recharge erasure (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadaqatullah authored Jan 12, 2023
1 parent cc00448 commit f0da063
Show file tree
Hide file tree
Showing 8 changed files with 758 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The types of changes are:
* `Fides.shopify` integration function. [#2152](https://github.com/ethyca/fides/pull/2152)
* Dedicated folder for integrations.
* Adds support for Twilio email service (Sendgrid) [#2154](https://github.com/ethyca/fides/pull/2154)
* Access and erasure support for Recharge [#1709](https://github.com/ethyca/fides/pull/1709)

### Changed

Expand Down
82 changes: 82 additions & 0 deletions data/saas/config/recharge_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
saas_config:
fides_key: <instance_fides_key>
name: Recharge SaaS Config
type: recharge
description: A sample schema representing the Recharge connector for Fides
version: 0.0.1

connector_params:
- name: domain
default_value: api.rechargeapps.com
- name: api_key

client_config:
protocol: https
host: <domain>
authentication:
strategy: api_key
configuration:
headers:
- name: X-Recharge-Access-Token
value: <api_key>

test_request:
method: GET
path: /

endpoints:
- name: customer
requests:
read:
method: GET
path: /customers
query_params:
- name: email
value: <email>
param_values:
- name: email
identity: email
data_path: customers
update:
method: PUT
path: /customers/<customer_id>
body: |
{
<masked_object_fields>
}
param_values:
- name: customer_id
references:
- dataset: <instance_fides_key>
field: customer.id
direction: from
- name: addresses
requests:
read:
method: GET
path: /addresses
query_params:
- name: customer_id
value: <customer_id>
param_values:
- name: customer_id
references:
- dataset: <instance_fides_key>
field: customer.id
direction: from
data_path: addresses
update:
method: PUT
path: /addresses/<address_id>
body: |
{
"address": {
<masked_object_fields>
}
}
param_values:
- name: address_id
references:
- dataset: <instance_fides_key>
field: addresses.id
direction: from
171 changes: 171 additions & 0 deletions data/saas/dataset/recharge_dataset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
dataset:
- fides_key: <instance_fides_key>
name: Recharge Dataset
description: A sample dataset representing the Recharge connector for Fides
collections:
- name: customer
fields:
- name: billing_address1
data_categories: [user.contact.address]
fidesops_meta:
data_type: string
- name: billing_address2
data_categories: [user.contact.address]
fidesops_meta:
data_type: string
- name: billing_city
data_categories: [user.contact.address.city]
fidesops_meta:
data_type: string
- name: billing_country
data_categories: [user.contact.address.country]
fidesops_meta:
data_type: string
- name: billing_phone
data_categories: [user.contact.phone_number]
fidesops_meta:
data_type: string
- name: billing_province
data_categories: [user.contact.address.state]
fidesops_meta:
data_type: string
- name: billing_zip
data_categories: [user.contact.address.postal_code]
fidesops_meta:
data_type: string
- name: created_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: email
data_categories: [user.contact.email]
fidesops_meta:
data_type: string
- name: first_charge_processed_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: first_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: has_card_error_in_dunning
data_categories: [system.operations]
fidesops_meta:
data_type: boolean
- name: has_valid_payment_method
data_categories: [system.operations]
fidesops_meta:
data_type: boolean
- name: hash
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: id
data_categories: [system.operations]
fidesops_meta:
data_type: string
primary_key: True
- name: last_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: number_active_subscriptions
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: number_subscriptions
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: phone
data_categories: [user.contact.phone_number]
fidesops_meta:
data_type: string
- name: processor_type
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: reason_payment_method_not_valid
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: shopify_customer_id
data_categories: [system.operations]
fidesops_meta:
data_type: object
- name: status
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: tax_exempt
data_categories: [system.operations]
fidesops_meta:
data_type: boolean
- name: updated_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: addresses
fields:
- name: address1
data_categories: [user.contact.address]
fidesops_meta:
data_type: string
- name: address2
data_categories: [user.contact.address]
fidesops_meta:
data_type: string
- name: city
data_categories: [user.contact.address.city]
fidesops_meta:
data_type: string
- name: company
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: country
data_categories: [user.contact.address.country]
fidesops_meta:
data_type: string
- name: created_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: customer_id
data_categories: [user.unique_id]
fidesops_meta:
data_type: integer
- name: first_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: id
data_categories: [system.operations]
fidesops_meta:
data_type: integer
primary_key: True
- name: last_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: phone
data_categories: [user.contact.phone_number]
fidesops_meta:
data_type: string
- name: presentment_currency
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: province
data_categories: [user.contact.address.state]
fidesops_meta:
data_type: string
- name: updated_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: zip
data_categories: [user.contact.address.postal_code]
fidesops_meta:
data_type: string
8 changes: 7 additions & 1 deletion data/saas/saas_connector_registry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,10 @@ human_readable = "Domo"
config = "data/saas/config/slack_enterprise_config.yml"
dataset = "data/saas/dataset/slack_enterprise_dataset.yml"
icon = "data/saas/icon/slack.svg"
human_readable = "Slack Enterprise"
human_readable = "Slack Enterprise"

[recharge]
config = "data/saas/config/recharge_config.yml"
dataset = "data/saas/dataset/recharge_dataset.yml"
icon = "data/saas/icon/default.svg"
human_readable = "Recharge"
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ markers = [
"integration_shopify",
"integration_square",
"integration_outreach",
"integration_recharge",
"integration_salesforce",
"integration_twilio_conversations",
"integration_adobe_campaign",
Expand Down
Loading

0 comments on commit f0da063

Please sign in to comment.