more tests

This commit is contained in:
Pablo Martin 2024-02-23 12:17:07 +01:00
parent d542575588
commit bb1356a0f8

View file

@ -192,13 +192,13 @@ sources:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
min_value: 0
- name: object
data_type: character varying
description: "Silly column. The value is always `charge`."
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: "^charge$"
regex: "^charge$"
- name: review
data_type: character varying
description: "ID of the review associated with this charge if one exists."
@ -322,7 +322,7 @@ sources:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
min_value: 0
strictly: False
- name: amount_refunded
data_type: bigint
@ -330,7 +330,7 @@ sources:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
min_value: 0
strictly: False
- name: application_fee
data_type: character varying
@ -398,12 +398,24 @@ sources:
- name: id
data_type: character varying
description: "{{ doc('generic_id_desc') }}"
tests:
- unique
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: "^pi_.{24}$"
- name: amount
data_type: bigint
description: "Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99)."
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
- name: object
data_type: character varying
description: "Silly column. The value is always `payment_intent`."
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: "^payment_intent$"
- name: review
data_type: character varying
description: "ID of the review associated with this PaymentIntent, if any."
@ -413,6 +425,20 @@ sources:
- name: status
data_type: character varying
description: "Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent status."
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_set:
value_set:
[
"requires_payment_method",
"requires_confirmation",
"requires_action",
"processing",
"requires_capture",
"canceled",
"succeeded",
"requires_action",
]
- name: charges
data_type: jsonb
description: "{{ doc('field_docs_na_desc') }}"