Schema Changes
2 total changes • 1 possible breaking change
| Data Model | Change type | Old | New | Notes |
|---|---|---|---|---|
| All models | Single-connection source_relation value
| Empty string ('')
| <stripe_database>.<stripe_schema>
| |
stg_stripe__coupon
| New column | metadata
| optional custom JSON field |
Feature Updates
- Adds configurable table variables
stripe__using_transfersandstripe__using_payouts, which are set to true by default. For dbt Core users, See the README for more details on how to disable these variables.stripe__using_transfersdisables the Transfers source and any relevant downstream components.stripe__using_payoutsdisables both the Payouts and Payout Balance Transactions sources, along with any related downstream components.
- Introduces support for the newer, more flexible unioning framework. Previously, to run the package on multiple Stripe sources at once, you could only use the
union_schemasvariable ORunion_databases(mutually exclusive). While these setups are still supported for backwards compatibility, we recommend usingstripe_sourcesinstead. See the README for more details.
# dbt_project.yml
vars:
stripe:
stripe_sources:
- database: connection_1_destination_name # Required
schema: connection_1_schema_name # Required
name: connection_1_source_name # Required only if following this step: https://github.com/fivetran/dbt_stripe/blob/main/README.md#recommended-incorporate-unioned-sources-into-dag
- database: connection_2_destination_name
schema: connection_2_schema_name
name: connection_2_source_name- Updates end models (
stripe__balance_transactions,stripe__customer_overview,stripe__invoice_details,stripe__invoice_line_item_details,stripe__subscription_details) to dynamically include metadata fields from staging models when metadata variables are configured. See the README for more details.
Quickstart Updates
- Creates table variables for sources
transfer,payout, andpayout_balance_transaction. These source tables must be selected in the Fievetran connector UI for the variables to be set to True and the dependent models to be run. - Adds
stripe__charge_metadata,stripe__invoice_metadata, andstripe__subscription_metadatatosupported_varsas optional properties to be pivoted into columns in various end models. These variables can be configured directly through thesupportedVarssection in the Quickstart UI.
Under the Hood
- Updates all tmp staging models to conditionally use either the new
stripe_union_connectionsmacro (whenstripe_sourcesis configured) or the legacyfivetran_utils.union_datamacro (for backward compatibility). - Updates all staging models to use the new
stripe.apply_source_relation()macro instead offivetran_utils.source_relation(). - Adds
stripe.select_metadata_columns()macro to handle both dictionary and alias variable metadata inputs. - Adds
metadatacolumn toget_coupon_columns()macro andcoupon_data.csvseed file. - Updates integration test seed data for customer and invoice tables.
Full Changelog: v1.4.0...v1.5.0