more tests
This commit is contained in:
parent
363d1611ae
commit
7ccb64f1ba
1 changed files with 52 additions and 1 deletions
|
|
@ -23,12 +23,63 @@ sources:
|
||||||
- name: fee
|
- name: fee
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
description: "Fees (in cents) paid for this transaction. Represented as a positive integer when assessed."
|
description: "Fees (in cents) paid for this transaction. Represented as a positive integer when assessed."
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
- name: net
|
- name: net
|
||||||
data_type: bigint
|
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 (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"
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
- name: type
|
- name: type
|
||||||
data_type: character varying
|
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."
|
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, network_cost, 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."
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- dbt_expectations.expect_column_values_to_be_in_set:
|
||||||
|
value_set:
|
||||||
|
[
|
||||||
|
"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",
|
||||||
|
"network_cost",
|
||||||
|
"refund",
|
||||||
|
"refund_failure",
|
||||||
|
"reserve_transaction",
|
||||||
|
"reserved_funds",
|
||||||
|
"stripe_fee",
|
||||||
|
"stripe_fx_fee",
|
||||||
|
"tax_fee",
|
||||||
|
"topup",
|
||||||
|
"topup_reversal",
|
||||||
|
"transfer",
|
||||||
|
"transfer_cancel",
|
||||||
|
"transfer_failure",
|
||||||
|
"transfer_refund",
|
||||||
|
]
|
||||||
- name: amount
|
- name: amount
|
||||||
data_type: bigint
|
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 (in cents). A positive value represents funds charged to another party, and a negative value represents funds sent to another party."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue