@delopay/sdk 0.216.0 → 0.218.0
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/dist/{chunk-2FVZDCET.js → chunk-N2QCUNWM.js} +98 -1
- package/dist/chunk-N2QCUNWM.js.map +1 -0
- package/dist/index.cjs +97 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -2
- package/dist/index.d.ts +88 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +97 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +17 -18
- package/dist/chunk-2FVZDCET.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3349,6 +3349,44 @@ var Routing = class {
|
|
|
3349
3349
|
async connectorCaps(profileId) {
|
|
3350
3350
|
return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
|
|
3351
3351
|
}
|
|
3352
|
+
/** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */
|
|
3353
|
+
async connectorCapSchedules(profileId) {
|
|
3354
|
+
return this.request("GET", `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);
|
|
3355
|
+
}
|
|
3356
|
+
/**
|
|
3357
|
+
* Replace a shop's complete schedule using its last-read revision.
|
|
3358
|
+
* Remove an entry to cancel it; ordinary configured caps are unchanged.
|
|
3359
|
+
* Instants require explicit offsets, and overlapping entries for the same
|
|
3360
|
+
* account and unit are refused by the server. Capability preflight refuses
|
|
3361
|
+
* unsupported backends before submitting any schedule.
|
|
3362
|
+
*
|
|
3363
|
+
* `PUT /routing/connector-cap-schedules/{profileId}`
|
|
3364
|
+
*/
|
|
3365
|
+
async setConnectorCapSchedules(profileId, params) {
|
|
3366
|
+
const caps = await this.connectorCaps(profileId);
|
|
3367
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3368
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3369
|
+
}
|
|
3370
|
+
return this.request(
|
|
3371
|
+
"PUT",
|
|
3372
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,
|
|
3373
|
+
{
|
|
3374
|
+
body: params
|
|
3375
|
+
}
|
|
3376
|
+
);
|
|
3377
|
+
}
|
|
3378
|
+
/** Change the drawn value of an active scheduled range; preserves all usage. */
|
|
3379
|
+
async shuffleConnectorCapSchedule(profileId, params) {
|
|
3380
|
+
const caps = await this.connectorCaps(profileId);
|
|
3381
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3382
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3383
|
+
}
|
|
3384
|
+
return this.request(
|
|
3385
|
+
"POST",
|
|
3386
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,
|
|
3387
|
+
{ body: params }
|
|
3388
|
+
);
|
|
3389
|
+
}
|
|
3352
3390
|
/**
|
|
3353
3391
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
3354
3392
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -9358,9 +9396,13 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9358
9396
|
paypalCardLayout: "split",
|
|
9359
9397
|
paypalLabelStyle: "above",
|
|
9360
9398
|
paypalFieldChrome: "outlined",
|
|
9399
|
+
mollieFieldChrome: "outlined",
|
|
9361
9400
|
paypalFieldFontSize: "md",
|
|
9401
|
+
mollieFieldFontSize: "md",
|
|
9362
9402
|
paypalFieldWeight: "regular",
|
|
9403
|
+
mollieFieldWeight: "regular",
|
|
9363
9404
|
paypalFocusRing: "strong",
|
|
9405
|
+
mollieFocusRing: "strong",
|
|
9364
9406
|
paypalValidTint: false,
|
|
9365
9407
|
nomupayFormStyle: "plain",
|
|
9366
9408
|
nomupayShowLabels: true,
|
|
@@ -10260,21 +10302,41 @@ function decodeBranding(source) {
|
|
|
10260
10302
|
CARD_FIELD_CHROMES,
|
|
10261
10303
|
DEFAULT_BRANDING.paypalFieldChrome
|
|
10262
10304
|
),
|
|
10305
|
+
mollieFieldChrome: pickEnum(
|
|
10306
|
+
extras["mollieFieldChrome"],
|
|
10307
|
+
CARD_FIELD_CHROMES,
|
|
10308
|
+
DEFAULT_BRANDING.mollieFieldChrome
|
|
10309
|
+
),
|
|
10263
10310
|
paypalFieldFontSize: pickEnum(
|
|
10264
10311
|
extras["paypalFieldFontSize"],
|
|
10265
10312
|
CARD_FIELD_FONT_SIZES,
|
|
10266
10313
|
DEFAULT_BRANDING.paypalFieldFontSize
|
|
10267
10314
|
),
|
|
10315
|
+
mollieFieldFontSize: pickEnum(
|
|
10316
|
+
extras["mollieFieldFontSize"],
|
|
10317
|
+
CARD_FIELD_FONT_SIZES,
|
|
10318
|
+
DEFAULT_BRANDING.mollieFieldFontSize
|
|
10319
|
+
),
|
|
10268
10320
|
paypalFieldWeight: pickEnum(
|
|
10269
10321
|
extras["paypalFieldWeight"],
|
|
10270
10322
|
CARD_FIELD_WEIGHTS,
|
|
10271
10323
|
DEFAULT_BRANDING.paypalFieldWeight
|
|
10272
10324
|
),
|
|
10325
|
+
mollieFieldWeight: pickEnum(
|
|
10326
|
+
extras["mollieFieldWeight"],
|
|
10327
|
+
CARD_FIELD_WEIGHTS,
|
|
10328
|
+
DEFAULT_BRANDING.mollieFieldWeight
|
|
10329
|
+
),
|
|
10273
10330
|
paypalFocusRing: pickEnum(
|
|
10274
10331
|
extras["paypalFocusRing"],
|
|
10275
10332
|
CARD_FOCUS_RINGS,
|
|
10276
10333
|
DEFAULT_BRANDING.paypalFocusRing
|
|
10277
10334
|
),
|
|
10335
|
+
mollieFocusRing: pickEnum(
|
|
10336
|
+
extras["mollieFocusRing"],
|
|
10337
|
+
CARD_FOCUS_RINGS,
|
|
10338
|
+
DEFAULT_BRANDING.mollieFocusRing
|
|
10339
|
+
),
|
|
10278
10340
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10279
10341
|
nomupayFormStyle: pickEnum(
|
|
10280
10342
|
extras["nomupayFormStyle"],
|
|
@@ -10411,9 +10473,13 @@ function encodeBranding(branding, base) {
|
|
|
10411
10473
|
paypalCardLayout: branding.paypalCardLayout,
|
|
10412
10474
|
paypalLabelStyle: branding.paypalLabelStyle,
|
|
10413
10475
|
paypalFieldChrome: branding.paypalFieldChrome,
|
|
10476
|
+
mollieFieldChrome: branding.mollieFieldChrome,
|
|
10414
10477
|
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
10478
|
+
mollieFieldFontSize: branding.mollieFieldFontSize,
|
|
10415
10479
|
paypalFieldWeight: branding.paypalFieldWeight,
|
|
10480
|
+
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10416
10481
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10482
|
+
mollieFocusRing: branding.mollieFocusRing,
|
|
10417
10483
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10418
10484
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10419
10485
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10766,21 +10832,41 @@ function parseImportedBranding(raw) {
|
|
|
10766
10832
|
CARD_FIELD_CHROMES,
|
|
10767
10833
|
dflt.paypalFieldChrome
|
|
10768
10834
|
),
|
|
10835
|
+
mollieFieldChrome: pickEnum(
|
|
10836
|
+
root["mollieFieldChrome"],
|
|
10837
|
+
CARD_FIELD_CHROMES,
|
|
10838
|
+
dflt.mollieFieldChrome
|
|
10839
|
+
),
|
|
10769
10840
|
paypalFieldFontSize: pickEnum(
|
|
10770
10841
|
root["paypalFieldFontSize"],
|
|
10771
10842
|
CARD_FIELD_FONT_SIZES,
|
|
10772
10843
|
dflt.paypalFieldFontSize
|
|
10773
10844
|
),
|
|
10845
|
+
mollieFieldFontSize: pickEnum(
|
|
10846
|
+
root["mollieFieldFontSize"],
|
|
10847
|
+
CARD_FIELD_FONT_SIZES,
|
|
10848
|
+
dflt.mollieFieldFontSize
|
|
10849
|
+
),
|
|
10774
10850
|
paypalFieldWeight: pickEnum(
|
|
10775
10851
|
root["paypalFieldWeight"],
|
|
10776
10852
|
CARD_FIELD_WEIGHTS,
|
|
10777
10853
|
dflt.paypalFieldWeight
|
|
10778
10854
|
),
|
|
10855
|
+
mollieFieldWeight: pickEnum(
|
|
10856
|
+
root["mollieFieldWeight"],
|
|
10857
|
+
CARD_FIELD_WEIGHTS,
|
|
10858
|
+
dflt.mollieFieldWeight
|
|
10859
|
+
),
|
|
10779
10860
|
paypalFocusRing: pickEnum(
|
|
10780
10861
|
root["paypalFocusRing"],
|
|
10781
10862
|
CARD_FOCUS_RINGS,
|
|
10782
10863
|
dflt.paypalFocusRing
|
|
10783
10864
|
),
|
|
10865
|
+
mollieFocusRing: pickEnum(
|
|
10866
|
+
root["mollieFocusRing"],
|
|
10867
|
+
CARD_FOCUS_RINGS,
|
|
10868
|
+
dflt.mollieFocusRing
|
|
10869
|
+
),
|
|
10784
10870
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10785
10871
|
nomupayFormStyle: pickEnum(
|
|
10786
10872
|
root["nomupayFormStyle"],
|
|
@@ -11272,6 +11358,17 @@ var CheckoutSession = class {
|
|
|
11272
11358
|
return void 0;
|
|
11273
11359
|
}
|
|
11274
11360
|
}
|
|
11361
|
+
/** Create a new Apple merchant-validation session for a payable Mollie checkout.
|
|
11362
|
+
* Requires a live Mollie validation key even for a test payment; never charges.
|
|
11363
|
+
* Browser Origin must match the configured checkout domain.
|
|
11364
|
+
*/
|
|
11365
|
+
async mollieApplePaySession(params, options) {
|
|
11366
|
+
return this.client.request("POST", `${this.linkBase}/mollie/apple-pay-session`, {
|
|
11367
|
+
...options,
|
|
11368
|
+
body: params,
|
|
11369
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11370
|
+
});
|
|
11371
|
+
}
|
|
11275
11372
|
/**
|
|
11276
11373
|
* A short-lived VGS Collect session for browser-side card capture.
|
|
11277
11374
|
*
|