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

add customer phone + remove deleted-customer filter #75

Merged
merged 4 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# dbt_stripe v0.12.0
[PR #75](https://github.com/fivetran/dbt_stripe/pull/75) includes the following updates:

## Feature Updates
- Adds the `phone` column to `stripe__customer_overview`.
- No longer filters out deleted customers in `stripe__customer_overview`.
- Persists `is_deleted` field to differentiate between deleted and active customers.
- Note that this is a 🚨 breaking change 🚨, as previously filtered-out records will appear in `stripe__customer_overview`.
Comment on lines +5 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment from the source where I would prefer we make this it's own section at the top to really highlight this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated


# dbt_stripe v0.11.0

[PR #69](https://github.com/fivetran/dbt_stripe/pull/69) contains the following updates:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Include the following stripe package version in your `packages.yml` file:
```yaml
packages:
- package: fivetran/stripe
version: [">=0.11.0", "<0.12.0"]
version: [">=0.12.0", "<0.13.0"]

```
Do **NOT** include the `stripe_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
Expand Down Expand Up @@ -236,7 +236,7 @@ This dbt package is dependent on the following dbt packages. Please be aware tha
```yml
packages:
- package: fivetran/stripe_source
version: [">=0.10.0", "<0.11.0"]
version: [">=0.11.0", "<0.12.0"]

- package: fivetran/fivetran_utils
version: [">=0.4.0", "<0.5.0"]
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2
name: 'stripe'

version: '0.11.0'
version: '0.12.0'
require-dbt-version: [">=1.3.0", "<2.0.0"]
models:
stripe:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'stripe_integration_tests'
version: '0.11.0'
version: '0.12.0'

profile: 'integration_tests'

Expand Down
4 changes: 4 additions & 0 deletions models/stripe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ models:
description: Attribute of the customer's shipping address.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: phone
description: Customer's phone number.
- name: is_deleted
description: Boolean reflecting whether the customer has been deleted in Stripe.

- name: stripe__invoice_details
description: Each record represents an invoice, enriched with details about the associated charge, customer, and subscription data.
Expand Down
8 changes: 6 additions & 2 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
packages:
- package: fivetran/stripe_source
version: [">=0.10.0", "<0.11.0"]
# - package: fivetran/stripe_source
# version: [">=0.10.0", "<0.11.0"]
# - local: ../../Finance/Stripe/dbt_stripe_source
- git: https://github.com/fivetran/dbt_stripe_source.git
revision: update/customer360
warn-unpinned: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to swap before release