Releases: fivetran/dbt_stripe_source
v0.15.1 dbt_stripe_source
PR #98 includes the following update:
Under the Hood
- Removed trailing spaces from YML files to ensure clean documentation and proper compilation.
- Updated conditions in
.github/workflows/auto-release.yml. - Added
.github/workflows/generate-docs.yml. - Added
+docs: show: Falsetointegration_tests/dbt_project.yml. - Migrated
flags(e.g.,send_anonymous_usage_stats,use_colors) fromsample.profiles.ymltointegration_tests/dbt_project.yml. - Updated
maintainer_pull_request_template.mdwith improved checklist. - Updated
.gitignoreto exclude additional DBT, Python, and system artifacts.
Full Changelog: v0.15.0...v0.15.1
v0.15.0 dbt_stripe_source
PR #96 includes the following updates:
Breaking Change for dbt Core < 1.9.6
Note: This is not relevant to Fivetran Quickstart users.
Migrated freshness from a top-level source property to a source config in alignment with recent updates from dbt Core. This will resolve the following deprecation warning that users running dbt >= 1.9.6 may have received:
[WARNING]: Deprecated functionality
Found `freshness` as a top-level property of `stripe` in file
`models/src_stripe.yml`. The `freshness` top-level property should be moved
into the `config` of `stripe`.
IMPORTANT: Users running dbt Core < 1.9.6 will not be able to utilize freshness tests in this release or any subsequent releases, as older versions of dbt will not recognize freshness as a source config and therefore not run the tests.
If you are using dbt Core < 1.9.6 and want to continue running Stripe freshness tests, please elect one of the following options:
- (Recommended) Upgrade to dbt Core >= 1.9.6
- Do not upgrade your installed version of the
stripe_sourcepackage. Pin your dependency on v0.14.2 in yourpackages.ymlfile. - Utilize a dbt override to overwrite the package's
stripesource and apply freshness via the previous release top-level property route. This will require you to copy and paste the entirety of the previous releasesrc_stripe.ymlfile and add anoverrides: stripe_sourceproperty.
Under the Hood
- Updates to ensure integration tests use latest version of dbt.
Full Changelog: v0.14.2...v0.15.0
v0.14.2 dbt_stripe_source
Under the Hood
- Prepends
materializedconfigs in the package'sdbt_project.ymlfile with+to improve compatibility with the newer versions of dbt-core starting with v1.10.0. (PR #92) - Updates the package maintainer pull request template. (PR #93)
Contributors
Full Changelog: v0.14.1...v0.14.2
v0.14.1 dbt_stripe_source
PR #91 includes the following updates:
Bug Fixes
- Fixed a Snowflake error in the
does_table_existmacro that could occur when another package using quoted table or column names runs concurrently. - Updated the following models to dynamically select the correct source based on available tables:
stg_stripe__price_plan_tmpstg_stripe__subscription_tmp
Under the Hood
- Improved the
does_table_existmacro:- Added a
dispatchto prevent conflicts with macros of the same name in other packages. - Updated logic to return
'exists'only when the table is present, replacing'True'/'False'string outputs. This prevents Jinja from misinterpreting them as truthy values and ensures reliable variable configuration based on exact'exists'matching.
- Added a
Full Changelog: v0.14.0...v0.14.1
v0.14.0 dbt_stripe_source
PR #89 includes the following updates:
Breaking Changes
- In alignment with the Fivetran Stripe connector March 2025 update, added:
- Source:
PAYOUT_BALANCE_TRANSACTION
- Models:
stg_stripe__payout_balance_transactionstg_stripe__payout_balance_transaction_tmp
- Source:
- This is a new mapping table that provides all associated balance transactions for a payout, supporting the 1:many
payout → balance_transactionrelationship.- NOTE: The existing
balance_transaction_idinPAYOUTonly reflects the most recent associated record, necessitating this update.
- NOTE: The existing
Documentation
- Added definitions for new fields and models.
Under the Hood (Maintainers Only)
- Added macro
get_payout_balance_transaction_columns. - Added seed
payout_balance_transaction_data.
Full Changelog: v0.13.0...v0.14.0
v0.13.0 dbt_stripe_source
PR #87 includes the following updates:
Feature Updates: Optionally Convert Amounts to Major Units
Stripe passes amount-based fields, such as amount, net, and fee, in the smallest denomination as raw form. This means, if your currency has minor and major units such as USD, 100 represents 100 cents, the minor unit, or 1 USD, the major unit. Alternatively, if your currency doesn't use minor units such as JPY, 100 represents 100 JPY.
- This PR introduces a variable
stripe__convert_values(falseby default) which allows users the option to divide all amount-based fields by 100.- For information on how to enable the division, refer to the README on configuring the
stripe__convert_valuesvariable. - Otherwise, amount-based fields will be brought through in their raw form.
- Examples of currencies using minor units (in which enabling
stripe__convert_valuesis relevant) include United States Dollar (USD), Euro (EUR), and the Canadian Dollar (CAD). - Examples of currencies NOT using minor units (in which it makes more sense to keep the amount-based fields in raw form) include Japanese Yen (JPY), Indonesian Rupiah (IDR), and Korean Won (KRW).
- For information on how to enable the division, refer to the README on configuring the
Under the Hood
- Introduces the
convert_valuesmacro which contains the logic for enabling the division by 100, referenced by all amount-based fields. - Updates the
run_models.shscript to test for whenstripe__convert_valuesis set to True.
Notes
- This update is not providing multiple currency support; however, we're interested in exploring this functionality if there's a need. As such, we have created a feature request to support multiple currencies where you are welcome to provide feedback or contribute to the discussion.
Documentation
- Updates the descriptions for all amount-based fields to specify the grain of the values and add information about the
stripe__convert_valuesvariable. - Corrected references to connectors and connections in the README. (#88)
Full Changelog: v0.12.1...v0.13.0
v0.12.1 dbt_stripe_source
Feature Updates
- Declaration of passthrough variables for the
stg_stripe__cardmodel. This can, for example, be used to pull in non-standard columns from Stripe such asdescription,iinandissuer. See the README for more details (PR #81).
# dbt_project.yml
vars:
stripe_source:
card_pass_through_columns:
- name: "description"
- name: "iin"
- name: "issuer"
alias: "card_issuer" # optional: define an alias for the column
transform_sql: "cast(card_issuer as string)" # optional: apply transformation to column. must reference the alias if providedUnder the Hood
- Removed un-used columns from the
get_card_columns()macro and aliased themetadatafield, which is parsed via thestripe__card_metadatavariable, but not included as a field in its entirety instg_stripe__cardby default (PR #83).- This ensures users can utilize the new
card_pass_through_columnsvariable to include these fields instg_stripe__card.
- This ensures users can utilize the new
Contributors
Full Changelog: v0.12.0...v0.12.1
v0.12.0 dbt_stripe_source
[PR #77] includes the following updates:
Feature Updates
- Addition of the following new staging models and accompanying upstream references:
stg_stripe__discount(required for downstreamdbt_stripemodel transformations)stg_stripe__product(enabled by default, but can be disabled by setting thestripe__using_subscriptionsvariable tofalse)
Full Changelog: v0.11.1...v0.12.0
v0.11.1 dbt_stripe_source
[PR #74] includes the following updates:
Bug Fix
- Removes the
unique_invoice_line_item_iduniqueness test instg_stripe__invoice_line_item. This is becauseunique_invoice_line_item_id(unique_idin the raw sourceinvoice_line_itemtable) was part of an older version of Stripe that was brought forth to help migrate internal references. See the Stripe API update for more information. The Fivetran connector persists this in order to resolve the pagination break issue for invoice line items that was introduced by the API update.- Furthermore the column definition for
unique_invoice_line_item_id(unique_idin the raw sourceinvoice_line_itemtable) has been made more specific:"A unique id generated and only for old invoice line item ID's from a past version of the API. The introduction of this field resolves the pagination break issue for invoice line items, which was introduced by the Stripe API update."
- Furthermore the column definition for
Full Changelog: v0.11.0...v0.11.1
v0.11.0 dbt_stripe_source
PR #72 includes the following updates:
🚨 Breaking Changes 🚨
- No longer filters out deleted customers in
stg_stripe__customer.- Persists
is_deletedfield to differentiate between deleted and active customers. - Note that this is a 🚨 breaking change 🚨, as previously filtered-out records will appear in
stg_stripe__customer(and the downstream transformstripe__customer_overviewmodel).
- Persists
Feature Updates
- Adds the
phonecolumn tostg_stripe__customer.
Under the Hood
- Included auto-releaser GitHub Actions workflow to automate future releases.
- Updated the maintainer PR template to resemble the most up to date format.
Full Changelog: v0.10.0...v0.11.0