@payware/mcp-server 1.3.2 → 1.3.3
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/isv/oauth2/get-token-info.js +7 -5
- package/src/isv/oauth2/obtain-token.js +6 -4
- package/src/isv/oauth2/token-helper.js +26 -26
- package/src/isv/poi/cancel-price.js +7 -2
- package/src/isv/poi/get-poi.js +2 -3
- package/src/isv/poi/get-status.js +194 -168
- package/src/isv/poi/list-pois.js +4 -6
- package/src/isv/poi/set-price.js +38 -53
- package/src/isv/transactions/simulate-callback.js +19 -10
- package/src/merchant/transactions/simulate-callback.js +322 -313
- package/src/merchant/transactions/transaction-history.js +2 -2
- package/src/payment-institution/transactions/get-transaction-history.js +1 -1
- package/src/payment-institution/transactions/get-transaction-status.js +1 -1
- package/src/payment-institution/transactions/simulate-pi-callback.js +385 -375
- package/src/payment-institution/transactions/soundbite-transaction.js +1 -1
- package/src/shared/poi/poi-create-api.js +1 -1
- package/src/tools/advanced-code-generator.js +14 -265
- package/src/utils/code-examples/common/auth-examples.js +1 -1
- package/src/utils/code-examples/isv/products.js +1 -1
- package/src/utils/code-examples/isv/transactions.js +1 -1
- package/src/utils/code-examples/merchant/transactions.js +1 -1
- package/src/utils/code-examples.js +2 -2
|
@@ -163,8 +163,8 @@ retry once the window passes. The failure result exposes this as \`error.throttl
|
|
|
163
163
|
const formatInfo = formatTransactionHistory(result.transaction);
|
|
164
164
|
|
|
165
165
|
// Format dates
|
|
166
|
-
const created = result.transaction.created ? new Date(result.transaction.created
|
|
167
|
-
const finalized = result.transaction.finalized ? new Date(result.transaction.finalized
|
|
166
|
+
const created = result.transaction.created ? new Date(result.transaction.created).toISOString() : 'N/A';
|
|
167
|
+
const finalized = result.transaction.finalized ? new Date(result.transaction.finalized).toISOString() : 'N/A';
|
|
168
168
|
|
|
169
169
|
return {
|
|
170
170
|
content: [{
|
|
@@ -127,7 +127,7 @@ export const getPITransactionHistoryTool = {
|
|
|
127
127
|
|
|
128
128
|
if (result.success) {
|
|
129
129
|
const tx = result.transaction;
|
|
130
|
-
const createdDate = tx.created ? new Date(tx.created
|
|
130
|
+
const createdDate = tx.created ? new Date(tx.created).toISOString() : 'N/A';
|
|
131
131
|
|
|
132
132
|
// Status emoji mapping
|
|
133
133
|
const statusEmojis = {
|
|
@@ -162,7 +162,7 @@ recomputing the fee from them is rejected with ERR_FEE_MISMATCH.
|
|
|
162
162
|
|
|
163
163
|
if (result.success) {
|
|
164
164
|
const tx = result.transaction;
|
|
165
|
-
const createdDate = tx.created ? new Date(tx.created
|
|
165
|
+
const createdDate = tx.created ? new Date(tx.created).toISOString() : 'N/A';
|
|
166
166
|
|
|
167
167
|
// Transaction type display
|
|
168
168
|
const typeDisplay = tx.transactionType || 'DEFAULT';
|