mollie-api-typescript 1.2.1 → 1.2.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/FUNCTIONS.md +1 -1
- package/README.md +14 -7
- package/bin/mcp-server.js +749 -260
- package/bin/mcp-server.js.map +26 -15
- package/dist/commonjs/funcs/sessionsCreate.d.ts +23 -0
- package/dist/commonjs/funcs/sessionsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/sessionsCreate.js +139 -0
- package/dist/commonjs/funcs/sessionsCreate.js.map +1 -0
- package/dist/commonjs/funcs/sessionsGet.d.ts +22 -0
- package/dist/commonjs/funcs/sessionsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/sessionsGet.js +136 -0
- package/dist/commonjs/funcs/sessionsGet.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/sessionsCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.js +68 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.js +68 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.js.map +1 -0
- package/dist/commonjs/models/entitybalancetransaction.d.ts +8 -8
- package/dist/commonjs/models/entitybalancetransaction.d.ts.map +1 -1
- package/dist/commonjs/models/entitybalancetransaction.js +11 -11
- package/dist/commonjs/models/entitybalancetransaction.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +6 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +12 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js +2 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/operations/createsession.d.ts +23 -0
- package/dist/commonjs/models/operations/createsession.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createsession.js +72 -0
- package/dist/commonjs/models/operations/createsession.js.map +1 -0
- package/dist/commonjs/models/operations/getmethod.d.ts +1 -1
- package/dist/commonjs/models/operations/getmethod.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmethod.js +2 -2
- package/dist/commonjs/models/operations/getmethod.js.map +1 -1
- package/dist/commonjs/models/operations/getsession.d.ts +25 -0
- package/dist/commonjs/models/operations/getsession.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsession.js +69 -0
- package/dist/commonjs/models/operations/getsession.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatesalesinvoice.d.ts +10 -0
- package/dist/commonjs/models/operations/updatesalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesalesinvoice.js +2 -0
- package/dist/commonjs/models/operations/updatesalesinvoice.js.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.d.ts +12 -0
- package/dist/commonjs/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.js +2 -0
- package/dist/commonjs/models/salesinvoicerequest.js.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.d.ts +12 -0
- package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.js +2 -0
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/sessionlineitem.d.ts +84 -0
- package/dist/commonjs/models/sessionlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/sessionlineitem.js +82 -0
- package/dist/commonjs/models/sessionlineitem.js.map +1 -0
- package/dist/commonjs/models/sessionlineitemresponse.d.ts +84 -0
- package/dist/commonjs/models/sessionlineitemresponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionlineitemresponse.js +82 -0
- package/dist/commonjs/models/sessionlineitemresponse.js.map +1 -0
- package/dist/commonjs/models/sessionrequest.d.ts +119 -0
- package/dist/commonjs/models/sessionrequest.d.ts.map +1 -0
- package/dist/commonjs/models/sessionrequest.js +100 -0
- package/dist/commonjs/models/sessionrequest.js.map +1 -0
- package/dist/commonjs/models/sessionresponse.d.ts +181 -0
- package/dist/commonjs/models/sessionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionresponse.js +152 -0
- package/dist/commonjs/models/sessionresponse.js.map +1 -0
- package/dist/commonjs/models/sessionsequencetype.d.ts +12 -0
- package/dist/commonjs/models/sessionsequencetype.d.ts.map +1 -0
- package/dist/commonjs/models/sessionsequencetype.js +49 -0
- package/dist/commonjs/models/sessionsequencetype.js.map +1 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.d.ts +12 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.js +49 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/sessions.d.ts +28 -0
- package/dist/commonjs/sdk/sessions.d.ts.map +1 -0
- package/dist/commonjs/sdk/sessions.js +40 -0
- package/dist/commonjs/sdk/sessions.js.map +1 -0
- package/dist/esm/funcs/sessionsCreate.d.ts +23 -0
- package/dist/esm/funcs/sessionsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/sessionsCreate.js +103 -0
- package/dist/esm/funcs/sessionsCreate.js.map +1 -0
- package/dist/esm/funcs/sessionsGet.d.ts +22 -0
- package/dist/esm/funcs/sessionsGet.d.ts.map +1 -0
- package/dist/esm/funcs/sessionsGet.js +100 -0
- package/dist/esm/funcs/sessionsGet.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/sessionsCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.js +32 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/sessionsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsGet.js +32 -0
- package/dist/esm/mcp-server/tools/sessionsGet.js.map +1 -0
- package/dist/esm/models/entitybalancetransaction.d.ts +8 -8
- package/dist/esm/models/entitybalancetransaction.d.ts.map +1 -1
- package/dist/esm/models/entitybalancetransaction.js +8 -8
- package/dist/esm/models/entitybalancetransaction.js.map +1 -1
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +12 -0
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.js +2 -0
- package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/operations/createsession.d.ts +23 -0
- package/dist/esm/models/operations/createsession.d.ts.map +1 -0
- package/dist/esm/models/operations/createsession.js +34 -0
- package/dist/esm/models/operations/createsession.js.map +1 -0
- package/dist/esm/models/operations/getmethod.d.ts +1 -1
- package/dist/esm/models/operations/getmethod.d.ts.map +1 -1
- package/dist/esm/models/operations/getmethod.js +2 -2
- package/dist/esm/models/operations/getmethod.js.map +1 -1
- package/dist/esm/models/operations/getsession.d.ts +25 -0
- package/dist/esm/models/operations/getsession.d.ts.map +1 -0
- package/dist/esm/models/operations/getsession.js +31 -0
- package/dist/esm/models/operations/getsession.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatesalesinvoice.d.ts +10 -0
- package/dist/esm/models/operations/updatesalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesalesinvoice.js +2 -0
- package/dist/esm/models/operations/updatesalesinvoice.js.map +1 -1
- package/dist/esm/models/salesinvoicerequest.d.ts +12 -0
- package/dist/esm/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/esm/models/salesinvoicerequest.js +2 -0
- package/dist/esm/models/salesinvoicerequest.js.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.d.ts +12 -0
- package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.js +2 -0
- package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/sessionlineitem.d.ts +84 -0
- package/dist/esm/models/sessionlineitem.d.ts.map +1 -0
- package/dist/esm/models/sessionlineitem.js +44 -0
- package/dist/esm/models/sessionlineitem.js.map +1 -0
- package/dist/esm/models/sessionlineitemresponse.d.ts +84 -0
- package/dist/esm/models/sessionlineitemresponse.d.ts.map +1 -0
- package/dist/esm/models/sessionlineitemresponse.js +44 -0
- package/dist/esm/models/sessionlineitemresponse.js.map +1 -0
- package/dist/esm/models/sessionrequest.d.ts +119 -0
- package/dist/esm/models/sessionrequest.d.ts.map +1 -0
- package/dist/esm/models/sessionrequest.js +60 -0
- package/dist/esm/models/sessionrequest.js.map +1 -0
- package/dist/esm/models/sessionresponse.d.ts +181 -0
- package/dist/esm/models/sessionresponse.d.ts.map +1 -0
- package/dist/esm/models/sessionresponse.js +110 -0
- package/dist/esm/models/sessionresponse.js.map +1 -0
- package/dist/esm/models/sessionsequencetype.d.ts +12 -0
- package/dist/esm/models/sessionsequencetype.d.ts.map +1 -0
- package/dist/esm/models/sessionsequencetype.js +13 -0
- package/dist/esm/models/sessionsequencetype.js.map +1 -0
- package/dist/esm/models/sessionsequencetyperesponse.d.ts +12 -0
- package/dist/esm/models/sessionsequencetyperesponse.d.ts.map +1 -0
- package/dist/esm/models/sessionsequencetyperesponse.js +13 -0
- package/dist/esm/models/sessionsequencetyperesponse.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/sessions.d.ts +28 -0
- package/dist/esm/sdk/sessions.d.ts.map +1 -0
- package/dist/esm/sdk/sessions.js +36 -0
- package/dist/esm/sdk/sessions.js.map +1 -0
- package/examples/balancesList.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/sessionsCreate.ts +195 -0
- package/src/funcs/sessionsGet.ts +187 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/sessionsCreate.ts +41 -0
- package/src/mcp-server/tools/sessionsGet.ts +41 -0
- package/src/models/entitybalancetransaction.ts +33 -20
- package/src/models/index.ts +6 -1
- package/src/models/listsalesinvoiceresponse.ts +14 -0
- package/src/models/operations/createsession.ts +70 -0
- package/src/models/operations/getmethod.ts +3 -3
- package/src/models/operations/getsession.ts +70 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/updatesalesinvoice.ts +12 -0
- package/src/models/salesinvoicerequest.ts +14 -0
- package/src/models/salesinvoiceresponse.ts +14 -0
- package/src/models/sessionlineitem.ts +147 -0
- package/src/models/sessionlineitemresponse.ts +149 -0
- package/src/models/sessionrequest.ts +216 -0
- package/src/models/sessionresponse.ts +347 -0
- package/src/models/sessionsequencetype.ts +21 -0
- package/src/models/sessionsequencetyperesponse.ts +28 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sessions.ts +54 -0
- package/dist/commonjs/models/methodid.d.ts +0 -65
- package/dist/commonjs/models/methodid.d.ts.map +0 -1
- package/dist/commonjs/models/methodid.js +0 -91
- package/dist/commonjs/models/methodid.js.map +0 -1
- package/dist/esm/models/methodid.d.ts +0 -65
- package/dist/esm/models/methodid.d.ts.map +0 -1
- package/dist/esm/models/methodid.js +0 -55
- package/dist/esm/models/methodid.js.map +0 -1
- package/src/models/methodid.ts +0 -79
package/bin/mcp-server.js
CHANGED
|
@@ -52869,9 +52869,9 @@ var init_config = __esm(() => {
|
|
|
52869
52869
|
SDK_METADATA = {
|
|
52870
52870
|
language: "typescript",
|
|
52871
52871
|
openapiDocVersion: "1.0.0",
|
|
52872
|
-
sdkVersion: "1.2.
|
|
52873
|
-
genVersion: "2.
|
|
52874
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
52872
|
+
sdkVersion: "1.2.3",
|
|
52873
|
+
genVersion: "2.850.7",
|
|
52874
|
+
userAgent: "speakeasy-sdk/typescript 1.2.3 2.850.7 1.0.0 mollie-api-typescript"
|
|
52875
52875
|
};
|
|
52876
52876
|
});
|
|
52877
52877
|
|
|
@@ -55983,7 +55983,7 @@ var init_entitybalancereport = __esm(() => {
|
|
|
55983
55983
|
});
|
|
55984
55984
|
|
|
55985
55985
|
// src/models/entitybalancetransaction.ts
|
|
55986
|
-
var DeductionDetails$inboundSchema, DeductionDetails$outboundSchema,
|
|
55986
|
+
var DeductionDetails$inboundSchema, DeductionDetails$outboundSchema, EntityBalanceTransactionPayment$inboundSchema, EntityBalanceTransactionPayment$outboundSchema, Capture$inboundSchema, Capture$outboundSchema, CaptureCommision$inboundSchema, CaptureCommision$outboundSchema, CaptureRollingReserveRelease$inboundSchema, CaptureRollingReserveRelease$outboundSchema, UnauthorizedDirectDebit$inboundSchema, UnauthorizedDirectDebit$outboundSchema, FailedPayment$inboundSchema, FailedPayment$outboundSchema, Refund$inboundSchema, Refund$outboundSchema, RefundCompensation$inboundSchema, RefundCompensation$outboundSchema, ReturnedRefund$inboundSchema, ReturnedRefund$outboundSchema, ReturnedRefundCompensation$inboundSchema, ReturnedRefundCompensation$outboundSchema, Chargeback$inboundSchema, Chargeback$outboundSchema, ChargebackReversal$inboundSchema, ChargebackReversal$outboundSchema, ChargebackCompensation$inboundSchema, ChargebackCompensation$outboundSchema, ReversedChargebackCompensation$inboundSchema, ReversedChargebackCompensation$outboundSchema, OutgoingTransfer$inboundSchema, OutgoingTransfer$outboundSchema, CanceledOutgoingTransfer$inboundSchema, CanceledOutgoingTransfer$outboundSchema, ReturnedTransfer$inboundSchema, ReturnedTransfer$outboundSchema, InvoiceCompensation$inboundSchema, InvoiceCompensation$outboundSchema, EntityBalanceTransactionApplicationFee$inboundSchema, EntityBalanceTransactionApplicationFee$outboundSchema, SplitPayment$inboundSchema, SplitPayment$outboundSchema, PlatformPaymentRefund$inboundSchema, PlatformPaymentRefund$outboundSchema, ReturnedPlatformPaymentRefund$inboundSchema, ReturnedPlatformPaymentRefund$outboundSchema, PlatformPaymentChargeback$inboundSchema, PlatformPaymentChargeback$outboundSchema, ReversedPlatformPaymentChargeback$inboundSchema, ReversedPlatformPaymentChargeback$outboundSchema, PaymentCommission$inboundSchema, PaymentCommission$outboundSchema, ReimbursementFee$inboundSchema, ReimbursementFee$outboundSchema, FailedPaymentFee$inboundSchema, FailedPaymentFee$outboundSchema, PaymentFee$inboundSchema, PaymentFee$outboundSchema, ManagedFee$inboundSchema, ManagedFee$outboundSchema, ReturnedManagedFee$inboundSchema, ReturnedManagedFee$outboundSchema, PostPaymentSplitPayment$inboundSchema, PostPaymentSplitPayment$outboundSchema, Context$inboundSchema, Context$outboundSchema, EntityBalanceTransaction$inboundSchema, EntityBalanceTransaction$outboundSchema;
|
|
55987
55987
|
var init_entitybalancetransaction = __esm(() => {
|
|
55988
55988
|
init_esm();
|
|
55989
55989
|
init_primitives();
|
|
@@ -56002,11 +56002,11 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56002
56002
|
repayments: nullableType(AmountNullable$outboundSchema).optional(),
|
|
56003
56003
|
reservations: nullableType(AmountNullable$outboundSchema).optional()
|
|
56004
56004
|
});
|
|
56005
|
-
|
|
56005
|
+
EntityBalanceTransactionPayment$inboundSchema = objectType({
|
|
56006
56006
|
paymentId: stringType().optional(),
|
|
56007
56007
|
paymentDescription: stringType().optional()
|
|
56008
56008
|
});
|
|
56009
|
-
|
|
56009
|
+
EntityBalanceTransactionPayment$outboundSchema = objectType({
|
|
56010
56010
|
paymentId: stringType().optional(),
|
|
56011
56011
|
paymentDescription: stringType().optional()
|
|
56012
56012
|
});
|
|
@@ -56313,7 +56313,7 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56313
56313
|
paymentId: stringType().optional()
|
|
56314
56314
|
});
|
|
56315
56315
|
Context$inboundSchema = objectType({
|
|
56316
|
-
payment: nullableType(lazyType(() =>
|
|
56316
|
+
payment: nullableType(lazyType(() => EntityBalanceTransactionPayment$inboundSchema)).optional(),
|
|
56317
56317
|
capture: nullableType(lazyType(() => Capture$inboundSchema)).optional(),
|
|
56318
56318
|
"capture-commision": nullableType(lazyType(() => CaptureCommision$inboundSchema)).optional(),
|
|
56319
56319
|
"capture-rolling-reserve-release": nullableType(lazyType(() => CaptureRollingReserveRelease$inboundSchema)).optional(),
|
|
@@ -56376,7 +56376,7 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56376
56376
|
});
|
|
56377
56377
|
});
|
|
56378
56378
|
Context$outboundSchema = objectType({
|
|
56379
|
-
payment: nullableType(lazyType(() =>
|
|
56379
|
+
payment: nullableType(lazyType(() => EntityBalanceTransactionPayment$outboundSchema)).optional(),
|
|
56380
56380
|
capture: nullableType(lazyType(() => Capture$outboundSchema)).optional(),
|
|
56381
56381
|
captureCommision: nullableType(lazyType(() => CaptureCommision$outboundSchema)).optional(),
|
|
56382
56382
|
captureRollingReserveRelease: nullableType(lazyType(() => CaptureRollingReserveRelease$outboundSchema)).optional(),
|
|
@@ -60709,6 +60709,7 @@ var init_listsalesinvoiceresponse = __esm(() => {
|
|
|
60709
60709
|
recipient: nullableType(SalesInvoiceRecipientResponse$inboundSchema).optional(),
|
|
60710
60710
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$inboundSchema)).optional(),
|
|
60711
60711
|
discount: nullableType(SalesInvoiceDiscountResponse$inboundSchema).optional(),
|
|
60712
|
+
isEInvoice: booleanType().optional(),
|
|
60712
60713
|
amountDue: lazyType(() => ListSalesInvoiceResponseAmountDue$inboundSchema).optional(),
|
|
60713
60714
|
subtotalAmount: lazyType(() => ListSalesInvoiceResponseSubtotalAmount$inboundSchema).optional(),
|
|
60714
60715
|
totalAmount: lazyType(() => ListSalesInvoiceResponseTotalAmount$inboundSchema).optional(),
|
|
@@ -60744,6 +60745,7 @@ var init_listsalesinvoiceresponse = __esm(() => {
|
|
|
60744
60745
|
recipient: nullableType(SalesInvoiceRecipientResponse$outboundSchema).optional(),
|
|
60745
60746
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$outboundSchema)).optional(),
|
|
60746
60747
|
discount: nullableType(SalesInvoiceDiscountResponse$outboundSchema).optional(),
|
|
60748
|
+
isEInvoice: booleanType().optional(),
|
|
60747
60749
|
amountDue: lazyType(() => ListSalesInvoiceResponseAmountDue$outboundSchema).optional(),
|
|
60748
60750
|
subtotalAmount: lazyType(() => ListSalesInvoiceResponseSubtotalAmount$outboundSchema).optional(),
|
|
60749
60751
|
totalAmount: lazyType(() => ListSalesInvoiceResponseTotalAmount$outboundSchema).optional(),
|
|
@@ -61077,49 +61079,6 @@ var init_methodenum = __esm(() => {
|
|
|
61077
61079
|
MethodEnum$outboundSchema = MethodEnum$inboundSchema;
|
|
61078
61080
|
});
|
|
61079
61081
|
|
|
61080
|
-
// src/models/methodid.ts
|
|
61081
|
-
var MethodId, MethodId$inboundSchema, MethodId$outboundSchema;
|
|
61082
|
-
var init_methodid = __esm(() => {
|
|
61083
|
-
init_enums();
|
|
61084
|
-
MethodId = {
|
|
61085
|
-
Alma: "alma",
|
|
61086
|
-
Applepay: "applepay",
|
|
61087
|
-
Bacs: "bacs",
|
|
61088
|
-
Bancomatpay: "bancomatpay",
|
|
61089
|
-
Bancontact: "bancontact",
|
|
61090
|
-
Banktransfer: "banktransfer",
|
|
61091
|
-
Belfius: "belfius",
|
|
61092
|
-
Billie: "billie",
|
|
61093
|
-
Bizum: "bizum",
|
|
61094
|
-
Blik: "blik",
|
|
61095
|
-
Creditcard: "creditcard",
|
|
61096
|
-
Directdebit: "directdebit",
|
|
61097
|
-
Eps: "eps",
|
|
61098
|
-
Giftcard: "giftcard",
|
|
61099
|
-
Ideal: "ideal",
|
|
61100
|
-
In3: "in3",
|
|
61101
|
-
Kbc: "kbc",
|
|
61102
|
-
Klarna: "klarna",
|
|
61103
|
-
Mbway: "mbway",
|
|
61104
|
-
Mobilepay: "mobilepay",
|
|
61105
|
-
Multibanco: "multibanco",
|
|
61106
|
-
Mybank: "mybank",
|
|
61107
|
-
Paybybank: "paybybank",
|
|
61108
|
-
Paypal: "paypal",
|
|
61109
|
-
Paysafecard: "paysafecard",
|
|
61110
|
-
Przelewy24: "przelewy24",
|
|
61111
|
-
Riverty: "riverty",
|
|
61112
|
-
Satispay: "satispay",
|
|
61113
|
-
Swish: "swish",
|
|
61114
|
-
Trustly: "trustly",
|
|
61115
|
-
Twint: "twint",
|
|
61116
|
-
Vipps: "vipps",
|
|
61117
|
-
Voucher: "voucher"
|
|
61118
|
-
};
|
|
61119
|
-
MethodId$inboundSchema = inboundSchema(MethodId);
|
|
61120
|
-
MethodId$outboundSchema = outboundSchema(MethodId);
|
|
61121
|
-
});
|
|
61122
|
-
|
|
61123
61082
|
// src/models/methodincludewalletsparameter.ts
|
|
61124
61083
|
var MethodIncludeWalletsParameter, MethodIncludeWalletsParameter$inboundSchema, MethodIncludeWalletsParameter$outboundSchema;
|
|
61125
61084
|
var init_methodincludewalletsparameter = __esm(() => {
|
|
@@ -62349,7 +62308,8 @@ var init_salesinvoicerequest = __esm(() => {
|
|
|
62349
62308
|
recipientIdentifier: stringType(),
|
|
62350
62309
|
recipient: nullableType(SalesInvoiceRecipient$inboundSchema),
|
|
62351
62310
|
lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)),
|
|
62352
|
-
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional()
|
|
62311
|
+
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional(),
|
|
62312
|
+
isEInvoice: booleanType().optional()
|
|
62353
62313
|
});
|
|
62354
62314
|
SalesInvoiceRequest$outboundSchema = objectType({
|
|
62355
62315
|
testmode: nullableType(booleanType()).optional(),
|
|
@@ -62367,7 +62327,8 @@ var init_salesinvoicerequest = __esm(() => {
|
|
|
62367
62327
|
recipientIdentifier: stringType(),
|
|
62368
62328
|
recipient: nullableType(SalesInvoiceRecipient$outboundSchema),
|
|
62369
62329
|
lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)),
|
|
62370
|
-
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional()
|
|
62330
|
+
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional(),
|
|
62331
|
+
isEInvoice: booleanType().optional()
|
|
62371
62332
|
});
|
|
62372
62333
|
});
|
|
62373
62334
|
|
|
@@ -62465,6 +62426,7 @@ var init_salesinvoiceresponse = __esm(() => {
|
|
|
62465
62426
|
recipient: nullableType(SalesInvoiceRecipientResponse$inboundSchema).optional(),
|
|
62466
62427
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$inboundSchema)).optional(),
|
|
62467
62428
|
discount: nullableType(SalesInvoiceDiscountResponse$inboundSchema).optional(),
|
|
62429
|
+
isEInvoice: booleanType().optional(),
|
|
62468
62430
|
amountDue: lazyType(() => SalesInvoiceResponseAmountDue$inboundSchema).optional(),
|
|
62469
62431
|
subtotalAmount: lazyType(() => SalesInvoiceResponseSubtotalAmount$inboundSchema).optional(),
|
|
62470
62432
|
totalAmount: lazyType(() => SalesInvoiceResponseTotalAmount$inboundSchema).optional(),
|
|
@@ -62500,6 +62462,7 @@ var init_salesinvoiceresponse = __esm(() => {
|
|
|
62500
62462
|
recipient: nullableType(SalesInvoiceRecipientResponse$outboundSchema).optional(),
|
|
62501
62463
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$outboundSchema)).optional(),
|
|
62502
62464
|
discount: nullableType(SalesInvoiceDiscountResponse$outboundSchema).optional(),
|
|
62465
|
+
isEInvoice: booleanType().optional(),
|
|
62503
62466
|
amountDue: lazyType(() => SalesInvoiceResponseAmountDue$outboundSchema).optional(),
|
|
62504
62467
|
subtotalAmount: lazyType(() => SalesInvoiceResponseSubtotalAmount$outboundSchema).optional(),
|
|
62505
62468
|
totalAmount: lazyType(() => SalesInvoiceResponseTotalAmount$outboundSchema).optional(),
|
|
@@ -62531,6 +62494,227 @@ var init_security2 = __esm(() => {
|
|
|
62531
62494
|
});
|
|
62532
62495
|
});
|
|
62533
62496
|
|
|
62497
|
+
// src/models/sessionlineitem.ts
|
|
62498
|
+
var SessionLineItem$inboundSchema, SessionLineItem$outboundSchema;
|
|
62499
|
+
var init_sessionlineitem = __esm(() => {
|
|
62500
|
+
init_esm();
|
|
62501
|
+
init_amount();
|
|
62502
|
+
init_paymentlinetyperesponse();
|
|
62503
|
+
SessionLineItem$inboundSchema = objectType({
|
|
62504
|
+
type: PaymentLineTypeResponse$inboundSchema.optional(),
|
|
62505
|
+
description: stringType(),
|
|
62506
|
+
quantity: numberType().int(),
|
|
62507
|
+
quantityUnit: stringType().optional(),
|
|
62508
|
+
unitPrice: Amount$inboundSchema,
|
|
62509
|
+
discountAmount: Amount$inboundSchema.optional(),
|
|
62510
|
+
totalAmount: Amount$inboundSchema,
|
|
62511
|
+
vatRate: stringType().optional(),
|
|
62512
|
+
vatAmount: Amount$inboundSchema.optional(),
|
|
62513
|
+
sku: stringType().optional(),
|
|
62514
|
+
imageUrl: stringType().optional(),
|
|
62515
|
+
productUrl: stringType().optional()
|
|
62516
|
+
});
|
|
62517
|
+
SessionLineItem$outboundSchema = objectType({
|
|
62518
|
+
type: PaymentLineTypeResponse$outboundSchema.optional(),
|
|
62519
|
+
description: stringType(),
|
|
62520
|
+
quantity: numberType().int(),
|
|
62521
|
+
quantityUnit: stringType().optional(),
|
|
62522
|
+
unitPrice: Amount$outboundSchema,
|
|
62523
|
+
discountAmount: Amount$outboundSchema.optional(),
|
|
62524
|
+
totalAmount: Amount$outboundSchema,
|
|
62525
|
+
vatRate: stringType().optional(),
|
|
62526
|
+
vatAmount: Amount$outboundSchema.optional(),
|
|
62527
|
+
sku: stringType().optional(),
|
|
62528
|
+
imageUrl: stringType().optional(),
|
|
62529
|
+
productUrl: stringType().optional()
|
|
62530
|
+
});
|
|
62531
|
+
});
|
|
62532
|
+
|
|
62533
|
+
// src/models/sessionlineitemresponse.ts
|
|
62534
|
+
var SessionLineItemResponse$inboundSchema, SessionLineItemResponse$outboundSchema;
|
|
62535
|
+
var init_sessionlineitemresponse = __esm(() => {
|
|
62536
|
+
init_esm();
|
|
62537
|
+
init_amount();
|
|
62538
|
+
init_paymentlinetyperesponse();
|
|
62539
|
+
SessionLineItemResponse$inboundSchema = objectType({
|
|
62540
|
+
type: PaymentLineTypeResponse$inboundSchema.optional(),
|
|
62541
|
+
description: stringType(),
|
|
62542
|
+
quantity: numberType().int(),
|
|
62543
|
+
quantityUnit: stringType().optional(),
|
|
62544
|
+
unitPrice: Amount$inboundSchema,
|
|
62545
|
+
discountAmount: Amount$inboundSchema.optional(),
|
|
62546
|
+
totalAmount: Amount$inboundSchema,
|
|
62547
|
+
vatRate: stringType().optional(),
|
|
62548
|
+
vatAmount: Amount$inboundSchema.optional(),
|
|
62549
|
+
sku: stringType().optional(),
|
|
62550
|
+
imageUrl: stringType().optional(),
|
|
62551
|
+
productUrl: stringType().optional()
|
|
62552
|
+
});
|
|
62553
|
+
SessionLineItemResponse$outboundSchema = objectType({
|
|
62554
|
+
type: PaymentLineTypeResponse$outboundSchema.optional(),
|
|
62555
|
+
description: stringType(),
|
|
62556
|
+
quantity: numberType().int(),
|
|
62557
|
+
quantityUnit: stringType().optional(),
|
|
62558
|
+
unitPrice: Amount$outboundSchema,
|
|
62559
|
+
discountAmount: Amount$outboundSchema.optional(),
|
|
62560
|
+
totalAmount: Amount$outboundSchema,
|
|
62561
|
+
vatRate: stringType().optional(),
|
|
62562
|
+
vatAmount: Amount$outboundSchema.optional(),
|
|
62563
|
+
sku: stringType().optional(),
|
|
62564
|
+
imageUrl: stringType().optional(),
|
|
62565
|
+
productUrl: stringType().optional()
|
|
62566
|
+
});
|
|
62567
|
+
});
|
|
62568
|
+
|
|
62569
|
+
// src/models/sessionsequencetype.ts
|
|
62570
|
+
var SessionSequenceType, SessionSequenceType$inboundSchema, SessionSequenceType$outboundSchema;
|
|
62571
|
+
var init_sessionsequencetype = __esm(() => {
|
|
62572
|
+
init_esm();
|
|
62573
|
+
SessionSequenceType = {
|
|
62574
|
+
Oneoff: "oneoff",
|
|
62575
|
+
First: "first"
|
|
62576
|
+
};
|
|
62577
|
+
SessionSequenceType$inboundSchema = nativeEnumType(SessionSequenceType);
|
|
62578
|
+
SessionSequenceType$outboundSchema = SessionSequenceType$inboundSchema;
|
|
62579
|
+
});
|
|
62580
|
+
|
|
62581
|
+
// src/models/sessionrequest.ts
|
|
62582
|
+
var SessionRequestPayment$inboundSchema, SessionRequestPayment$outboundSchema, SessionRequest$inboundSchema, SessionRequest$outboundSchema;
|
|
62583
|
+
var init_sessionrequest = __esm(() => {
|
|
62584
|
+
init_esm();
|
|
62585
|
+
init_amount();
|
|
62586
|
+
init_paymentaddress();
|
|
62587
|
+
init_sessionlineitem();
|
|
62588
|
+
init_sessionsequencetype();
|
|
62589
|
+
SessionRequestPayment$inboundSchema = objectType({
|
|
62590
|
+
webhookUrl: stringType().optional()
|
|
62591
|
+
});
|
|
62592
|
+
SessionRequestPayment$outboundSchema = objectType({
|
|
62593
|
+
webhookUrl: stringType().optional()
|
|
62594
|
+
});
|
|
62595
|
+
SessionRequest$inboundSchema = objectType({
|
|
62596
|
+
amount: Amount$inboundSchema,
|
|
62597
|
+
description: stringType(),
|
|
62598
|
+
redirectUrl: stringType(),
|
|
62599
|
+
billingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62600
|
+
shippingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62601
|
+
customerId: stringType().optional(),
|
|
62602
|
+
sequenceType: SessionSequenceType$inboundSchema.optional(),
|
|
62603
|
+
metadata: recordType(anyType()).optional(),
|
|
62604
|
+
payment: lazyType(() => SessionRequestPayment$inboundSchema).optional(),
|
|
62605
|
+
lines: arrayType(SessionLineItem$inboundSchema),
|
|
62606
|
+
profileId: stringType().optional(),
|
|
62607
|
+
testmode: nullableType(booleanType()).optional()
|
|
62608
|
+
});
|
|
62609
|
+
SessionRequest$outboundSchema = objectType({
|
|
62610
|
+
amount: Amount$outboundSchema,
|
|
62611
|
+
description: stringType(),
|
|
62612
|
+
redirectUrl: stringType(),
|
|
62613
|
+
billingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62614
|
+
shippingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62615
|
+
customerId: stringType().optional(),
|
|
62616
|
+
sequenceType: SessionSequenceType$outboundSchema.optional(),
|
|
62617
|
+
metadata: recordType(anyType()).optional(),
|
|
62618
|
+
payment: lazyType(() => SessionRequestPayment$outboundSchema).optional(),
|
|
62619
|
+
lines: arrayType(SessionLineItem$outboundSchema),
|
|
62620
|
+
profileId: stringType().optional(),
|
|
62621
|
+
testmode: nullableType(booleanType()).optional()
|
|
62622
|
+
});
|
|
62623
|
+
});
|
|
62624
|
+
|
|
62625
|
+
// src/models/sessionsequencetyperesponse.ts
|
|
62626
|
+
var SessionSequenceTypeResponse, SessionSequenceTypeResponse$inboundSchema, SessionSequenceTypeResponse$outboundSchema;
|
|
62627
|
+
var init_sessionsequencetyperesponse = __esm(() => {
|
|
62628
|
+
init_enums();
|
|
62629
|
+
SessionSequenceTypeResponse = {
|
|
62630
|
+
Oneoff: "oneoff",
|
|
62631
|
+
First: "first"
|
|
62632
|
+
};
|
|
62633
|
+
SessionSequenceTypeResponse$inboundSchema = inboundSchema(SessionSequenceTypeResponse);
|
|
62634
|
+
SessionSequenceTypeResponse$outboundSchema = outboundSchema(SessionSequenceTypeResponse);
|
|
62635
|
+
});
|
|
62636
|
+
|
|
62637
|
+
// src/models/sessionresponse.ts
|
|
62638
|
+
var SessionResponseStatus, SessionResponseStatus$inboundSchema, SessionResponseStatus$outboundSchema, SessionResponsePayment$inboundSchema, SessionResponsePayment$outboundSchema, SessionResponseLinks$inboundSchema, SessionResponseLinks$outboundSchema, SessionResponse$inboundSchema, SessionResponse$outboundSchema;
|
|
62639
|
+
var init_sessionresponse = __esm(() => {
|
|
62640
|
+
init_esm();
|
|
62641
|
+
init_primitives();
|
|
62642
|
+
init_enums();
|
|
62643
|
+
init_amount();
|
|
62644
|
+
init_mode();
|
|
62645
|
+
init_paymentaddress();
|
|
62646
|
+
init_sessionlineitemresponse();
|
|
62647
|
+
init_sessionsequencetyperesponse();
|
|
62648
|
+
init_url2();
|
|
62649
|
+
SessionResponseStatus = {
|
|
62650
|
+
Open: "open",
|
|
62651
|
+
Completed: "completed",
|
|
62652
|
+
Expired: "expired"
|
|
62653
|
+
};
|
|
62654
|
+
SessionResponseStatus$inboundSchema = inboundSchema(SessionResponseStatus);
|
|
62655
|
+
SessionResponseStatus$outboundSchema = outboundSchema(SessionResponseStatus);
|
|
62656
|
+
SessionResponsePayment$inboundSchema = objectType({
|
|
62657
|
+
webhookUrl: stringType().optional()
|
|
62658
|
+
});
|
|
62659
|
+
SessionResponsePayment$outboundSchema = objectType({
|
|
62660
|
+
webhookUrl: stringType().optional()
|
|
62661
|
+
});
|
|
62662
|
+
SessionResponseLinks$inboundSchema = objectType({
|
|
62663
|
+
self: Url$inboundSchema
|
|
62664
|
+
});
|
|
62665
|
+
SessionResponseLinks$outboundSchema = objectType({
|
|
62666
|
+
self: Url$outboundSchema
|
|
62667
|
+
});
|
|
62668
|
+
SessionResponse$inboundSchema = objectType({
|
|
62669
|
+
resource: stringType(),
|
|
62670
|
+
id: stringType(),
|
|
62671
|
+
mode: Mode$inboundSchema,
|
|
62672
|
+
clientAccessToken: stringType(),
|
|
62673
|
+
status: SessionResponseStatus$inboundSchema,
|
|
62674
|
+
amount: Amount$inboundSchema,
|
|
62675
|
+
description: stringType(),
|
|
62676
|
+
redirectUrl: stringType(),
|
|
62677
|
+
billingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62678
|
+
shippingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62679
|
+
customerId: stringType().optional(),
|
|
62680
|
+
sequenceType: SessionSequenceTypeResponse$inboundSchema.optional(),
|
|
62681
|
+
metadata: recordType(anyType()).optional(),
|
|
62682
|
+
payment: lazyType(() => SessionResponsePayment$inboundSchema).optional(),
|
|
62683
|
+
lines: arrayType(SessionLineItemResponse$inboundSchema),
|
|
62684
|
+
profileId: stringType(),
|
|
62685
|
+
createdAt: stringType(),
|
|
62686
|
+
_links: lazyType(() => SessionResponseLinks$inboundSchema)
|
|
62687
|
+
}).transform((v2) => {
|
|
62688
|
+
return remap(v2, {
|
|
62689
|
+
_links: "links"
|
|
62690
|
+
});
|
|
62691
|
+
});
|
|
62692
|
+
SessionResponse$outboundSchema = objectType({
|
|
62693
|
+
resource: stringType(),
|
|
62694
|
+
id: stringType(),
|
|
62695
|
+
mode: Mode$outboundSchema,
|
|
62696
|
+
clientAccessToken: stringType(),
|
|
62697
|
+
status: SessionResponseStatus$outboundSchema,
|
|
62698
|
+
amount: Amount$outboundSchema,
|
|
62699
|
+
description: stringType(),
|
|
62700
|
+
redirectUrl: stringType(),
|
|
62701
|
+
billingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62702
|
+
shippingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62703
|
+
customerId: stringType().optional(),
|
|
62704
|
+
sequenceType: SessionSequenceTypeResponse$outboundSchema.optional(),
|
|
62705
|
+
metadata: recordType(anyType()).optional(),
|
|
62706
|
+
payment: lazyType(() => SessionResponsePayment$outboundSchema).optional(),
|
|
62707
|
+
lines: arrayType(SessionLineItemResponse$outboundSchema),
|
|
62708
|
+
profileId: stringType(),
|
|
62709
|
+
createdAt: stringType(),
|
|
62710
|
+
links: lazyType(() => SessionResponseLinks$outboundSchema)
|
|
62711
|
+
}).transform((v2) => {
|
|
62712
|
+
return remap(v2, {
|
|
62713
|
+
links: "_links"
|
|
62714
|
+
});
|
|
62715
|
+
});
|
|
62716
|
+
});
|
|
62717
|
+
|
|
62534
62718
|
// src/models/sorting.ts
|
|
62535
62719
|
var Sorting, Sorting$inboundSchema, Sorting$outboundSchema;
|
|
62536
62720
|
var init_sorting = __esm(() => {
|
|
@@ -62789,7 +62973,6 @@ var init_models = __esm(() => {
|
|
|
62789
62973
|
init_mandateresponse();
|
|
62790
62974
|
init_metadata();
|
|
62791
62975
|
init_methodenum();
|
|
62792
|
-
init_methodid();
|
|
62793
62976
|
init_methodincludewalletsparameter();
|
|
62794
62977
|
init_methodresourceparameter();
|
|
62795
62978
|
init_methodresponse();
|
|
@@ -62862,6 +63045,12 @@ var init_models = __esm(() => {
|
|
|
62862
63045
|
init_security2();
|
|
62863
63046
|
init_sequencetype();
|
|
62864
63047
|
init_sequencetyperesponse();
|
|
63048
|
+
init_sessionlineitem();
|
|
63049
|
+
init_sessionlineitemresponse();
|
|
63050
|
+
init_sessionrequest();
|
|
63051
|
+
init_sessionresponse();
|
|
63052
|
+
init_sessionsequencetype();
|
|
63053
|
+
init_sessionsequencetyperesponse();
|
|
62865
63054
|
init_sorting();
|
|
62866
63055
|
init_statusreason();
|
|
62867
63056
|
init_subgroup();
|
|
@@ -63388,6 +63577,32 @@ var init_createsalesinvoice = __esm(() => {
|
|
|
63388
63577
|
});
|
|
63389
63578
|
});
|
|
63390
63579
|
|
|
63580
|
+
// src/models/operations/createsession.ts
|
|
63581
|
+
var CreateSessionRequest$inboundSchema, CreateSessionRequest$outboundSchema;
|
|
63582
|
+
var init_createsession = __esm(() => {
|
|
63583
|
+
init_esm();
|
|
63584
|
+
init_primitives();
|
|
63585
|
+
init_models();
|
|
63586
|
+
CreateSessionRequest$inboundSchema = objectType({
|
|
63587
|
+
"idempotency-key": stringType().optional(),
|
|
63588
|
+
"session-request": SessionRequest$inboundSchema.optional()
|
|
63589
|
+
}).transform((v2) => {
|
|
63590
|
+
return remap(v2, {
|
|
63591
|
+
"idempotency-key": "idempotencyKey",
|
|
63592
|
+
"session-request": "sessionRequest"
|
|
63593
|
+
});
|
|
63594
|
+
});
|
|
63595
|
+
CreateSessionRequest$outboundSchema = objectType({
|
|
63596
|
+
idempotencyKey: stringType().optional(),
|
|
63597
|
+
sessionRequest: SessionRequest$outboundSchema.optional()
|
|
63598
|
+
}).transform((v2) => {
|
|
63599
|
+
return remap(v2, {
|
|
63600
|
+
idempotencyKey: "idempotency-key",
|
|
63601
|
+
sessionRequest: "session-request"
|
|
63602
|
+
});
|
|
63603
|
+
});
|
|
63604
|
+
});
|
|
63605
|
+
|
|
63391
63606
|
// src/models/operations/createsubscription.ts
|
|
63392
63607
|
var CreateSubscriptionRequest$inboundSchema, CreateSubscriptionRequest$outboundSchema;
|
|
63393
63608
|
var init_createsubscription = __esm(() => {
|
|
@@ -64063,7 +64278,7 @@ var init_getmethod = __esm(() => {
|
|
|
64063
64278
|
testmode: booleanType().optional()
|
|
64064
64279
|
});
|
|
64065
64280
|
GetMethodRequest$inboundSchema = objectType({
|
|
64066
|
-
methodId: nullableType(
|
|
64281
|
+
methodId: nullableType(MethodEnum$inboundSchema),
|
|
64067
64282
|
locale: nullableType(Locale$inboundSchema).optional(),
|
|
64068
64283
|
currency: stringType().optional(),
|
|
64069
64284
|
profileId: stringType().optional(),
|
|
@@ -64077,7 +64292,7 @@ var init_getmethod = __esm(() => {
|
|
|
64077
64292
|
});
|
|
64078
64293
|
});
|
|
64079
64294
|
GetMethodRequest$outboundSchema = objectType({
|
|
64080
|
-
methodId: nullableType(
|
|
64295
|
+
methodId: nullableType(MethodEnum$outboundSchema),
|
|
64081
64296
|
locale: nullableType(Locale$outboundSchema).optional(),
|
|
64082
64297
|
currency: stringType().optional(),
|
|
64083
64298
|
profileId: stringType().optional(),
|
|
@@ -64556,6 +64771,29 @@ var init_getsalesinvoice = __esm(() => {
|
|
|
64556
64771
|
});
|
|
64557
64772
|
});
|
|
64558
64773
|
|
|
64774
|
+
// src/models/operations/getsession.ts
|
|
64775
|
+
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
64776
|
+
var init_getsession = __esm(() => {
|
|
64777
|
+
init_esm();
|
|
64778
|
+
init_primitives();
|
|
64779
|
+
GetSessionRequest$inboundSchema = objectType({
|
|
64780
|
+
sessionId: stringType(),
|
|
64781
|
+
"idempotency-key": stringType().optional()
|
|
64782
|
+
}).transform((v2) => {
|
|
64783
|
+
return remap(v2, {
|
|
64784
|
+
"idempotency-key": "idempotencyKey"
|
|
64785
|
+
});
|
|
64786
|
+
});
|
|
64787
|
+
GetSessionRequest$outboundSchema = objectType({
|
|
64788
|
+
sessionId: stringType(),
|
|
64789
|
+
idempotencyKey: stringType().optional()
|
|
64790
|
+
}).transform((v2) => {
|
|
64791
|
+
return remap(v2, {
|
|
64792
|
+
idempotencyKey: "idempotency-key"
|
|
64793
|
+
});
|
|
64794
|
+
});
|
|
64795
|
+
});
|
|
64796
|
+
|
|
64559
64797
|
// src/models/operations/getsettlement.ts
|
|
64560
64798
|
var GetSettlementRequest$inboundSchema, GetSettlementRequest$outboundSchema;
|
|
64561
64799
|
var init_getsettlement = __esm(() => {
|
|
@@ -67671,7 +67909,8 @@ var init_updatesalesinvoice = __esm(() => {
|
|
|
67671
67909
|
recipientIdentifier: stringType().optional(),
|
|
67672
67910
|
recipient: nullableType(SalesInvoiceRecipient$inboundSchema).optional(),
|
|
67673
67911
|
lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)).optional(),
|
|
67674
|
-
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional()
|
|
67912
|
+
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional(),
|
|
67913
|
+
isEInvoice: booleanType().optional()
|
|
67675
67914
|
});
|
|
67676
67915
|
UpdateSalesInvoiceRequestBody$outboundSchema = objectType({
|
|
67677
67916
|
testmode: booleanType().optional(),
|
|
@@ -67683,7 +67922,8 @@ var init_updatesalesinvoice = __esm(() => {
|
|
|
67683
67922
|
recipientIdentifier: stringType().optional(),
|
|
67684
67923
|
recipient: nullableType(SalesInvoiceRecipient$outboundSchema).optional(),
|
|
67685
67924
|
lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)).optional(),
|
|
67686
|
-
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional()
|
|
67925
|
+
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional(),
|
|
67926
|
+
isEInvoice: booleanType().optional()
|
|
67687
67927
|
});
|
|
67688
67928
|
UpdateSalesInvoiceRequest$inboundSchema = objectType({
|
|
67689
67929
|
salesInvoiceId: stringType(),
|
|
@@ -67829,6 +68069,7 @@ var init_operations = __esm(() => {
|
|
|
67829
68069
|
init_createprofile();
|
|
67830
68070
|
init_createrefund();
|
|
67831
68071
|
init_createsalesinvoice();
|
|
68072
|
+
init_createsession();
|
|
67832
68073
|
init_createsubscription();
|
|
67833
68074
|
init_createwebhook2();
|
|
67834
68075
|
init_deletecustomer();
|
|
@@ -67861,6 +68102,7 @@ var init_operations = __esm(() => {
|
|
|
67861
68102
|
init_getprofile();
|
|
67862
68103
|
init_getrefund();
|
|
67863
68104
|
init_getsalesinvoice();
|
|
68105
|
+
init_getsession();
|
|
67864
68106
|
init_getsettlement();
|
|
67865
68107
|
init_getsubscription();
|
|
67866
68108
|
init_getterminal();
|
|
@@ -77619,34 +77861,31 @@ respectively).`,
|
|
|
77619
77861
|
};
|
|
77620
77862
|
});
|
|
77621
77863
|
|
|
77622
|
-
// src/funcs/
|
|
77623
|
-
function
|
|
77864
|
+
// src/funcs/sessionsCreate.ts
|
|
77865
|
+
function sessionsCreate(client, request, options) {
|
|
77624
77866
|
return new APIPromise($do73(client, request, options));
|
|
77625
77867
|
}
|
|
77626
77868
|
async function $do73(client, request, options) {
|
|
77627
|
-
const parsed = safeParse4(request, (value) =>
|
|
77869
|
+
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77628
77870
|
if (!parsed.ok) {
|
|
77629
77871
|
return [parsed, { status: "invalid" }];
|
|
77630
77872
|
}
|
|
77631
77873
|
const payload = parsed.value;
|
|
77632
|
-
const body =
|
|
77633
|
-
|
|
77634
|
-
|
|
77635
|
-
|
|
77636
|
-
charEncoding: "percent"
|
|
77637
|
-
})
|
|
77638
|
-
};
|
|
77639
|
-
const path = pathToFunc("/settlements/{settlementId}")(pathParams);
|
|
77874
|
+
const body = encodeJSON("body", payload?.["session-request"], {
|
|
77875
|
+
explode: true
|
|
77876
|
+
});
|
|
77877
|
+
const path = pathToFunc("/sessions")();
|
|
77640
77878
|
const headers = new Headers(compactMap({
|
|
77879
|
+
"Content-Type": "application/json",
|
|
77641
77880
|
Accept: "application/hal+json",
|
|
77642
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
77881
|
+
"idempotency-key": encodeSimple("idempotency-key", payload?.["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
77643
77882
|
}));
|
|
77644
77883
|
const securityInput = await extractSecurity(client._options.security);
|
|
77645
77884
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77646
77885
|
const context = {
|
|
77647
77886
|
options: client._options,
|
|
77648
77887
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
77649
|
-
operationID: "
|
|
77888
|
+
operationID: "create-session",
|
|
77650
77889
|
oAuth2Scopes: null,
|
|
77651
77890
|
resolvedSecurity: requestSecurity,
|
|
77652
77891
|
securitySource: client._options.security,
|
|
@@ -77664,7 +77903,7 @@ async function $do73(client, request, options) {
|
|
|
77664
77903
|
};
|
|
77665
77904
|
const requestRes = client._createRequest(context, {
|
|
77666
77905
|
security: requestSecurity,
|
|
77667
|
-
method: "
|
|
77906
|
+
method: "POST",
|
|
77668
77907
|
baseURL: options?.serverURL,
|
|
77669
77908
|
path,
|
|
77670
77909
|
headers,
|
|
@@ -77678,7 +77917,7 @@ async function $do73(client, request, options) {
|
|
|
77678
77917
|
const req = requestRes.value;
|
|
77679
77918
|
const doResult = await client._do(req, {
|
|
77680
77919
|
context,
|
|
77681
|
-
errorCodes: ["
|
|
77920
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
77682
77921
|
retryConfig: context.retryConfig,
|
|
77683
77922
|
retryCodes: context.retryCodes
|
|
77684
77923
|
});
|
|
@@ -77689,9 +77928,9 @@ async function $do73(client, request, options) {
|
|
|
77689
77928
|
const responseFields = {
|
|
77690
77929
|
HttpMeta: { Response: response, Request: req }
|
|
77691
77930
|
};
|
|
77692
|
-
const [result] = await match(json(
|
|
77931
|
+
const [result] = await match(json(201, SessionResponse$inboundSchema, {
|
|
77693
77932
|
ctype: "application/hal+json"
|
|
77694
|
-
}), jsonErr(
|
|
77933
|
+
}), jsonErr(422, ErrorResponse$inboundSchema, {
|
|
77695
77934
|
ctype: "application/hal+json"
|
|
77696
77935
|
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
77697
77936
|
if (!result.ok) {
|
|
@@ -77699,7 +77938,7 @@ async function $do73(client, request, options) {
|
|
|
77699
77938
|
}
|
|
77700
77939
|
return [result, { status: "complete", request: req, response }];
|
|
77701
77940
|
}
|
|
77702
|
-
var
|
|
77941
|
+
var init_sessionsCreate = __esm(() => {
|
|
77703
77942
|
init_encodings();
|
|
77704
77943
|
init_matchers();
|
|
77705
77944
|
init_primitives();
|
|
@@ -77712,20 +77951,266 @@ var init_settlementsGet = __esm(() => {
|
|
|
77712
77951
|
init_async();
|
|
77713
77952
|
});
|
|
77714
77953
|
|
|
77715
|
-
// src/mcp-server/tools/
|
|
77716
|
-
var args73, tool$
|
|
77717
|
-
var
|
|
77718
|
-
|
|
77954
|
+
// src/mcp-server/tools/sessionsCreate.ts
|
|
77955
|
+
var args73, tool$sessionsCreate;
|
|
77956
|
+
var init_sessionsCreate2 = __esm(() => {
|
|
77957
|
+
init_sessionsCreate();
|
|
77719
77958
|
init_operations();
|
|
77720
77959
|
init_tools();
|
|
77721
77960
|
args73 = {
|
|
77722
|
-
request:
|
|
77961
|
+
request: CreateSessionRequest$inboundSchema.optional()
|
|
77723
77962
|
};
|
|
77724
|
-
tool$
|
|
77725
|
-
name: "
|
|
77726
|
-
description: `
|
|
77727
|
-
|
|
77728
|
-
|
|
77963
|
+
tool$sessionsCreate = {
|
|
77964
|
+
name: "sessions-create",
|
|
77965
|
+
description: `Create session [BETA]
|
|
77966
|
+
|
|
77967
|
+
> \uD83D\uDEA7 Beta feature
|
|
77968
|
+
>
|
|
77969
|
+
> This feature is currently in private beta, and the final specification may still change.
|
|
77970
|
+
|
|
77971
|
+
Create a session to start a checkout process with Mollie Components.`,
|
|
77972
|
+
args: args73,
|
|
77973
|
+
tool: async (client, args74, ctx) => {
|
|
77974
|
+
const [result, apiCall] = await sessionsCreate(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77975
|
+
if (!result.ok) {
|
|
77976
|
+
return {
|
|
77977
|
+
content: [{ type: "text", text: result.error.message }],
|
|
77978
|
+
isError: true
|
|
77979
|
+
};
|
|
77980
|
+
}
|
|
77981
|
+
const value = result.value;
|
|
77982
|
+
return formatResult(value, apiCall);
|
|
77983
|
+
}
|
|
77984
|
+
};
|
|
77985
|
+
});
|
|
77986
|
+
|
|
77987
|
+
// src/funcs/sessionsGet.ts
|
|
77988
|
+
function sessionsGet(client, request, options) {
|
|
77989
|
+
return new APIPromise($do74(client, request, options));
|
|
77990
|
+
}
|
|
77991
|
+
async function $do74(client, request, options) {
|
|
77992
|
+
const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77993
|
+
if (!parsed.ok) {
|
|
77994
|
+
return [parsed, { status: "invalid" }];
|
|
77995
|
+
}
|
|
77996
|
+
const payload = parsed.value;
|
|
77997
|
+
const body = null;
|
|
77998
|
+
const pathParams = {
|
|
77999
|
+
sessionId: encodeSimple("sessionId", payload.sessionId, {
|
|
78000
|
+
explode: false,
|
|
78001
|
+
charEncoding: "percent"
|
|
78002
|
+
})
|
|
78003
|
+
};
|
|
78004
|
+
const path = pathToFunc("/sessions/{sessionId}")(pathParams);
|
|
78005
|
+
const headers = new Headers(compactMap({
|
|
78006
|
+
Accept: "application/hal+json",
|
|
78007
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
78008
|
+
}));
|
|
78009
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
78010
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78011
|
+
const context = {
|
|
78012
|
+
options: client._options,
|
|
78013
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78014
|
+
operationID: "get-session",
|
|
78015
|
+
oAuth2Scopes: null,
|
|
78016
|
+
resolvedSecurity: requestSecurity,
|
|
78017
|
+
securitySource: client._options.security,
|
|
78018
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
78019
|
+
strategy: "backoff",
|
|
78020
|
+
backoff: {
|
|
78021
|
+
initialInterval: 500,
|
|
78022
|
+
maxInterval: 5000,
|
|
78023
|
+
exponent: 2,
|
|
78024
|
+
maxElapsedTime: 7500
|
|
78025
|
+
},
|
|
78026
|
+
retryConnectionErrors: true
|
|
78027
|
+
},
|
|
78028
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
78029
|
+
};
|
|
78030
|
+
const requestRes = client._createRequest(context, {
|
|
78031
|
+
security: requestSecurity,
|
|
78032
|
+
method: "GET",
|
|
78033
|
+
baseURL: options?.serverURL,
|
|
78034
|
+
path,
|
|
78035
|
+
headers,
|
|
78036
|
+
body,
|
|
78037
|
+
userAgent: client._options.userAgent,
|
|
78038
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
78039
|
+
}, options);
|
|
78040
|
+
if (!requestRes.ok) {
|
|
78041
|
+
return [requestRes, { status: "invalid" }];
|
|
78042
|
+
}
|
|
78043
|
+
const req = requestRes.value;
|
|
78044
|
+
const doResult = await client._do(req, {
|
|
78045
|
+
context,
|
|
78046
|
+
errorCodes: ["4XX", "5XX"],
|
|
78047
|
+
retryConfig: context.retryConfig,
|
|
78048
|
+
retryCodes: context.retryCodes
|
|
78049
|
+
});
|
|
78050
|
+
if (!doResult.ok) {
|
|
78051
|
+
return [doResult, { status: "request-error", request: req }];
|
|
78052
|
+
}
|
|
78053
|
+
const response = doResult.value;
|
|
78054
|
+
const [result] = await match(json(200, SessionResponse$inboundSchema, {
|
|
78055
|
+
ctype: "application/hal+json"
|
|
78056
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
78057
|
+
if (!result.ok) {
|
|
78058
|
+
return [result, { status: "complete", request: req, response }];
|
|
78059
|
+
}
|
|
78060
|
+
return [result, { status: "complete", request: req, response }];
|
|
78061
|
+
}
|
|
78062
|
+
var init_sessionsGet = __esm(() => {
|
|
78063
|
+
init_encodings();
|
|
78064
|
+
init_matchers();
|
|
78065
|
+
init_primitives();
|
|
78066
|
+
init_schemas4();
|
|
78067
|
+
init_security();
|
|
78068
|
+
init_url();
|
|
78069
|
+
init_models();
|
|
78070
|
+
init_operations();
|
|
78071
|
+
init_async();
|
|
78072
|
+
});
|
|
78073
|
+
|
|
78074
|
+
// src/mcp-server/tools/sessionsGet.ts
|
|
78075
|
+
var args74, tool$sessionsGet;
|
|
78076
|
+
var init_sessionsGet2 = __esm(() => {
|
|
78077
|
+
init_sessionsGet();
|
|
78078
|
+
init_operations();
|
|
78079
|
+
init_tools();
|
|
78080
|
+
args74 = {
|
|
78081
|
+
request: GetSessionRequest$inboundSchema
|
|
78082
|
+
};
|
|
78083
|
+
tool$sessionsGet = {
|
|
78084
|
+
name: "sessions-get",
|
|
78085
|
+
description: `Get session
|
|
78086
|
+
|
|
78087
|
+
> \uD83D\uDEA7 Beta feature
|
|
78088
|
+
>
|
|
78089
|
+
> This feature is currently in private beta, and the final specification may still change.
|
|
78090
|
+
|
|
78091
|
+
Retrieve a session to view its details and status to inform your customers about the checkout process.`,
|
|
78092
|
+
args: args74,
|
|
78093
|
+
tool: async (client, args75, ctx) => {
|
|
78094
|
+
const [result, apiCall] = await sessionsGet(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78095
|
+
if (!result.ok) {
|
|
78096
|
+
return {
|
|
78097
|
+
content: [{ type: "text", text: result.error.message }],
|
|
78098
|
+
isError: true
|
|
78099
|
+
};
|
|
78100
|
+
}
|
|
78101
|
+
const value = result.value;
|
|
78102
|
+
return formatResult(value, apiCall);
|
|
78103
|
+
}
|
|
78104
|
+
};
|
|
78105
|
+
});
|
|
78106
|
+
|
|
78107
|
+
// src/funcs/settlementsGet.ts
|
|
78108
|
+
function settlementsGet(client, request, options) {
|
|
78109
|
+
return new APIPromise($do75(client, request, options));
|
|
78110
|
+
}
|
|
78111
|
+
async function $do75(client, request, options) {
|
|
78112
|
+
const parsed = safeParse4(request, (value) => GetSettlementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78113
|
+
if (!parsed.ok) {
|
|
78114
|
+
return [parsed, { status: "invalid" }];
|
|
78115
|
+
}
|
|
78116
|
+
const payload = parsed.value;
|
|
78117
|
+
const body = null;
|
|
78118
|
+
const pathParams = {
|
|
78119
|
+
settlementId: encodeSimple("settlementId", payload.settlementId, {
|
|
78120
|
+
explode: false,
|
|
78121
|
+
charEncoding: "percent"
|
|
78122
|
+
})
|
|
78123
|
+
};
|
|
78124
|
+
const path = pathToFunc("/settlements/{settlementId}")(pathParams);
|
|
78125
|
+
const headers = new Headers(compactMap({
|
|
78126
|
+
Accept: "application/hal+json",
|
|
78127
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
78128
|
+
}));
|
|
78129
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
78130
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78131
|
+
const context = {
|
|
78132
|
+
options: client._options,
|
|
78133
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78134
|
+
operationID: "get-settlement",
|
|
78135
|
+
oAuth2Scopes: null,
|
|
78136
|
+
resolvedSecurity: requestSecurity,
|
|
78137
|
+
securitySource: client._options.security,
|
|
78138
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
78139
|
+
strategy: "backoff",
|
|
78140
|
+
backoff: {
|
|
78141
|
+
initialInterval: 500,
|
|
78142
|
+
maxInterval: 5000,
|
|
78143
|
+
exponent: 2,
|
|
78144
|
+
maxElapsedTime: 7500
|
|
78145
|
+
},
|
|
78146
|
+
retryConnectionErrors: true
|
|
78147
|
+
},
|
|
78148
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
78149
|
+
};
|
|
78150
|
+
const requestRes = client._createRequest(context, {
|
|
78151
|
+
security: requestSecurity,
|
|
78152
|
+
method: "GET",
|
|
78153
|
+
baseURL: options?.serverURL,
|
|
78154
|
+
path,
|
|
78155
|
+
headers,
|
|
78156
|
+
body,
|
|
78157
|
+
userAgent: client._options.userAgent,
|
|
78158
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
78159
|
+
}, options);
|
|
78160
|
+
if (!requestRes.ok) {
|
|
78161
|
+
return [requestRes, { status: "invalid" }];
|
|
78162
|
+
}
|
|
78163
|
+
const req = requestRes.value;
|
|
78164
|
+
const doResult = await client._do(req, {
|
|
78165
|
+
context,
|
|
78166
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
78167
|
+
retryConfig: context.retryConfig,
|
|
78168
|
+
retryCodes: context.retryCodes
|
|
78169
|
+
});
|
|
78170
|
+
if (!doResult.ok) {
|
|
78171
|
+
return [doResult, { status: "request-error", request: req }];
|
|
78172
|
+
}
|
|
78173
|
+
const response = doResult.value;
|
|
78174
|
+
const responseFields = {
|
|
78175
|
+
HttpMeta: { Response: response, Request: req }
|
|
78176
|
+
};
|
|
78177
|
+
const [result] = await match(json(200, EntitySettlement$inboundSchema, {
|
|
78178
|
+
ctype: "application/hal+json"
|
|
78179
|
+
}), jsonErr(404, ErrorResponse$inboundSchema, {
|
|
78180
|
+
ctype: "application/hal+json"
|
|
78181
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
78182
|
+
if (!result.ok) {
|
|
78183
|
+
return [result, { status: "complete", request: req, response }];
|
|
78184
|
+
}
|
|
78185
|
+
return [result, { status: "complete", request: req, response }];
|
|
78186
|
+
}
|
|
78187
|
+
var init_settlementsGet = __esm(() => {
|
|
78188
|
+
init_encodings();
|
|
78189
|
+
init_matchers();
|
|
78190
|
+
init_primitives();
|
|
78191
|
+
init_schemas4();
|
|
78192
|
+
init_security();
|
|
78193
|
+
init_url();
|
|
78194
|
+
init_errors4();
|
|
78195
|
+
init_models();
|
|
78196
|
+
init_operations();
|
|
78197
|
+
init_async();
|
|
78198
|
+
});
|
|
78199
|
+
|
|
78200
|
+
// src/mcp-server/tools/settlementsGet.ts
|
|
78201
|
+
var args75, tool$settlementsGet;
|
|
78202
|
+
var init_settlementsGet2 = __esm(() => {
|
|
78203
|
+
init_settlementsGet();
|
|
78204
|
+
init_operations();
|
|
78205
|
+
init_tools();
|
|
78206
|
+
args75 = {
|
|
78207
|
+
request: GetSettlementRequest$inboundSchema
|
|
78208
|
+
};
|
|
78209
|
+
tool$settlementsGet = {
|
|
78210
|
+
name: "settlements-get",
|
|
78211
|
+
description: `Get settlement
|
|
78212
|
+
|
|
78213
|
+
Retrieve a single settlement by its ID.
|
|
77729
78214
|
|
|
77730
78215
|
To lookup settlements by their bank reference, replace the ID in the URL by
|
|
77731
78216
|
a reference. For example: \`1234567.2404.03\`.
|
|
@@ -77737,9 +78222,9 @@ settlement and the previous one.
|
|
|
77737
78222
|
|
|
77738
78223
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77739
78224
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77740
|
-
args:
|
|
77741
|
-
tool: async (client,
|
|
77742
|
-
const [result, apiCall] = await settlementsGet(client,
|
|
78225
|
+
args: args75,
|
|
78226
|
+
tool: async (client, args76, ctx) => {
|
|
78227
|
+
const [result, apiCall] = await settlementsGet(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77743
78228
|
if (!result.ok) {
|
|
77744
78229
|
return {
|
|
77745
78230
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77754,9 +78239,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77754
78239
|
|
|
77755
78240
|
// src/funcs/settlementsGetNext.ts
|
|
77756
78241
|
function settlementsGetNext(client, request, options) {
|
|
77757
|
-
return new APIPromise($
|
|
78242
|
+
return new APIPromise($do76(client, request, options));
|
|
77758
78243
|
}
|
|
77759
|
-
async function $
|
|
78244
|
+
async function $do76(client, request, options) {
|
|
77760
78245
|
const parsed = safeParse4(request, (value) => GetNextSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77761
78246
|
if (!parsed.ok) {
|
|
77762
78247
|
return [parsed, { status: "invalid" }];
|
|
@@ -77834,12 +78319,12 @@ var init_settlementsGetNext = __esm(() => {
|
|
|
77834
78319
|
});
|
|
77835
78320
|
|
|
77836
78321
|
// src/mcp-server/tools/settlementsGetNext.ts
|
|
77837
|
-
var
|
|
78322
|
+
var args76, tool$settlementsGetNext;
|
|
77838
78323
|
var init_settlementsGetNext2 = __esm(() => {
|
|
77839
78324
|
init_settlementsGetNext();
|
|
77840
78325
|
init_operations();
|
|
77841
78326
|
init_tools();
|
|
77842
|
-
|
|
78327
|
+
args76 = {
|
|
77843
78328
|
request: GetNextSettlementRequest$inboundSchema.optional()
|
|
77844
78329
|
};
|
|
77845
78330
|
tool$settlementsGetNext = {
|
|
@@ -77853,9 +78338,9 @@ documentation.
|
|
|
77853
78338
|
|
|
77854
78339
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77855
78340
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77856
|
-
args:
|
|
77857
|
-
tool: async (client,
|
|
77858
|
-
const [result, apiCall] = await settlementsGetNext(client,
|
|
78341
|
+
args: args76,
|
|
78342
|
+
tool: async (client, args77, ctx) => {
|
|
78343
|
+
const [result, apiCall] = await settlementsGetNext(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77859
78344
|
if (!result.ok) {
|
|
77860
78345
|
return {
|
|
77861
78346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77870,9 +78355,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77870
78355
|
|
|
77871
78356
|
// src/funcs/settlementsGetOpen.ts
|
|
77872
78357
|
function settlementsGetOpen(client, request, options) {
|
|
77873
|
-
return new APIPromise($
|
|
78358
|
+
return new APIPromise($do77(client, request, options));
|
|
77874
78359
|
}
|
|
77875
|
-
async function $
|
|
78360
|
+
async function $do77(client, request, options) {
|
|
77876
78361
|
const parsed = safeParse4(request, (value) => GetOpenSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77877
78362
|
if (!parsed.ok) {
|
|
77878
78363
|
return [parsed, { status: "invalid" }];
|
|
@@ -77950,12 +78435,12 @@ var init_settlementsGetOpen = __esm(() => {
|
|
|
77950
78435
|
});
|
|
77951
78436
|
|
|
77952
78437
|
// src/mcp-server/tools/settlementsGetOpen.ts
|
|
77953
|
-
var
|
|
78438
|
+
var args77, tool$settlementsGetOpen;
|
|
77954
78439
|
var init_settlementsGetOpen2 = __esm(() => {
|
|
77955
78440
|
init_settlementsGetOpen();
|
|
77956
78441
|
init_operations();
|
|
77957
78442
|
init_tools();
|
|
77958
|
-
|
|
78443
|
+
args77 = {
|
|
77959
78444
|
request: GetOpenSettlementRequest$inboundSchema.optional()
|
|
77960
78445
|
};
|
|
77961
78446
|
tool$settlementsGetOpen = {
|
|
@@ -77970,9 +78455,9 @@ documentation.
|
|
|
77970
78455
|
|
|
77971
78456
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77972
78457
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77973
|
-
args:
|
|
77974
|
-
tool: async (client,
|
|
77975
|
-
const [result, apiCall] = await settlementsGetOpen(client,
|
|
78458
|
+
args: args77,
|
|
78459
|
+
tool: async (client, args78, ctx) => {
|
|
78460
|
+
const [result, apiCall] = await settlementsGetOpen(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77976
78461
|
if (!result.ok) {
|
|
77977
78462
|
return {
|
|
77978
78463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77987,9 +78472,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77987
78472
|
|
|
77988
78473
|
// src/funcs/settlementsList.ts
|
|
77989
78474
|
function settlementsList(client, request, options) {
|
|
77990
|
-
return new APIPromise($
|
|
78475
|
+
return new APIPromise($do78(client, request, options));
|
|
77991
78476
|
}
|
|
77992
|
-
async function $
|
|
78477
|
+
async function $do78(client, request, options) {
|
|
77993
78478
|
const parsed = safeParse4(request, (value) => ListSettlementsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77994
78479
|
if (!parsed.ok) {
|
|
77995
78480
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78110,12 +78595,12 @@ var init_settlementsList = __esm(() => {
|
|
|
78110
78595
|
});
|
|
78111
78596
|
|
|
78112
78597
|
// src/mcp-server/tools/settlementsList.ts
|
|
78113
|
-
var
|
|
78598
|
+
var args78, tool$settlementsList;
|
|
78114
78599
|
var init_settlementsList2 = __esm(() => {
|
|
78115
78600
|
init_settlementsList();
|
|
78116
78601
|
init_operations();
|
|
78117
78602
|
init_tools();
|
|
78118
|
-
|
|
78603
|
+
args78 = {
|
|
78119
78604
|
request: ListSettlementsRequest$inboundSchema.optional()
|
|
78120
78605
|
};
|
|
78121
78606
|
tool$settlementsList = {
|
|
@@ -78125,9 +78610,9 @@ var init_settlementsList2 = __esm(() => {
|
|
|
78125
78610
|
Retrieve a list of all your settlements.
|
|
78126
78611
|
|
|
78127
78612
|
The results are paginated.`,
|
|
78128
|
-
args:
|
|
78129
|
-
tool: async (client,
|
|
78130
|
-
const [result, apiCall] = await settlementsList(client,
|
|
78613
|
+
args: args78,
|
|
78614
|
+
tool: async (client, args79, ctx) => {
|
|
78615
|
+
const [result, apiCall] = await settlementsList(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78131
78616
|
if (!result.ok) {
|
|
78132
78617
|
return {
|
|
78133
78618
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78142,9 +78627,9 @@ The results are paginated.`,
|
|
|
78142
78627
|
|
|
78143
78628
|
// src/funcs/settlementsListCaptures.ts
|
|
78144
78629
|
function settlementsListCaptures(client, request, options) {
|
|
78145
|
-
return new APIPromise($
|
|
78630
|
+
return new APIPromise($do79(client, request, options));
|
|
78146
78631
|
}
|
|
78147
|
-
async function $
|
|
78632
|
+
async function $do79(client, request, options) {
|
|
78148
78633
|
const parsed = safeParse4(request, (value) => ListSettlementCapturesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78149
78634
|
if (!parsed.ok) {
|
|
78150
78635
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78269,12 +78754,12 @@ var init_settlementsListCaptures = __esm(() => {
|
|
|
78269
78754
|
});
|
|
78270
78755
|
|
|
78271
78756
|
// src/mcp-server/tools/settlementsListCaptures.ts
|
|
78272
|
-
var
|
|
78757
|
+
var args79, tool$settlementsListCaptures;
|
|
78273
78758
|
var init_settlementsListCaptures2 = __esm(() => {
|
|
78274
78759
|
init_settlementsListCaptures();
|
|
78275
78760
|
init_operations();
|
|
78276
78761
|
init_tools();
|
|
78277
|
-
|
|
78762
|
+
args79 = {
|
|
78278
78763
|
request: ListSettlementCapturesRequest$inboundSchema
|
|
78279
78764
|
};
|
|
78280
78765
|
tool$settlementsListCaptures = {
|
|
@@ -78284,9 +78769,9 @@ var init_settlementsListCaptures2 = __esm(() => {
|
|
|
78284
78769
|
Retrieve all captures included in the given settlement.
|
|
78285
78770
|
|
|
78286
78771
|
The response is in the same format as the response of the [List captures endpoint](list-captures).`,
|
|
78287
|
-
args:
|
|
78288
|
-
tool: async (client,
|
|
78289
|
-
const [result, apiCall] = await settlementsListCaptures(client,
|
|
78772
|
+
args: args79,
|
|
78773
|
+
tool: async (client, args80, ctx) => {
|
|
78774
|
+
const [result, apiCall] = await settlementsListCaptures(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78290
78775
|
if (!result.ok) {
|
|
78291
78776
|
return {
|
|
78292
78777
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78301,9 +78786,9 @@ The response is in the same format as the response of the [List captures endpoin
|
|
|
78301
78786
|
|
|
78302
78787
|
// src/funcs/settlementsListChargebacks.ts
|
|
78303
78788
|
function settlementsListChargebacks(client, request, options) {
|
|
78304
|
-
return new APIPromise($
|
|
78789
|
+
return new APIPromise($do80(client, request, options));
|
|
78305
78790
|
}
|
|
78306
|
-
async function $
|
|
78791
|
+
async function $do80(client, request, options) {
|
|
78307
78792
|
const parsed = safeParse4(request, (value) => ListSettlementChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78308
78793
|
if (!parsed.ok) {
|
|
78309
78794
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78428,12 +78913,12 @@ var init_settlementsListChargebacks = __esm(() => {
|
|
|
78428
78913
|
});
|
|
78429
78914
|
|
|
78430
78915
|
// src/mcp-server/tools/settlementsListChargebacks.ts
|
|
78431
|
-
var
|
|
78916
|
+
var args80, tool$settlementsListChargebacks;
|
|
78432
78917
|
var init_settlementsListChargebacks2 = __esm(() => {
|
|
78433
78918
|
init_settlementsListChargebacks();
|
|
78434
78919
|
init_operations();
|
|
78435
78920
|
init_tools();
|
|
78436
|
-
|
|
78921
|
+
args80 = {
|
|
78437
78922
|
request: ListSettlementChargebacksRequest$inboundSchema
|
|
78438
78923
|
};
|
|
78439
78924
|
tool$settlementsListChargebacks = {
|
|
@@ -78443,9 +78928,9 @@ var init_settlementsListChargebacks2 = __esm(() => {
|
|
|
78443
78928
|
Retrieve all chargebacks 'deducted' from the given settlement.
|
|
78444
78929
|
|
|
78445
78930
|
The response is in the same format as the response of the [List chargebacks endpoint](list-chargebacks).`,
|
|
78446
|
-
args:
|
|
78447
|
-
tool: async (client,
|
|
78448
|
-
const [result, apiCall] = await settlementsListChargebacks(client,
|
|
78931
|
+
args: args80,
|
|
78932
|
+
tool: async (client, args81, ctx) => {
|
|
78933
|
+
const [result, apiCall] = await settlementsListChargebacks(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78449
78934
|
if (!result.ok) {
|
|
78450
78935
|
return {
|
|
78451
78936
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78460,9 +78945,9 @@ The response is in the same format as the response of the [List chargebacks endp
|
|
|
78460
78945
|
|
|
78461
78946
|
// src/funcs/settlementsListPayments.ts
|
|
78462
78947
|
function settlementsListPayments(client, request, options) {
|
|
78463
|
-
return new APIPromise($
|
|
78948
|
+
return new APIPromise($do81(client, request, options));
|
|
78464
78949
|
}
|
|
78465
|
-
async function $
|
|
78950
|
+
async function $do81(client, request, options) {
|
|
78466
78951
|
const parsed = safeParse4(request, (value) => ListSettlementPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78467
78952
|
if (!parsed.ok) {
|
|
78468
78953
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78588,12 +79073,12 @@ var init_settlementsListPayments = __esm(() => {
|
|
|
78588
79073
|
});
|
|
78589
79074
|
|
|
78590
79075
|
// src/mcp-server/tools/settlementsListPayments.ts
|
|
78591
|
-
var
|
|
79076
|
+
var args81, tool$settlementsListPayments;
|
|
78592
79077
|
var init_settlementsListPayments2 = __esm(() => {
|
|
78593
79078
|
init_settlementsListPayments();
|
|
78594
79079
|
init_operations();
|
|
78595
79080
|
init_tools();
|
|
78596
|
-
|
|
79081
|
+
args81 = {
|
|
78597
79082
|
request: ListSettlementPaymentsRequest$inboundSchema
|
|
78598
79083
|
};
|
|
78599
79084
|
tool$settlementsListPayments = {
|
|
@@ -78606,9 +79091,9 @@ The response is in the same format as the response of the [List payments endpoin
|
|
|
78606
79091
|
|
|
78607
79092
|
For capture-based payment methods such as Klarna, the payments are not listed here. Refer to the
|
|
78608
79093
|
[List captures endpoint](list-captures) endpoint instead.`,
|
|
78609
|
-
args:
|
|
78610
|
-
tool: async (client,
|
|
78611
|
-
const [result, apiCall] = await settlementsListPayments(client,
|
|
79094
|
+
args: args81,
|
|
79095
|
+
tool: async (client, args82, ctx) => {
|
|
79096
|
+
const [result, apiCall] = await settlementsListPayments(client, args82.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78612
79097
|
if (!result.ok) {
|
|
78613
79098
|
return {
|
|
78614
79099
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78623,9 +79108,9 @@ For capture-based payment methods such as Klarna, the payments are not listed he
|
|
|
78623
79108
|
|
|
78624
79109
|
// src/funcs/settlementsListRefunds.ts
|
|
78625
79110
|
function settlementsListRefunds(client, request, options) {
|
|
78626
|
-
return new APIPromise($
|
|
79111
|
+
return new APIPromise($do82(client, request, options));
|
|
78627
79112
|
}
|
|
78628
|
-
async function $
|
|
79113
|
+
async function $do82(client, request, options) {
|
|
78629
79114
|
const parsed = safeParse4(request, (value) => ListSettlementRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78630
79115
|
if (!parsed.ok) {
|
|
78631
79116
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78750,12 +79235,12 @@ var init_settlementsListRefunds = __esm(() => {
|
|
|
78750
79235
|
});
|
|
78751
79236
|
|
|
78752
79237
|
// src/mcp-server/tools/settlementsListRefunds.ts
|
|
78753
|
-
var
|
|
79238
|
+
var args82, tool$settlementsListRefunds;
|
|
78754
79239
|
var init_settlementsListRefunds2 = __esm(() => {
|
|
78755
79240
|
init_settlementsListRefunds();
|
|
78756
79241
|
init_operations();
|
|
78757
79242
|
init_tools();
|
|
78758
|
-
|
|
79243
|
+
args82 = {
|
|
78759
79244
|
request: ListSettlementRefundsRequest$inboundSchema
|
|
78760
79245
|
};
|
|
78761
79246
|
tool$settlementsListRefunds = {
|
|
@@ -78765,9 +79250,9 @@ var init_settlementsListRefunds2 = __esm(() => {
|
|
|
78765
79250
|
Retrieve all refunds 'deducted' from the given settlement.
|
|
78766
79251
|
|
|
78767
79252
|
The response is in the same format as the response of the [List refunds endpoint](list-refunds).`,
|
|
78768
|
-
args:
|
|
78769
|
-
tool: async (client,
|
|
78770
|
-
const [result, apiCall] = await settlementsListRefunds(client,
|
|
79253
|
+
args: args82,
|
|
79254
|
+
tool: async (client, args83, ctx) => {
|
|
79255
|
+
const [result, apiCall] = await settlementsListRefunds(client, args83.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78771
79256
|
if (!result.ok) {
|
|
78772
79257
|
return {
|
|
78773
79258
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78782,9 +79267,9 @@ The response is in the same format as the response of the [List refunds endpoint
|
|
|
78782
79267
|
|
|
78783
79268
|
// src/funcs/subscriptionsAll.ts
|
|
78784
79269
|
function subscriptionsAll(client, request, options) {
|
|
78785
|
-
return new APIPromise($
|
|
79270
|
+
return new APIPromise($do83(client, request, options));
|
|
78786
79271
|
}
|
|
78787
|
-
async function $
|
|
79272
|
+
async function $do83(client, request, options) {
|
|
78788
79273
|
const parsed = safeParse4(request, (value) => ListAllSubscriptionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78789
79274
|
if (!parsed.ok) {
|
|
78790
79275
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78903,12 +79388,12 @@ var init_subscriptionsAll = __esm(() => {
|
|
|
78903
79388
|
});
|
|
78904
79389
|
|
|
78905
79390
|
// src/mcp-server/tools/subscriptionsAll.ts
|
|
78906
|
-
var
|
|
79391
|
+
var args83, tool$subscriptionsAll;
|
|
78907
79392
|
var init_subscriptionsAll2 = __esm(() => {
|
|
78908
79393
|
init_subscriptionsAll();
|
|
78909
79394
|
init_operations();
|
|
78910
79395
|
init_tools();
|
|
78911
|
-
|
|
79396
|
+
args83 = {
|
|
78912
79397
|
request: ListAllSubscriptionsRequest$inboundSchema.optional()
|
|
78913
79398
|
};
|
|
78914
79399
|
tool$subscriptionsAll = {
|
|
@@ -78918,9 +79403,9 @@ var init_subscriptionsAll2 = __esm(() => {
|
|
|
78918
79403
|
Retrieve all subscriptions initiated across all your customers.
|
|
78919
79404
|
|
|
78920
79405
|
The results are paginated.`,
|
|
78921
|
-
args:
|
|
78922
|
-
tool: async (client,
|
|
78923
|
-
const [result, apiCall] = await subscriptionsAll(client,
|
|
79406
|
+
args: args83,
|
|
79407
|
+
tool: async (client, args84, ctx) => {
|
|
79408
|
+
const [result, apiCall] = await subscriptionsAll(client, args84.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78924
79409
|
if (!result.ok) {
|
|
78925
79410
|
return {
|
|
78926
79411
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78935,9 +79420,9 @@ The results are paginated.`,
|
|
|
78935
79420
|
|
|
78936
79421
|
// src/funcs/subscriptionsCancel.ts
|
|
78937
79422
|
function subscriptionsCancel(client, request, options) {
|
|
78938
|
-
return new APIPromise($
|
|
79423
|
+
return new APIPromise($do84(client, request, options));
|
|
78939
79424
|
}
|
|
78940
|
-
async function $
|
|
79425
|
+
async function $do84(client, request, options) {
|
|
78941
79426
|
const parsed = safeParse4(request, (value) => CancelSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78942
79427
|
if (!parsed.ok) {
|
|
78943
79428
|
return [parsed, { status: "invalid" }];
|
|
@@ -79032,12 +79517,12 @@ var init_subscriptionsCancel = __esm(() => {
|
|
|
79032
79517
|
});
|
|
79033
79518
|
|
|
79034
79519
|
// src/mcp-server/tools/subscriptionsCancel.ts
|
|
79035
|
-
var
|
|
79520
|
+
var args84, tool$subscriptionsCancel;
|
|
79036
79521
|
var init_subscriptionsCancel2 = __esm(() => {
|
|
79037
79522
|
init_subscriptionsCancel();
|
|
79038
79523
|
init_operations();
|
|
79039
79524
|
init_tools();
|
|
79040
|
-
|
|
79525
|
+
args84 = {
|
|
79041
79526
|
request: CancelSubscriptionRequest$inboundSchema
|
|
79042
79527
|
};
|
|
79043
79528
|
tool$subscriptionsCancel = {
|
|
@@ -79045,9 +79530,9 @@ var init_subscriptionsCancel2 = __esm(() => {
|
|
|
79045
79530
|
description: `Cancel subscription
|
|
79046
79531
|
|
|
79047
79532
|
Cancel an existing subscription. Canceling a subscription has no effect on the mandates of the customer.`,
|
|
79048
|
-
args:
|
|
79049
|
-
tool: async (client,
|
|
79050
|
-
const [result, apiCall] = await subscriptionsCancel(client,
|
|
79533
|
+
args: args84,
|
|
79534
|
+
tool: async (client, args85, ctx) => {
|
|
79535
|
+
const [result, apiCall] = await subscriptionsCancel(client, args85.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79051
79536
|
if (!result.ok) {
|
|
79052
79537
|
return {
|
|
79053
79538
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79062,9 +79547,9 @@ Cancel an existing subscription. Canceling a subscription has no effect on the m
|
|
|
79062
79547
|
|
|
79063
79548
|
// src/funcs/subscriptionsCreate.ts
|
|
79064
79549
|
function subscriptionsCreate(client, request, options) {
|
|
79065
|
-
return new APIPromise($
|
|
79550
|
+
return new APIPromise($do85(client, request, options));
|
|
79066
79551
|
}
|
|
79067
|
-
async function $
|
|
79552
|
+
async function $do85(client, request, options) {
|
|
79068
79553
|
const parsed = safeParse4(request, (value) => CreateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79069
79554
|
if (!parsed.ok) {
|
|
79070
79555
|
return [parsed, { status: "invalid" }];
|
|
@@ -79157,12 +79642,12 @@ var init_subscriptionsCreate = __esm(() => {
|
|
|
79157
79642
|
});
|
|
79158
79643
|
|
|
79159
79644
|
// src/mcp-server/tools/subscriptionsCreate.ts
|
|
79160
|
-
var
|
|
79645
|
+
var args85, tool$subscriptionsCreate;
|
|
79161
79646
|
var init_subscriptionsCreate2 = __esm(() => {
|
|
79162
79647
|
init_subscriptionsCreate();
|
|
79163
79648
|
init_operations();
|
|
79164
79649
|
init_tools();
|
|
79165
|
-
|
|
79650
|
+
args85 = {
|
|
79166
79651
|
request: CreateSubscriptionRequest$inboundSchema
|
|
79167
79652
|
};
|
|
79168
79653
|
tool$subscriptionsCreate = {
|
|
@@ -79188,9 +79673,9 @@ Your customer will be charged €20 every day, for five consecutive days.
|
|
|
79188
79673
|
\`amount[currency]="EUR"\` \`amount[value]="10.00"\` \`interval="1 month"\`
|
|
79189
79674
|
\`startDate="2018-04-30"\`
|
|
79190
79675
|
Your customer will be charged €10 on the last day of each month, starting in April 2018.`,
|
|
79191
|
-
args:
|
|
79192
|
-
tool: async (client,
|
|
79193
|
-
const [result, apiCall] = await subscriptionsCreate(client,
|
|
79676
|
+
args: args85,
|
|
79677
|
+
tool: async (client, args86, ctx) => {
|
|
79678
|
+
const [result, apiCall] = await subscriptionsCreate(client, args86.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79194
79679
|
if (!result.ok) {
|
|
79195
79680
|
return {
|
|
79196
79681
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79205,9 +79690,9 @@ Your customer will be charged €10 on the last day of each month, starting in A
|
|
|
79205
79690
|
|
|
79206
79691
|
// src/funcs/subscriptionsGet.ts
|
|
79207
79692
|
function subscriptionsGet(client, request, options) {
|
|
79208
|
-
return new APIPromise($
|
|
79693
|
+
return new APIPromise($do86(client, request, options));
|
|
79209
79694
|
}
|
|
79210
|
-
async function $
|
|
79695
|
+
async function $do86(client, request, options) {
|
|
79211
79696
|
const parsed = safeParse4(request, (value) => GetSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79212
79697
|
if (!parsed.ok) {
|
|
79213
79698
|
return [parsed, { status: "invalid" }];
|
|
@@ -79305,12 +79790,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
79305
79790
|
});
|
|
79306
79791
|
|
|
79307
79792
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
79308
|
-
var
|
|
79793
|
+
var args86, tool$subscriptionsGet;
|
|
79309
79794
|
var init_subscriptionsGet2 = __esm(() => {
|
|
79310
79795
|
init_subscriptionsGet();
|
|
79311
79796
|
init_operations();
|
|
79312
79797
|
init_tools();
|
|
79313
|
-
|
|
79798
|
+
args86 = {
|
|
79314
79799
|
request: GetSubscriptionRequest$inboundSchema
|
|
79315
79800
|
};
|
|
79316
79801
|
tool$subscriptionsGet = {
|
|
@@ -79318,9 +79803,9 @@ var init_subscriptionsGet2 = __esm(() => {
|
|
|
79318
79803
|
description: `Get subscription
|
|
79319
79804
|
|
|
79320
79805
|
Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
79321
|
-
args:
|
|
79322
|
-
tool: async (client,
|
|
79323
|
-
const [result, apiCall] = await subscriptionsGet(client,
|
|
79806
|
+
args: args86,
|
|
79807
|
+
tool: async (client, args87, ctx) => {
|
|
79808
|
+
const [result, apiCall] = await subscriptionsGet(client, args87.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79324
79809
|
if (!result.ok) {
|
|
79325
79810
|
return {
|
|
79326
79811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79335,9 +79820,9 @@ Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
|
79335
79820
|
|
|
79336
79821
|
// src/funcs/subscriptionsList.ts
|
|
79337
79822
|
function subscriptionsList(client, request, options) {
|
|
79338
|
-
return new APIPromise($
|
|
79823
|
+
return new APIPromise($do87(client, request, options));
|
|
79339
79824
|
}
|
|
79340
|
-
async function $
|
|
79825
|
+
async function $do87(client, request, options) {
|
|
79341
79826
|
const parsed = safeParse4(request, (value) => ListSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79342
79827
|
if (!parsed.ok) {
|
|
79343
79828
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -79462,12 +79947,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
79462
79947
|
});
|
|
79463
79948
|
|
|
79464
79949
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
79465
|
-
var
|
|
79950
|
+
var args87, tool$subscriptionsList;
|
|
79466
79951
|
var init_subscriptionsList2 = __esm(() => {
|
|
79467
79952
|
init_subscriptionsList();
|
|
79468
79953
|
init_operations();
|
|
79469
79954
|
init_tools();
|
|
79470
|
-
|
|
79955
|
+
args87 = {
|
|
79471
79956
|
request: ListSubscriptionsRequest$inboundSchema
|
|
79472
79957
|
};
|
|
79473
79958
|
tool$subscriptionsList = {
|
|
@@ -79477,9 +79962,9 @@ var init_subscriptionsList2 = __esm(() => {
|
|
|
79477
79962
|
Retrieve all subscriptions of a customer.
|
|
79478
79963
|
|
|
79479
79964
|
The results are paginated.`,
|
|
79480
|
-
args:
|
|
79481
|
-
tool: async (client,
|
|
79482
|
-
const [result, apiCall] = await subscriptionsList(client,
|
|
79965
|
+
args: args87,
|
|
79966
|
+
tool: async (client, args88, ctx) => {
|
|
79967
|
+
const [result, apiCall] = await subscriptionsList(client, args88.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79483
79968
|
if (!result.ok) {
|
|
79484
79969
|
return {
|
|
79485
79970
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79494,9 +79979,9 @@ The results are paginated.`,
|
|
|
79494
79979
|
|
|
79495
79980
|
// src/funcs/subscriptionsListPayments.ts
|
|
79496
79981
|
function subscriptionsListPayments(client, request, options) {
|
|
79497
|
-
return new APIPromise($
|
|
79982
|
+
return new APIPromise($do88(client, request, options));
|
|
79498
79983
|
}
|
|
79499
|
-
async function $
|
|
79984
|
+
async function $do88(client, request, options) {
|
|
79500
79985
|
const parsed = safeParse4(request, (value) => ListSubscriptionPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79501
79986
|
if (!parsed.ok) {
|
|
79502
79987
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -79626,12 +80111,12 @@ var init_subscriptionsListPayments = __esm(() => {
|
|
|
79626
80111
|
});
|
|
79627
80112
|
|
|
79628
80113
|
// src/mcp-server/tools/subscriptionsListPayments.ts
|
|
79629
|
-
var
|
|
80114
|
+
var args88, tool$subscriptionsListPayments;
|
|
79630
80115
|
var init_subscriptionsListPayments2 = __esm(() => {
|
|
79631
80116
|
init_subscriptionsListPayments();
|
|
79632
80117
|
init_operations();
|
|
79633
80118
|
init_tools();
|
|
79634
|
-
|
|
80119
|
+
args88 = {
|
|
79635
80120
|
request: ListSubscriptionPaymentsRequest$inboundSchema
|
|
79636
80121
|
};
|
|
79637
80122
|
tool$subscriptionsListPayments = {
|
|
@@ -79641,9 +80126,9 @@ var init_subscriptionsListPayments2 = __esm(() => {
|
|
|
79641
80126
|
Retrieve all payments of a specific subscription.
|
|
79642
80127
|
|
|
79643
80128
|
The results are paginated.`,
|
|
79644
|
-
args:
|
|
79645
|
-
tool: async (client,
|
|
79646
|
-
const [result, apiCall] = await subscriptionsListPayments(client,
|
|
80129
|
+
args: args88,
|
|
80130
|
+
tool: async (client, args89, ctx) => {
|
|
80131
|
+
const [result, apiCall] = await subscriptionsListPayments(client, args89.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79647
80132
|
if (!result.ok) {
|
|
79648
80133
|
return {
|
|
79649
80134
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79658,9 +80143,9 @@ The results are paginated.`,
|
|
|
79658
80143
|
|
|
79659
80144
|
// src/funcs/subscriptionsUpdate.ts
|
|
79660
80145
|
function subscriptionsUpdate(client, request, options) {
|
|
79661
|
-
return new APIPromise($
|
|
80146
|
+
return new APIPromise($do89(client, request, options));
|
|
79662
80147
|
}
|
|
79663
|
-
async function $
|
|
80148
|
+
async function $do89(client, request, options) {
|
|
79664
80149
|
const parsed = safeParse4(request, (value) => UpdateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79665
80150
|
if (!parsed.ok) {
|
|
79666
80151
|
return [parsed, { status: "invalid" }];
|
|
@@ -79755,12 +80240,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
79755
80240
|
});
|
|
79756
80241
|
|
|
79757
80242
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
79758
|
-
var
|
|
80243
|
+
var args89, tool$subscriptionsUpdate;
|
|
79759
80244
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
79760
80245
|
init_subscriptionsUpdate();
|
|
79761
80246
|
init_operations();
|
|
79762
80247
|
init_tools();
|
|
79763
|
-
|
|
80248
|
+
args89 = {
|
|
79764
80249
|
request: UpdateSubscriptionRequest$inboundSchema
|
|
79765
80250
|
};
|
|
79766
80251
|
tool$subscriptionsUpdate = {
|
|
@@ -79772,9 +80257,9 @@ Update an existing subscription.
|
|
|
79772
80257
|
Canceled subscriptions cannot be updated.
|
|
79773
80258
|
|
|
79774
80259
|
For an in-depth explanation of each parameter, refer to the [Create subscription](create-subscription) endpoint.`,
|
|
79775
|
-
args:
|
|
79776
|
-
tool: async (client,
|
|
79777
|
-
const [result, apiCall] = await subscriptionsUpdate(client,
|
|
80260
|
+
args: args89,
|
|
80261
|
+
tool: async (client, args90, ctx) => {
|
|
80262
|
+
const [result, apiCall] = await subscriptionsUpdate(client, args90.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79778
80263
|
if (!result.ok) {
|
|
79779
80264
|
return {
|
|
79780
80265
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79789,9 +80274,9 @@ For an in-depth explanation of each parameter, refer to the [Create subscription
|
|
|
79789
80274
|
|
|
79790
80275
|
// src/funcs/terminalsGet.ts
|
|
79791
80276
|
function terminalsGet(client, request, options) {
|
|
79792
|
-
return new APIPromise($
|
|
80277
|
+
return new APIPromise($do90(client, request, options));
|
|
79793
80278
|
}
|
|
79794
|
-
async function $
|
|
80279
|
+
async function $do90(client, request, options) {
|
|
79795
80280
|
const parsed = safeParse4(request, (value) => GetTerminalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79796
80281
|
if (!parsed.ok) {
|
|
79797
80282
|
return [parsed, { status: "invalid" }];
|
|
@@ -79885,12 +80370,12 @@ var init_terminalsGet = __esm(() => {
|
|
|
79885
80370
|
});
|
|
79886
80371
|
|
|
79887
80372
|
// src/mcp-server/tools/terminalsGet.ts
|
|
79888
|
-
var
|
|
80373
|
+
var args90, tool$terminalsGet;
|
|
79889
80374
|
var init_terminalsGet2 = __esm(() => {
|
|
79890
80375
|
init_terminalsGet();
|
|
79891
80376
|
init_operations();
|
|
79892
80377
|
init_tools();
|
|
79893
|
-
|
|
80378
|
+
args90 = {
|
|
79894
80379
|
request: GetTerminalRequest$inboundSchema
|
|
79895
80380
|
};
|
|
79896
80381
|
tool$terminalsGet = {
|
|
@@ -79898,9 +80383,9 @@ var init_terminalsGet2 = __esm(() => {
|
|
|
79898
80383
|
description: `Get terminal
|
|
79899
80384
|
|
|
79900
80385
|
Retrieve a single terminal by its ID.`,
|
|
79901
|
-
args:
|
|
79902
|
-
tool: async (client,
|
|
79903
|
-
const [result, apiCall] = await terminalsGet(client,
|
|
80386
|
+
args: args90,
|
|
80387
|
+
tool: async (client, args91, ctx) => {
|
|
80388
|
+
const [result, apiCall] = await terminalsGet(client, args91.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79904
80389
|
if (!result.ok) {
|
|
79905
80390
|
return {
|
|
79906
80391
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79915,9 +80400,9 @@ Retrieve a single terminal by its ID.`,
|
|
|
79915
80400
|
|
|
79916
80401
|
// src/funcs/terminalsList.ts
|
|
79917
80402
|
function terminalsList(client, request, options) {
|
|
79918
|
-
return new APIPromise($
|
|
80403
|
+
return new APIPromise($do91(client, request, options));
|
|
79919
80404
|
}
|
|
79920
|
-
async function $
|
|
80405
|
+
async function $do91(client, request, options) {
|
|
79921
80406
|
const parsed = safeParse4(request, (value) => ListTerminalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79922
80407
|
if (!parsed.ok) {
|
|
79923
80408
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -80036,12 +80521,12 @@ var init_terminalsList = __esm(() => {
|
|
|
80036
80521
|
});
|
|
80037
80522
|
|
|
80038
80523
|
// src/mcp-server/tools/terminalsList.ts
|
|
80039
|
-
var
|
|
80524
|
+
var args91, tool$terminalsList;
|
|
80040
80525
|
var init_terminalsList2 = __esm(() => {
|
|
80041
80526
|
init_terminalsList();
|
|
80042
80527
|
init_operations();
|
|
80043
80528
|
init_tools();
|
|
80044
|
-
|
|
80529
|
+
args91 = {
|
|
80045
80530
|
request: ListTerminalsRequest$inboundSchema.optional()
|
|
80046
80531
|
};
|
|
80047
80532
|
tool$terminalsList = {
|
|
@@ -80051,9 +80536,9 @@ var init_terminalsList2 = __esm(() => {
|
|
|
80051
80536
|
Retrieve a list of all physical point-of-sale devices.
|
|
80052
80537
|
|
|
80053
80538
|
The results are paginated.`,
|
|
80054
|
-
args:
|
|
80055
|
-
tool: async (client,
|
|
80056
|
-
const [result, apiCall] = await terminalsList(client,
|
|
80539
|
+
args: args91,
|
|
80540
|
+
tool: async (client, args92, ctx) => {
|
|
80541
|
+
const [result, apiCall] = await terminalsList(client, args92.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80057
80542
|
if (!result.ok) {
|
|
80058
80543
|
return {
|
|
80059
80544
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80068,9 +80553,9 @@ The results are paginated.`,
|
|
|
80068
80553
|
|
|
80069
80554
|
// src/funcs/walletsRequestApplePaySession.ts
|
|
80070
80555
|
function walletsRequestApplePaySession(client, request, options) {
|
|
80071
|
-
return new APIPromise($
|
|
80556
|
+
return new APIPromise($do92(client, request, options));
|
|
80072
80557
|
}
|
|
80073
|
-
async function $
|
|
80558
|
+
async function $do92(client, request, options) {
|
|
80074
80559
|
const parsed = safeParse4(request, (value) => RequestApplePayPaymentSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80075
80560
|
if (!parsed.ok) {
|
|
80076
80561
|
return [parsed, { status: "invalid" }];
|
|
@@ -80153,12 +80638,12 @@ var init_walletsRequestApplePaySession = __esm(() => {
|
|
|
80153
80638
|
});
|
|
80154
80639
|
|
|
80155
80640
|
// src/mcp-server/tools/walletsRequestApplePaySession.ts
|
|
80156
|
-
var
|
|
80641
|
+
var args92, tool$walletsRequestApplePaySession;
|
|
80157
80642
|
var init_walletsRequestApplePaySession2 = __esm(() => {
|
|
80158
80643
|
init_walletsRequestApplePaySession();
|
|
80159
80644
|
init_operations();
|
|
80160
80645
|
init_tools();
|
|
80161
|
-
|
|
80646
|
+
args92 = {
|
|
80162
80647
|
request: RequestApplePayPaymentSessionRequest$inboundSchema.optional()
|
|
80163
80648
|
};
|
|
80164
80649
|
tool$walletsRequestApplePaySession = {
|
|
@@ -80184,9 +80669,9 @@ expire after five minutes.
|
|
|
80184
80669
|
Payment sessions cannot be requested directly from the browser. The request must be sent from your server. For the
|
|
80185
80670
|
full documentation, see the official
|
|
80186
80671
|
[Apple Pay JS API](https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api) documentation.`,
|
|
80187
|
-
args:
|
|
80188
|
-
tool: async (client,
|
|
80189
|
-
const [result, apiCall] = await walletsRequestApplePaySession(client,
|
|
80672
|
+
args: args92,
|
|
80673
|
+
tool: async (client, args93, ctx) => {
|
|
80674
|
+
const [result, apiCall] = await walletsRequestApplePaySession(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80190
80675
|
if (!result.ok) {
|
|
80191
80676
|
return {
|
|
80192
80677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80201,9 +80686,9 @@ full documentation, see the official
|
|
|
80201
80686
|
|
|
80202
80687
|
// src/funcs/webhookEventsGet.ts
|
|
80203
80688
|
function webhookEventsGet(client, request, options) {
|
|
80204
|
-
return new APIPromise($
|
|
80689
|
+
return new APIPromise($do93(client, request, options));
|
|
80205
80690
|
}
|
|
80206
|
-
async function $
|
|
80691
|
+
async function $do93(client, request, options) {
|
|
80207
80692
|
const parsed = safeParse4(request, (value) => GetWebhookEventRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80208
80693
|
if (!parsed.ok) {
|
|
80209
80694
|
return [parsed, { status: "invalid" }];
|
|
@@ -80297,12 +80782,12 @@ var init_webhookEventsGet = __esm(() => {
|
|
|
80297
80782
|
});
|
|
80298
80783
|
|
|
80299
80784
|
// src/mcp-server/tools/webhookEventsGet.ts
|
|
80300
|
-
var
|
|
80785
|
+
var args93, tool$webhookEventsGet;
|
|
80301
80786
|
var init_webhookEventsGet2 = __esm(() => {
|
|
80302
80787
|
init_webhookEventsGet();
|
|
80303
80788
|
init_operations();
|
|
80304
80789
|
init_tools();
|
|
80305
|
-
|
|
80790
|
+
args93 = {
|
|
80306
80791
|
request: GetWebhookEventRequest$inboundSchema
|
|
80307
80792
|
};
|
|
80308
80793
|
tool$webhookEventsGet = {
|
|
@@ -80310,9 +80795,9 @@ var init_webhookEventsGet2 = __esm(() => {
|
|
|
80310
80795
|
description: `Get a Webhook Event
|
|
80311
80796
|
|
|
80312
80797
|
Retrieve a single webhook event object by its event ID.`,
|
|
80313
|
-
args:
|
|
80314
|
-
tool: async (client,
|
|
80315
|
-
const [result, apiCall] = await webhookEventsGet(client,
|
|
80798
|
+
args: args93,
|
|
80799
|
+
tool: async (client, args94, ctx) => {
|
|
80800
|
+
const [result, apiCall] = await webhookEventsGet(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80316
80801
|
if (!result.ok) {
|
|
80317
80802
|
return {
|
|
80318
80803
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80327,9 +80812,9 @@ Retrieve a single webhook event object by its event ID.`,
|
|
|
80327
80812
|
|
|
80328
80813
|
// src/funcs/webhooksCreate.ts
|
|
80329
80814
|
function webhooksCreate(client, request, options) {
|
|
80330
|
-
return new APIPromise($
|
|
80815
|
+
return new APIPromise($do94(client, request, options));
|
|
80331
80816
|
}
|
|
80332
|
-
async function $
|
|
80817
|
+
async function $do94(client, request, options) {
|
|
80333
80818
|
const parsed = safeParse4(request, (value) => CreateWebhookRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80334
80819
|
if (!parsed.ok) {
|
|
80335
80820
|
return [parsed, { status: "invalid" }];
|
|
@@ -80414,12 +80899,12 @@ var init_webhooksCreate = __esm(() => {
|
|
|
80414
80899
|
});
|
|
80415
80900
|
|
|
80416
80901
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
80417
|
-
var
|
|
80902
|
+
var args94, tool$webhooksCreate;
|
|
80418
80903
|
var init_webhooksCreate2 = __esm(() => {
|
|
80419
80904
|
init_webhooksCreate();
|
|
80420
80905
|
init_operations();
|
|
80421
80906
|
init_tools();
|
|
80422
|
-
|
|
80907
|
+
args94 = {
|
|
80423
80908
|
request: CreateWebhookRequest$inboundSchema.optional()
|
|
80424
80909
|
};
|
|
80425
80910
|
tool$webhooksCreate = {
|
|
@@ -80427,9 +80912,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
80427
80912
|
description: `Create a webhook
|
|
80428
80913
|
|
|
80429
80914
|
A webhook must have a name, an url and a list of event types. You can also create webhooks in the webhooks settings section of the Dashboard.`,
|
|
80430
|
-
args:
|
|
80431
|
-
tool: async (client,
|
|
80432
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
80915
|
+
args: args94,
|
|
80916
|
+
tool: async (client, args95, ctx) => {
|
|
80917
|
+
const [result, apiCall] = await webhooksCreate(client, args95.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80433
80918
|
if (!result.ok) {
|
|
80434
80919
|
return {
|
|
80435
80920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80444,9 +80929,9 @@ A webhook must have a name, an url and a list of event types. You can also creat
|
|
|
80444
80929
|
|
|
80445
80930
|
// src/funcs/webhooksDelete.ts
|
|
80446
80931
|
function webhooksDelete(client, request, options) {
|
|
80447
|
-
return new APIPromise($
|
|
80932
|
+
return new APIPromise($do95(client, request, options));
|
|
80448
80933
|
}
|
|
80449
|
-
async function $
|
|
80934
|
+
async function $do95(client, request, options) {
|
|
80450
80935
|
const parsed = safeParse4(request, (value) => DeleteWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80451
80936
|
if (!parsed.ok) {
|
|
80452
80937
|
return [parsed, { status: "invalid" }];
|
|
@@ -80535,12 +81020,12 @@ var init_webhooksDelete = __esm(() => {
|
|
|
80535
81020
|
});
|
|
80536
81021
|
|
|
80537
81022
|
// src/mcp-server/tools/webhooksDelete.ts
|
|
80538
|
-
var
|
|
81023
|
+
var args95, tool$webhooksDelete;
|
|
80539
81024
|
var init_webhooksDelete2 = __esm(() => {
|
|
80540
81025
|
init_webhooksDelete();
|
|
80541
81026
|
init_operations();
|
|
80542
81027
|
init_tools();
|
|
80543
|
-
|
|
81028
|
+
args95 = {
|
|
80544
81029
|
request: DeleteWebhookRequest$inboundSchema
|
|
80545
81030
|
};
|
|
80546
81031
|
tool$webhooksDelete = {
|
|
@@ -80548,9 +81033,9 @@ var init_webhooksDelete2 = __esm(() => {
|
|
|
80548
81033
|
description: `Delete a webhook
|
|
80549
81034
|
|
|
80550
81035
|
Delete a single webhook object by its webhook ID.`,
|
|
80551
|
-
args:
|
|
80552
|
-
tool: async (client,
|
|
80553
|
-
const [result, apiCall] = await webhooksDelete(client,
|
|
81036
|
+
args: args95,
|
|
81037
|
+
tool: async (client, args96, ctx) => {
|
|
81038
|
+
const [result, apiCall] = await webhooksDelete(client, args96.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80554
81039
|
if (!result.ok) {
|
|
80555
81040
|
return {
|
|
80556
81041
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80564,9 +81049,9 @@ Delete a single webhook object by its webhook ID.`,
|
|
|
80564
81049
|
|
|
80565
81050
|
// src/funcs/webhooksGet.ts
|
|
80566
81051
|
function webhooksGet(client, request, options) {
|
|
80567
|
-
return new APIPromise($
|
|
81052
|
+
return new APIPromise($do96(client, request, options));
|
|
80568
81053
|
}
|
|
80569
|
-
async function $
|
|
81054
|
+
async function $do96(client, request, options) {
|
|
80570
81055
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80571
81056
|
if (!parsed.ok) {
|
|
80572
81057
|
return [parsed, { status: "invalid" }];
|
|
@@ -80660,12 +81145,12 @@ var init_webhooksGet = __esm(() => {
|
|
|
80660
81145
|
});
|
|
80661
81146
|
|
|
80662
81147
|
// src/mcp-server/tools/webhooksGet.ts
|
|
80663
|
-
var
|
|
81148
|
+
var args96, tool$webhooksGet;
|
|
80664
81149
|
var init_webhooksGet2 = __esm(() => {
|
|
80665
81150
|
init_webhooksGet();
|
|
80666
81151
|
init_operations();
|
|
80667
81152
|
init_tools();
|
|
80668
|
-
|
|
81153
|
+
args96 = {
|
|
80669
81154
|
request: GetWebhookRequest$inboundSchema
|
|
80670
81155
|
};
|
|
80671
81156
|
tool$webhooksGet = {
|
|
@@ -80673,9 +81158,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
80673
81158
|
description: `Get a webhook
|
|
80674
81159
|
|
|
80675
81160
|
Retrieve a single webhook object by its ID.`,
|
|
80676
|
-
args:
|
|
80677
|
-
tool: async (client,
|
|
80678
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
81161
|
+
args: args96,
|
|
81162
|
+
tool: async (client, args97, ctx) => {
|
|
81163
|
+
const [result, apiCall] = await webhooksGet(client, args97.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80679
81164
|
if (!result.ok) {
|
|
80680
81165
|
return {
|
|
80681
81166
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80690,9 +81175,9 @@ Retrieve a single webhook object by its ID.`,
|
|
|
80690
81175
|
|
|
80691
81176
|
// src/funcs/webhooksList.ts
|
|
80692
81177
|
function webhooksList(client, request, options) {
|
|
80693
|
-
return new APIPromise($
|
|
81178
|
+
return new APIPromise($do97(client, request, options));
|
|
80694
81179
|
}
|
|
80695
|
-
async function $
|
|
81180
|
+
async function $do97(client, request, options) {
|
|
80696
81181
|
const parsed = safeParse4(request, (value) => ListWebhooksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80697
81182
|
if (!parsed.ok) {
|
|
80698
81183
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -80812,12 +81297,12 @@ var init_webhooksList = __esm(() => {
|
|
|
80812
81297
|
});
|
|
80813
81298
|
|
|
80814
81299
|
// src/mcp-server/tools/webhooksList.ts
|
|
80815
|
-
var
|
|
81300
|
+
var args97, tool$webhooksList;
|
|
80816
81301
|
var init_webhooksList2 = __esm(() => {
|
|
80817
81302
|
init_webhooksList();
|
|
80818
81303
|
init_operations();
|
|
80819
81304
|
init_tools();
|
|
80820
|
-
|
|
81305
|
+
args97 = {
|
|
80821
81306
|
request: ListWebhooksRequest$inboundSchema.optional()
|
|
80822
81307
|
};
|
|
80823
81308
|
tool$webhooksList = {
|
|
@@ -80825,9 +81310,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
80825
81310
|
description: `List all webhooks
|
|
80826
81311
|
|
|
80827
81312
|
Returns a paginated list of your webhooks. If no webhook endpoints are available, the resulting array will be empty. This request should never throw an error.`,
|
|
80828
|
-
args:
|
|
80829
|
-
tool: async (client,
|
|
80830
|
-
const [result, apiCall] = await webhooksList(client,
|
|
81313
|
+
args: args97,
|
|
81314
|
+
tool: async (client, args98, ctx) => {
|
|
81315
|
+
const [result, apiCall] = await webhooksList(client, args98.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80831
81316
|
if (!result.ok) {
|
|
80832
81317
|
return {
|
|
80833
81318
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80842,9 +81327,9 @@ Returns a paginated list of your webhooks. If no webhook endpoints are available
|
|
|
80842
81327
|
|
|
80843
81328
|
// src/funcs/webhooksTest.ts
|
|
80844
81329
|
function webhooksTest(client, request, options) {
|
|
80845
|
-
return new APIPromise($
|
|
81330
|
+
return new APIPromise($do98(client, request, options));
|
|
80846
81331
|
}
|
|
80847
|
-
async function $
|
|
81332
|
+
async function $do98(client, request, options) {
|
|
80848
81333
|
const parsed = safeParse4(request, (value) => TestWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80849
81334
|
if (!parsed.ok) {
|
|
80850
81335
|
return [parsed, { status: "invalid" }];
|
|
@@ -80933,12 +81418,12 @@ var init_webhooksTest = __esm(() => {
|
|
|
80933
81418
|
});
|
|
80934
81419
|
|
|
80935
81420
|
// src/mcp-server/tools/webhooksTest.ts
|
|
80936
|
-
var
|
|
81421
|
+
var args98, tool$webhooksTest;
|
|
80937
81422
|
var init_webhooksTest2 = __esm(() => {
|
|
80938
81423
|
init_webhooksTest();
|
|
80939
81424
|
init_operations();
|
|
80940
81425
|
init_tools();
|
|
80941
|
-
|
|
81426
|
+
args98 = {
|
|
80942
81427
|
request: TestWebhookRequest$inboundSchema
|
|
80943
81428
|
};
|
|
80944
81429
|
tool$webhooksTest = {
|
|
@@ -80946,9 +81431,9 @@ var init_webhooksTest2 = __esm(() => {
|
|
|
80946
81431
|
description: `Test a webhook
|
|
80947
81432
|
|
|
80948
81433
|
Sends a test event to the webhook to verify the endpoint is working as expected.`,
|
|
80949
|
-
args:
|
|
80950
|
-
tool: async (client,
|
|
80951
|
-
const [result, apiCall] = await webhooksTest(client,
|
|
81434
|
+
args: args98,
|
|
81435
|
+
tool: async (client, args99, ctx) => {
|
|
81436
|
+
const [result, apiCall] = await webhooksTest(client, args99.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80952
81437
|
if (!result.ok) {
|
|
80953
81438
|
return {
|
|
80954
81439
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80962,9 +81447,9 @@ Sends a test event to the webhook to verify the endpoint is working as expected.
|
|
|
80962
81447
|
|
|
80963
81448
|
// src/funcs/webhooksUpdate.ts
|
|
80964
81449
|
function webhooksUpdate(client, request, options) {
|
|
80965
|
-
return new APIPromise($
|
|
81450
|
+
return new APIPromise($do99(client, request, options));
|
|
80966
81451
|
}
|
|
80967
|
-
async function $
|
|
81452
|
+
async function $do99(client, request, options) {
|
|
80968
81453
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80969
81454
|
if (!parsed.ok) {
|
|
80970
81455
|
return [parsed, { status: "invalid" }];
|
|
@@ -81055,12 +81540,12 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
81055
81540
|
});
|
|
81056
81541
|
|
|
81057
81542
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
81058
|
-
var
|
|
81543
|
+
var args99, tool$webhooksUpdate;
|
|
81059
81544
|
var init_webhooksUpdate2 = __esm(() => {
|
|
81060
81545
|
init_webhooksUpdate();
|
|
81061
81546
|
init_operations();
|
|
81062
81547
|
init_tools();
|
|
81063
|
-
|
|
81548
|
+
args99 = {
|
|
81064
81549
|
request: UpdateWebhookRequest$inboundSchema
|
|
81065
81550
|
};
|
|
81066
81551
|
tool$webhooksUpdate = {
|
|
@@ -81068,9 +81553,9 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
81068
81553
|
description: `Update a webhook
|
|
81069
81554
|
|
|
81070
81555
|
Updates the webhook. You may edit the name, url and the list of subscribed event types.`,
|
|
81071
|
-
args:
|
|
81072
|
-
tool: async (client,
|
|
81073
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
81556
|
+
args: args99,
|
|
81557
|
+
tool: async (client, args100, ctx) => {
|
|
81558
|
+
const [result, apiCall] = await webhooksUpdate(client, args100.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81074
81559
|
if (!result.ok) {
|
|
81075
81560
|
return {
|
|
81076
81561
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -81087,7 +81572,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
81087
81572
|
function createMCPServer(deps) {
|
|
81088
81573
|
const server = new McpServer({
|
|
81089
81574
|
name: "Client",
|
|
81090
|
-
version: "1.2.
|
|
81575
|
+
version: "1.2.3"
|
|
81091
81576
|
});
|
|
81092
81577
|
const client = new ClientCore({
|
|
81093
81578
|
security: deps.security,
|
|
@@ -81152,6 +81637,8 @@ function createMCPServer(deps) {
|
|
|
81152
81637
|
tool(tool$paymentsUpdate);
|
|
81153
81638
|
tool(tool$paymentsCancel);
|
|
81154
81639
|
tool(tool$paymentsReleaseAuthorization);
|
|
81640
|
+
tool(tool$sessionsCreate);
|
|
81641
|
+
tool(tool$sessionsGet);
|
|
81155
81642
|
tool(tool$methodsList);
|
|
81156
81643
|
tool(tool$methodsAll);
|
|
81157
81644
|
tool(tool$methodsGet);
|
|
@@ -81280,6 +81767,8 @@ var init_server2 = __esm(() => {
|
|
|
81280
81767
|
init_salesInvoicesGet2();
|
|
81281
81768
|
init_salesInvoicesList2();
|
|
81282
81769
|
init_salesInvoicesUpdate2();
|
|
81770
|
+
init_sessionsCreate2();
|
|
81771
|
+
init_sessionsGet2();
|
|
81283
81772
|
init_settlementsGet2();
|
|
81284
81773
|
init_settlementsGetNext2();
|
|
81285
81774
|
init_settlementsGetOpen2();
|
|
@@ -82517,7 +83006,7 @@ var routes = an({
|
|
|
82517
83006
|
var app = He(routes, {
|
|
82518
83007
|
name: "mcp",
|
|
82519
83008
|
versionInfo: {
|
|
82520
|
-
currentVersion: "1.2.
|
|
83009
|
+
currentVersion: "1.2.3"
|
|
82521
83010
|
}
|
|
82522
83011
|
});
|
|
82523
83012
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82525,5 +83014,5 @@ export {
|
|
|
82525
83014
|
app
|
|
82526
83015
|
};
|
|
82527
83016
|
|
|
82528
|
-
//# debugId=
|
|
83017
|
+
//# debugId=120631E96E38270564756E2164756E21
|
|
82529
83018
|
//# sourceMappingURL=mcp-server.js.map
|