more tests
This commit is contained in:
parent
d542575588
commit
bb1356a0f8
1 changed files with 30 additions and 4 deletions
|
|
@ -192,13 +192,13 @@ sources:
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
min_value: 0
|
min_value: 0
|
||||||
- name: object
|
- name: object
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: "Silly column. The value is always `charge`."
|
description: "Silly column. The value is always `charge`."
|
||||||
tests:
|
tests:
|
||||||
- dbt_expectations.expect_column_values_to_match_regex:
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
regex: "^charge$"
|
regex: "^charge$"
|
||||||
- name: review
|
- name: review
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: "ID of the review associated with this charge if one exists."
|
description: "ID of the review associated with this charge if one exists."
|
||||||
|
|
@ -322,7 +322,7 @@ sources:
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
min_value: 0
|
min_value: 0
|
||||||
strictly: False
|
strictly: False
|
||||||
- name: amount_refunded
|
- name: amount_refunded
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
|
|
@ -330,7 +330,7 @@ sources:
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
min_value: 0
|
min_value: 0
|
||||||
strictly: False
|
strictly: False
|
||||||
- name: application_fee
|
- name: application_fee
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
@ -398,12 +398,24 @@ sources:
|
||||||
- name: id
|
- name: id
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: "{{ doc('generic_id_desc') }}"
|
description: "{{ doc('generic_id_desc') }}"
|
||||||
|
tests:
|
||||||
|
- unique
|
||||||
|
- not_null
|
||||||
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
|
regex: "^pi_.{24}$"
|
||||||
- name: amount
|
- name: amount
|
||||||
data_type: bigint
|
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)."
|
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
|
- name: object
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: "Silly column. The value is always `payment_intent`."
|
description: "Silly column. The value is always `payment_intent`."
|
||||||
|
tests:
|
||||||
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
|
regex: "^payment_intent$"
|
||||||
- name: review
|
- name: review
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: "ID of the review associated with this PaymentIntent, if any."
|
description: "ID of the review associated with this PaymentIntent, if any."
|
||||||
|
|
@ -413,6 +425,20 @@ sources:
|
||||||
- name: status
|
- name: status
|
||||||
data_type: character varying
|
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."
|
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
|
- name: charges
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: "{{ doc('field_docs_na_desc') }}"
|
description: "{{ doc('field_docs_na_desc') }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue