add schema for refunds
This commit is contained in:
parent
bb0cc1691d
commit
a913c78cd2
1 changed files with 73 additions and 3 deletions
|
|
@ -467,3 +467,73 @@ models:
|
||||||
- name: dwh_extracted_at_date
|
- name: dwh_extracted_at_date
|
||||||
data_type: timestamp with time zone
|
data_type: timestamp with time zone
|
||||||
description: "{{ doc('dwh_extracted_at_date_desc') }}"
|
description: "{{ doc('dwh_extracted_at_date_desc') }}"
|
||||||
|
- name: stg_stripe__refunds
|
||||||
|
description: ""
|
||||||
|
columns:
|
||||||
|
- name: id
|
||||||
|
data_type: character varying
|
||||||
|
description: "{{ doc('generic_id_desc') }}"
|
||||||
|
|
||||||
|
- name: amount
|
||||||
|
data_type: bigint
|
||||||
|
description: "Amount, in cents."
|
||||||
|
|
||||||
|
- name: charge
|
||||||
|
data_type: character varying
|
||||||
|
description: "ID of the charge that’s refunded."
|
||||||
|
|
||||||
|
- name: object
|
||||||
|
data_type: character varying
|
||||||
|
description: "Silly column. The value is always `refund`."
|
||||||
|
|
||||||
|
- name: reason
|
||||||
|
data_type: character varying
|
||||||
|
description: "Reason for the refund, which is either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge)."
|
||||||
|
|
||||||
|
- name: status
|
||||||
|
data_type: character varying
|
||||||
|
description: "Status of the refund. This can be pending, requires_action, succeeded, failed, or canceled. Learn more about failed refunds."
|
||||||
|
|
||||||
|
- name: created_at_utc
|
||||||
|
data_type: timestamp with time zone
|
||||||
|
description: "Time at which the object was created."
|
||||||
|
|
||||||
|
- name: updated_at_utc
|
||||||
|
data_type: timestamp with time zone
|
||||||
|
description: "Time at which the object was last updated."
|
||||||
|
|
||||||
|
- name: currency
|
||||||
|
data_type: character varying
|
||||||
|
description: "{{ doc('stripe_currency_desc') }}"
|
||||||
|
|
||||||
|
- name: metadata
|
||||||
|
data_type: jsonb
|
||||||
|
description: "{{ doc('stripe_metadata_desc') }}"
|
||||||
|
|
||||||
|
- name: payment_intent
|
||||||
|
data_type: character varying
|
||||||
|
description: "ID of the PaymentIntent that’s refunded."
|
||||||
|
|
||||||
|
- name: receipt_number
|
||||||
|
data_type: character varying
|
||||||
|
description: "This is the transaction number that appears on email receipts sent for this refund."
|
||||||
|
|
||||||
|
- name: transfer_reversal
|
||||||
|
data_type: character varying
|
||||||
|
description: "This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter."
|
||||||
|
|
||||||
|
- name: balance_transaction
|
||||||
|
data_type: character varying
|
||||||
|
description: "Balance transaction that describes the impact on your account balance."
|
||||||
|
|
||||||
|
- name: destination_details
|
||||||
|
data_type: jsonb
|
||||||
|
description: "Transaction-specific details for the refund."
|
||||||
|
|
||||||
|
- name: source_transfer_reversal
|
||||||
|
data_type: character varying
|
||||||
|
description: "The transfer reversal that’s associated with the refund. Only present if the charge came from another Stripe account."
|
||||||
|
|
||||||
|
- name: dwh_extracted_at_date
|
||||||
|
data_type: timestamp with time zone
|
||||||
|
description: "{{ doc ('dwh_extracted_at_date_desc') }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue