@lerianstudio/matcher-mcp 5.0.0-beta.34 → 5.0.0-beta.36

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.
@@ -2860,7 +2860,7 @@ components:
2860
2860
  additionalProperties: false
2861
2861
  properties:
2862
2862
  amount:
2863
- description: "Enrichment: the exception transaction's amount as a decimal string in the transaction's currency. Present on list rows whose transaction still exists; absent on the get-by-id/resolution paths and when the transaction was deleted."
2863
+ description: "Enrichment: the exception transaction's amount as a decimal string in the transaction's currency. Present on list rows and get-by-id when the transaction still exists."
2864
2864
  examples:
2865
2865
  - "1250.50"
2866
2866
  type: string
@@ -2870,7 +2870,7 @@ components:
2870
2870
  - user@example.com
2871
2871
  type: string
2872
2872
  contextId:
2873
- description: "Enrichment: id of the reconciliation context the exception's source belongs to (UUID). Present on list rows whose transaction and source still exist; powers the global triage queue's context attribution."
2873
+ description: "Enrichment: id of the reconciliation context the exception's source belongs to (UUID). Present on list rows and get-by-id when the transaction and source still exist; powers the global triage queue's context attribution."
2874
2874
  examples:
2875
2875
  - 550e8400-e29b-41d4-a716-446655440004
2876
2876
  type: string
@@ -2880,7 +2880,7 @@ components:
2880
2880
  - "2025-01-15T10:30:00Z"
2881
2881
  type: string
2882
2882
  currency:
2883
- description: "Enrichment: ISO 4217 currency code of the exception transaction's amount. Present on list rows whose transaction still exists."
2883
+ description: "Enrichment: ISO 4217 currency code of the exception transaction's amount. Present on list rows and get-by-id when the transaction still exists."
2884
2884
  examples:
2885
2885
  - USD
2886
2886
  type: string
@@ -2942,6 +2942,9 @@ components:
2942
2942
  examples:
2943
2943
  - 550e8400-e29b-41d4-a716-446655440002
2944
2944
  type: string
2945
+ settlement:
2946
+ $ref: "#/components/schemas/ExceptionSettlementResponse"
2947
+ description: Settlement figures for a fee break (expected vs credited and the signed difference), derived from the live fee-variance snapshot recorded for the exception's transaction. Present on get-by-id only, and only when the snapshot and the transaction amount are both available in the same currency.
2945
2948
  severity:
2946
2949
  description: "Severity level: LOW and MEDIUM are informational, HIGH needs prompt review, CRITICAL requires immediate action"
2947
2950
  enum:
@@ -2953,10 +2956,15 @@ components:
2953
2956
  - HIGH
2954
2957
  type: string
2955
2958
  sourceId:
2956
- description: "Enrichment: id of the reconciliation source the exception transaction belongs to (UUID). Present on list rows whose transaction still exists."
2959
+ description: "Enrichment: id of the reconciliation source the exception transaction belongs to (UUID). Present on list rows and get-by-id when the transaction still exists."
2957
2960
  examples:
2958
2961
  - 550e8400-e29b-41d4-a716-446655440003
2959
2962
  type: string
2963
+ sourceName:
2964
+ description: "Enrichment: display name of the reconciliation source. Present on get-by-id when the transaction and its source still exist."
2965
+ examples:
2966
+ - Bank feed
2967
+ type: string
2960
2968
  status:
2961
2969
  description: "Lifecycle status: OPEN (unhandled), ASSIGNED (owned by a user), PENDING_RESOLUTION (a resolution is in flight), RESOLVED (closed out)"
2962
2970
  enum:
@@ -2968,7 +2976,7 @@ components:
2968
2976
  - OPEN
2969
2977
  type: string
2970
2978
  transactionDate:
2971
- description: "Enrichment: the exception transaction's value date as an RFC 3339 timestamp. Present on list rows whose transaction still exists."
2979
+ description: "Enrichment: the exception transaction's value date as an RFC 3339 timestamp. Present on list rows and get-by-id when the transaction still exists."
2972
2980
  examples:
2973
2981
  - "2025-01-14T00:00:00Z"
2974
2982
  type: string
@@ -2990,6 +2998,35 @@ components:
2990
2998
  - createdAt
2991
2999
  - updatedAt
2992
3000
  type: object
3001
+ ExceptionSettlementResponse:
3002
+ additionalProperties: false
3003
+ properties:
3004
+ credited:
3005
+ description: Amount actually credited (the transaction amount), as a decimal string
3006
+ examples:
3007
+ - "95.00"
3008
+ type: string
3009
+ currency:
3010
+ description: ISO 4217 currency code of the settlement amounts (the transaction's currency)
3011
+ examples:
3012
+ - BRL
3013
+ type: string
3014
+ difference:
3015
+ description: Signed difference credited minus expected, as a decimal string; negative when the credit fell short
3016
+ examples:
3017
+ - "-2.00"
3018
+ type: string
3019
+ expected:
3020
+ description: Amount the transaction should have credited under the expected fee, as a decimal string
3021
+ examples:
3022
+ - "97.00"
3023
+ type: string
3024
+ required:
3025
+ - expected
3026
+ - credited
3027
+ - difference
3028
+ - currency
3029
+ type: object
2993
3030
  ExportCountResponse:
2994
3031
  additionalProperties: false
2995
3032
  properties:
@@ -11878,7 +11915,7 @@ paths:
11878
11915
  - Exception
11879
11916
  /v1/exceptions/{exceptionId}:
11880
11917
  get:
11881
- description: Retrieves a single exception by its ID.
11918
+ description: Retrieves a single exception by its ID, including the amount/currency/date/source/context of its transaction and, for fee breaks, the expected vs credited settlement figures.
11882
11919
  operationId: getException
11883
11920
  parameters:
11884
11921
  - description: Exception ID (UUID)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerianstudio/matcher-mcp",
3
- "version": "5.0.0-beta.34",
3
+ "version": "5.0.0-beta.36",
4
4
  "type": "module",
5
5
  "description": "Model Context Protocol server for the Matcher reconciliation engine",
6
6
  "license": "Apache-2.0",