more tests
This commit is contained in:
parent
2a91cd1cc9
commit
6e69b4895c
1 changed files with 34 additions and 1 deletions
|
|
@ -634,27 +634,51 @@ sources:
|
|||
- name: object
|
||||
data_type: character varying
|
||||
description: "Silly column. The value is always `refund`."
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^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."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_in_set:
|
||||
value_set:
|
||||
[
|
||||
"succeeded",
|
||||
"pending",
|
||||
"failed",
|
||||
"requires_action",
|
||||
"canceled",
|
||||
]
|
||||
- name: created
|
||||
data_type: bigint
|
||||
description: "{{ doc('stripe_created_desc') }}"
|
||||
tests:
|
||||
- not_null
|
||||
- name: updated
|
||||
data_type: bigint
|
||||
description: "{{ doc('stripe_created_desc') }}"
|
||||
- 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: metadata
|
||||
data_type: jsonb
|
||||
description: "{{ doc('stripe_metadata_desc') }}"
|
||||
- name: payment_intent
|
||||
data_type: character varying
|
||||
description: "ID of the PaymentIntent that’s refunded."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^pi_.{24}$"
|
||||
- name: receipt_number
|
||||
data_type: character varying
|
||||
description: "This is the transaction number that appears on email receipts sent for this refund."
|
||||
|
|
@ -663,7 +687,11 @@ sources:
|
|||
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."
|
||||
description: "Balance transacion that describes the impact on your account balance."
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^txn_.{24}$"
|
||||
row_condition: "balance_transaction is not null"
|
||||
- name: destination_details
|
||||
data_type: jsonb
|
||||
description: "Transaction-specific details for the refund."
|
||||
|
|
@ -676,6 +704,11 @@ sources:
|
|||
- name: _airbyte_extracted_at
|
||||
data_type: timestamp with time zone
|
||||
description: "{{ doc('_airbyte_extracted_at_desc') }}"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 2
|
||||
- name: _airbyte_meta
|
||||
data_type: jsonb
|
||||
description: "{{ doc('_airbyte_meta_desc') }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue