{"package":"BILLING_RUN","pdr_config":{"mappings":[{"REPORT_NAME":"BILLING","REPORT_SUB_TYPE":"APC_COMPENSATION","VERSION":2}],"transaction_type":"INSERT"},"documentation_urls":["https://nemweb.com.au/Reports/Current/MMSDataModelReport/Electricity/ElectricityDataModelReport_files/Elec15.htm#1"],"comment":"Billing result table for APC compensation payments.","description":"Updated with each billing run","primary_keys":["APEVENTID","BILLRUNNO","CLAIMID","CONTRACTYEAR","WEEKNO"],"columns":{"APEVENTID":{"sql_type":"NUMBER(6)","pl_type":"pl.Int32","mandatory":true,"comment":"AP Event Id","is_integer":true,"num_int_bits":32},"BILLRUNNO":{"sql_type":"NUMBER(3)","pl_type":"pl.UInt16","mandatory":true,"comment":"Billing run number","is_integer":true,"unsigned_int":true,"num_int_bits":16},"CLAIMID":{"sql_type":"NUMBER(6)","pl_type":"pl.Int32","mandatory":true,"comment":"AP Event Claim Id","is_integer":true,"num_int_bits":32},"CONTRACTYEAR":{"sql_type":"NUMBER(4)","pl_type":"pl.UInt16","mandatory":true,"comment":"Billing contract year","is_integer":true,"unsigned_int":true,"num_int_bits":16},"WEEKNO":{"sql_type":"NUMBER(3)","pl_type":"pl.UInt16","mandatory":true,"comment":"Billing week number","warnings":["There may be 53 weeks in a year, depending on how weeks align to the year start/end."],"is_integer":true,"unsigned_int":true,"num_int_bits":16},"COMPENSATION_AMOUNT":{"sql_type":"NUMBER(18,8)","pl_type":"pl.Float64","mandatory":false,"comment":"Payment amount to the participant","is_float":true},"COMPENSATION_TYPE":{"sql_type":"VARCHAR2(20)","pl_type":"pl.Categorical","mandatory":false,"comment":"The Type of Administered Price Compensation Claim. Valid values: DIRECT_COST, OTHER_COST"},"EVENT_TYPE":{"sql_type":"VARCHAR2(20)","pl_type":"pl.Categorical","mandatory":false,"comment":"The Administered Price Event Type. Valid values: ENERGY, FCAS, BOTH"},"LASTCHANGED":{"sql_type":"DATE","pl_type":"pl.Datetime()","mandatory":false,"comment":"The date and time of last changed record","examples":["2026/01/20 00:05:00"],"parse_csv_as_string":true,"is_s_datetime":true},"PARTICIPANTID":{"sql_type":"VARCHAR2(20)","pl_type":"pl.Categorical","mandatory":false,"comment":"Participant identifier","is_categorical":true}},"visibility":"Private","warnings":[{"msg":"This is a different table to BILLINGAPCCOMPENSATION","category":"related_tables"}],"trigger":"Generated when a billing run is posted"}