{
    "type": "PST", "name": "IRX Posting File", "suffixes": ["pst", "gnl", "dda", "mem", "fin", "ips"],
    "format": "fixed", "recordLength": 200,
    "records": [{
            "type": "H",
            "name": "Header Record",
            "fields": [
                ["Rec Type", 1],
                ["Version ID", 2],
                ["File ID", 10],
                ["Posting Date", 8],
                ["Create Date", 8],
                ["Create Time", 6],
                ["Host ID", 5],
                ["Site", 10],
                ["Reserved  / Filler", 150]
            ]
        },

        {
            "type": "X",
            "parent": "H",
            "name": "Transaction Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Bank", 3],
                ["Branch", 4],
                ["Account Number", 20],
                ["Appl", 3],
                ["Acct Class", 1],
                ["Acct Type", 2],
                ["Trans Type", 1],
                ["Trans Code", 1],
                ["Rollup", 1],
                ["Alt Chrg?", 1],
                ["Post Date", 8],
                ["Capture Date", 8],
                ["Deposit Date", 8],
                ["Item Seq Num", 12],
                ["Amount", 14],
                ["Store Number", 14],
                ["Cost Center", 8],
                ["Expiration", 8],
                ["Deposit Account", 20],
                ["Deposit Bank", 3],
                ["Float Days", 2],
                ["Deposit R/T", 9],
                ["Product Code", 10],
                ["Ledger ID", 2],
                ["Item SWIFT Flag", 1],
                ["Notif SWIFT Flag", 1],
                ["SI User Field 1", 1],
                ["Description", 8],
                ["Brokerage Account", 16],
                ["Hold Source", 1]
            ]
        },

        {
            "type": "F",
            "parent": "X",            
            "name": "Fee Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Fee Type", 2],
                ["Fee Units", 1],
                ["Item Count", 5],
                ["Advice Count", 5],
                ["Other Count", 5],
                ["Amount", 14],
                ["Trans Code", 5],
                ["Account Number", 20],
                ["Appl", 3],
                ["Cost Center", 8],
                ["Acct Type", 2],
                ["Alt Chrg?", 1],
                ["Dep Acct Number", 20],
                ["Dep Appl", 3],
                ["Dep Cost Center", 8],
                ["Dep Acct Type", 2],
                ["Dep Bank", 3],
                ["Fee ID", 40],
                ["Chrg Bank", 3],
                ["Buyback?", 1],
                ["Filler", 40]
            ]
        },

        {
            "type": "I",
            "parent": "X",            
            "name": "Item Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Doc Type", 1],
                ["Item Seq Num", 12],
                ["Serial", 10],
                ["Routing/Transit", 8],
                ["Opt 4", 10],
                ["Maker Acc Num", 20],
                ["Proc Ctl", 6],
                ["Amount", 14],
                ["Return Reason", 3],
                ["Decision", 1],
                ["Maker Name", 20],
                ["Store #", 14],
                ["Advice #", 5],
                ["Payment Data", 20],
                ["Message ID", 16],
                ["Deposit Date", 8],
                ["Represent Date", 8],
                ["Represent Count", 1],
                ["Repaired Flag", 1],
                ["Original Amount", 10],
                ["Export Number", 2],
                ["Advice Type", 1]
            ]
        },

        {
            "type": "E",
            "parent": "I",             
            "name": "Extended Item Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Source ID", 18],
                ["Source Name", 20],
                ["Source Routing/Transit", 9],
                ["Source Control ID", 10],
                ["User Data 1", 20],
                ["User Data 2", 20],
                ["User Data 3", 40],
                ["User Data 4", 10],
                ["SI User Field 1", 1],
                ["SI User Field 2", 20],
                ["SI User Field 3", 20],
                ["RCK Return Items Flag", 1],
                ["Document Type", 1],
                ["Document Source", 1]
            ]
        },

        {
            "type": "A",
            "parent": "I",            
            "name": "Additional Item Data Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Additional Data", 80],
                ["Officer", 10],
                ["Account Type", 3],
                ["Branch Number", 10],
                ["Branch?", 1],
                ["Currency", 3],
                ["BOFD", 9],
                ["Prior Holdover?", 1],
                ["Dep Debit SeqNum", 12],
                ["Dep Credit SeqNum", 12],
                ["Item ID", 18],
                ["CIF Short Name", 20],
                ["OnUs?", 1],
                ["Repr Reason", 1],
                ["Transfer Code", 1],
                ["Divestiture code", 1],
                ["Account Analysis", 1],
                ["Document Destination", 1],
                ["Serial Prefix", 5],
                ["Filler", 1]
            ]
        },

        {
            "type": "O",
            "parent": "I",                
            "name": "Other Item Data Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Endpoint Number", 10],
                ["RCK Debit Date", 8],
                ["Advice Flags", 10],
                ["Original Item ID", 18],
                ["Latest Item ID", 18],
                ["Mk Fee State", 2],
                ["Mk Fee Coll", 1],
                ["Mk Fee Auth", 1],
                ["ACH Comp ID", 10],
                ["ACH Comp Name", 16],
                ["ACH Entry Desc", 10],
                ["Returned Item Type", 3],
                ["SEC Code", 3],
                ["Ext Return Reason", 3],
                ["ACH Action", 1],
                ["Track Flag", 1],
                ["Error Source", 1],
                ["Consolidated EOD Posting Indicator", 1],
                ["Consolidated Item Type Posting Indicator", 1],
                ["Custom Product IDs", 39],
                ["Filler", 34]
            ]
        },

        {
            "type": "U",
            "parent": "I",            
            "name": "User-Defined Item Data Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["CIF Store #", 14],
                ["Ext Capture Seq Num", 20],
                ["Dep Debit Seq Num", 20],
                ["Dep Credit Seq Num", 20],
                ["Instruction ID", 18],
                ["EARNS Return Reason", 27],
                ["Online Decision Status", 8],
                ["Online Dec Export Timestamp", 14],
                ["Online Dec Cust ID", 32],
                ["Online Dec Timestamp", 14],
                ["Risk Indicator", 1],
                ["Filler", 3]
            ]
        },

        {
            "type": "T",          
            "name": "Totals Record",
            "fields": [
                ["Rec Type", 1],
                ["Trans ID", 8],
                ["Debit Count", 8],
                ["Debit Amount", 14],
                ["Credit Count", 8],
                ["Credit Amount", 14],
                ["Fees Count", 8],
                ["Fees Amount", 14],
                ["Other Count", 8],
                ["Holds Count", 8],
                ["Holds Amount", 14],
                ["Releases Count", 8],
                ["Releases Amount", 14],
                ["Filler", 73]
            ]
        }
    ]
}
