Skip to content

v0.12.1 dbt_stripe_source

Latest
Compare
Choose a tag to compare
@fivetran-jamie fivetran-jamie released this 02 Oct 23:02
4657edc

Feature Updates

  • Declaration of passthrough variables for the stg_stripe__card model. This can, for example, be used to pull in non-standard columns from Stripe such as description, iin and issuer. 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 provided

Under the Hood

  • Removed un-used columns from the get_card_columns() macro and aliased the metadata field, which is parsed via the stripe__card_metadata variable, but not included as a field in its entirety in stg_stripe__card by default (PR #83).
    • This ensures users can utilize the new card_pass_through_columns variable to include these fields in stg_stripe__card.

Contributors

Full Changelog: v0.12.0...v0.12.1