more tests
This commit is contained in:
parent
7ccb64f1ba
commit
4da017b31e
1 changed files with 30 additions and 0 deletions
|
|
@ -83,21 +83,36 @@ sources:
|
|||
- 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."
|
||||
tests:
|
||||
- not_null
|
||||
- name: object
|
||||
data_type: character varying
|
||||
description: "Silly column. The value is always `balance_transaction`."
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^balance_transaction$"
|
||||
- name: source
|
||||
data_type: character varying
|
||||
description: "This transaction relates to the Stripe object indicated here. Can be different object types (charge, refund, payment, etc)."
|
||||
- name: status
|
||||
data_type: character varying
|
||||
description: "The transaction’s net funds status in the Stripe balance, which are either available or pending."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_in_set:
|
||||
value_set: ["available", "pending"]
|
||||
- name: created
|
||||
data_type: bigint
|
||||
description: "{{ doc('stripe_created_desc') }}"
|
||||
tests:
|
||||
- not_null
|
||||
- name: currency
|
||||
data_type: character varying
|
||||
description: "{{ doc('stripe_currency_desc') }}"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_value_lengths_to_equal:
|
||||
value: 3
|
||||
- name: description
|
||||
data_type: character varying
|
||||
description: "An arbitrary string attached to the object. Often useful for displaying to users."
|
||||
|
|
@ -107,6 +122,8 @@ sources:
|
|||
- name: available_on
|
||||
data_type: bigint
|
||||
description: "The date that the transaction’s net funds become available in the Stripe balance."
|
||||
tests:
|
||||
- not_null
|
||||
- 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 PaymentIntent’s amount is 1000 and currency is eur. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction’s amount is 1234, its currency is usd, and the exchange_rate is 1.234."
|
||||
|
|
@ -116,6 +133,19 @@ sources:
|
|||
- name: reporting_category
|
||||
data_type: character varying
|
||||
description: "Read more at https://stripe.com/docs/reports/reporting-categories."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_in_set:
|
||||
value_set:
|
||||
[
|
||||
"fee",
|
||||
"network_cost",
|
||||
"charge",
|
||||
"payout",
|
||||
"refund",
|
||||
"topup",
|
||||
"dispute",
|
||||
]
|
||||
- name: _airbyte_raw_id
|
||||
data_type: character varying
|
||||
description: "{{ doc('_airbyte_raw_id_desc') }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue