payment intents

This commit is contained in:
Pablo Martin 2024-03-05 13:59:32 +01:00
parent 8497a7bdd3
commit 6b62987a41

View file

@ -1,5 +1,7 @@
with with
raw_payment_intents as (select * from {{ source("stripe_uk", "payment_intents") }}), raw_payment_intents as (
{{ generate_stripe_sources_unioned_select("payment_intents") }}
),
stg_seed__currencies as (select * from {{ ref("stg_seed__currencies") }}), stg_seed__currencies as (select * from {{ ref("stg_seed__currencies") }}),
stg_stripe__payment_intents as ( stg_stripe__payment_intents as (
select select
@ -64,6 +66,7 @@ with
{{ adapter.quote("automatic_payment_methods") }}, {{ adapter.quote("automatic_payment_methods") }},
{{ adapter.quote("statement_descriptor_suffix") }}, {{ adapter.quote("statement_descriptor_suffix") }},
{{ adapter.quote("payment_method_configuration_details") }}, {{ adapter.quote("payment_method_configuration_details") }},
{{ adapter.quote("stripe_source_account") }},
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc, {{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc,
cast( cast(
{{ adapter.quote("_airbyte_extracted_at") }} as date {{ adapter.quote("_airbyte_extracted_at") }} as date