...
Data Category | Event Field/Column Name | Data Type | Description | Applicability | Sample Value | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | TenantId | VARCHAR(32) |
| ALWAYS | qvo-stg | |||||||||||||
Key | Tenant | VARCHAR(64) |
| ALWAYS | Default | |||||||||||||
Key | ClientId | VARCHAR(64) |
| ALWAYS | Default | |||||||||||||
Key | Client | VARCHAR(64) |
| ALWAYS | Default | |||||||||||||
Claim Details | ClaimType | VARCHAR(64) |
| CONDITIONAL | Card-Pinless | |||||||||||||
Claim Details | ClaimCategory | VARCHAR(64) |
| CONDITIONAL | Fraud | |||||||||||||
Claim Details | ClaimReason | VARCHAR(64) |
| CONDITIONAL | Stolen | |||||||||||||
Compliance Details | RegulatoryCoverage | VARCHAR |
| CONDITIONAL | Reg E | |||||||||||||
Claim Details | ClaimChannel | VARCHAR(32) |
| ALWAYS | Online Banking | |||||||||||||
Key | ClaimId | VARCHAR(32) |
| ALWAYS | 2306060014C | |||||||||||||
Claim Details | CreateDate | DATE |
| CONDITIONAL | 2023-09-09 | |||||||||||||
Claim Details | ClaimContactDate | DATE |
| CONDITIONAL | 2023-09-09 | |||||||||||||
Claim Details | ClaimAmount | NUMBER(20,2) |
| CONDITIONAL | 123.45 | |||||||||||||
Claim Details | ClaimState | VARCHAR |
| ALWAYS | OPEN | |||||||||||||
Claim Details | ClaimStatus | VARCHAR(64) |
| ALWAYS | RESOLVED-PAID | |||||||||||||
Card Details | BIN | VARCHAR(8) |
| CONDITIONAL | 412356, 41235678 | |||||||||||||
Card Details | CardType | VARCHAR(16) |
| CONDITIONAL | Debit | |||||||||||||
Claim Details | ResolvedDate | TIMESTAMP_NTZ(9) |
| CONDITIONAL | 2023-09-09 21:00:00 | |||||||||||||
Dispute Details | DisputeCount | NUMBER(3,0) |
| CONDITIONAL | 2 | |||||||||||||
Dispute Details | DisputeAmount | NUMBER(20,2) |
| CONDITIONAL | 123.59 | |||||||||||||
Dispute Details | Age | NUMBER(20,2) | Current Date - Create Date (DAYS) | ALWAYS | 48 |
SQL
Code Block | ||||
---|---|---|---|---|
| ||||
SELECT
c.tenantid,
t.name,
c.clientid,
cl.legalname,
c.claimtype,
c.reasontype,
c.reason,
(CASE
WHEN c.rege45datetime IS NOT NULL THEN 'Reg E'
WHEN c.rege90datetime IS NOT NULL THEN 'Reg E'
WHEN c.regz90datetime IS NOT NULL THEN 'Reg Z'
WHEN c.isfcra = TRUE THEN 'FCRA'
ELSE 'No Coverage'
END) AS RegulatoryCoverage,
c.cardtype,
c.cardbin,
c.channelorigin,
c.claimid,
c.claimamount,
cs.state,
CAMEL_CASE_TO_STRING(c.status),
TO_TIMESTAMP_TZ(c.createdatetime::varchar || ' +0000'),
c.customercontactdate,
TO_TIMESTAMP_TZ(c.resolveddatetime::varchar || ' +0000'),
(SELECT COUNT(*) FROM dispute AS d WHERE d.tenantid = c.tenantid AND d.claimid = c.claimid AND d.status != 'Resolved-PostedDisputeCreated') AS DisputeCount,
(SELECT SUM(d.disputeamount) FROM dispute AS d WHERE d.tenantid = c.tenantid AND d.claimid = c.claimid AND d.status != 'Resolved-PostedDisputeCreated') AS DisputeAmount,
DATEDIFF(d, createdatetime, CURRENT_DATE)
FROM claim AS c
JOIN tenant AS t ON c.tenantid = t.tenantid
JOIN client AS cl ON c.tenantid = cl.tenantid AND c.clientid = cl.clientid
LEFT JOIN claim_state AS cs ON cs.status = c.status
ORDER BY
c.createdatetime DESC |
Change Log
Date | Change Summary |
---|---|
12/11/24 |
|