Addressed comments
This commit is contained in:
parent
c49239a7cf
commit
cfc6971cb4
2 changed files with 152 additions and 15 deletions
|
|
@ -91,28 +91,55 @@ models:
|
|||
data_type: bigint
|
||||
description: "Number of items reported as damaged in the incident."
|
||||
|
||||
- name: original_value_amount_in_txn_currency
|
||||
- name: original_value_amount_in_host_currency
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Original value of the damaged items in the transaction currency."
|
||||
"Original value of the damaged items in the host currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: asked_repair_amount_in_txn_currency
|
||||
- name: original_value_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Amount requested by the host for repair in the transaction currency."
|
||||
"Original value of the damaged items in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: accepted_amount_in_txn_currency
|
||||
- name: asked_repair_amount_in_host_currency
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Final accepted settlement amount in the transaction currency."
|
||||
"Amount requested by the host for repair in the host currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: asked_repair_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Amount requested by the host for repair in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: accepted_amount_in_host_currency
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Final accepted settlement amount in the host currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: accepted_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Final accepted settlement amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
|
|
@ -123,9 +150,9 @@ models:
|
|||
description: "Host or local currency"
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: "original_value_amount_in_txn_currency > 0
|
||||
or asked_repair_amount_in_txn_currency > 0
|
||||
or accepted_amount_in_txn_currency > 0"
|
||||
where: "original_value_amount_in_host_currency > 0
|
||||
or asked_repair_amount_in_host_currency > 0
|
||||
or accepted_amount_in_host_currency > 0"
|
||||
|
||||
- name: was_overriden
|
||||
data_type: boolean
|
||||
|
|
@ -176,6 +203,14 @@ models:
|
|||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_payout_amount_in_gbp
|
||||
data_type: text
|
||||
description: "Calculated payout amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in local currency."
|
||||
|
|
@ -191,6 +226,22 @@ models:
|
|||
- not_null:
|
||||
where: "calculated_guest_charge_amount_in_txn_currency > 0"
|
||||
|
||||
- name: calculated_guest_charge_amount_in_usd
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in USD."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_amount_in_gbp
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: id_user_host
|
||||
data_type: text
|
||||
description: |
|
||||
|
|
@ -277,6 +328,14 @@ models:
|
|||
- not_null:
|
||||
where: "deposit_retained_amount_in_txn_currency > 0"
|
||||
|
||||
- name: deposit_retained_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Amount of the deposit retained in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: has_guest_contributed_to_cost
|
||||
data_type: boolean
|
||||
description: "If the guest has agreed to contribute to the cost
|
||||
|
|
@ -303,6 +362,15 @@ models:
|
|||
- not_null:
|
||||
where: "guest_contribution_amount_in_txn_currency > 0"
|
||||
|
||||
- name: guest_contribution_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Amount of the guest contribution, in case they did,
|
||||
in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: is_guest_contacted_about_damage
|
||||
data_type: boolean
|
||||
description: "If the host has contacted the guest about the damage caused"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue