mollie-api-typescript 0.2.3 → 0.2.5
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/README.md +6 -10
- package/bin/mcp-server.js +94 -13
- package/bin/mcp-server.js.map +9 -9
- 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.js +1 -1
- package/dist/commonjs/models/entitysalesinvoice.d.ts +10 -0
- package/dist/commonjs/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoice.js +2 -0
- package/dist/commonjs/models/entitysalesinvoice.js.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts +20 -0
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.js +6 -0
- package/dist/commonjs/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/entitysettlement.d.ts +194 -2
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js +144 -3
- package/dist/commonjs/models/entitysettlement.js.map +1 -1
- package/dist/commonjs/models/updatevaluessalesinvoice.d.ts +10 -0
- package/dist/commonjs/models/updatevaluessalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/updatevaluessalesinvoice.js +2 -0
- package/dist/commonjs/models/updatevaluessalesinvoice.js.map +1 -1
- 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.js +1 -1
- package/dist/esm/models/entitysalesinvoice.d.ts +10 -0
- package/dist/esm/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoice.js +2 -0
- package/dist/esm/models/entitysalesinvoice.js.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts +20 -0
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.js +6 -0
- package/dist/esm/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/entitysettlement.d.ts +194 -2
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js +135 -2
- package/dist/esm/models/entitysettlement.js.map +1 -1
- package/dist/esm/models/updatevaluessalesinvoice.d.ts +10 -0
- package/dist/esm/models/updatevaluessalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/updatevaluessalesinvoice.js +2 -0
- package/dist/esm/models/updatevaluessalesinvoice.js.map +1 -1
- package/docs/sdks/salesinvoices/README.md +4 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/entitysalesinvoice.ts +12 -0
- package/src/models/entitysalesinvoiceresponse.ts +26 -0
- package/src/models/entitysettlement.ts +324 -4
- package/src/models/updatevaluessalesinvoice.ts +12 -0
package/README.md
CHANGED
|
@@ -254,27 +254,23 @@ let idempotencyKey = '<some-idempotency-key>';
|
|
|
254
254
|
let payload = {
|
|
255
255
|
description: "Description",
|
|
256
256
|
amount: {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
currency: "EUR",
|
|
258
|
+
value: "5.00",
|
|
259
259
|
},
|
|
260
260
|
redirectUrl: "https://example.org/redirect",
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
let payment1 = await client.payments.create(
|
|
264
|
-
{paymentRequest: payload},
|
|
265
264
|
{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
265
|
+
paymentRequest: payload,
|
|
266
|
+
idempotencyKey: idempotencyKey
|
|
269
267
|
}
|
|
270
268
|
);
|
|
271
269
|
|
|
272
270
|
let payment2 = await client.payments.create(
|
|
273
|
-
{paymentRequest: payload},
|
|
274
271
|
{
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
272
|
+
paymentRequest: payload,
|
|
273
|
+
idempotencyKey: idempotencyKey
|
|
278
274
|
}
|
|
279
275
|
);
|
|
280
276
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -34295,9 +34295,9 @@ var init_config = __esm(() => {
|
|
|
34295
34295
|
SDK_METADATA = {
|
|
34296
34296
|
language: "typescript",
|
|
34297
34297
|
openapiDocVersion: "1.0.0",
|
|
34298
|
-
sdkVersion: "0.2.
|
|
34299
|
-
genVersion: "2.
|
|
34300
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
34298
|
+
sdkVersion: "0.2.5",
|
|
34299
|
+
genVersion: "2.707.0",
|
|
34300
|
+
userAgent: "speakeasy-sdk/typescript 0.2.5 2.707.0 1.0.0 mollie-api-typescript"
|
|
34301
34301
|
};
|
|
34302
34302
|
});
|
|
34303
34303
|
|
|
@@ -39852,6 +39852,7 @@ var init_entitysalesinvoice = __esm(() => {
|
|
|
39852
39852
|
recipient: nullableType(SalesInvoiceRecipient$inboundSchema).optional(),
|
|
39853
39853
|
lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)).optional(),
|
|
39854
39854
|
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional(),
|
|
39855
|
+
isEInvoice: booleanType().optional(),
|
|
39855
39856
|
amountDue: Amount$inboundSchema.optional(),
|
|
39856
39857
|
subtotalAmount: Amount$inboundSchema.optional(),
|
|
39857
39858
|
totalAmount: Amount$inboundSchema.optional(),
|
|
@@ -39876,6 +39877,7 @@ var init_entitysalesinvoice = __esm(() => {
|
|
|
39876
39877
|
recipient: nullableType(SalesInvoiceRecipient$outboundSchema).optional(),
|
|
39877
39878
|
lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)).optional(),
|
|
39878
39879
|
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional(),
|
|
39880
|
+
isEInvoice: booleanType().optional(),
|
|
39879
39881
|
amountDue: Amount$outboundSchema.optional(),
|
|
39880
39882
|
subtotalAmount: Amount$outboundSchema.optional(),
|
|
39881
39883
|
totalAmount: Amount$outboundSchema.optional(),
|
|
@@ -40216,13 +40218,17 @@ var init_entitysalesinvoiceresponse = __esm(() => {
|
|
|
40216
40218
|
self: Url$inboundSchema.optional(),
|
|
40217
40219
|
invoicePayment: Url$inboundSchema.optional(),
|
|
40218
40220
|
pdfLink: Url$inboundSchema.optional(),
|
|
40219
|
-
documentation: Url$inboundSchema.optional()
|
|
40221
|
+
documentation: Url$inboundSchema.optional(),
|
|
40222
|
+
next: Url$inboundSchema.optional(),
|
|
40223
|
+
previous: Url$inboundSchema.optional()
|
|
40220
40224
|
});
|
|
40221
40225
|
EntitySalesInvoiceResponseLinks$outboundSchema = objectType({
|
|
40222
40226
|
self: Url$outboundSchema.optional(),
|
|
40223
40227
|
invoicePayment: Url$outboundSchema.optional(),
|
|
40224
40228
|
pdfLink: Url$outboundSchema.optional(),
|
|
40225
|
-
documentation: Url$outboundSchema.optional()
|
|
40229
|
+
documentation: Url$outboundSchema.optional(),
|
|
40230
|
+
next: Url$outboundSchema.optional(),
|
|
40231
|
+
previous: Url$outboundSchema.optional()
|
|
40226
40232
|
});
|
|
40227
40233
|
((EntitySalesInvoiceResponseLinks$) => {
|
|
40228
40234
|
EntitySalesInvoiceResponseLinks$.inboundSchema = EntitySalesInvoiceResponseLinks$inboundSchema;
|
|
@@ -40246,6 +40252,7 @@ var init_entitysalesinvoiceresponse = __esm(() => {
|
|
|
40246
40252
|
recipient: nullableType(SalesInvoiceRecipientResponse$inboundSchema).optional(),
|
|
40247
40253
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$inboundSchema)).optional(),
|
|
40248
40254
|
discount: nullableType(SalesInvoiceDiscountResponse$inboundSchema).optional(),
|
|
40255
|
+
isEInvoice: booleanType().optional(),
|
|
40249
40256
|
amountDue: Amount$inboundSchema.optional(),
|
|
40250
40257
|
subtotalAmount: Amount$inboundSchema.optional(),
|
|
40251
40258
|
totalAmount: Amount$inboundSchema.optional(),
|
|
@@ -40279,6 +40286,7 @@ var init_entitysalesinvoiceresponse = __esm(() => {
|
|
|
40279
40286
|
recipient: nullableType(SalesInvoiceRecipientResponse$outboundSchema).optional(),
|
|
40280
40287
|
lines: nullableType(arrayType(SalesInvoiceLineItemResponse$outboundSchema)).optional(),
|
|
40281
40288
|
discount: nullableType(SalesInvoiceDiscountResponse$outboundSchema).optional(),
|
|
40289
|
+
isEInvoice: booleanType().optional(),
|
|
40282
40290
|
amountDue: Amount$outboundSchema.optional(),
|
|
40283
40291
|
subtotalAmount: Amount$outboundSchema.optional(),
|
|
40284
40292
|
totalAmount: Amount$outboundSchema.optional(),
|
|
@@ -40325,14 +40333,85 @@ var init_settlementstatus = __esm(() => {
|
|
|
40325
40333
|
});
|
|
40326
40334
|
|
|
40327
40335
|
// src/models/entitysettlement.ts
|
|
40328
|
-
var EntitySettlementLinks$inboundSchema, EntitySettlementLinks$outboundSchema, EntitySettlementLinks$, EntitySettlement$inboundSchema, EntitySettlement$outboundSchema, EntitySettlement$;
|
|
40336
|
+
var Rate$inboundSchema, Rate$outboundSchema, Rate$, Cost$inboundSchema, Cost$outboundSchema, Cost$, Revenue$inboundSchema, Revenue$outboundSchema, Revenue$, Periods$inboundSchema, Periods$outboundSchema, Periods$, EntitySettlementLinks$inboundSchema, EntitySettlementLinks$outboundSchema, EntitySettlementLinks$, EntitySettlement$inboundSchema, EntitySettlement$outboundSchema, EntitySettlement$;
|
|
40329
40337
|
var init_entitysettlement = __esm(() => {
|
|
40330
40338
|
init_esm();
|
|
40331
40339
|
init_primitives();
|
|
40332
40340
|
init_amount();
|
|
40341
|
+
init_paymentmethod();
|
|
40333
40342
|
init_settlementstatus();
|
|
40334
40343
|
init_url2();
|
|
40335
40344
|
init_urlnullable();
|
|
40345
|
+
Rate$inboundSchema = objectType({
|
|
40346
|
+
fixed: Amount$inboundSchema.optional(),
|
|
40347
|
+
percentage: Amount$inboundSchema.optional()
|
|
40348
|
+
});
|
|
40349
|
+
Rate$outboundSchema = objectType({
|
|
40350
|
+
fixed: Amount$outboundSchema.optional(),
|
|
40351
|
+
percentage: Amount$outboundSchema.optional()
|
|
40352
|
+
});
|
|
40353
|
+
((Rate$) => {
|
|
40354
|
+
Rate$.inboundSchema = Rate$inboundSchema;
|
|
40355
|
+
Rate$.outboundSchema = Rate$outboundSchema;
|
|
40356
|
+
})(Rate$ ||= {});
|
|
40357
|
+
Cost$inboundSchema = objectType({
|
|
40358
|
+
description: stringType().optional(),
|
|
40359
|
+
method: nullableType(PaymentMethod$inboundSchema).optional(),
|
|
40360
|
+
count: numberType().int().optional(),
|
|
40361
|
+
rate: lazyType(() => Rate$inboundSchema).optional(),
|
|
40362
|
+
amountNet: Amount$inboundSchema.optional(),
|
|
40363
|
+
amountVat: Amount$inboundSchema.optional(),
|
|
40364
|
+
amountGross: Amount$inboundSchema.optional()
|
|
40365
|
+
});
|
|
40366
|
+
Cost$outboundSchema = objectType({
|
|
40367
|
+
description: stringType().optional(),
|
|
40368
|
+
method: nullableType(PaymentMethod$outboundSchema).optional(),
|
|
40369
|
+
count: numberType().int().optional(),
|
|
40370
|
+
rate: lazyType(() => Rate$outboundSchema).optional(),
|
|
40371
|
+
amountNet: Amount$outboundSchema.optional(),
|
|
40372
|
+
amountVat: Amount$outboundSchema.optional(),
|
|
40373
|
+
amountGross: Amount$outboundSchema.optional()
|
|
40374
|
+
});
|
|
40375
|
+
((Cost$) => {
|
|
40376
|
+
Cost$.inboundSchema = Cost$inboundSchema;
|
|
40377
|
+
Cost$.outboundSchema = Cost$outboundSchema;
|
|
40378
|
+
})(Cost$ ||= {});
|
|
40379
|
+
Revenue$inboundSchema = objectType({
|
|
40380
|
+
description: stringType().optional(),
|
|
40381
|
+
method: nullableType(PaymentMethod$inboundSchema).optional(),
|
|
40382
|
+
count: numberType().int().optional(),
|
|
40383
|
+
amountNet: Amount$inboundSchema.optional(),
|
|
40384
|
+
amountVat: Amount$inboundSchema.optional(),
|
|
40385
|
+
amountGross: Amount$inboundSchema.optional()
|
|
40386
|
+
});
|
|
40387
|
+
Revenue$outboundSchema = objectType({
|
|
40388
|
+
description: stringType().optional(),
|
|
40389
|
+
method: nullableType(PaymentMethod$outboundSchema).optional(),
|
|
40390
|
+
count: numberType().int().optional(),
|
|
40391
|
+
amountNet: Amount$outboundSchema.optional(),
|
|
40392
|
+
amountVat: Amount$outboundSchema.optional(),
|
|
40393
|
+
amountGross: Amount$outboundSchema.optional()
|
|
40394
|
+
});
|
|
40395
|
+
((Revenue$) => {
|
|
40396
|
+
Revenue$.inboundSchema = Revenue$inboundSchema;
|
|
40397
|
+
Revenue$.outboundSchema = Revenue$outboundSchema;
|
|
40398
|
+
})(Revenue$ ||= {});
|
|
40399
|
+
Periods$inboundSchema = objectType({
|
|
40400
|
+
costs: arrayType(lazyType(() => Cost$inboundSchema)).optional(),
|
|
40401
|
+
revenue: arrayType(lazyType(() => Revenue$inboundSchema)).optional(),
|
|
40402
|
+
invoiceId: stringType().optional(),
|
|
40403
|
+
invoiceReference: nullableType(stringType()).optional()
|
|
40404
|
+
});
|
|
40405
|
+
Periods$outboundSchema = objectType({
|
|
40406
|
+
costs: arrayType(lazyType(() => Cost$outboundSchema)).optional(),
|
|
40407
|
+
revenue: arrayType(lazyType(() => Revenue$outboundSchema)).optional(),
|
|
40408
|
+
invoiceId: stringType().optional(),
|
|
40409
|
+
invoiceReference: nullableType(stringType()).optional()
|
|
40410
|
+
});
|
|
40411
|
+
((Periods$) => {
|
|
40412
|
+
Periods$.inboundSchema = Periods$inboundSchema;
|
|
40413
|
+
Periods$.outboundSchema = Periods$outboundSchema;
|
|
40414
|
+
})(Periods$ ||= {});
|
|
40336
40415
|
EntitySettlementLinks$inboundSchema = objectType({
|
|
40337
40416
|
self: Url$inboundSchema.optional(),
|
|
40338
40417
|
payments: Url$inboundSchema.optional(),
|
|
@@ -40365,7 +40444,7 @@ var init_entitysettlement = __esm(() => {
|
|
|
40365
40444
|
amount: Amount$inboundSchema.optional(),
|
|
40366
40445
|
balanceId: stringType().optional(),
|
|
40367
40446
|
invoiceId: stringType().optional(),
|
|
40368
|
-
periods: recordType(
|
|
40447
|
+
periods: recordType(recordType(lazyType(() => Periods$inboundSchema))).optional(),
|
|
40369
40448
|
_links: lazyType(() => EntitySettlementLinks$inboundSchema).optional()
|
|
40370
40449
|
}).transform((v2) => {
|
|
40371
40450
|
return remap(v2, {
|
|
@@ -40382,7 +40461,7 @@ var init_entitysettlement = __esm(() => {
|
|
|
40382
40461
|
amount: Amount$outboundSchema.optional(),
|
|
40383
40462
|
balanceId: stringType().optional(),
|
|
40384
40463
|
invoiceId: stringType().optional(),
|
|
40385
|
-
periods: recordType(
|
|
40464
|
+
periods: recordType(recordType(lazyType(() => Periods$outboundSchema))).optional(),
|
|
40386
40465
|
links: lazyType(() => EntitySettlementLinks$outboundSchema).optional()
|
|
40387
40466
|
}).transform((v2) => {
|
|
40388
40467
|
return remap(v2, {
|
|
@@ -42893,7 +42972,8 @@ var init_updatevaluessalesinvoice = __esm(() => {
|
|
|
42893
42972
|
recipientIdentifier: stringType().optional(),
|
|
42894
42973
|
recipient: nullableType(SalesInvoiceRecipient$inboundSchema).optional(),
|
|
42895
42974
|
lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)).optional(),
|
|
42896
|
-
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional()
|
|
42975
|
+
discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional(),
|
|
42976
|
+
isEInvoice: booleanType().optional()
|
|
42897
42977
|
});
|
|
42898
42978
|
UpdateValuesSalesInvoice$outboundSchema = objectType({
|
|
42899
42979
|
testmode: nullableType(booleanType()).optional(),
|
|
@@ -42905,7 +42985,8 @@ var init_updatevaluessalesinvoice = __esm(() => {
|
|
|
42905
42985
|
recipientIdentifier: stringType().optional(),
|
|
42906
42986
|
recipient: nullableType(SalesInvoiceRecipient$outboundSchema).optional(),
|
|
42907
42987
|
lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)).optional(),
|
|
42908
|
-
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional()
|
|
42988
|
+
discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional(),
|
|
42989
|
+
isEInvoice: booleanType().optional()
|
|
42909
42990
|
});
|
|
42910
42991
|
((UpdateValuesSalesInvoice$) => {
|
|
42911
42992
|
UpdateValuesSalesInvoice$.inboundSchema = UpdateValuesSalesInvoice$inboundSchema;
|
|
@@ -59917,7 +59998,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
59917
59998
|
function createMCPServer(deps) {
|
|
59918
59999
|
const server = new McpServer({
|
|
59919
60000
|
name: "Client",
|
|
59920
|
-
version: "0.2.
|
|
60001
|
+
version: "0.2.5"
|
|
59921
60002
|
});
|
|
59922
60003
|
const client = new ClientCore({
|
|
59923
60004
|
security: deps.security,
|
|
@@ -61306,7 +61387,7 @@ var routes = an({
|
|
|
61306
61387
|
var app = He(routes, {
|
|
61307
61388
|
name: "mcp",
|
|
61308
61389
|
versionInfo: {
|
|
61309
|
-
currentVersion: "0.2.
|
|
61390
|
+
currentVersion: "0.2.5"
|
|
61310
61391
|
}
|
|
61311
61392
|
});
|
|
61312
61393
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -61314,5 +61395,5 @@ export {
|
|
|
61314
61395
|
app
|
|
61315
61396
|
};
|
|
61316
61397
|
|
|
61317
|
-
//# debugId=
|
|
61398
|
+
//# debugId=DF8104934B3F441664756E2164756E21
|
|
61318
61399
|
//# sourceMappingURL=mcp-server.js.map
|