Skip to content

Commit

Permalink
Merge pull request #5 from TasmanAnalytics/feature/export-v5-columns
Browse files Browse the repository at this point in the history
✨ Support for additional v5 columns
  • Loading branch information
jurrigerretsen authored Mar 26, 2024
2 parents 76a1226 + 4d3796a commit 5487e0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ log-path: "logs"
vars:
tasman_dbt_revenuecat:
revenuecat_table: "SEED_REVENUECAT_TRANSACTIONS_MOCKED"
revenuecat_version: 5
revenuecat_filter: "is_sandbox = false"
revenuecat_custom_subscriber_attributes: ""
revenuecat_mrr_test_seed: ""
Expand Down
10 changes: 6 additions & 4 deletions models/core/revenuecat_subscription_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ renamed as (
purchase_price_in_purchased_currency,
product_display_name,
product_duration,
--offer,
--offer_type,
--first_seen_time,
--auto_resume_time,
{%- if var('revenuecat_version') > 4 %}
offer,
offer_type,
first_seen_time,
auto_resume_time,
{%- endif %}

{%- if var('revenuecat_custom_subscriber_attributes') %}
{%- for key, value in var('revenuecat_custom_subscriber_attributes').items() %}
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ vars:
revenuecat_database: "source_db"
revenuecat_schema: 'revenuecat'
revenuecat_table: "data_export"
revenuecat_verson: 5
revenuecat_filter: "is_sandbox = false"
revenuecat_custom_subscriber_attributes: {'my_value::text': 'my_column_name'}
```
Expand Down

0 comments on commit 5487e0c

Please sign in to comment.