Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1388 recharge erasure #1709

Merged
merged 19 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The types of changes are:

### Added
* Add authenticated privacy request route. [#1819](https://github.com/ethyca/fides/pull/1819)
* Adds Access and Erasure Endpoints for Recharge Connector [1709](https://github.com/ethyca/fides/pull/1709)
sadaqatullah marked this conversation as resolved.
Show resolved Hide resolved

### Fixed
* Fix error in parent user creation seeding. [#1832](https://github.com/ethyca/fides/issues/1832)
Expand Down
81 changes: 81 additions & 0 deletions data/saas/config/recharge_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
saas_config:
fides_key: <instance_fides_key>
name: Recharge SaaS Config
type: recharge
description: A sample schema representing the Recharge connector for Fidesops
sadaqatullah marked this conversation as resolved.
Show resolved Hide resolved
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 @@ -122,4 +122,10 @@ human_readable = "Domo"
config = "data/saas/config/slack_enterprise_config.yml"
dataset = "data/saas/dataset/slack_enterprise_dataset.yml"
icon = "data/saas/icon/default.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 @@ -196,6 +196,7 @@ markers = [
"integration_shopify",
"integration_square",
"integration_outreach",
"integration_recharge",
"integration_salesforce",
"integration_twilio_conversations",
"integration_adobe_campaign",
Expand Down
1 change: 1 addition & 0 deletions tests/ops/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from .fixtures.saas.outreach_fixtures import *
from .fixtures.saas.request_override.firebase_auth_fixtures import *
from .fixtures.saas.request_override.mailchimp_override_fixtures import *
from .fixtures.saas.recharge_fixtures import *
from .fixtures.saas.rollbar_fixtures import *
from .fixtures.saas.salesforce_fixtures import *
from .fixtures.saas.segment_fixtures import *
Expand Down
Loading