Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added columns period start and end #51

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# dbt_stripe_source v0.7.3
## Feature Updates
- The `period_start` and `period_end` fields have been added to the `stg_stripe__invoice` model. ([#51](https://github.com/fivetran/dbt_stripe_source/pull/51))

## Contributors
- [lijol](https://github.com/lijol) ([#50](https://github.com/fivetran/dbt_stripe_source/pull/51))


lijol marked this conversation as resolved.
Show resolved Hide resolved
# dbt_stripe_source v0.7.2

## 🎉 Feature Updates
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'stripe_source'
version: '0.7.2'
version: '0.7.3'
lijol marked this conversation as resolved.
Show resolved Hide resolved

require-dbt-version: [">=1.0.0", "<2.0.0"]

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'stripe_source_integration_tests'
version: '0.7.2'
version: '0.7.3'


profile: 'integration_tests'
Expand Down
4 changes: 4 additions & 0 deletions models/src_stripe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ sources:
description: Total after discounts and taxes.
- name: livemode
description: Indicates if this is a test invoice.
- name: period_start
description: Start of the usage period during for which the invoice was created.
- name: period_end
description: End of the usage period during for which the invoice was created.

- name: subscription_history
identifier: "{{ var('stripe_subscription_history_identifier', 'subscription_history')}}"
Expand Down
4 changes: 4 additions & 0 deletions models/stg_stripe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ models:
description: The percent used to calculate the tax amount.
- name: total
description: Total after discounts and taxes.
- name: period_start
description: Start of the usage period during for which the invoice was created.
- name: period_end
description: End of the usage period during for which the invoice was created.

- name: stg_stripe__subscription
description: Subscriptions allow you to charge a customer on a recurring basis.
Expand Down
5 changes: 3 additions & 2 deletions models/stg_stripe__invoice.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ final as (
tax,
tax_percent,
total,
subscription_id

subscription_id,
period_start,
period_end
lijol marked this conversation as resolved.
Show resolved Hide resolved
{% if var('stripe__invoice_metadata',[]) %}
, {{ fivetran_utils.pivot_json_extract(string = 'metadata', list_of_properties = var('stripe__invoice_metadata')) }}
{% endif %}
Expand Down