Skip to content

Commit 979d10b

Browse files
fivetran-savagegithub-actions[bot]fivetran-avinash
authored
bugfix/checkout_session_column_name (#144)
* bugfix/checkout_session_column_name * Generate dbt docs via GitHub Actions * update_seed_data * Update CHANGELOG.md Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com>
1 parent 2951f5c commit 979d10b

11 files changed

Lines changed: 17 additions & 10 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# dbt_stripe v1.6.1
2+
3+
[PR #144](https://github.com/fivetran/dbt_stripe/pull/144) includes the following update:
4+
5+
## Bug Fix
6+
- Updates the `subscription_discount` source column reference from `checkout_session_id` to `checkout_session` to match the raw Stripe source naming convention. The output column name `checkout_session_id` is preserved as an alias in the staging layer, so there is no downstream impact.
7+
18
# dbt_stripe v1.6.0
29
[PR #141](https://github.com/fivetran/dbt_stripe/pull/141) includes the following updates:
310

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config-version: 2
22
name: 'stripe'
3-
version: '1.6.0'
3+
version: '1.6.1'
44
require-dbt-version: [">=1.3.0", "<3.0.0"]
55

66
models:

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'stripe_integration_tests'
4-
version: '1.6.0'
4+
version: '1.6.1'
55

66
profile: 'integration_tests'
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id,_fivetran_synced,checkout_session_id,coupon_id,customer_id,end,invoice_id,invoice_item_id,start,subscription_id
1+
id,_fivetran_synced,checkout_session,coupon_id,customer_id,end,invoice_id,invoice_item_id,start,subscription_id
22
di_test1,2022-09-19 05:50:07.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2023-09-19 05:50:07.000000,,,2022-09-19 05:50:07.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun
33
di_test2,2022-10-15 08:30:00.000000,,coupon_test2,cus_twelve,,,,2022-10-15 08:30:00.000000,sub_nine
44
di_test3,2023-01-20 12:00:00.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2024-01-20 12:00:00.000000,,,2023-01-20 12:00:00.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id,_fivetran_synced,checkout_session_id,coupon_id,customer_id,end,invoice_id,invoice_item_id,start,subscription_id
1+
id,_fivetran_synced,checkout_session,coupon_id,customer_id,end,invoice_id,invoice_item_id,start,subscription_id
22
di_test1,2022-09-19 05:50:07.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2023-09-19 05:50:07.000000,,,2022-09-19 05:50:07.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun
33
di_test2,2022-10-15 08:30:00.000000,,coupon_test2,cus_twelve,,,,2022-10-15 08:30:00.000000,sub_nine
44
di_test3,2023-01-20 12:00:00.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2024-01-20 12:00:00.000000,,,2023-01-20 12:00:00.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id,_fivetran_synced,checkout_session_id,coupon_id,customer_id,"""END""",invoice_id,invoice_item_id,"""START""",subscription_id
1+
id,_fivetran_synced,checkout_session,coupon_id,customer_id,"""END""",invoice_id,invoice_item_id,"""START""",subscription_id
22
di_test1,2022-09-19 05:50:07.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2023-09-19 05:50:07.000000,,,2022-09-19 05:50:07.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun
33
di_test2,2022-10-15 08:30:00.000000,,coupon_test2,cus_twelve,,,,2022-10-15 08:30:00.000000,sub_nine
44
di_test3,2023-01-20 12:00:00.000000,,coupon_test1,cus_MSXtGSAxxtYWe1,2024-01-20 12:00:00.000000,,,2023-01-20 12:00:00.000000,sub_1LjcrrDZlKRVG8Gnv1Bjosun

macros/staging/get_subscription_discount_columns.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% set columns = [
44
{"name": "_fivetran_synced", "datatype": dbt.type_timestamp()},
5-
{"name": "checkout_session_id", "datatype": dbt.type_string()},
5+
{"name": "checkout_session", "datatype": dbt.type_string()},
66
{"name": "coupon_id", "datatype": dbt.type_string()},
77
{"name": "customer_id", "datatype": dbt.type_string()},
88
{"name": "id", "datatype": dbt.type_string()},

models/staging/src_stripe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ sources:
11081108
columns:
11091109
- name: id
11101110
description: The ID of the subscription discount object.
1111-
- name: checkout_session_id
1111+
- name: checkout_session
11121112
description: The Checkout Session that this discount is applied to, if it is applied to a particular session in payment mode.
11131113
- name: coupon_id
11141114
description: The ID of the coupon applied to create this discount.

0 commit comments

Comments
 (0)