Skip to content

Commit

Permalink
add missing plan charge dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Jul 21, 2023
1 parent 1c686ec commit cb01e8f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/transform/models/staging/metronome/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sources:
- name: invoice
- name: line_item
- name: sub_line_item
- name: plan_charge
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
with source as (

select * from {{ source('metronome', 'plan_charge') }}
WHERE environment_type = 'PRODUCTION'

),

renamed as (

select
id,
charge_id,
charge_name,
plan_id,
product_id,
product_name,
billable_metric_id,
billable_metric_name,
start_period,
credit_type_id,
credit_type_name,
charge_type,
quantity,
prices,
updated_at

from source

)

select * from renamed

0 comments on commit cb01e8f

Please sign in to comment.