@mikemo-coposit/am-accounting-shared 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/constants/cma-transaction/cma-input-type.constant.d.ts +3 -1
- package/dist/cjs/constants/cma-transaction/cma-input-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/common/index.d.ts +1 -0
- package/dist/cjs/constants/common/index.d.ts.map +1 -1
- package/dist/cjs/constants/common/payment-method.constant.d.ts +4 -0
- package/dist/cjs/constants/common/payment-method.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts +2 -1
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/mta-transaction/mta-transaction-status.constant.d.ts +10 -0
- package/dist/cjs/constants/mta-transaction/mta-transaction-status.constant.d.ts.map +1 -1
- package/dist/cjs/index.js +861 -512
- package/dist/cjs/schemas/cma/cma.entity.schema.d.ts +97 -97
- package/dist/cjs/schemas/cma/cma.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts +56 -56
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +511 -511
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +61 -61
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +355 -355
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +192 -218
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +175 -175
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +61 -61
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +3 -3
- package/dist/cjs/schemas/common/account/account-bsb.schma.d.ts +1 -0
- package/dist/cjs/schemas/common/account/account-bsb.schma.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/index.d.ts +3 -0
- package/dist/cjs/schemas/common/search/index.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts +13 -0
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/pagination-res.schema.d.ts +40 -0
- package/dist/cjs/schemas/common/search/pagination-res.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/query-mode.schema.d.ts +11 -0
- package/dist/cjs/schemas/common/search/query-mode.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts +16 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta/mta.entity.schema.d.ts +2 -2
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts +18 -18
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +549 -549
- package/dist/cjs/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +15 -15
- package/dist/cjs/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +2 -2
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +4 -4
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +362 -362
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +8 -8
- package/dist/cjs/schemas/mta-transaction/index.d.ts +2 -0
- package/dist/cjs/schemas/mta-transaction/index.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +772 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction-status-summary.rest.schema.d.ts +20 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction-status-summary.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +1494 -12
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +63 -63
- package/dist/cjs/schemas/payout/cancel-payout-payment.rest.schema.d.ts +16 -0
- package/dist/cjs/schemas/payout/cancel-payout-payment.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts +47 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts +38 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-update-payout.rest.schema.d.ts +113 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/common-update-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/index.d.ts +4 -0
- package/dist/cjs/schemas/payout/common-payout-schemas/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/confirm-payout-bank-file-processed.rest.schema.d.ts +119 -0
- package/dist/cjs/schemas/payout/confirm-payout-bank-file-processed.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/index.d.ts +7 -7
- package/dist/cjs/schemas/payout/index.d.ts.map +1 -1
- package/dist/{esm/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts → cjs/schemas/payout/mta-to-cma-payout/create.mta-to-cma-payout.rest.schema.d.ts} +4 -4
- package/dist/cjs/schemas/payout/mta-to-cma-payout/create.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/index.d.ts +5 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts +1771 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +52720 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/update.mta-to-cma-payout.rest.schema.d.ts +48 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/update.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts +4413 -762
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-search.rest.schema.d.ts +57 -2
- package/dist/cjs/schemas/payout/payout-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-update.rest.schema.d.ts +254 -0
- package/dist/cjs/schemas/payout/payout-update.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +7385 -392
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +81939 -21069
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/settlement-payout/create.settlement-payout.rest.schema.d.ts +145 -0
- package/dist/cjs/schemas/payout/settlement-payout/create.settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/settlement-payout/index.d.ts +4 -0
- package/dist/cjs/schemas/payout/settlement-payout/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +2090 -0
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +299 -0
- package/dist/cjs/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/unknown-payout/create-unknown-payout.rest.schema.d.ts +58 -0
- package/dist/cjs/schemas/payout/unknown-payout/create-unknown-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/unknown-payout/index.d.ts +4 -0
- package/dist/cjs/schemas/payout/unknown-payout/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +2204 -0
- package/dist/cjs/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +94 -0
- package/dist/cjs/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +15 -12
- package/dist/cjs/schemas/payout-transaction/payout-transactin.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout-transaction/payout-transaction-search.rest.schema.d.ts +8 -8
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +943 -940
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/project/project.rest.schema.d.ts +23 -23
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +7 -7
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +68 -68
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +372 -372
- package/dist/cjs/schemas/report/index.d.ts +2 -0
- package/dist/cjs/schemas/report/index.d.ts.map +1 -1
- package/dist/cjs/schemas/report/payment-list.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/project-ledger.rest.schema.d.ts +34 -0
- package/dist/cjs/schemas/report/project-ledger.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/report/receipt-list.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts +30 -0
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -0
- package/dist/cjs/utils/mask-string.util.d.ts +9 -0
- package/dist/cjs/utils/mask-string.util.d.ts.map +1 -1
- package/dist/cjs/utils/payment-credential-generate.util.d.ts +21 -0
- package/dist/cjs/utils/payment-credential-generate.util.d.ts.map +1 -1
- package/dist/cjs/utils/property.util.d.ts +13 -1
- package/dist/cjs/utils/property.util.d.ts.map +1 -1
- package/dist/cjs/utils/transaction.util.d.ts.map +1 -1
- package/dist/esm/constants/cma-transaction/cma-input-type.constant.d.ts +3 -1
- package/dist/esm/constants/cma-transaction/cma-input-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/common/index.d.ts +1 -0
- package/dist/esm/constants/common/index.d.ts.map +1 -1
- package/dist/esm/constants/common/payment-method.constant.d.ts +4 -0
- package/dist/esm/constants/common/payment-method.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts +2 -1
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/mta-transaction/mta-transaction-status.constant.d.ts +10 -0
- package/dist/esm/constants/mta-transaction/mta-transaction-status.constant.d.ts.map +1 -1
- package/dist/esm/index.mjs +690 -410
- package/dist/esm/schemas/cma/cma.entity.schema.d.ts +97 -97
- package/dist/esm/schemas/cma/cma.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts +56 -56
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +511 -511
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +61 -61
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +355 -355
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +192 -218
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +175 -175
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +61 -61
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +3 -3
- package/dist/esm/schemas/common/account/account-bsb.schma.d.ts +1 -0
- package/dist/esm/schemas/common/account/account-bsb.schma.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/index.d.ts +3 -0
- package/dist/esm/schemas/common/search/index.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts +13 -0
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/pagination-res.schema.d.ts +40 -0
- package/dist/esm/schemas/common/search/pagination-res.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/query-mode.schema.d.ts +11 -0
- package/dist/esm/schemas/common/search/query-mode.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts +16 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta/mta.entity.schema.d.ts +2 -2
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts +18 -18
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +549 -549
- package/dist/esm/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +15 -15
- package/dist/esm/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +2 -2
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +4 -4
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +362 -362
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +8 -8
- package/dist/esm/schemas/mta-transaction/index.d.ts +2 -0
- package/dist/esm/schemas/mta-transaction/index.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +772 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction-status-summary.rest.schema.d.ts +20 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction-status-summary.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +1494 -12
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +63 -63
- package/dist/esm/schemas/payout/cancel-payout-payment.rest.schema.d.ts +16 -0
- package/dist/esm/schemas/payout/cancel-payout-payment.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts +47 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts +38 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-update-payout.rest.schema.d.ts +113 -0
- package/dist/esm/schemas/payout/common-payout-schemas/common-update-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/common-payout-schemas/index.d.ts +4 -0
- package/dist/esm/schemas/payout/common-payout-schemas/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout/confirm-payout-bank-file-processed.rest.schema.d.ts +119 -0
- package/dist/esm/schemas/payout/confirm-payout-bank-file-processed.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/index.d.ts +7 -7
- package/dist/esm/schemas/payout/index.d.ts.map +1 -1
- package/dist/{cjs/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts → esm/schemas/payout/mta-to-cma-payout/create.mta-to-cma-payout.rest.schema.d.ts} +4 -4
- package/dist/esm/schemas/payout/mta-to-cma-payout/create.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/index.d.ts +5 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts +1771 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +52720 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/update.mta-to-cma-payout.rest.schema.d.ts +48 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/update.mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts +4413 -762
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-search.rest.schema.d.ts +57 -2
- package/dist/esm/schemas/payout/payout-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-update.rest.schema.d.ts +254 -0
- package/dist/esm/schemas/payout/payout-update.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +7385 -392
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +81939 -21069
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/settlement-payout/create.settlement-payout.rest.schema.d.ts +145 -0
- package/dist/esm/schemas/payout/settlement-payout/create.settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/settlement-payout/index.d.ts +4 -0
- package/dist/esm/schemas/payout/settlement-payout/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +2090 -0
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +299 -0
- package/dist/esm/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/unknown-payout/create-unknown-payout.rest.schema.d.ts +58 -0
- package/dist/esm/schemas/payout/unknown-payout/create-unknown-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/unknown-payout/index.d.ts +4 -0
- package/dist/esm/schemas/payout/unknown-payout/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +2204 -0
- package/dist/esm/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +94 -0
- package/dist/esm/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +15 -12
- package/dist/esm/schemas/payout-transaction/payout-transactin.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout-transaction/payout-transaction-search.rest.schema.d.ts +8 -8
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +943 -940
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/project/project.rest.schema.d.ts +23 -23
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +7 -7
- package/dist/esm/schemas/property/property.entity.schema.d.ts +68 -68
- package/dist/esm/schemas/property/property.rest.schema.d.ts +372 -372
- package/dist/esm/schemas/report/index.d.ts +2 -0
- package/dist/esm/schemas/report/index.d.ts.map +1 -1
- package/dist/esm/schemas/report/payment-list.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/project-ledger.rest.schema.d.ts +34 -0
- package/dist/esm/schemas/report/project-ledger.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/report/receipt-list.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts +30 -0
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -0
- package/dist/esm/utils/mask-string.util.d.ts +9 -0
- package/dist/esm/utils/mask-string.util.d.ts.map +1 -1
- package/dist/esm/utils/payment-credential-generate.util.d.ts +21 -0
- package/dist/esm/utils/payment-credential-generate.util.d.ts.map +1 -1
- package/dist/esm/utils/property.util.d.ts +13 -1
- package/dist/esm/utils/property.util.d.ts.map +1 -1
- package/dist/esm/utils/transaction.util.d.ts.map +1 -1
- package/package.json +19 -17
- package/dist/cjs/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts +0 -19
- package/dist/cjs/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts +0 -416
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/payout-provision-data.rest.schema.d.ts +0 -14755
- package/dist/cjs/schemas/payout/payout-provision-data.rest.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts +0 -87
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts +0 -474
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts +0 -529
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts +0 -19
- package/dist/esm/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts +0 -416
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/payout-provision-data.rest.schema.d.ts +0 -14755
- package/dist/esm/schemas/payout/payout-provision-data.rest.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts +0 -87
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts +0 -474
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts +0 -529
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts.map +0 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -49,6 +49,7 @@ var cma_input_type_constant_CmaTransactionCreateType = /*#__PURE__*/ function(Cm
|
|
|
49
49
|
CmaTransactionCreateType["MANUAL"] = "manual";
|
|
50
50
|
CmaTransactionCreateType["SYSTEM"] = "system";
|
|
51
51
|
CmaTransactionCreateType["FROM_PAYOUT"] = "from_payout";
|
|
52
|
+
CmaTransactionCreateType["CANCEL"] = "cancel";
|
|
52
53
|
return CmaTransactionCreateType;
|
|
53
54
|
}({});
|
|
54
55
|
const CmaTransactionInputTypeToDisplayText = {
|
|
@@ -58,7 +59,8 @@ const CmaTransactionInputTypeToDisplayText = {
|
|
|
58
59
|
const CmaTransactionCreateTypeToDisplayText = {
|
|
59
60
|
["manual"]: 'Manual',
|
|
60
61
|
["system"]: 'System',
|
|
61
|
-
["from_payout"]: 'From Payout'
|
|
62
|
+
["from_payout"]: 'From Payout',
|
|
63
|
+
["cancel"]: 'Cancel'
|
|
62
64
|
};
|
|
63
65
|
var cma_payment_method_constant_CmaTransactionPaymentMethod = /*#__PURE__*/ function(CmaTransactionPaymentMethod) {
|
|
64
66
|
CmaTransactionPaymentMethod["EFT"] = "EFT";
|
|
@@ -116,6 +118,10 @@ const AccountingCommonSyncStatus = {
|
|
|
116
118
|
SYNCED: 'synced',
|
|
117
119
|
FAILED: 'failed'
|
|
118
120
|
};
|
|
121
|
+
var payment_method_constant_PaymentMethod = /*#__PURE__*/ function(PaymentMethod) {
|
|
122
|
+
PaymentMethod["EFT"] = "EFT";
|
|
123
|
+
return PaymentMethod;
|
|
124
|
+
}({});
|
|
119
125
|
var reconcile_transaction_action_constant_ReconcileTransactionAction = /*#__PURE__*/ function(ReconcileTransactionAction) {
|
|
120
126
|
ReconcileTransactionAction["RECONCILE"] = "reconcile";
|
|
121
127
|
ReconcileTransactionAction["UNRECONCILE"] = "unreconcile";
|
|
@@ -143,6 +149,7 @@ var mta_MtaStatus = /*#__PURE__*/ function(MtaStatus) {
|
|
|
143
149
|
var mta_input_type_constant_MtaTransactionInputType = /*#__PURE__*/ function(MtaTransactionInputType) {
|
|
144
150
|
MtaTransactionInputType["RECEIPT"] = "receipt";
|
|
145
151
|
MtaTransactionInputType["PAYMENT"] = "payment";
|
|
152
|
+
MtaTransactionInputType["CANCEL"] = "cancel";
|
|
146
153
|
return MtaTransactionInputType;
|
|
147
154
|
}({});
|
|
148
155
|
const MtaTransactionInputTypeToDisplayText = {
|
|
@@ -163,6 +170,18 @@ const MtaTransactionStatusToDisplayTextMapper = {
|
|
|
163
170
|
[MtaTransactionStatus.CLEARED]: 'Cleared',
|
|
164
171
|
[MtaTransactionStatus.RECONCILED]: 'Reconciled'
|
|
165
172
|
};
|
|
173
|
+
const MtaTransactionExtendedStatus = {
|
|
174
|
+
...MtaTransactionStatus,
|
|
175
|
+
ALL: 'all',
|
|
176
|
+
UNKNOWN_RECEIPT: 'unknown_receipt',
|
|
177
|
+
PENDING_PURCHASE_INFO: 'pending_purchase_info'
|
|
178
|
+
};
|
|
179
|
+
const MtaTransactionExtendedStatusToDisplayTextMapper = {
|
|
180
|
+
...MtaTransactionStatusToDisplayTextMapper,
|
|
181
|
+
[MtaTransactionExtendedStatus.ALL]: 'All',
|
|
182
|
+
[MtaTransactionExtendedStatus.UNKNOWN_RECEIPT]: 'Unknown Receipt',
|
|
183
|
+
[MtaTransactionExtendedStatus.PENDING_PURCHASE_INFO]: 'Pending Purchase Info'
|
|
184
|
+
};
|
|
166
185
|
const MtaCustomerTransactionType = {
|
|
167
186
|
HOLDING_DEPOSIT: 'holding_deposit',
|
|
168
187
|
SIGNING_DEPOSIT: 'signing_deposit',
|
|
@@ -275,9 +294,9 @@ const PropertyRestResStatus = {
|
|
|
275
294
|
ACTIVE: 'active'
|
|
276
295
|
};
|
|
277
296
|
const PropertyStage = {
|
|
278
|
-
INITIAL_DEPOSIT:
|
|
279
|
-
STANDARD_SALE:
|
|
280
|
-
COPOSIT_SALE:
|
|
297
|
+
INITIAL_DEPOSIT: 'initial_deposit',
|
|
298
|
+
STANDARD_SALE: 'standard_sale',
|
|
299
|
+
COPOSIT_SALE: 'coposit_sale'
|
|
281
300
|
};
|
|
282
301
|
var report_data_range_type_constant_ReportDataRangeType = /*#__PURE__*/ function(ReportDataRangeType) {
|
|
283
302
|
ReportDataRangeType["SPECIFY_EXACT_DATA"] = "specify_exact_data";
|
|
@@ -344,6 +363,11 @@ const bigIntFilterSchema = bigIntFilterBaseSchema.extend({
|
|
|
344
363
|
z.lazy(()=>bigIntFilterBaseSchema)
|
|
345
364
|
]).optional()
|
|
346
365
|
});
|
|
366
|
+
const QueryMode = {
|
|
367
|
+
DEFAULT: 'default',
|
|
368
|
+
INSENSITIVE: 'insensitive'
|
|
369
|
+
};
|
|
370
|
+
const queryModeSchema = z.nativeEnum(QueryMode);
|
|
347
371
|
const StringFilterBaseSchema = z.object({
|
|
348
372
|
equals: z.string().optional(),
|
|
349
373
|
in: z.string().array().optional(),
|
|
@@ -367,11 +391,17 @@ const stringFilterSchema = z.object({
|
|
|
367
391
|
contains: z.string().optional(),
|
|
368
392
|
startsWith: z.string().optional(),
|
|
369
393
|
endsWith: z.string().optional(),
|
|
394
|
+
mode: z.lazy(()=>queryModeSchema).optional(),
|
|
370
395
|
not: z.union([
|
|
371
396
|
z.string(),
|
|
372
397
|
z.lazy(()=>StringFilterBaseSchema)
|
|
373
398
|
]).optional()
|
|
374
399
|
}).strict();
|
|
400
|
+
const simpleStringFilterSchema = z.object({
|
|
401
|
+
equals: z.string().optional(),
|
|
402
|
+
not: z.string().optional(),
|
|
403
|
+
mode: z.lazy(()=>queryModeSchema).optional()
|
|
404
|
+
}).strict();
|
|
375
405
|
const cmaSearchRestReqSchema = z.object({
|
|
376
406
|
id: z.union([
|
|
377
407
|
z.lazy(()=>stringFilterSchema),
|
|
@@ -421,9 +451,9 @@ const cmaTransactionEntitySchema = z.object({
|
|
|
421
451
|
propertyId: z.string().nullable(),
|
|
422
452
|
payoutId: z.string().nullable(),
|
|
423
453
|
inputType: z.string(),
|
|
424
|
-
creditAmountCents: z.bigint(),
|
|
425
|
-
debitAmountCents: z.bigint(),
|
|
426
|
-
balanceCents: z.bigint(),
|
|
454
|
+
creditAmountCents: z.coerce.bigint(),
|
|
455
|
+
debitAmountCents: z.coerce.bigint(),
|
|
456
|
+
balanceCents: z.coerce.bigint(),
|
|
427
457
|
createType: z.string(),
|
|
428
458
|
bankRef: z.string().nullable(),
|
|
429
459
|
description: z.string().nullable(),
|
|
@@ -450,6 +480,38 @@ const cmaTransactionNestedSchema = z.object({
|
|
|
450
480
|
subsequentTransactions: z.lazy(()=>cmaTransactionEntitySchema.array()).optional(),
|
|
451
481
|
reconciledTransactions: z.lazy(()=>cmaReconciledTransactionEntitySchema.array()).optional()
|
|
452
482
|
});
|
|
483
|
+
const mtaReconciledTransactionEntitySchema = z.object({
|
|
484
|
+
id: z.string().uuid(),
|
|
485
|
+
mtaTransactionId: z.string(),
|
|
486
|
+
accountPeriodId: z.string().nullable(),
|
|
487
|
+
reconciledByReconciliationId: z.string(),
|
|
488
|
+
reconciledAt: z.coerce.date(),
|
|
489
|
+
status: z.string(),
|
|
490
|
+
isArchived: z.boolean(),
|
|
491
|
+
createdBy: z.string(),
|
|
492
|
+
createdAt: z.coerce.date(),
|
|
493
|
+
updatedAt: z.coerce.date()
|
|
494
|
+
});
|
|
495
|
+
const mtaEntitySchema = z.object({
|
|
496
|
+
id: z.string().uuid(),
|
|
497
|
+
name: z.string(),
|
|
498
|
+
country: z.string(),
|
|
499
|
+
stateCode: z.string(),
|
|
500
|
+
bankCode: z.string(),
|
|
501
|
+
subsidiaryId: z.string(),
|
|
502
|
+
bsb: z.string(),
|
|
503
|
+
accountNumber: z.string(),
|
|
504
|
+
balanceCents: z.coerce.bigint(),
|
|
505
|
+
currentReceiveSeq: z.number().int(),
|
|
506
|
+
currentPayoutSeq: z.number().int(),
|
|
507
|
+
status: z.string(),
|
|
508
|
+
isArchived: z.boolean(),
|
|
509
|
+
createdAt: z.coerce.date(),
|
|
510
|
+
syncedAt: z.coerce.date().nullable(),
|
|
511
|
+
updatedAt: z.coerce.date(),
|
|
512
|
+
createdBy: z.string().nullable(),
|
|
513
|
+
updatedBy: z.string().nullable()
|
|
514
|
+
});
|
|
453
515
|
const mtaTransactionEntitySchema = z.object({
|
|
454
516
|
id: z.string().uuid(),
|
|
455
517
|
referenceId: z.string().nullable(),
|
|
@@ -458,9 +520,9 @@ const mtaTransactionEntitySchema = z.object({
|
|
|
458
520
|
propertyId: z.string().nullable(),
|
|
459
521
|
inputType: z.string(),
|
|
460
522
|
transactionType: z.string(),
|
|
461
|
-
creditAmountCents: z.bigint(),
|
|
462
|
-
debitAmountCents: z.bigint(),
|
|
463
|
-
balanceCents: z.bigint(),
|
|
523
|
+
creditAmountCents: z.coerce.bigint(),
|
|
524
|
+
debitAmountCents: z.coerce.bigint(),
|
|
525
|
+
balanceCents: z.coerce.bigint(),
|
|
464
526
|
bankRef: z.string().nullable(),
|
|
465
527
|
description: z.string().nullable(),
|
|
466
528
|
status: z.string(),
|
|
@@ -480,25 +542,12 @@ const mtaTransactionEntitySchema = z.object({
|
|
|
480
542
|
createdBy: z.string().uuid().nullable(),
|
|
481
543
|
payoutId: z.string().uuid().nullable()
|
|
482
544
|
});
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
subsidiaryId: z.string(),
|
|
490
|
-
bsb: z.string(),
|
|
491
|
-
accountNumber: z.string(),
|
|
492
|
-
balanceCents: z.bigint(),
|
|
493
|
-
currentReceiveSeq: z.number().int(),
|
|
494
|
-
currentPayoutSeq: z.number().int(),
|
|
495
|
-
status: z.string(),
|
|
496
|
-
isArchived: z.boolean(),
|
|
497
|
-
createdAt: z.coerce.date(),
|
|
498
|
-
syncedAt: z.coerce.date().nullable(),
|
|
499
|
-
updatedAt: z.coerce.date(),
|
|
500
|
-
createdBy: z.string().nullable(),
|
|
501
|
-
updatedBy: z.string().nullable()
|
|
545
|
+
const mtaTransactionNestedSchema = z.object({
|
|
546
|
+
property: z.lazy(()=>propertyNestedEntitySchema),
|
|
547
|
+
mta: z.lazy(()=>mtaEntitySchema),
|
|
548
|
+
sourceTransaction: z.lazy(()=>mtaTransactionEntitySchema).optional(),
|
|
549
|
+
subsequentTransactions: z.lazy(()=>mtaTransactionEntitySchema.array()).optional(),
|
|
550
|
+
reconciledTransactions: z.lazy(()=>mtaReconciledTransactionEntitySchema.array()).optional()
|
|
502
551
|
});
|
|
503
552
|
const developerEntitySchema = z.object({
|
|
504
553
|
id: z.string().uuid(),
|
|
@@ -544,17 +593,17 @@ const propertyEntitySchema = z.object({
|
|
|
544
593
|
lotDetail: z.string().nullable(),
|
|
545
594
|
propertyAddress: z.string(),
|
|
546
595
|
balanceCents: z.union([
|
|
547
|
-
z.bigint(),
|
|
548
|
-
z.number()
|
|
549
|
-
]),
|
|
596
|
+
z.coerce.bigint(),
|
|
597
|
+
z.coerce.number()
|
|
598
|
+
]).pipe(z.bigint()),
|
|
550
599
|
cmaBalanceCents: z.union([
|
|
551
|
-
z.bigint(),
|
|
552
|
-
z.number()
|
|
553
|
-
]),
|
|
600
|
+
z.coerce.bigint(),
|
|
601
|
+
z.coerce.number()
|
|
602
|
+
]).pipe(z.bigint()),
|
|
554
603
|
mtaBalanceCents: z.union([
|
|
555
|
-
z.bigint(),
|
|
556
|
-
z.number()
|
|
557
|
-
]),
|
|
604
|
+
z.coerce.bigint(),
|
|
605
|
+
z.coerce.number()
|
|
606
|
+
]).pipe(z.bigint()),
|
|
558
607
|
stage: z.string(),
|
|
559
608
|
status: z.string(),
|
|
560
609
|
mtaId: z.string(),
|
|
@@ -582,7 +631,7 @@ const cmaEntitySchema = z.object({
|
|
|
582
631
|
accountNumber: z.string(),
|
|
583
632
|
accountName: z.string(),
|
|
584
633
|
propertyId: z.string(),
|
|
585
|
-
balanceCents: z.bigint(),
|
|
634
|
+
balanceCents: z.coerce.bigint(),
|
|
586
635
|
currentReceiveSeq: z.number().int(),
|
|
587
636
|
currentPayoutSeq: z.number().int(),
|
|
588
637
|
payoutId: z.number().int(),
|
|
@@ -640,13 +689,10 @@ const maskBankAccount = (payload)=>({
|
|
|
640
689
|
account: `${maskBankBsb(payload.bsb)} ${maskBankAccountNumber(payload.accountNumber)}`
|
|
641
690
|
});
|
|
642
691
|
const accountBsbMaskedSchema = z.string().transform(maskBankBsb);
|
|
692
|
+
const accountBsbFormattedSchema = z.string().transform(formatBankBsb);
|
|
643
693
|
const accountBsbValidationSchema = z.coerce.string().min(1, 'BSB is required').length(6, 'BSB must be 6 digits').regex(/^\d+$/, {
|
|
644
694
|
message: 'BSB must be all digits'
|
|
645
695
|
});
|
|
646
|
-
const accountNumberMaskedSchema = z.string().transform(maskBankAccountNumber);
|
|
647
|
-
const accountNumberValidationSchema = z.coerce.string().min(1, 'Account Number is required').max(9, 'Account Number must be less than 9 digits').regex(/^\d+$/, {
|
|
648
|
-
message: 'Account number must be all digits'
|
|
649
|
-
});
|
|
650
696
|
const bankCodeSchema = z.string().pipe(z.nativeEnum(AuTrustAccountBankCode));
|
|
651
697
|
const stateCodeSchema = z.string().pipe(z.nativeEnum(AuStateCode));
|
|
652
698
|
const fromCentsToDollars = (amount)=>new decimal(amount).div(100).toNumber();
|
|
@@ -660,12 +706,16 @@ const cmaRestResBaseSchema = cmaEntitySchema.extend({
|
|
|
660
706
|
balanceCents: centsToDollarsSchema,
|
|
661
707
|
stateCode: stateCodeSchema,
|
|
662
708
|
bankCode: bankCodeSchema,
|
|
663
|
-
accountNumber:
|
|
664
|
-
bsb:
|
|
709
|
+
accountNumber: z.string(),
|
|
710
|
+
bsb: accountBsbFormattedSchema,
|
|
665
711
|
status: z.string().pipe(z.nativeEnum(CmaStatus))
|
|
666
712
|
});
|
|
667
713
|
const cmaRestResSchema = cmaRestResBaseSchema.extend({
|
|
668
|
-
property: z.lazy(()=>propertyNestedEntitySchema.
|
|
714
|
+
property: z.lazy(()=>propertyNestedEntitySchema.extend({
|
|
715
|
+
cmaBalanceCents: centsToDollarsSchema,
|
|
716
|
+
mtaBalanceCents: centsToDollarsSchema,
|
|
717
|
+
balanceCents: centsToDollarsSchema
|
|
718
|
+
}).omit({
|
|
669
719
|
cma: true,
|
|
670
720
|
mta: true,
|
|
671
721
|
cmaTransactions: true,
|
|
@@ -696,13 +746,13 @@ const cmaReconciliationEntitySchema = z.object({
|
|
|
696
746
|
id: z.string().uuid(),
|
|
697
747
|
cmaAccountPeriodId: z.string(),
|
|
698
748
|
cmaId: z.string(),
|
|
699
|
-
closingBalanceCents: z.bigint().nullable(),
|
|
749
|
+
closingBalanceCents: z.coerce.bigint().nullable(),
|
|
700
750
|
reconciledTo: z.coerce.date(),
|
|
701
|
-
reconciledAmountCents: z.bigint().nullable(),
|
|
702
|
-
unreconciledAmountCents: z.bigint().nullable(),
|
|
703
|
-
totalReconciledAmountCents: z.bigint().nullable(),
|
|
704
|
-
bankStatementBalanceCents: z.bigint(),
|
|
705
|
-
closingVarianceCents: z.bigint().nullable(),
|
|
751
|
+
reconciledAmountCents: z.coerce.bigint().nullable(),
|
|
752
|
+
unreconciledAmountCents: z.coerce.bigint().nullable(),
|
|
753
|
+
totalReconciledAmountCents: z.coerce.bigint().nullable(),
|
|
754
|
+
bankStatementBalanceCents: z.coerce.bigint(),
|
|
755
|
+
closingVarianceCents: z.coerce.bigint().nullable(),
|
|
706
756
|
closedAt: z.coerce.date().nullable(),
|
|
707
757
|
createdBy: z.string(),
|
|
708
758
|
createdAt: z.coerce.date(),
|
|
@@ -760,12 +810,6 @@ const isInterestTransaction = (transaction)=>{
|
|
|
760
810
|
return isCmaInterest;
|
|
761
811
|
};
|
|
762
812
|
const isTransactionCancelable = (transaction)=>{
|
|
763
|
-
const isUnkonwn = isUnknownTransaction(transaction);
|
|
764
|
-
const isInterest = isInterestTransaction(transaction);
|
|
765
|
-
if (true !== isUnkonwn && true !== isInterest) return {
|
|
766
|
-
isCancelable: false,
|
|
767
|
-
reason: 'Transaction is not unknown or interest'
|
|
768
|
-
};
|
|
769
813
|
if (transaction.isCanceled) return {
|
|
770
814
|
isCancelable: false,
|
|
771
815
|
reason: 'Transaction is already canceled'
|
|
@@ -774,14 +818,18 @@ const isTransactionCancelable = (transaction)=>{
|
|
|
774
818
|
isCancelable: false,
|
|
775
819
|
reason: 'Transaction is already refunded'
|
|
776
820
|
};
|
|
777
|
-
if (
|
|
821
|
+
if (transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
778
822
|
isCancelable: false,
|
|
779
823
|
reason: 'Cannot cancel cancel transaction'
|
|
780
824
|
};
|
|
781
|
-
if (
|
|
825
|
+
if (transaction.transactionType === MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER) return {
|
|
782
826
|
isCancelable: false,
|
|
783
827
|
reason: 'Cannot cancel assign unknown transaction'
|
|
784
828
|
};
|
|
829
|
+
if (transaction.transactionType === MtaTransactionType.UNKNOWN && transaction.subsequentTransactions?.length) return {
|
|
830
|
+
isCancelable: false,
|
|
831
|
+
reason: 'Cannot cancel unknown transaction with subsequent transactions'
|
|
832
|
+
};
|
|
785
833
|
return {
|
|
786
834
|
isCancelable: true
|
|
787
835
|
};
|
|
@@ -842,8 +890,8 @@ const cmaAccountPeriodEntitySchema = z.object({
|
|
|
842
890
|
id: z.string().uuid(),
|
|
843
891
|
startDate: z.coerce.date(),
|
|
844
892
|
endDate: z.coerce.date().nullable(),
|
|
845
|
-
openingBalanceCents: z.bigint(),
|
|
846
|
-
closingBalanceCents: z.bigint().nullable(),
|
|
893
|
+
openingBalanceCents: z.coerce.bigint(),
|
|
894
|
+
closingBalanceCents: z.coerce.bigint().nullable(),
|
|
847
895
|
status: z.string(),
|
|
848
896
|
closedBy: z.string().nullable(),
|
|
849
897
|
closedAt: z.coerce.date().nullable(),
|
|
@@ -871,57 +919,114 @@ const cmaReconciledTransactionRestResSchema = cmaReconciledTransactionEntitySche
|
|
|
871
919
|
cmaTransaction: z.lazy(()=>cmaTransactionRestResSchema).optional(),
|
|
872
920
|
accountPeriod: z.lazy(()=>cmaAccountPeriodRestResSchema).optional()
|
|
873
921
|
});
|
|
874
|
-
const
|
|
922
|
+
const mtaToCmaPayoutSourceDetailEntitySchema = z.object({
|
|
875
923
|
sourceAccountId: z.string(),
|
|
876
|
-
|
|
924
|
+
propertyId: z.string().uuid(),
|
|
925
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA).default(payout_constant_PayoutSourceAccountType.MTA),
|
|
877
926
|
sourceAccountName: z.string(),
|
|
878
927
|
sourceBsb: z.string(),
|
|
879
928
|
sourceAccountNumber: z.string(),
|
|
880
929
|
sourceAccountStateCode: z.string(),
|
|
881
930
|
sourceAccountBankCode: z.string(),
|
|
882
|
-
debitAmountCents: z.coerce.
|
|
931
|
+
debitAmountCents: z.coerce.number(),
|
|
883
932
|
description: z.string(),
|
|
884
933
|
bankRef: z.string(),
|
|
885
|
-
|
|
934
|
+
inputType: z.literal(mta_input_type_constant_MtaTransactionInputType.PAYMENT).default(mta_input_type_constant_MtaTransactionInputType.PAYMENT),
|
|
935
|
+
transactionType: z.literal(MtaTransactionType.TRUST_TO_CMA_PAYOUT).default(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
936
|
+
clearedAt: z.coerce.date().nullish()
|
|
886
937
|
}).passthrough();
|
|
887
|
-
const
|
|
888
|
-
|
|
889
|
-
targetAccountType: z.
|
|
890
|
-
targetAccountNumber: z.string().nullish(),
|
|
891
|
-
targetAccountName: z.string().nullish(),
|
|
892
|
-
creditAmountCents: z.coerce.bigint(),
|
|
893
|
-
description: z.string().trim().min(1),
|
|
894
|
-
bankRef: z.string().nullish(),
|
|
895
|
-
transactionType: z.string().nullish()
|
|
896
|
-
}).passthrough();
|
|
897
|
-
const payoutMtaToCmaTargetDetailsEntitySchema = payoutTargetDetailsBaseEntitySchema.extend({
|
|
898
|
-
targetAccountId: z.string().uuid(),
|
|
899
|
-
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.CMA),
|
|
938
|
+
const mtaToCmaPayoutTargetDetailEntitySchema = z.object({
|
|
939
|
+
targetAccountId: z.string(),
|
|
940
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.CMA).default(payout_constant_PayoutTargetAccountType.CMA),
|
|
900
941
|
targetBsb: z.string(),
|
|
901
942
|
targetAccountNumber: z.string(),
|
|
902
|
-
targetAccountName: z.string()
|
|
943
|
+
targetAccountName: z.string(),
|
|
944
|
+
propertyId: z.string().uuid(),
|
|
945
|
+
creditAmountCents: z.coerce.number(),
|
|
946
|
+
description: z.string(),
|
|
947
|
+
bankRef: z.string(),
|
|
948
|
+
inputType: z.literal(cma_input_type_constant_CmaTransactionInputType.RECEIPT).default(cma_input_type_constant_CmaTransactionInputType.RECEIPT),
|
|
949
|
+
transactionType: z.literal(CmaTransactionType.RECEIPT).default(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
950
|
+
clearedAt: z.coerce.date().nullish()
|
|
903
951
|
}).passthrough();
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
952
|
+
const mtaToCmaPayoutPaymentEntitySchema = z.object({
|
|
953
|
+
sourceDetail: mtaToCmaPayoutSourceDetailEntitySchema,
|
|
954
|
+
targetDetail: mtaToCmaPayoutTargetDetailEntitySchema,
|
|
955
|
+
property: z.lazy(()=>propertyEntitySchema).nullish()
|
|
956
|
+
}).passthrough();
|
|
957
|
+
const mtaToCmaPayoutProvisionDataEntitySchema = z.object({
|
|
958
|
+
payments: mtaToCmaPayoutPaymentEntitySchema.array(),
|
|
959
|
+
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT).default(PayoutType.TRUST_TO_CMA_PAYOUT)
|
|
960
|
+
}).passthrough();
|
|
961
|
+
const commonPayoutTargetDetailEntitySchema = z.object({
|
|
962
|
+
creditAmountCents: z.coerce.number(),
|
|
963
|
+
targetAccountId: z.string(),
|
|
964
|
+
targetAccountType: z.nativeEnum(payout_constant_PayoutTargetAccountType),
|
|
965
|
+
targetBsb: z.string().trim().min(1),
|
|
966
|
+
targetAccountNumber: z.string().trim().min(1),
|
|
967
|
+
targetAccountName: z.string().trim().min(1),
|
|
968
|
+
description: z.string().trim().min(1),
|
|
969
|
+
bankRef: z.string().trim().min(1),
|
|
970
|
+
propertyId: z.string().uuid().nullish(),
|
|
971
|
+
clearedAt: z.coerce.date().nullish()
|
|
972
|
+
}).passthrough();
|
|
973
|
+
const commonPayoutSourceDetailEntitySchema = z.object({
|
|
974
|
+
debitAmountCents: z.coerce.number(),
|
|
975
|
+
sourceAccountId: z.string(),
|
|
976
|
+
targetAccountId: z.string(),
|
|
977
|
+
sourceAccountType: z.nativeEnum(payout_constant_PayoutSourceAccountType),
|
|
978
|
+
propertyId: z.string().uuid().optional(),
|
|
979
|
+
sourceAccountName: z.string(),
|
|
980
|
+
sourceBsb: z.string(),
|
|
981
|
+
sourceAccountNumber: z.string(),
|
|
982
|
+
sourceAccountStateCode: z.string(),
|
|
983
|
+
sourceAccountBankCode: z.string(),
|
|
984
|
+
bankRef: z.string(),
|
|
985
|
+
description: z.string(),
|
|
986
|
+
clearedAt: z.coerce.date().nullish()
|
|
987
|
+
}).passthrough();
|
|
988
|
+
const settlementPayoutSourceDetailEntitySchema = commonPayoutSourceDetailEntitySchema.extend({
|
|
989
|
+
propertyId: z.string().uuid()
|
|
990
|
+
}).passthrough();
|
|
991
|
+
const settlementPayoutTargetDetailEntitySchema = commonPayoutTargetDetailEntitySchema.extend({
|
|
992
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER).default(payout_constant_PayoutTargetAccountType.OTHER),
|
|
993
|
+
propertyId: z.string().uuid()
|
|
994
|
+
}).passthrough();
|
|
995
|
+
const settlementPayoutPaymentEntitySchema = z.object({
|
|
996
|
+
sourceDetail: settlementPayoutSourceDetailEntitySchema,
|
|
997
|
+
targetDetail: settlementPayoutTargetDetailEntitySchema,
|
|
998
|
+
property: z.lazy(()=>propertyEntitySchema).nullish()
|
|
999
|
+
}).passthrough();
|
|
1000
|
+
const settlementPayoutProvisionDataEntitySchema = z.object({
|
|
1001
|
+
cma: z.lazy(()=>cmaEntitySchema).nullish(),
|
|
1002
|
+
mta: z.lazy(()=>mtaEntitySchema).nullish(),
|
|
1003
|
+
payments: settlementPayoutPaymentEntitySchema.array(),
|
|
1004
|
+
payoutType: z["enum"]([
|
|
1005
|
+
PayoutType.TRUST_SETTLEMENT_PAYOUT,
|
|
1006
|
+
PayoutType.CMA_SETTLEMENT_PAYOUT
|
|
1007
|
+
])
|
|
1008
|
+
}).passthrough();
|
|
1009
|
+
const unknownPayoutSourceDetailEntitySchema = commonPayoutSourceDetailEntitySchema.extend({
|
|
1010
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA).default(payout_constant_PayoutSourceAccountType.MTA),
|
|
1011
|
+
mtaTransactionId: z.string().uuid()
|
|
907
1012
|
});
|
|
908
|
-
const
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
});
|
|
916
|
-
const payoutOtherProvisionDataEntitySchema = z.object({
|
|
917
|
-
projectId: z.string().uuid().optional(),
|
|
918
|
-
sourceDetails: payoutSourceDetailsEntitySchema,
|
|
919
|
-
targetDetails: payoutOtherTargetDetailsEntitySchema.array()
|
|
920
|
-
});
|
|
921
|
-
const payoutProvisionDataEntitySchema = z.object({
|
|
922
|
-
sourceDetails: payoutSourceDetailsEntitySchema,
|
|
923
|
-
targetDetails: payoutTargetDetailsEntitySchema.array()
|
|
1013
|
+
const unknownPayoutTargetDetailEntitySchema = commonPayoutTargetDetailEntitySchema.extend({
|
|
1014
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER).default(payout_constant_PayoutTargetAccountType.OTHER)
|
|
1015
|
+
});
|
|
1016
|
+
const unknownPayoutPaymentEntitySchema = z.object({
|
|
1017
|
+
sourceDetail: unknownPayoutSourceDetailEntitySchema,
|
|
1018
|
+
targetDetail: unknownPayoutTargetDetailEntitySchema,
|
|
1019
|
+
mtaTransaction: z.lazy(()=>mtaTransactionEntitySchema).nullish()
|
|
924
1020
|
}).passthrough();
|
|
1021
|
+
const unknownPayoutProvisionDataEntitySchema = z.object({
|
|
1022
|
+
payments: unknownPayoutPaymentEntitySchema.array(),
|
|
1023
|
+
payoutType: z.literal(PayoutType.UNKNOWN_PAYOUT)
|
|
1024
|
+
}).passthrough();
|
|
1025
|
+
const payoutProvisionDataEntitySchema = z.discriminatedUnion('payoutType', [
|
|
1026
|
+
mtaToCmaPayoutProvisionDataEntitySchema,
|
|
1027
|
+
settlementPayoutProvisionDataEntitySchema,
|
|
1028
|
+
unknownPayoutProvisionDataEntitySchema
|
|
1029
|
+
]);
|
|
925
1030
|
const payoutEntitySchema = z.object({
|
|
926
1031
|
id: z.string().uuid(),
|
|
927
1032
|
sequence: z.number().int(),
|
|
@@ -1032,64 +1137,64 @@ const cmaAccountPeriodClosingSummaryRestResSchema = z.object({
|
|
|
1032
1137
|
startDate: z.date(),
|
|
1033
1138
|
endDate: z.date(),
|
|
1034
1139
|
bankStatementBalanceCents: z.union([
|
|
1035
|
-
z.bigint(),
|
|
1036
|
-
z.number()
|
|
1140
|
+
z.coerce.bigint(),
|
|
1141
|
+
z.coerce.number()
|
|
1037
1142
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1038
1143
|
currentTrustBalanceSummary: z.object({
|
|
1039
1144
|
totalAmountCents: z.union([
|
|
1040
|
-
z.bigint(),
|
|
1041
|
-
z.number()
|
|
1145
|
+
z.coerce.bigint(),
|
|
1146
|
+
z.coerce.number()
|
|
1042
1147
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1043
1148
|
totalCreditAmountCents: z.union([
|
|
1044
|
-
z.bigint(),
|
|
1045
|
-
z.number()
|
|
1149
|
+
z.coerce.bigint(),
|
|
1150
|
+
z.coerce.number()
|
|
1046
1151
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1047
1152
|
totalDebitAmountCents: z.union([
|
|
1048
|
-
z.bigint(),
|
|
1049
|
-
z.number()
|
|
1153
|
+
z.coerce.bigint(),
|
|
1154
|
+
z.coerce.number()
|
|
1050
1155
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1051
1156
|
totalTransactionsCount: z.number()
|
|
1052
1157
|
}),
|
|
1053
1158
|
reconciliations: z.lazy(()=>cmaReconciliationRestResSchema.array()).nullish(),
|
|
1054
1159
|
totalReconciledAmountSummary: z.object({
|
|
1055
1160
|
totalReconciledAmountCents: z.union([
|
|
1056
|
-
z.bigint(),
|
|
1057
|
-
z.number()
|
|
1161
|
+
z.coerce.bigint(),
|
|
1162
|
+
z.coerce.number()
|
|
1058
1163
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1059
1164
|
totalReconciledCreditAmountCents: z.union([
|
|
1060
|
-
z.bigint(),
|
|
1061
|
-
z.number()
|
|
1165
|
+
z.coerce.bigint(),
|
|
1166
|
+
z.coerce.number()
|
|
1062
1167
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1063
1168
|
totalReconciledDebitAmountCents: z.union([
|
|
1064
|
-
z.bigint(),
|
|
1065
|
-
z.number()
|
|
1169
|
+
z.coerce.bigint(),
|
|
1170
|
+
z.coerce.number()
|
|
1066
1171
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1067
1172
|
totalReconciledTransactionsCount: z.number()
|
|
1068
1173
|
}),
|
|
1069
1174
|
totalUnreconciledAmountSummary: z.object({
|
|
1070
1175
|
totalUnreconciledAmountCents: z.union([
|
|
1071
|
-
z.bigint(),
|
|
1072
|
-
z.number()
|
|
1176
|
+
z.coerce.bigint(),
|
|
1177
|
+
z.coerce.number()
|
|
1073
1178
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1074
1179
|
totalUnreconciledCreditAmountCents: z.union([
|
|
1075
|
-
z.bigint(),
|
|
1076
|
-
z.number()
|
|
1180
|
+
z.coerce.bigint(),
|
|
1181
|
+
z.coerce.number()
|
|
1077
1182
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1078
1183
|
totalUnreconciledDebitAmountCents: z.union([
|
|
1079
|
-
z.bigint(),
|
|
1080
|
-
z.number()
|
|
1184
|
+
z.coerce.bigint(),
|
|
1185
|
+
z.coerce.number()
|
|
1081
1186
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1082
1187
|
totalUnreconciledTransactionsCount: z.number()
|
|
1083
1188
|
}),
|
|
1084
1189
|
transactionsSummary: z.object({
|
|
1085
1190
|
reconciledAmountCents: z.union([
|
|
1086
|
-
z.bigint(),
|
|
1087
|
-
z.number()
|
|
1191
|
+
z.coerce.bigint(),
|
|
1192
|
+
z.coerce.number()
|
|
1088
1193
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1089
1194
|
reconciledTransactions: z.lazy(()=>cmaTransactionRestResSchema.array()).nullish(),
|
|
1090
1195
|
unreconciledAmountCents: z.union([
|
|
1091
|
-
z.bigint(),
|
|
1092
|
-
z.number()
|
|
1196
|
+
z.coerce.bigint(),
|
|
1197
|
+
z.coerce.number()
|
|
1093
1198
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1094
1199
|
unreconciledTransactions: z.lazy(()=>cmaTransactionRestResSchema.array()).nullish()
|
|
1095
1200
|
})
|
|
@@ -1113,9 +1218,9 @@ const updateCmaAccountPeriodReconciledToRestReqSchema = z.object({
|
|
|
1113
1218
|
});
|
|
1114
1219
|
const createCmaReconciliationRestReqSchema = z.object({
|
|
1115
1220
|
bankStatementBalanceCents: z.union([
|
|
1116
|
-
z.bigint(),
|
|
1117
|
-
z.number()
|
|
1118
|
-
]).transform(fromDollarsToCents).pipe(z.bigint()),
|
|
1221
|
+
z.coerce.bigint(),
|
|
1222
|
+
z.coerce.number()
|
|
1223
|
+
]).transform(fromDollarsToCents).pipe(z.coerce.bigint()),
|
|
1119
1224
|
reconciledTo: z.union([
|
|
1120
1225
|
z.string(),
|
|
1121
1226
|
z.date()
|
|
@@ -1135,6 +1240,28 @@ const markCmaTransactionAsClearedRestReqSchema = z.object({
|
|
|
1135
1240
|
transactionId: z.string().uuid(),
|
|
1136
1241
|
clearedAt: z.coerce.date()
|
|
1137
1242
|
});
|
|
1243
|
+
const dateTimeFilterBaseSchema = z.object({
|
|
1244
|
+
equals: z.coerce.date().optional(),
|
|
1245
|
+
in: z.coerce.date().array().optional(),
|
|
1246
|
+
notIn: z.coerce.date().array().optional(),
|
|
1247
|
+
lt: z.coerce.date().optional(),
|
|
1248
|
+
lte: z.coerce.date().optional(),
|
|
1249
|
+
gt: z.coerce.date().optional(),
|
|
1250
|
+
gte: z.coerce.date().optional()
|
|
1251
|
+
}).strict();
|
|
1252
|
+
const dateTimeFilterSchema = z.object({
|
|
1253
|
+
equals: z.coerce.date().optional(),
|
|
1254
|
+
in: z.coerce.date().array().optional(),
|
|
1255
|
+
notIn: z.coerce.date().array().optional(),
|
|
1256
|
+
lt: z.coerce.date().optional(),
|
|
1257
|
+
lte: z.coerce.date().optional(),
|
|
1258
|
+
gt: z.coerce.date().optional(),
|
|
1259
|
+
gte: z.coerce.date().optional(),
|
|
1260
|
+
not: z.union([
|
|
1261
|
+
z.coerce.date(),
|
|
1262
|
+
z.lazy(()=>dateTimeFilterBaseSchema)
|
|
1263
|
+
]).optional()
|
|
1264
|
+
}).strict();
|
|
1138
1265
|
const boolFilterBaseSchema = z.object({
|
|
1139
1266
|
equals: z.boolean().optional(),
|
|
1140
1267
|
not: z.union([
|
|
@@ -1161,6 +1288,22 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1161
1288
|
z.lazy(()=>stringFilterSchema),
|
|
1162
1289
|
z.string()
|
|
1163
1290
|
]).optional(),
|
|
1291
|
+
inputType: z.union([
|
|
1292
|
+
z.lazy(()=>stringFilterSchema),
|
|
1293
|
+
z.string()
|
|
1294
|
+
]).optional(),
|
|
1295
|
+
bankRef: z.union([
|
|
1296
|
+
z.lazy(()=>stringFilterSchema),
|
|
1297
|
+
z.string()
|
|
1298
|
+
]).optional(),
|
|
1299
|
+
description: z.union([
|
|
1300
|
+
z.lazy(()=>stringFilterSchema),
|
|
1301
|
+
z.string()
|
|
1302
|
+
]).optional(),
|
|
1303
|
+
clearedAt: z.union([
|
|
1304
|
+
z.lazy(()=>dateTimeFilterSchema),
|
|
1305
|
+
z.string()
|
|
1306
|
+
]).optional(),
|
|
1164
1307
|
transactionType: z.union([
|
|
1165
1308
|
z.lazy(()=>stringFilterSchema),
|
|
1166
1309
|
z.string()
|
|
@@ -1173,29 +1316,21 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1173
1316
|
z.lazy(()=>boolFilterSchema),
|
|
1174
1317
|
z.string()
|
|
1175
1318
|
]).optional(),
|
|
1176
|
-
|
|
1319
|
+
status: z.union([
|
|
1177
1320
|
z.lazy(()=>stringFilterSchema),
|
|
1178
1321
|
z.string()
|
|
1179
1322
|
]).optional(),
|
|
1180
|
-
|
|
1181
|
-
z.lazy(()=>
|
|
1182
|
-
z.
|
|
1323
|
+
payoutId: z.union([
|
|
1324
|
+
z.lazy(()=>stringFilterSchema),
|
|
1325
|
+
z.string()
|
|
1183
1326
|
]).optional(),
|
|
1184
|
-
|
|
1327
|
+
creditAmountCents: z.union([
|
|
1185
1328
|
z.lazy(()=>bigIntFilterSchema),
|
|
1186
1329
|
z.bigint()
|
|
1187
1330
|
]).optional(),
|
|
1188
|
-
|
|
1331
|
+
debitAmountCents: z.union([
|
|
1189
1332
|
z.lazy(()=>bigIntFilterSchema),
|
|
1190
1333
|
z.bigint()
|
|
1191
|
-
]).optional(),
|
|
1192
|
-
status: z.union([
|
|
1193
|
-
z.lazy(()=>stringFilterSchema),
|
|
1194
|
-
z.string()
|
|
1195
|
-
]).optional(),
|
|
1196
|
-
payoutId: z.union([
|
|
1197
|
-
z.lazy(()=>stringFilterSchema),
|
|
1198
|
-
z.string()
|
|
1199
1334
|
]).optional()
|
|
1200
1335
|
});
|
|
1201
1336
|
const createCmaTransactionRestReqSchema = z.object({
|
|
@@ -1221,6 +1356,10 @@ const reconcileCmaTransactionRestReqSchema = z.object({
|
|
|
1221
1356
|
reconciliationId: z.string().uuid(),
|
|
1222
1357
|
action: z.nativeEnum(reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
1223
1358
|
});
|
|
1359
|
+
const accountNumberMaskedSchema = z.string().transform(maskBankAccountNumber);
|
|
1360
|
+
const accountNumberValidationSchema = z.coerce.string().min(1, 'Account Number is required').max(9, 'Account Number must be less than 9 digits').regex(/^\d+$/, {
|
|
1361
|
+
message: 'Account number must be all digits'
|
|
1362
|
+
});
|
|
1224
1363
|
dayjs.extend(utc);
|
|
1225
1364
|
dayjs.extend(timezone);
|
|
1226
1365
|
dayjs.extend(customParseFormat);
|
|
@@ -1255,28 +1394,6 @@ const stringToStartOfDaySchema = z.union([
|
|
|
1255
1394
|
if (!date.isValid()) return null;
|
|
1256
1395
|
return date.toDate();
|
|
1257
1396
|
});
|
|
1258
|
-
const dateTimeFilterBaseSchema = z.object({
|
|
1259
|
-
equals: z.coerce.date().optional(),
|
|
1260
|
-
in: z.coerce.date().array().optional(),
|
|
1261
|
-
notIn: z.coerce.date().array().optional(),
|
|
1262
|
-
lt: z.coerce.date().optional(),
|
|
1263
|
-
lte: z.coerce.date().optional(),
|
|
1264
|
-
gt: z.coerce.date().optional(),
|
|
1265
|
-
gte: z.coerce.date().optional()
|
|
1266
|
-
}).strict();
|
|
1267
|
-
const dateTimeFilterSchema = z.object({
|
|
1268
|
-
equals: z.coerce.date().optional(),
|
|
1269
|
-
in: z.coerce.date().array().optional(),
|
|
1270
|
-
notIn: z.coerce.date().array().optional(),
|
|
1271
|
-
lt: z.coerce.date().optional(),
|
|
1272
|
-
lte: z.coerce.date().optional(),
|
|
1273
|
-
gt: z.coerce.date().optional(),
|
|
1274
|
-
gte: z.coerce.date().optional(),
|
|
1275
|
-
not: z.union([
|
|
1276
|
-
z.coerce.date(),
|
|
1277
|
-
z.lazy(()=>dateTimeFilterBaseSchema)
|
|
1278
|
-
]).optional()
|
|
1279
|
-
}).strict();
|
|
1280
1397
|
const InputJsonValueSchema = z.lazy(()=>z.union([
|
|
1281
1398
|
z.string(),
|
|
1282
1399
|
z.number(),
|
|
@@ -1300,6 +1417,18 @@ const JsonNullableFilterSchema = z.object({
|
|
|
1300
1417
|
string_starts_with: z.string().optional(),
|
|
1301
1418
|
string_ends_with: z.string().optional()
|
|
1302
1419
|
});
|
|
1420
|
+
const paginationReqSchema = z.object({
|
|
1421
|
+
page: z.coerce.number().default(1).pipe(z.number().int().positive()),
|
|
1422
|
+
pageSize: z.coerce.number().default(20).pipe(z.number().int().positive())
|
|
1423
|
+
});
|
|
1424
|
+
const paginatedResSchema = z.object({
|
|
1425
|
+
data: z.array(z.any()),
|
|
1426
|
+
meta: z.object({
|
|
1427
|
+
page: z.coerce.number(),
|
|
1428
|
+
pageSize: z.coerce.number(),
|
|
1429
|
+
total: z.coerce.number()
|
|
1430
|
+
})
|
|
1431
|
+
});
|
|
1303
1432
|
const createMenuRestReqSchema = z.object({
|
|
1304
1433
|
parentId: z.string().optional(),
|
|
1305
1434
|
label: z.string(),
|
|
@@ -1449,8 +1578,8 @@ const mtaReconciliationRestResSchema = mtaReconciliationEntitySchema.extend({
|
|
|
1449
1578
|
const mtaRestResBaseSchema = mtaEntitySchema.extend({
|
|
1450
1579
|
stateCode: stateCodeSchema,
|
|
1451
1580
|
bankCode: bankCodeSchema,
|
|
1452
|
-
accountNumber:
|
|
1453
|
-
bsb:
|
|
1581
|
+
accountNumber: z.string(),
|
|
1582
|
+
bsb: accountBsbFormattedSchema,
|
|
1454
1583
|
balanceCents: centsToDollarsSchema
|
|
1455
1584
|
});
|
|
1456
1585
|
const mtaRestResSchema = mtaRestResBaseSchema.extend({
|
|
@@ -1487,18 +1616,6 @@ const mtaAccountPeriodRestResSchema = mtaAccountPeriodRestResBaseSchema.extend({
|
|
|
1487
1616
|
const mtaClosedAccountPeriodRestResSchema = mtaAccountPeriodEntitySchema.extend({
|
|
1488
1617
|
currentReconciliation: z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
1489
1618
|
});
|
|
1490
|
-
const mtaReconciledTransactionEntitySchema = z.object({
|
|
1491
|
-
id: z.string().uuid(),
|
|
1492
|
-
mtaTransactionId: z.string(),
|
|
1493
|
-
accountPeriodId: z.string().nullable(),
|
|
1494
|
-
reconciledByReconciliationId: z.string(),
|
|
1495
|
-
reconciledAt: z.coerce.date(),
|
|
1496
|
-
status: z.string(),
|
|
1497
|
-
isArchived: z.boolean(),
|
|
1498
|
-
createdBy: z.string(),
|
|
1499
|
-
createdAt: z.coerce.date(),
|
|
1500
|
-
updatedAt: z.coerce.date()
|
|
1501
|
-
});
|
|
1502
1619
|
const mtaReconciledTransactionRestResSchema = mtaReconciledTransactionEntitySchema.extend({
|
|
1503
1620
|
mtaTransaction: z.lazy(()=>mtaTransactionRestResSchema).optional(),
|
|
1504
1621
|
accountPeriod: z.lazy(()=>mtaAccountPeriodRestResSchema).optional()
|
|
@@ -1563,64 +1680,64 @@ const mtaAccountPeriodClosingSummaryRestResSchema = z.object({
|
|
|
1563
1680
|
startDate: z.date(),
|
|
1564
1681
|
endDate: z.date(),
|
|
1565
1682
|
bankStatementBalanceCents: z.union([
|
|
1566
|
-
z.bigint(),
|
|
1567
|
-
z.number()
|
|
1683
|
+
z.coerce.bigint(),
|
|
1684
|
+
z.coerce.number()
|
|
1568
1685
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1569
1686
|
currentTrustBalanceSummary: z.object({
|
|
1570
1687
|
totalAmountCents: z.union([
|
|
1571
|
-
z.bigint(),
|
|
1572
|
-
z.number()
|
|
1688
|
+
z.coerce.bigint(),
|
|
1689
|
+
z.coerce.number()
|
|
1573
1690
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1574
1691
|
totalCreditAmountCents: z.union([
|
|
1575
|
-
z.bigint(),
|
|
1576
|
-
z.number()
|
|
1692
|
+
z.coerce.bigint(),
|
|
1693
|
+
z.coerce.number()
|
|
1577
1694
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1578
1695
|
totalDebitAmountCents: z.union([
|
|
1579
|
-
z.bigint(),
|
|
1580
|
-
z.number()
|
|
1696
|
+
z.coerce.bigint(),
|
|
1697
|
+
z.coerce.number()
|
|
1581
1698
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1582
1699
|
totalTransactionsCount: z.number()
|
|
1583
1700
|
}),
|
|
1584
1701
|
reconciliations: z.lazy(()=>mtaReconciliationRestResSchema.array()).nullish(),
|
|
1585
1702
|
totalReconciledAmountSummary: z.object({
|
|
1586
1703
|
totalReconciledAmountCents: z.union([
|
|
1587
|
-
z.bigint(),
|
|
1588
|
-
z.number()
|
|
1704
|
+
z.coerce.bigint(),
|
|
1705
|
+
z.coerce.number()
|
|
1589
1706
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1590
1707
|
totalReconciledCreditAmountCents: z.union([
|
|
1591
|
-
z.bigint(),
|
|
1592
|
-
z.number()
|
|
1708
|
+
z.coerce.bigint(),
|
|
1709
|
+
z.coerce.number()
|
|
1593
1710
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1594
1711
|
totalReconciledDebitAmountCents: z.union([
|
|
1595
|
-
z.bigint(),
|
|
1596
|
-
z.number()
|
|
1712
|
+
z.coerce.bigint(),
|
|
1713
|
+
z.coerce.number()
|
|
1597
1714
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1598
1715
|
totalReconciledTransactionsCount: z.number()
|
|
1599
1716
|
}),
|
|
1600
1717
|
totalUnreconciledAmountSummary: z.object({
|
|
1601
1718
|
totalUnreconciledAmountCents: z.union([
|
|
1602
|
-
z.bigint(),
|
|
1603
|
-
z.number()
|
|
1719
|
+
z.coerce.bigint(),
|
|
1720
|
+
z.coerce.number()
|
|
1604
1721
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1605
1722
|
totalUnreconciledCreditAmountCents: z.union([
|
|
1606
|
-
z.bigint(),
|
|
1607
|
-
z.number()
|
|
1723
|
+
z.coerce.bigint(),
|
|
1724
|
+
z.coerce.number()
|
|
1608
1725
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1609
1726
|
totalUnreconciledDebitAmountCents: z.union([
|
|
1610
|
-
z.bigint(),
|
|
1611
|
-
z.number()
|
|
1727
|
+
z.coerce.bigint(),
|
|
1728
|
+
z.coerce.number()
|
|
1612
1729
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1613
1730
|
totalUnreconciledTransactionsCount: z.number()
|
|
1614
1731
|
}),
|
|
1615
1732
|
transactionsSummary: z.object({
|
|
1616
1733
|
reconciledAmountCents: z.union([
|
|
1617
|
-
z.bigint(),
|
|
1618
|
-
z.number()
|
|
1734
|
+
z.coerce.bigint(),
|
|
1735
|
+
z.coerce.number()
|
|
1619
1736
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1620
1737
|
reconciledTransactions: z.lazy(()=>mtaTransactionRestResSchema.array()).nullish(),
|
|
1621
1738
|
unreconciledAmountCents: z.union([
|
|
1622
|
-
z.bigint(),
|
|
1623
|
-
z.number()
|
|
1739
|
+
z.coerce.bigint(),
|
|
1740
|
+
z.coerce.number()
|
|
1624
1741
|
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1625
1742
|
unreconciledTransactions: z.lazy(()=>mtaTransactionRestResSchema.array()).nullish()
|
|
1626
1743
|
})
|
|
@@ -1686,20 +1803,137 @@ const createMtaTransactionRestReqSchema = z.object({
|
|
|
1686
1803
|
]
|
|
1687
1804
|
});
|
|
1688
1805
|
});
|
|
1806
|
+
const mtaTransactionSearchRestReqSchema = z.object({
|
|
1807
|
+
id: z.union([
|
|
1808
|
+
z.lazy(()=>stringFilterSchema),
|
|
1809
|
+
z.string()
|
|
1810
|
+
]).optional(),
|
|
1811
|
+
sequence: z.coerce.number().optional(),
|
|
1812
|
+
propertyId: z.union([
|
|
1813
|
+
z.lazy(()=>stringFilterSchema),
|
|
1814
|
+
z.string()
|
|
1815
|
+
]).optional(),
|
|
1816
|
+
inputType: z.union([
|
|
1817
|
+
z.lazy(()=>stringFilterSchema),
|
|
1818
|
+
z.string()
|
|
1819
|
+
]).optional(),
|
|
1820
|
+
transactionType: z.union([
|
|
1821
|
+
z.lazy(()=>stringFilterSchema),
|
|
1822
|
+
z.string()
|
|
1823
|
+
]).optional(),
|
|
1824
|
+
bankRef: z.union([
|
|
1825
|
+
z.lazy(()=>stringFilterSchema),
|
|
1826
|
+
z.string()
|
|
1827
|
+
]).optional(),
|
|
1828
|
+
description: z.union([
|
|
1829
|
+
z.lazy(()=>stringFilterSchema),
|
|
1830
|
+
z.string()
|
|
1831
|
+
]).optional(),
|
|
1832
|
+
clearedAt: z.union([
|
|
1833
|
+
z.lazy(()=>dateTimeFilterSchema),
|
|
1834
|
+
z.string()
|
|
1835
|
+
]).optional(),
|
|
1836
|
+
isCanceled: z.union([
|
|
1837
|
+
z.lazy(()=>boolFilterSchema),
|
|
1838
|
+
z.string()
|
|
1839
|
+
]).optional(),
|
|
1840
|
+
isRefunded: z.union([
|
|
1841
|
+
z.lazy(()=>boolFilterSchema),
|
|
1842
|
+
z.string()
|
|
1843
|
+
]).optional(),
|
|
1844
|
+
mtaId: z.union([
|
|
1845
|
+
z.lazy(()=>stringFilterSchema),
|
|
1846
|
+
z.string()
|
|
1847
|
+
]).optional(),
|
|
1848
|
+
status: z.union([
|
|
1849
|
+
z.lazy(()=>simpleStringFilterSchema),
|
|
1850
|
+
z.string()
|
|
1851
|
+
]).optional(),
|
|
1852
|
+
payoutId: z.union([
|
|
1853
|
+
z.lazy(()=>stringFilterSchema),
|
|
1854
|
+
z.string()
|
|
1855
|
+
]).optional(),
|
|
1856
|
+
creditAmountCents: z.union([
|
|
1857
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1858
|
+
z.bigint()
|
|
1859
|
+
]).optional(),
|
|
1860
|
+
debitAmountCents: z.union([
|
|
1861
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1862
|
+
z.bigint()
|
|
1863
|
+
]).optional()
|
|
1864
|
+
}).and(paginationReqSchema);
|
|
1865
|
+
const mtaTransactionStatusSummaryRestResSchema = z.object({
|
|
1866
|
+
status: z.string().pipe(z.nativeEnum(MtaTransactionExtendedStatus)),
|
|
1867
|
+
count: z.number()
|
|
1868
|
+
});
|
|
1689
1869
|
const reconcileMtaTransactionRestReqSchema = z.object({
|
|
1690
1870
|
mtaTransactionId: z.string().uuid(),
|
|
1691
1871
|
reconciliationId: z.string().uuid(),
|
|
1692
1872
|
action: z.nativeEnum(reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
1693
1873
|
});
|
|
1874
|
+
const cancelPayoutPaymentRestReqSchema = z.object({
|
|
1875
|
+
payoutId: z.string().uuid(),
|
|
1876
|
+
payoutTransactionId: z.string().uuid(),
|
|
1877
|
+
reason: z.string()
|
|
1878
|
+
});
|
|
1694
1879
|
const cancelPayoutRestReqSchema = z.object({
|
|
1695
1880
|
id: z.string().uuid(),
|
|
1696
1881
|
reason: z.string().trim().min(1)
|
|
1697
1882
|
});
|
|
1698
|
-
const
|
|
1883
|
+
const commonUpdatePayoutTargetDetailRestReqSchema = z.object({
|
|
1884
|
+
cmaId: z.string().uuid().nullish(),
|
|
1885
|
+
propertyId: z.string().uuid().nullish(),
|
|
1886
|
+
creditAmountCents: dollarsToCentsSchema.pipe(z.bigint().gt(0n)),
|
|
1887
|
+
description: z.string().trim().min(1),
|
|
1888
|
+
bankRef: z.string().trim().min(1),
|
|
1889
|
+
targetAccountType: z.nativeEnum(payout_constant_PayoutTargetAccountType),
|
|
1890
|
+
targetBsb: z.string().nullish(),
|
|
1891
|
+
targetAccountNumber: z.string().nullish(),
|
|
1892
|
+
targetAccountName: z.string().nullish()
|
|
1893
|
+
});
|
|
1894
|
+
const commonUpdatePayoutRestReqSchema = z.object({
|
|
1699
1895
|
payoutId: z.string().uuid(),
|
|
1700
|
-
bankRef: z.string().
|
|
1701
|
-
description: z.string().
|
|
1702
|
-
|
|
1896
|
+
bankRef: z.string().trim().min(1),
|
|
1897
|
+
description: z.string().trim().min(1),
|
|
1898
|
+
payoutType: z.nativeEnum(PayoutType),
|
|
1899
|
+
targetDetails: commonUpdatePayoutTargetDetailRestReqSchema.array().optional()
|
|
1900
|
+
});
|
|
1901
|
+
const confirmPayoutBankFileProcessedRestReqSchema = z.object({
|
|
1902
|
+
payoutId: z.string().uuid(),
|
|
1903
|
+
payoutType: z.nativeEnum(PayoutType),
|
|
1904
|
+
sourceTransactions: z.object({
|
|
1905
|
+
propertyId: z.string().uuid().optional(),
|
|
1906
|
+
bankRef: z.string(),
|
|
1907
|
+
description: z.string(),
|
|
1908
|
+
clearedAt: z.coerce.date(),
|
|
1909
|
+
targetAccountId: z.string().uuid().optional()
|
|
1910
|
+
}).array().min(1),
|
|
1911
|
+
targetTransactions: z.object({
|
|
1912
|
+
targetAccountId: z.string().uuid().optional(),
|
|
1913
|
+
propertyId: z.string().uuid().optional(),
|
|
1914
|
+
bankRef: z.string(),
|
|
1915
|
+
description: z.string(),
|
|
1916
|
+
clearedAt: z.coerce.date().nullish()
|
|
1917
|
+
}).array().min(1)
|
|
1918
|
+
}).superRefine((data, ctx)=>{
|
|
1919
|
+
if (data.sourceTransactions.length !== data.targetTransactions?.length) ctx.addIssue({
|
|
1920
|
+
code: z.ZodIssueCode.custom,
|
|
1921
|
+
message: 'Source and target transactions must have the same length'
|
|
1922
|
+
});
|
|
1923
|
+
if (data.payoutType !== PayoutType.UNKNOWN_PAYOUT) {
|
|
1924
|
+
data.sourceTransactions.forEach((sourceTransaction)=>{
|
|
1925
|
+
if (!sourceTransaction.propertyId) ctx.addIssue({
|
|
1926
|
+
code: z.ZodIssueCode.custom,
|
|
1927
|
+
message: 'Property ID is required for non-unknown payout'
|
|
1928
|
+
});
|
|
1929
|
+
});
|
|
1930
|
+
data.targetTransactions.forEach((targetTransaction)=>{
|
|
1931
|
+
if (!targetTransaction.propertyId) ctx.addIssue({
|
|
1932
|
+
code: z.ZodIssueCode.custom,
|
|
1933
|
+
message: 'Property ID is required for non-unknown payout'
|
|
1934
|
+
});
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1703
1937
|
});
|
|
1704
1938
|
const createMtaToCmaPayoutRestReqSchema = z.object({
|
|
1705
1939
|
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT),
|
|
@@ -1715,90 +1949,54 @@ const createMtaToCmaPayoutRestReqSchema = z.object({
|
|
|
1715
1949
|
bankRef: z.string()
|
|
1716
1950
|
})).min(1)
|
|
1717
1951
|
});
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
bankRef: z.string().trim().min(1),
|
|
1723
|
-
targetAccountName: z.string().trim().min(1),
|
|
1724
|
-
targetAccountNumber: accountNumberValidationSchema,
|
|
1725
|
-
targetBsb: accountBsbValidationSchema,
|
|
1726
|
-
sourcePropertyId: z.string().uuid().optional()
|
|
1727
|
-
});
|
|
1728
|
-
const createCmaSettlementPayoutSourceAccountSchema = z.object({
|
|
1729
|
-
sourceAccountId: z.string().uuid(),
|
|
1730
|
-
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.CMA),
|
|
1731
|
-
sourceBankRef: z.string().trim().min(1),
|
|
1732
|
-
sourceDescription: z.string().trim().min(1)
|
|
1733
|
-
});
|
|
1734
|
-
const createMtaSettlementPayoutSourceAccountSchema = z.object({
|
|
1735
|
-
sourceAccountId: z.string().uuid(),
|
|
1736
|
-
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA),
|
|
1737
|
-
sourceBankRef: z.string().trim().min(1),
|
|
1738
|
-
sourceDescription: z.string().trim().min(1)
|
|
1739
|
-
});
|
|
1740
|
-
const createMtaSettlementPayoutRestReqSchema = z.object({
|
|
1741
|
-
projectId: z.string().uuid(),
|
|
1742
|
-
payoutType: z.literal(PayoutType.TRUST_SETTLEMENT_PAYOUT),
|
|
1743
|
-
sourceAccount: z.lazy(()=>createMtaSettlementPayoutSourceAccountSchema),
|
|
1744
|
-
targetAccounts: z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
|
|
1952
|
+
const propertyRestResBaseSchema = propertyEntitySchema.extend({
|
|
1953
|
+
balanceCents: centsToDollarsSchema,
|
|
1954
|
+
cmaBalanceCents: centsToDollarsSchema,
|
|
1955
|
+
mtaBalanceCents: centsToDollarsSchema
|
|
1745
1956
|
});
|
|
1746
|
-
const
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1957
|
+
const propertyRestResSchema = propertyRestResBaseSchema.extend({
|
|
1958
|
+
customer: customerEntitySchema.nullish(),
|
|
1959
|
+
project: projectNestedEntitySchema.nullish(),
|
|
1960
|
+
mta: mtaRestResBaseSchema.nullish(),
|
|
1961
|
+
cma: cmaRestResBaseSchema.nullish(),
|
|
1962
|
+
cmaTransactions: cmaTransactionRestResSchema.array().nullish(),
|
|
1963
|
+
mtaTransactions: mtaTransactionRestResSchema.array().nullish()
|
|
1751
1964
|
});
|
|
1752
|
-
const
|
|
1753
|
-
createMtaSettlementPayoutRestReqSchema,
|
|
1754
|
-
createCmaSettlementPayoutRestReqSchema
|
|
1755
|
-
]);
|
|
1756
|
-
const payoutSourceDetailsRestResBaseSchema = payoutSourceDetailsEntitySchema.extend({
|
|
1965
|
+
const mtaToCmaPayoutSourceDetailRestSchema = mtaToCmaPayoutSourceDetailEntitySchema.extend({
|
|
1757
1966
|
debitAmountCents: centsToDollarsSchema,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
sourceAccountId: z.string().uuid(),
|
|
1761
|
-
sourceAccountName: z.string(),
|
|
1762
|
-
sourceAccountNumber: accountNumberMaskedSchema,
|
|
1763
|
-
sourceAccountStateCode: stateCodeSchema,
|
|
1764
|
-
sourceAccountBankCode: bankCodeSchema,
|
|
1765
|
-
sequence: z.number().nullish()
|
|
1766
|
-
}).passthrough();
|
|
1767
|
-
const payoutMtaSourceDetailsRestSchema = payoutSourceDetailsRestResBaseSchema.extend({
|
|
1768
|
-
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA),
|
|
1769
|
-
transaction: mtaTransactionRestResSchema.nullish()
|
|
1770
|
-
}).passthrough();
|
|
1771
|
-
const payoutCmaSourceDetailsRestSchema = payoutSourceDetailsRestResBaseSchema.extend({
|
|
1772
|
-
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.CMA),
|
|
1773
|
-
transaction: z.lazy(()=>cmaTransactionRestResSchema).nullish()
|
|
1967
|
+
property: z.lazy(()=>propertyRestResBaseSchema).nullish(),
|
|
1968
|
+
mtaTransaction: z.lazy(()=>mtaTransactionRestResSchema).nullish()
|
|
1774
1969
|
}).passthrough();
|
|
1775
|
-
const
|
|
1776
|
-
payoutMtaSourceDetailsRestSchema,
|
|
1777
|
-
payoutCmaSourceDetailsRestSchema
|
|
1778
|
-
]);
|
|
1779
|
-
const payoutTargetDetailsRestResBaseSchema = payoutTargetDetailsBaseEntitySchema.extend({
|
|
1970
|
+
const mtaToCmaPayoutTargetDetailRestSchema = mtaToCmaPayoutTargetDetailEntitySchema.extend({
|
|
1780
1971
|
creditAmountCents: centsToDollarsSchema,
|
|
1781
|
-
|
|
1782
|
-
targetAccountNumber: accountNumberMaskedSchema,
|
|
1783
|
-
targetAccountType: z.string().pipe(z.nativeEnum(payout_constant_PayoutTargetAccountType)),
|
|
1784
|
-
sequence: z.number().nullish(),
|
|
1785
|
-
bankRef: z.string().nullish(),
|
|
1786
|
-
description: z.string().nullish()
|
|
1972
|
+
cma: z.lazy(()=>cmaRestResSchema).nullish()
|
|
1787
1973
|
}).passthrough();
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
targetAccountId: z.string().uuid(),
|
|
1792
|
-
cma: z.lazy(()=>cmaRestResSchema)
|
|
1974
|
+
const mtaToCmaPayoutPaymentRestSchema = z.object({
|
|
1975
|
+
sourceDetail: mtaToCmaPayoutSourceDetailRestSchema,
|
|
1976
|
+
targetDetail: mtaToCmaPayoutTargetDetailRestSchema
|
|
1793
1977
|
}).passthrough();
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1978
|
+
const mtaToCmaPayoutProvisionDataRestSchema = mtaToCmaPayoutProvisionDataEntitySchema.extend({
|
|
1979
|
+
mta: z.lazy(()=>mtaEntitySchema).nullish(),
|
|
1980
|
+
payments: mtaToCmaPayoutPaymentRestSchema.array(),
|
|
1981
|
+
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT).default(PayoutType.TRUST_TO_CMA_PAYOUT)
|
|
1796
1982
|
}).passthrough();
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1983
|
+
const updateMtaToCmaPayoutRestReqSchema = z.object({
|
|
1984
|
+
payoutId: z.string().uuid(),
|
|
1985
|
+
bankRef: z.string().trim().min(1),
|
|
1986
|
+
description: z.string().trim().min(1),
|
|
1987
|
+
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT),
|
|
1988
|
+
targetDetails: z.array(z.object({
|
|
1989
|
+
cmaId: z.string().uuid(),
|
|
1990
|
+
creditAmountCents: z.number().gt(0).transform(fromDollarsToCents).pipe(z.bigint()),
|
|
1991
|
+
description: z.string().trim().min(1),
|
|
1992
|
+
bankRef: z.string()
|
|
1993
|
+
})).optional()
|
|
1994
|
+
});
|
|
1801
1995
|
const payoutSearchRestReqSchema = z.object({
|
|
1996
|
+
id: z.union([
|
|
1997
|
+
z.lazy(()=>stringFilterSchema),
|
|
1998
|
+
z.string()
|
|
1999
|
+
]).optional(),
|
|
1802
2000
|
payoutType: z.union([
|
|
1803
2001
|
z.lazy(()=>stringFilterSchema),
|
|
1804
2002
|
z.string()
|
|
@@ -1821,43 +2019,51 @@ const payoutStatusSummaryRestResSchema = z.object({
|
|
|
1821
2019
|
status: z.string().pipe(z.nativeEnum(PayoutStatus)),
|
|
1822
2020
|
count: z.number()
|
|
1823
2021
|
});
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
description: z.string().
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
2022
|
+
const updateMtaSettlementPayoutRestReqSchema = z.object({
|
|
2023
|
+
payoutId: z.string().uuid(),
|
|
2024
|
+
bankRef: z.string().trim().min(1),
|
|
2025
|
+
description: z.string().trim().min(1),
|
|
2026
|
+
payoutType: z.literal(PayoutType.TRUST_SETTLEMENT_PAYOUT),
|
|
2027
|
+
targetDetails: settlementPayoutTargetDetailEntitySchema.omit({
|
|
2028
|
+
targetAccountId: true
|
|
2029
|
+
}).extend({
|
|
2030
|
+
creditAmountCents: dollarsToCentsSchema
|
|
2031
|
+
}).array().optional()
|
|
1832
2032
|
});
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
2033
|
+
const updateCmaSettlementPayoutRestReqSchema = z.object({
|
|
2034
|
+
payoutId: z.string().uuid(),
|
|
2035
|
+
bankRef: z.string().trim().min(1),
|
|
2036
|
+
description: z.string().trim().min(1),
|
|
2037
|
+
payoutType: z.literal(PayoutType.CMA_SETTLEMENT_PAYOUT),
|
|
2038
|
+
targetDetails: settlementPayoutTargetDetailEntitySchema.omit({
|
|
2039
|
+
targetAccountId: true
|
|
2040
|
+
}).extend({
|
|
2041
|
+
creditAmountCents: dollarsToCentsSchema
|
|
2042
|
+
}).array().optional()
|
|
2043
|
+
});
|
|
2044
|
+
const updateSettlementPayoutRestReqSchema = z.discriminatedUnion('payoutType', [
|
|
2045
|
+
updateMtaSettlementPayoutRestReqSchema,
|
|
2046
|
+
updateCmaSettlementPayoutRestReqSchema
|
|
2047
|
+
]);
|
|
2048
|
+
const updateUnknownPayoutTargetDetailRestReqSchema = commonUpdatePayoutTargetDetailRestReqSchema.omit({
|
|
2049
|
+
propertyId: true,
|
|
2050
|
+
cmaId: true
|
|
2051
|
+
}).extend({
|
|
2052
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER).default(payout_constant_PayoutTargetAccountType.OTHER),
|
|
2053
|
+
targetBsb: z.string(),
|
|
2054
|
+
targetAccountNumber: z.string(),
|
|
2055
|
+
targetAccountName: z.string()
|
|
1838
2056
|
});
|
|
1839
|
-
const
|
|
1840
|
-
payoutType: z.
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
payoutType: z.string(),
|
|
1850
|
-
fromState: z.string(),
|
|
1851
|
-
fromBank: z.string(),
|
|
1852
|
-
fromAccount: z.string(),
|
|
1853
|
-
createdAt: z.string().datetime(),
|
|
1854
|
-
totalAmount: z.union([
|
|
1855
|
-
z.bigint(),
|
|
1856
|
-
z.number()
|
|
1857
|
-
]).transform((arg)=>Number(arg) / 100).pipe(z.number()),
|
|
1858
|
-
abaStatus: z.string(),
|
|
1859
|
-
status: z.string()
|
|
1860
|
-
}).strip();
|
|
2057
|
+
const updateUnknownPayoutRestReqSchema = commonUpdatePayoutRestReqSchema.extend({
|
|
2058
|
+
payoutType: z.literal(PayoutType.UNKNOWN_PAYOUT),
|
|
2059
|
+
targetDetails: z.lazy(()=>updateUnknownPayoutTargetDetailRestReqSchema).array().optional()
|
|
2060
|
+
});
|
|
2061
|
+
const payoutUpdateRestReqSchema = z.discriminatedUnion('payoutType', [
|
|
2062
|
+
updateMtaToCmaPayoutRestReqSchema,
|
|
2063
|
+
updateMtaSettlementPayoutRestReqSchema,
|
|
2064
|
+
updateCmaSettlementPayoutRestReqSchema,
|
|
2065
|
+
updateUnknownPayoutRestReqSchema
|
|
2066
|
+
]);
|
|
1861
2067
|
const payoutBankFileDownloadHistoryEntitySchema = z.object({
|
|
1862
2068
|
id: z.string().uuid(),
|
|
1863
2069
|
payoutId: z.string(),
|
|
@@ -1906,19 +2112,31 @@ const payoutTransactionEntitySchema = z.object({
|
|
|
1906
2112
|
triggerDetails: z.string().nullable(),
|
|
1907
2113
|
propertyId: z.string().nullable(),
|
|
1908
2114
|
targetBsb: z.string().nullable(),
|
|
2115
|
+
targetAccountId: z.string().nullable(),
|
|
1909
2116
|
targetAccountNumber: z.string().nullable(),
|
|
1910
2117
|
targetAccountName: z.string().nullable(),
|
|
1911
2118
|
targetAccountType: z.string().nullable(),
|
|
1912
|
-
amountCents: z.bigint(),
|
|
2119
|
+
amountCents: z.coerce.bigint(),
|
|
1913
2120
|
bankRef: z.string().nullable(),
|
|
1914
2121
|
description: z.string().nullable()
|
|
1915
2122
|
});
|
|
1916
|
-
const
|
|
1917
|
-
|
|
2123
|
+
const payoutTransactionRestResSchema = payoutTransactionEntitySchema.extend({
|
|
2124
|
+
property: z.lazy(()=>propertyRestResSchema).nullish(),
|
|
2125
|
+
cmaTransaction: z.lazy(()=>cmaTransactionEntitySchema.passthrough()).pipe(cmaTransactionRestResSchema).nullish(),
|
|
2126
|
+
mtaTransaction: z.lazy(()=>mtaTransactionEntitySchema.passthrough()).pipe(mtaTransactionRestResSchema).nullish(),
|
|
2127
|
+
cma: z.lazy(()=>cmaEntitySchema.passthrough()).pipe(cmaRestResSchema.omit({
|
|
2128
|
+
property: true
|
|
2129
|
+
})).nullish(),
|
|
2130
|
+
mta: z.lazy(()=>mtaEntitySchema.passthrough()).pipe(mtaRestResSchema.omit({
|
|
2131
|
+
paymentMethods: true,
|
|
2132
|
+
accountPeriods: true
|
|
2133
|
+
})).nullish(),
|
|
2134
|
+
amountCents: centsToDollarsSchema
|
|
2135
|
+
});
|
|
2136
|
+
const payoutRestResBaseSchema = payoutEntitySchema.omit({
|
|
2137
|
+
provisionDetails: true
|
|
2138
|
+
}).extend({
|
|
1918
2139
|
totalAmountCents: centsToDollarsSchema,
|
|
1919
|
-
payoutType: z.string().pipe(z.nativeEnum(PayoutType)),
|
|
1920
|
-
sourceAccount: z.lazy(()=>payoutSourceDetailsRestSchema),
|
|
1921
|
-
targetAccounts: z.lazy(()=>payoutTargetDetailsRestSchema.array()),
|
|
1922
2140
|
status: z.string().pipe(z.nativeEnum(PayoutStatus)),
|
|
1923
2141
|
createdBy: z.union([
|
|
1924
2142
|
z.string().uuid(),
|
|
@@ -1928,32 +2146,113 @@ const payoutRestResBaseSchema = payoutEntitySchema.extend({
|
|
|
1928
2146
|
z.string().uuid(),
|
|
1929
2147
|
userRestResSchema
|
|
1930
2148
|
]).nullish(),
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
2149
|
+
payoutBankFiles: z.lazy(()=>payoutBankFileRestResSchema.array()).nullish(),
|
|
2150
|
+
bankRef: z.string().nullish(),
|
|
2151
|
+
description: z.string().nullish(),
|
|
2152
|
+
sequence: z.number().nullish()
|
|
1934
2153
|
});
|
|
1935
|
-
const
|
|
1936
|
-
const payoutMtaToCmaRestResSchema = payoutRestResBaseSchema.extend({
|
|
2154
|
+
const mtaToCmaPayoutRestResSchema = payoutRestResBaseSchema.extend({
|
|
1937
2155
|
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT),
|
|
1938
|
-
sourceAccount: z.lazy(()=>
|
|
1939
|
-
|
|
2156
|
+
sourceAccount: z.lazy(()=>mtaRestResBaseSchema).nullish(),
|
|
2157
|
+
payments: z.lazy(()=>payoutTransactionRestResSchema.omit({
|
|
2158
|
+
id: true,
|
|
2159
|
+
sequence: true
|
|
2160
|
+
}).extend({
|
|
2161
|
+
id: z.string().uuid().optional(),
|
|
2162
|
+
sequence: z.number().int().optional()
|
|
2163
|
+
}).array())
|
|
1940
2164
|
});
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
})
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2165
|
+
const mtaSettlementPayoutRestResSchema = payoutRestResBaseSchema.extend({
|
|
2166
|
+
payoutType: z.literal(PayoutType.TRUST_SETTLEMENT_PAYOUT),
|
|
2167
|
+
sourceAccount: z.lazy(()=>mtaRestResBaseSchema).nullish(),
|
|
2168
|
+
payments: z.lazy(()=>payoutTransactionRestResSchema.omit({
|
|
2169
|
+
cmaTransaction: true,
|
|
2170
|
+
cma: true,
|
|
2171
|
+
id: true,
|
|
2172
|
+
sequence: true
|
|
2173
|
+
}).extend({
|
|
2174
|
+
id: z.string().uuid().optional(),
|
|
2175
|
+
sequence: z.number().int().optional()
|
|
2176
|
+
}).array())
|
|
2177
|
+
});
|
|
2178
|
+
const cmaSettlementPayoutRestResSchema = payoutRestResBaseSchema.extend({
|
|
2179
|
+
payoutType: z.literal(PayoutType.CMA_SETTLEMENT_PAYOUT),
|
|
2180
|
+
sourceAccount: z.lazy(()=>cmaRestResBaseSchema).nullish(),
|
|
2181
|
+
payments: z.lazy(()=>payoutTransactionRestResSchema.omit({
|
|
2182
|
+
mtaTransaction: true,
|
|
2183
|
+
mta: true,
|
|
2184
|
+
id: true,
|
|
2185
|
+
sequence: true
|
|
2186
|
+
}).extend({
|
|
2187
|
+
id: z.string().uuid().optional(),
|
|
2188
|
+
sequence: z.number().int().optional()
|
|
2189
|
+
}).array())
|
|
2190
|
+
});
|
|
2191
|
+
const unknownPayoutRestResSchema = payoutRestResBaseSchema.extend({
|
|
2192
|
+
payoutType: z.literal(PayoutType.UNKNOWN_PAYOUT),
|
|
2193
|
+
sourceAccount: z.lazy(()=>mtaRestResBaseSchema).nullish(),
|
|
2194
|
+
payments: z.lazy(()=>payoutTransactionRestResSchema.omit({
|
|
2195
|
+
cmaTransaction: true,
|
|
2196
|
+
cma: true,
|
|
2197
|
+
id: true,
|
|
2198
|
+
sequence: true
|
|
2199
|
+
}).extend({
|
|
2200
|
+
id: z.string().uuid().optional(),
|
|
2201
|
+
sequence: z.number().int().optional(),
|
|
2202
|
+
sourceMtaTransactionId: z.string().uuid().nullish(),
|
|
2203
|
+
sourceMtaTransaction: z.lazy(()=>mtaTransactionRestResBaseSchema).nullish()
|
|
2204
|
+
}).array())
|
|
2205
|
+
});
|
|
2206
|
+
const settlementPayoutRestResSchema = z.discriminatedUnion('payoutType', [
|
|
2207
|
+
mtaSettlementPayoutRestResSchema,
|
|
2208
|
+
cmaSettlementPayoutRestResSchema
|
|
2209
|
+
]);
|
|
2210
|
+
const payoutRestResSchema = z.discriminatedUnion('payoutType', [
|
|
2211
|
+
mtaToCmaPayoutRestResSchema,
|
|
2212
|
+
mtaSettlementPayoutRestResSchema,
|
|
2213
|
+
cmaSettlementPayoutRestResSchema,
|
|
2214
|
+
unknownPayoutRestResSchema
|
|
2215
|
+
]);
|
|
2216
|
+
const createSettlementPayoutTargetAccountSchema = z.object({
|
|
2217
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER),
|
|
2218
|
+
creditAmountCents: dollarsToCentsSchema,
|
|
2219
|
+
description: z.string().trim().min(1),
|
|
2220
|
+
bankRef: z.string().trim().min(1),
|
|
2221
|
+
targetAccountName: z.string().trim().min(1),
|
|
2222
|
+
targetAccountNumber: accountNumberValidationSchema,
|
|
2223
|
+
targetBsb: accountBsbValidationSchema,
|
|
2224
|
+
propertyId: z.string().uuid()
|
|
2225
|
+
});
|
|
2226
|
+
const createSettlementPayoutSourceAccountSchema = z.object({
|
|
2227
|
+
sourceAccountId: z.string().uuid(),
|
|
2228
|
+
sourceAccountType: z.nativeEnum(payout_constant_PayoutSourceAccountType),
|
|
2229
|
+
sourceBankRef: z.string().trim().min(1),
|
|
2230
|
+
sourceDescription: z.string().trim().min(1)
|
|
2231
|
+
});
|
|
2232
|
+
const createSettlementPayoutRestReqSchema = z.object({
|
|
2233
|
+
projectId: z.string().uuid(),
|
|
2234
|
+
payoutType: z.nativeEnum(PayoutType).refine((val)=>{
|
|
2235
|
+
if (val !== PayoutType.TRUST_SETTLEMENT_PAYOUT && val !== PayoutType.CMA_SETTLEMENT_PAYOUT) return false;
|
|
2236
|
+
return true;
|
|
2237
|
+
}, {
|
|
2238
|
+
message: 'Payout type must be trust settlement payout or cma settlement payout'
|
|
2239
|
+
}),
|
|
2240
|
+
sourceAccount: z.lazy(()=>createSettlementPayoutSourceAccountSchema),
|
|
2241
|
+
targetAccounts: z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
|
|
2242
|
+
});
|
|
2243
|
+
const createUnknownPayoutRestReqSchema = z.object({
|
|
2244
|
+
payoutType: z.literal(PayoutType.UNKNOWN_PAYOUT),
|
|
2245
|
+
mtaTransactionId: z.string().uuid(),
|
|
2246
|
+
bankRef: z.string().trim().min(1),
|
|
2247
|
+
description: z.string().trim().min(1),
|
|
2248
|
+
targetAccounts: z.object({
|
|
2249
|
+
creditAmountCents: dollarsToCentsSchema,
|
|
2250
|
+
description: z.string().trim().min(1),
|
|
2251
|
+
bankRef: z.string().trim().min(1),
|
|
2252
|
+
targetAccountName: z.string().trim().min(1),
|
|
2253
|
+
targetAccountNumber: accountNumberValidationSchema,
|
|
2254
|
+
targetBsb: accountBsbValidationSchema
|
|
2255
|
+
}).array().length(1)
|
|
1957
2256
|
});
|
|
1958
2257
|
const payoutTransactionSearchRestReqSchema = z.object({
|
|
1959
2258
|
id: z.union([
|
|
@@ -1981,36 +2280,6 @@ const payoutTransactionSearchRestReqSchema = z.object({
|
|
|
1981
2280
|
z.string()
|
|
1982
2281
|
]).optional().nullable()
|
|
1983
2282
|
});
|
|
1984
|
-
const propertyRestResBaseSchema = propertyEntitySchema.extend({
|
|
1985
|
-
balanceCents: centsToDollarsSchema,
|
|
1986
|
-
cmaBalanceCents: centsToDollarsSchema,
|
|
1987
|
-
mtaBalanceCents: centsToDollarsSchema
|
|
1988
|
-
});
|
|
1989
|
-
const propertyRestResSchema = propertyRestResBaseSchema.extend({
|
|
1990
|
-
customer: customerEntitySchema.nullish(),
|
|
1991
|
-
project: projectNestedEntitySchema.nullish(),
|
|
1992
|
-
mta: mtaRestResBaseSchema.nullish(),
|
|
1993
|
-
cma: cmaRestResBaseSchema.nullish(),
|
|
1994
|
-
cmaTransactions: cmaTransactionRestResSchema.array().nullish(),
|
|
1995
|
-
mtaTransactions: mtaTransactionRestResSchema.array().nullish()
|
|
1996
|
-
});
|
|
1997
|
-
const payoutTransactionRestResSchema = payoutTransactionEntitySchema.extend({
|
|
1998
|
-
property: z.lazy(()=>propertyRestResSchema).nullish(),
|
|
1999
|
-
cmaTransaction: z.lazy(()=>cmaTransactionEntitySchema.passthrough()).pipe(cmaTransactionRestResSchema).nullish(),
|
|
2000
|
-
mtaTransaction: z.lazy(()=>mtaTransactionEntitySchema.passthrough()).pipe(mtaTransactionRestResSchema).nullish(),
|
|
2001
|
-
cma: z.lazy(()=>cmaEntitySchema.passthrough()).pipe(cmaRestResSchema.omit({
|
|
2002
|
-
property: true
|
|
2003
|
-
})).nullish(),
|
|
2004
|
-
mta: z.lazy(()=>mtaEntitySchema.passthrough()).pipe(mtaRestResSchema.omit({
|
|
2005
|
-
paymentMethods: true,
|
|
2006
|
-
accountPeriods: true
|
|
2007
|
-
})).nullish(),
|
|
2008
|
-
amountCents: z.union([
|
|
2009
|
-
z.number(),
|
|
2010
|
-
z.string(),
|
|
2011
|
-
z.bigint()
|
|
2012
|
-
]).transform(fromCentsToDollars).pipe(z.number())
|
|
2013
|
-
});
|
|
2014
2283
|
const projectMtaAllocationEntitySchema = z.object({
|
|
2015
2284
|
id: z.string().uuid(),
|
|
2016
2285
|
projectId: z.string(),
|
|
@@ -2063,16 +2332,16 @@ const approveMtaAllocationRestReqSchema = z.object({
|
|
|
2063
2332
|
});
|
|
2064
2333
|
const balanceRestResSchema = z.object({
|
|
2065
2334
|
debitAmountCents: z.union([
|
|
2066
|
-
z.bigint(),
|
|
2067
|
-
z.number()
|
|
2335
|
+
z.coerce.bigint(),
|
|
2336
|
+
z.coerce.number()
|
|
2068
2337
|
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable()),
|
|
2069
2338
|
creditAmountCents: z.union([
|
|
2070
|
-
z.bigint(),
|
|
2071
|
-
z.number()
|
|
2339
|
+
z.coerce.bigint(),
|
|
2340
|
+
z.coerce.number()
|
|
2072
2341
|
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable()),
|
|
2073
2342
|
balanceCents: z.union([
|
|
2074
|
-
z.bigint(),
|
|
2075
|
-
z.number()
|
|
2343
|
+
z.coerce.bigint(),
|
|
2344
|
+
z.coerce.number()
|
|
2076
2345
|
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable())
|
|
2077
2346
|
});
|
|
2078
2347
|
const propertyAccountsBalanceRestResSchema = z.object({
|
|
@@ -2179,12 +2448,19 @@ const paymentListReportRestReqSchema = commonReportRestReqSchema.and(z.object({
|
|
|
2179
2448
|
accountId: z.string().uuid(),
|
|
2180
2449
|
accountType: z.nativeEnum(account_type_constant_AccountType)
|
|
2181
2450
|
}));
|
|
2451
|
+
const projectLedgerRestReqSchema = commonReportRestReqSchema.and(z.object({
|
|
2452
|
+
propertyIds: z.array(z.string().uuid()).min(1),
|
|
2453
|
+
reportGroupType: z.nativeEnum(report_group_type_constant_ReportGroupType)
|
|
2454
|
+
}));
|
|
2182
2455
|
const receiptListReportRestReqSchema = commonReportRestReqSchema.and(z.object({
|
|
2183
2456
|
accountId: z.string().uuid(),
|
|
2184
2457
|
accountType: z.nativeEnum(account_type_constant_AccountType)
|
|
2185
2458
|
}));
|
|
2186
2459
|
const reconciledItemsListReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
2187
2460
|
const trustTrialBalanceReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
2461
|
+
const unknownReceiptLedgerRestReqSchema = commonReportRestReqSchema.and(z.object({
|
|
2462
|
+
mtaId: z.string().uuid()
|
|
2463
|
+
}));
|
|
2188
2464
|
const unreconciledItemsListReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
2189
2465
|
function bind(fn, thisArg) {
|
|
2190
2466
|
return function() {
|
|
@@ -2517,7 +2793,7 @@ const utils = {
|
|
|
2517
2793
|
asap,
|
|
2518
2794
|
isIterable
|
|
2519
2795
|
};
|
|
2520
|
-
function
|
|
2796
|
+
function AxiosError(message, code, config, request, response) {
|
|
2521
2797
|
Error.call(this);
|
|
2522
2798
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
2523
2799
|
else this.stack = new Error().stack;
|
|
@@ -2531,7 +2807,7 @@ function AxiosError_AxiosError(message, code, config, request, response) {
|
|
|
2531
2807
|
this.status = response.status ? response.status : null;
|
|
2532
2808
|
}
|
|
2533
2809
|
}
|
|
2534
|
-
utils.inherits(
|
|
2810
|
+
utils.inherits(AxiosError, Error, {
|
|
2535
2811
|
toJSON: function() {
|
|
2536
2812
|
return {
|
|
2537
2813
|
message: this.message,
|
|
@@ -2548,7 +2824,7 @@ utils.inherits(AxiosError_AxiosError, Error, {
|
|
|
2548
2824
|
};
|
|
2549
2825
|
}
|
|
2550
2826
|
});
|
|
2551
|
-
const AxiosError_prototype =
|
|
2827
|
+
const AxiosError_prototype = AxiosError.prototype;
|
|
2552
2828
|
const AxiosError_descriptors = {};
|
|
2553
2829
|
[
|
|
2554
2830
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -2568,22 +2844,22 @@ const AxiosError_descriptors = {};
|
|
|
2568
2844
|
value: code
|
|
2569
2845
|
};
|
|
2570
2846
|
});
|
|
2571
|
-
Object.defineProperties(
|
|
2847
|
+
Object.defineProperties(AxiosError, AxiosError_descriptors);
|
|
2572
2848
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
2573
2849
|
value: true
|
|
2574
2850
|
});
|
|
2575
|
-
|
|
2851
|
+
AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
2576
2852
|
const axiosError = Object.create(AxiosError_prototype);
|
|
2577
2853
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
2578
2854
|
return obj !== Error.prototype;
|
|
2579
2855
|
}, (prop)=>'isAxiosError' !== prop);
|
|
2580
|
-
|
|
2856
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
2581
2857
|
axiosError.cause = error;
|
|
2582
2858
|
axiosError.name = error.name;
|
|
2583
2859
|
customProps && Object.assign(axiosError, customProps);
|
|
2584
2860
|
return axiosError;
|
|
2585
2861
|
};
|
|
2586
|
-
const
|
|
2862
|
+
const core_AxiosError = AxiosError;
|
|
2587
2863
|
const helpers_null = null;
|
|
2588
2864
|
function isVisitable(thing) {
|
|
2589
2865
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
@@ -2625,7 +2901,7 @@ function toFormData(obj, formData, options) {
|
|
|
2625
2901
|
if (null === value) return '';
|
|
2626
2902
|
if (utils.isDate(value)) return value.toISOString();
|
|
2627
2903
|
if (utils.isBoolean(value)) return value.toString();
|
|
2628
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
2904
|
+
if (!useBlob && utils.isBlob(value)) throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
2629
2905
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
2630
2906
|
value
|
|
2631
2907
|
]) : Buffer.from(value);
|
|
@@ -2907,7 +3183,7 @@ const defaults = {
|
|
|
2907
3183
|
return JSON.parse(data);
|
|
2908
3184
|
} catch (e) {
|
|
2909
3185
|
if (strictJSONParsing) {
|
|
2910
|
-
if ('SyntaxError' === e.name) throw
|
|
3186
|
+
if ('SyntaxError' === e.name) throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2911
3187
|
throw e;
|
|
2912
3188
|
}
|
|
2913
3189
|
}
|
|
@@ -3204,19 +3480,19 @@ function isCancel(value) {
|
|
|
3204
3480
|
return !!(value && value.__CANCEL__);
|
|
3205
3481
|
}
|
|
3206
3482
|
function CanceledError(message, config, request) {
|
|
3207
|
-
|
|
3483
|
+
core_AxiosError.call(this, null == message ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
|
|
3208
3484
|
this.name = 'CanceledError';
|
|
3209
3485
|
}
|
|
3210
|
-
utils.inherits(CanceledError,
|
|
3486
|
+
utils.inherits(CanceledError, core_AxiosError, {
|
|
3211
3487
|
__CANCEL__: true
|
|
3212
3488
|
});
|
|
3213
3489
|
const cancel_CanceledError = CanceledError;
|
|
3214
3490
|
function settle(resolve, reject, response) {
|
|
3215
3491
|
const validateStatus = response.config.validateStatus;
|
|
3216
3492
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
3217
|
-
else reject(new
|
|
3218
|
-
|
|
3219
|
-
|
|
3493
|
+
else reject(new core_AxiosError('Request failed with status code ' + response.status, [
|
|
3494
|
+
core_AxiosError.ERR_BAD_REQUEST,
|
|
3495
|
+
core_AxiosError.ERR_BAD_RESPONSE
|
|
3220
3496
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
3221
3497
|
}
|
|
3222
3498
|
function parseProtocol(url) {
|
|
@@ -3504,18 +3780,18 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3504
3780
|
};
|
|
3505
3781
|
request.onabort = function() {
|
|
3506
3782
|
if (!request) return;
|
|
3507
|
-
reject(new
|
|
3783
|
+
reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
|
|
3508
3784
|
request = null;
|
|
3509
3785
|
};
|
|
3510
3786
|
request.onerror = function() {
|
|
3511
|
-
reject(new
|
|
3787
|
+
reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
|
|
3512
3788
|
request = null;
|
|
3513
3789
|
};
|
|
3514
3790
|
request.ontimeout = function() {
|
|
3515
3791
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
3516
3792
|
const transitional = _config.transitional || defaults_transitional;
|
|
3517
3793
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3518
|
-
reject(new
|
|
3794
|
+
reject(new core_AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, config, request));
|
|
3519
3795
|
request = null;
|
|
3520
3796
|
};
|
|
3521
3797
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -3544,7 +3820,7 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3544
3820
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
3545
3821
|
}
|
|
3546
3822
|
const protocol = parseProtocol(_config.url);
|
|
3547
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
3823
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
3548
3824
|
request.send(requestData || null);
|
|
3549
3825
|
});
|
|
3550
3826
|
};
|
|
@@ -3558,12 +3834,12 @@ const composeSignals = (signals, timeout)=>{
|
|
|
3558
3834
|
aborted = true;
|
|
3559
3835
|
unsubscribe();
|
|
3560
3836
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3561
|
-
controller.abort(err instanceof
|
|
3837
|
+
controller.abort(err instanceof core_AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
3562
3838
|
}
|
|
3563
3839
|
};
|
|
3564
3840
|
let timer = timeout && setTimeout(()=>{
|
|
3565
3841
|
timer = null;
|
|
3566
|
-
onabort(new
|
|
3842
|
+
onabort(new core_AxiosError(`timeout ${timeout} of ms exceeded`, core_AxiosError.ETIMEDOUT));
|
|
3567
3843
|
}, timeout);
|
|
3568
3844
|
const unsubscribe = ()=>{
|
|
3569
3845
|
if (signals) {
|
|
@@ -3683,7 +3959,7 @@ isFetchSupported && ((res)=>{
|
|
|
3683
3959
|
'stream'
|
|
3684
3960
|
].forEach((type)=>{
|
|
3685
3961
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
3686
|
-
throw new
|
|
3962
|
+
throw new core_AxiosError(`Response type '${type}' is not supported`, core_AxiosError.ERR_NOT_SUPPORT, config);
|
|
3687
3963
|
});
|
|
3688
3964
|
});
|
|
3689
3965
|
})(new Response);
|
|
@@ -3775,10 +4051,10 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
3775
4051
|
});
|
|
3776
4052
|
} catch (err) {
|
|
3777
4053
|
unsubscribe && unsubscribe();
|
|
3778
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
4054
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), {
|
|
3779
4055
|
cause: err.cause || err
|
|
3780
4056
|
});
|
|
3781
|
-
throw
|
|
4057
|
+
throw core_AxiosError.from(err, err && err.code, config, request);
|
|
3782
4058
|
}
|
|
3783
4059
|
});
|
|
3784
4060
|
const knownAdapters = {
|
|
@@ -3815,7 +4091,7 @@ const adapters_adapters = {
|
|
|
3815
4091
|
adapter = nameOrAdapter;
|
|
3816
4092
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3817
4093
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3818
|
-
if (void 0 === adapter) throw new
|
|
4094
|
+
if (void 0 === adapter) throw new core_AxiosError(`Unknown adapter '${id}'`);
|
|
3819
4095
|
}
|
|
3820
4096
|
if (adapter) break;
|
|
3821
4097
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -3823,7 +4099,7 @@ const adapters_adapters = {
|
|
|
3823
4099
|
if (!adapter) {
|
|
3824
4100
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
3825
4101
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
3826
|
-
throw new
|
|
4102
|
+
throw new core_AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
3827
4103
|
}
|
|
3828
4104
|
return adapter;
|
|
3829
4105
|
},
|
|
@@ -3879,7 +4155,7 @@ validators.transitional = function(validator, version, message) {
|
|
|
3879
4155
|
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
3880
4156
|
}
|
|
3881
4157
|
return (value, opt, opts)=>{
|
|
3882
|
-
if (false === validator) throw new
|
|
4158
|
+
if (false === validator) throw new core_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), core_AxiosError.ERR_DEPRECATED);
|
|
3883
4159
|
if (version && !deprecatedWarnings[opt]) {
|
|
3884
4160
|
deprecatedWarnings[opt] = true;
|
|
3885
4161
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -3894,7 +4170,7 @@ validators.spelling = function(correctSpelling) {
|
|
|
3894
4170
|
};
|
|
3895
4171
|
};
|
|
3896
4172
|
function assertOptions(options, schema, allowUnknown) {
|
|
3897
|
-
if ('object' != typeof options) throw new
|
|
4173
|
+
if ('object' != typeof options) throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3898
4174
|
const keys = Object.keys(options);
|
|
3899
4175
|
let i = keys.length;
|
|
3900
4176
|
while(i-- > 0){
|
|
@@ -3903,10 +4179,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3903
4179
|
if (validator) {
|
|
3904
4180
|
const value = options[opt];
|
|
3905
4181
|
const result = void 0 === value || validator(value, opt, options);
|
|
3906
|
-
if (true !== result) throw new
|
|
4182
|
+
if (true !== result) throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3907
4183
|
continue;
|
|
3908
4184
|
}
|
|
3909
|
-
if (true !== allowUnknown) throw new
|
|
4185
|
+
if (true !== allowUnknown) throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
|
|
3910
4186
|
}
|
|
3911
4187
|
}
|
|
3912
4188
|
const helpers_validator = {
|
|
@@ -4234,7 +4510,7 @@ axios.CancelToken = CancelToken;
|
|
|
4234
4510
|
axios.isCancel = isCancel;
|
|
4235
4511
|
axios.VERSION = VERSION;
|
|
4236
4512
|
axios.toFormData = helpers_toFormData;
|
|
4237
|
-
axios.AxiosError =
|
|
4513
|
+
axios.AxiosError = core_AxiosError;
|
|
4238
4514
|
axios.Cancel = axios.CanceledError;
|
|
4239
4515
|
axios.all = function(promises) {
|
|
4240
4516
|
return Promise.all(promises);
|
|
@@ -4333,7 +4609,11 @@ const getPropertyName = (property, options)=>{
|
|
|
4333
4609
|
lotDetail,
|
|
4334
4610
|
project?.name
|
|
4335
4611
|
];
|
|
4612
|
+
if ('report' === target) names = [
|
|
4613
|
+
lotDetail,
|
|
4614
|
+
property.propertyAddress
|
|
4615
|
+
];
|
|
4336
4616
|
names = names.filter(Boolean);
|
|
4337
4617
|
return names.length > 0 ? names.join(' ') : 'Nill';
|
|
4338
4618
|
};
|
|
4339
|
-
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, account_type_constant_AccountType as AccountType, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionCreateType as CmaTransactionCreateType, CmaTransactionCreateTypeToDisplayText, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, CmaTransactionInputTypeToDisplayText, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaCustomerTransactionType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, MtaTransactionInputTypeToDisplayText, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, MtaUnknownTransactionType, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyRestResStatus, PropertyStage, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, report_data_range_type_constant_ReportDataRangeType as ReportDataRangeType, report_group_type_constant_ReportGroupType as ReportGroupType, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema,
|
|
4619
|
+
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, account_type_constant_AccountType as AccountType, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionCreateType as CmaTransactionCreateType, CmaTransactionCreateTypeToDisplayText, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, CmaTransactionInputTypeToDisplayText, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaCustomerTransactionType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, MtaTransactionExtendedStatus, MtaTransactionExtendedStatusToDisplayTextMapper, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, MtaTransactionInputTypeToDisplayText, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, MtaUnknownTransactionType, payment_method_constant_PaymentMethod as PaymentMethod, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyRestResStatus, PropertyStage, QueryMode, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, report_data_range_type_constant_ReportDataRangeType as ReportDataRangeType, report_group_type_constant_ReportGroupType as ReportGroupType, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbFormattedSchema, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, boolFilterBaseSchema, boolFilterSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaEntitySchema, cmaNestedEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionNestedSchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerLedgerRestReqSchema, dateTimeFilterBaseSchema, dateTimeFilterSchema, developerEntitySchema, displayBankAccount, dollarsToCentsSchema, formatBankBsb, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getPropertyName, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, intFilterSchema, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, mtaSettlementPayoutRestResSchema, mtaToCmaPayoutPaymentEntitySchema, mtaToCmaPayoutPaymentRestSchema, mtaToCmaPayoutProvisionDataEntitySchema, mtaToCmaPayoutProvisionDataRestSchema, mtaToCmaPayoutRestResSchema, mtaToCmaPayoutSourceDetailEntitySchema, mtaToCmaPayoutSourceDetailRestSchema, mtaToCmaPayoutTargetDetailEntitySchema, mtaToCmaPayoutTargetDetailRestSchema, mtaTransactionEntitySchema, mtaTransactionNestedSchema, mtaTransactionRestResBaseSchema, mtaTransactionRestResSchema, mtaTransactionSearchRestReqSchema, mtaTransactionStatusSummaryRestResSchema, paginatedResSchema, paginationReqSchema, paymentListReportRestReqSchema, paymentProviderEntitySchema, payoutBankFileDownloadHistoryEntitySchema, payoutBankFileEntitySchema, payoutBankFileRestResSchema, payoutEntitySchema, payoutProvisionDataEntitySchema, payoutRestResBaseSchema, payoutRestResSchema, payoutSearchRestReqSchema, payoutStatusSummaryRestResSchema, payoutTransactionEntitySchema, payoutTransactionRestResSchema, payoutTransactionSearchRestReqSchema, payoutUpdateRestReqSchema, projectEntitySchema, projectLedgerRestReqSchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, stateCodeSchema, stringFilterSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaAccountPeriodReconciledToRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaAccountPeriodReconciledToRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema };
|