@payware/mcp-server 2.0.0 → 2.0.1
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/package.json +1 -1
- package/src/merchant/transactions/transaction-history.js +1 -1
- package/src/payment-institution/transactions/get-transaction-history.js +1 -2
- package/src/payment-institution/transactions/get-transaction-status.js +3 -4
- package/src/payment-institution/transactions/simulate-pi-callback.js +0 -9
- package/src/payment-institution/transactions/soundbite-transaction.js +1 -2
package/package.json
CHANGED
|
@@ -184,7 +184,7 @@ ${result.transaction.paymentMethod ? `- Payment Method: ${result.transaction.pay
|
|
|
184
184
|
|
|
185
185
|
**Parties:**
|
|
186
186
|
- Payee: ${result.transaction.payeeFriendlyName || 'N/A'} (${result.transaction.payeeAccount || 'N/A'})
|
|
187
|
-
- Payer: ${result.transaction.payerFriendlyName || 'N/A'}
|
|
187
|
+
- Payer: ${result.transaction.payerFriendlyName || 'N/A'}
|
|
188
188
|
- Payee BIC: ${result.transaction.payeeBIC || 'N/A'}
|
|
189
189
|
- Payer BIC: ${result.transaction.payerBIC || 'N/A'}
|
|
190
190
|
|
|
@@ -68,7 +68,7 @@ export const getPITransactionHistoryTool = {
|
|
|
68
68
|
- Complete transaction details
|
|
69
69
|
- Final status (CONFIRMED, DECLINED, FAILED, EXPIRED)
|
|
70
70
|
- Status message (for failed/declined transactions)
|
|
71
|
-
- Payee
|
|
71
|
+
- Payee account, friendly names and BICs (payware does not keep the payer's account)
|
|
72
72
|
- Transaction amounts, currency, and timestamps
|
|
73
73
|
- Creation and processing timeline
|
|
74
74
|
|
|
@@ -170,7 +170,6 @@ ${tx.reasonL2 ? `- Reason L2: ${tx.reasonL2}` : ''}
|
|
|
170
170
|
- BIC: ${tx.payeeBIC || 'N/A'}
|
|
171
171
|
|
|
172
172
|
**Payer Information:**
|
|
173
|
-
- Account: ${tx.payerAccount || 'N/A'}
|
|
174
173
|
- Friendly Name: ${tx.payerFriendlyName || 'N/A'}
|
|
175
174
|
- BIC: ${tx.payerBIC || 'N/A'}
|
|
176
175
|
|
|
@@ -61,13 +61,13 @@ export const getPITransactionStatusTool = {
|
|
|
61
61
|
**Use Cases:**
|
|
62
62
|
- Check transaction status and details
|
|
63
63
|
- Monitor transaction progress
|
|
64
|
-
- Get participant information (payee
|
|
64
|
+
- Get participant information (payee account, friendly names, BICs)
|
|
65
65
|
- Check remaining time to live
|
|
66
66
|
- Fetch what to display to the payer for a product-originated transaction
|
|
67
67
|
|
|
68
68
|
**Response includes:**
|
|
69
69
|
- Transaction ID and type
|
|
70
|
-
- Payee
|
|
70
|
+
- Payee account, friendly names and BICs (payware does not keep the payer's account)
|
|
71
71
|
- Transaction amount and currency
|
|
72
72
|
- Reason lines and creation timestamp
|
|
73
73
|
- Remaining time to live
|
|
@@ -195,7 +195,6 @@ ${tx.reasonL2 ? `- Reason L2: ${tx.reasonL2}` : ''}
|
|
|
195
195
|
- BIC: ${tx.payeeBIC || 'N/A'}
|
|
196
196
|
|
|
197
197
|
**Payer Information:**
|
|
198
|
-
- Account: ${tx.payerAccount || 'N/A'}
|
|
199
198
|
- Friendly Name: ${tx.payerFriendlyName || 'N/A'}
|
|
200
199
|
- BIC: ${tx.payerBIC || 'N/A'}
|
|
201
200
|
|
|
@@ -210,7 +209,7 @@ ${JSON.stringify(result.transaction, null, 2)}
|
|
|
210
209
|
- Timestamp: ${result.timestamp}
|
|
211
210
|
|
|
212
211
|
**Next Steps:**
|
|
213
|
-
1.
|
|
212
|
+
1. Process it if your institution has not yet; once processed, finalize it
|
|
214
213
|
2. ${tx.timeToLive && parseInt(tx.timeToLive) < 60 ? '⚠️ Transaction expires soon!' : 'Monitor remaining TTL'}
|
|
215
214
|
3. Use \`payware_operations_process_transaction\` if you need to process this transaction
|
|
216
215
|
4. Use \`payware_operations_finalize_transaction\` to confirm/decline after processing
|
|
@@ -22,7 +22,6 @@ export function generateMockPICallback(transactionId, callbackType = 'TRANSACTIO
|
|
|
22
22
|
payeeAccount = 'M-1W-1account2',
|
|
23
23
|
payeeFriendlyName = 'payware',
|
|
24
24
|
payerBIC = 'SBBICID1',
|
|
25
|
-
payerAccount = 'payerAccount',
|
|
26
25
|
payerFriendlyName = 'Demo Financial Institution',
|
|
27
26
|
reasonL1 = '57',
|
|
28
27
|
reasonL2 = null,
|
|
@@ -81,7 +80,6 @@ export function generateMockPICallback(transactionId, callbackType = 'TRANSACTIO
|
|
|
81
80
|
payeeAccount,
|
|
82
81
|
payeeFriendlyName,
|
|
83
82
|
payerBIC,
|
|
84
|
-
payerAccount,
|
|
85
83
|
payerFriendlyName,
|
|
86
84
|
reasonL1,
|
|
87
85
|
...(reasonL2 && { reasonL2 }),
|
|
@@ -215,11 +213,6 @@ export const simulatePICallbackTool = {
|
|
|
215
213
|
description: "Payer's BIC code",
|
|
216
214
|
default: "SBBICID1"
|
|
217
215
|
},
|
|
218
|
-
payerAccount: {
|
|
219
|
-
type: "string",
|
|
220
|
-
description: "Payer account identifier",
|
|
221
|
-
default: "payerAccount"
|
|
222
|
-
},
|
|
223
216
|
payerFriendlyName: {
|
|
224
217
|
type: "string",
|
|
225
218
|
description: "Payer friendly name",
|
|
@@ -276,7 +269,6 @@ export const simulatePICallbackTool = {
|
|
|
276
269
|
payeeAccount = 'M-1W-1account2',
|
|
277
270
|
payeeFriendlyName = 'payware',
|
|
278
271
|
payerBIC = 'SBBICID1',
|
|
279
|
-
payerAccount = 'payerAccount',
|
|
280
272
|
payerFriendlyName = 'Demo Financial Institution',
|
|
281
273
|
reasonL1 = '57',
|
|
282
274
|
reasonL2,
|
|
@@ -302,7 +294,6 @@ export const simulatePICallbackTool = {
|
|
|
302
294
|
payeeAccount,
|
|
303
295
|
payeeFriendlyName,
|
|
304
296
|
payerBIC,
|
|
305
|
-
payerAccount,
|
|
306
297
|
payerFriendlyName,
|
|
307
298
|
reasonL1,
|
|
308
299
|
reasonL2,
|
|
@@ -177,7 +177,6 @@ ${tx.reasonL2 ? `- Reason L2: ${tx.reasonL2}` : ''}
|
|
|
177
177
|
- BIC: ${tx.payeeBIC || 'N/A'}
|
|
178
178
|
|
|
179
179
|
**Payer Information:**
|
|
180
|
-
- Account: ${tx.payerAccount || 'N/A'}
|
|
181
180
|
- Friendly Name: ${tx.payerFriendlyName || 'N/A'}
|
|
182
181
|
- BIC: ${tx.payerBIC || 'N/A'}
|
|
183
182
|
|
|
@@ -199,7 +198,7 @@ ${JSON.stringify(result.transaction, null, 2)}
|
|
|
199
198
|
**Next Steps:**
|
|
200
199
|
1. Transaction successfully identified from soundbite file
|
|
201
200
|
2. Use transaction ID: \`${tx.transactionId || 'N/A'}\` for further operations
|
|
202
|
-
3.
|
|
201
|
+
3. Process this transaction as the payer
|
|
203
202
|
4. Use \`payware_operations_process_transaction\` to process payment
|
|
204
203
|
5. Use \`payware_operations_finalize_transaction\` to confirm/decline
|
|
205
204
|
|