documentation updated for stg_stripe__balance_transactions

This commit is contained in:
Pablo Martin 2024-02-23 16:32:41 +01:00
parent 9c423e3f3c
commit 13395b2dca
2 changed files with 35 additions and 13 deletions

View file

@ -28,8 +28,21 @@ You can query the _airbyte_meta column to see which rows failed for content reas
{% enddocs %}
{% docs dwh_extracted_at_date_desc %}
{% docs dwh_extracted_at_utc_desc %}
A timestamp for when the event was pulled by Airbyte from the original data source.
A timestamp for when the event was pulled from the original data source.
{% enddocs %}
{% docs dwh_extracted_date_utc_desc %}
The date when the event was pulled from the original data source.
{% enddocs %}
{% docs currency_desc %}
Three-letter ISO 4217 currency code, in uppercase. Must be a supported currency.
{% enddocs %}

View file

@ -13,16 +13,16 @@ models:
description: "{{ doc('generic_id_desc') }}"
- name: fee
data_type: bigint
description: "Fees (in cents) paid for this transaction. Represented as a positive integer when assessed."
description: "Fees paid for this transaction. Represented as a positive integer when assessed."
- name: net
data_type: bigint
description: "Net impact to a Stripe balance (in cents). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by amount - fee"
description: "Net impact to a Stripe balance. A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by amount - fee"
- name: type
data_type: character varying
description: "Transaction type: adjustment, advance, advance_funding, anticipation_repayment, application_fee, application_fee_refund, charge, climate_order_purchase, climate_order_refund, connect_collection_transfer, contribution, issuing_authorization_hold, issuing_authorization_release, issuing_dispute, issuing_transaction, obligation_outbound, obligation_reversal_inbound, payment, payment_failure_refund, payment_network_reserve_hold, payment_network_reserve_release, payment_refund, payment_reversal, payment_unreconciled, payout, payout_cancel, payout_failure, refund, refund_failure, reserve_transaction, reserved_funds, stripe_fee, stripe_fx_fee, tax_fee, topup, topup_reversal, transfer, transfer_cancel, transfer_failure, or transfer_refund. Learn more about balance transaction types and what they represent. To classify transactions for accounting purposes, consider reporting_category instead."
- name: amount
data_type: bigint
description: "Gross amount of this transaction (in cents). A positive value represents funds charged to another party, and a negative value represents funds sent to another party."
description: "Gross amount of this transaction. A positive value represents funds charged to another party, and a negative value represents funds sent to another party."
- name: object
data_type: character varying
description: "Silly column. The value is always `balance_transaction`."
@ -33,11 +33,14 @@ models:
data_type: character varying
description: "The transactions net funds status in the Stripe balance, which are either available or pending."
- name: created_at_utc
data_type: bigint
data_type: timestamp with time zone
description: "The timestamp at which the object was created."
- name: created_date_utc
data_type: date
description: "The date when the object was created."
- name: currency
data_type: character varying
description: "{{ doc('stripe_currency_desc') }}"
description: "{{ doc('currency_desc') }}"
- name: description
data_type: character varying
description: "An arbitrary string attached to the object. Often useful for displaying to users."
@ -45,8 +48,11 @@ models:
data_type: jsonb
description: "Detailed breakdown of fees (in cents) paid for this transaction."
- name: available_at_utc
data_type: bigint
data_type: timestamp with time zone
description: "The timestamp at which the transactions net funds become available in the Stripe balance."
- name: available_date_utc
data_type: date
description: "The date when the object was available."
- name: exchange_rate
data_type: numeric
description: "If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the amount in currency A, multipled by the exchange_rate, equals the amount in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntents amount is 1000 and currency is eur. If this converts to 12.34 USD in your Stripe account, the BalanceTransactions amount is 1234, its currency is usd, and the exchange_rate is 1.234."
@ -56,9 +62,12 @@ models:
- name: reporting_category
data_type: character varying
description: "Read more at https://stripe.com/docs/reports/reporting-categories."
- name: dwh_extracted_at_date
- name: dwh_extracted_at_utc
data_type: timestamp with time zone
description: "{{ doc('dwh_extracted_at_date_desc')}}"
description: "{{ doc('dwh_extracted_at_utc_desc')}}"
- name: dwh_extracted_date_utc
data_type: date
description: "{{ doc('dwh_extracted_date_utc_desc')}}"
- name: stg_stripe__charges
description: ""
columns:
@ -268,7 +277,7 @@ models:
- name: dwh_extracted_at_date
data_type: timestamp with time zone
description: "{{ doc('dwh_extracted_at_date_desc') }}"
description: "{{ doc('dwh_extracted_at_utc_desc') }}"
- name: stg_stripe__payment_intents
description: |
A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.
@ -466,7 +475,7 @@ models:
- name: dwh_extracted_at_date
data_type: timestamp with time zone
description: "{{ doc('dwh_extracted_at_date_desc') }}"
description: "{{ doc('dwh_extracted_at_utc_desc') }}"
- name: stg_stripe__refunds
description: |
Refund objects allow you to refund a previously created charge that isnt refunded yet. Funds are refunded to the credit or debit card thats initially charged.
@ -539,4 +548,4 @@ models:
- name: dwh_extracted_at_date
data_type: timestamp with time zone
description: "{{ doc ('dwh_extracted_at_date_desc') }}"
description: "{{ doc ('dwh_extracted_at_utc_desc') }}"