some progress

This commit is contained in:
Pablo Martin 2024-03-08 17:28:19 +01:00
parent f911912b45
commit 606eed9754
4 changed files with 35 additions and 7 deletions

View file

@ -169,3 +169,5 @@ sources:
description: "{{ doc('_airbyte_meta_desc') }}"
- name: superhog_user
identifier: SuperhogUser
- name: VerificationToPayment
identifier: VerificationToPayment

View file

@ -0,0 +1,23 @@
with
raw_verificationtopayment as (
select * from {{ source("core", "VerificationToPayment") }}
),
stg_core__verification_to_payment as (
select
{{ adapter.quote("Id") }} as id_verification_to_payment,
{{ adapter.quote("PaymentId") }} as id_payment,
{{ adapter.quote("Refundable") }} as is_refundable,
{{ adapter.quote("CreatedDate") }} as created_at_utc,
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
{{ adapter.quote("RefundDueDate") }} as refund_due_at_utc,
{{ adapter.quote("PaymentDueDate") }} as payment_due_at_utc,
{{ adapter.quote("SuperhogUserId") }} as id_superhog_user,
{{ adapter.quote("VerificationId") }} as id_verification,
{{ adapter.quote("VerificationPaymentTypeId") }}
as id_verification_payment_type,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_date_utc
from raw_verificationtopayment
)
select *
from stg_core__verification_to_payment