@delopay/sdk 0.215.0 → 0.217.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-TNEV5OYF.js} +60 -1
- package/dist/{chunk-2FVZDCET.js.map → chunk-TNEV5OYF.js.map} +1 -1
- package/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +75 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +7 -3
- package/dist/internal.d.ts +7 -3
- package/dist/internal.js +17 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.cjs
CHANGED
|
@@ -9374,9 +9374,13 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9374
9374
|
paypalCardLayout: "split",
|
|
9375
9375
|
paypalLabelStyle: "above",
|
|
9376
9376
|
paypalFieldChrome: "outlined",
|
|
9377
|
+
mollieFieldChrome: "outlined",
|
|
9377
9378
|
paypalFieldFontSize: "md",
|
|
9379
|
+
mollieFieldFontSize: "md",
|
|
9378
9380
|
paypalFieldWeight: "regular",
|
|
9381
|
+
mollieFieldWeight: "regular",
|
|
9379
9382
|
paypalFocusRing: "strong",
|
|
9383
|
+
mollieFocusRing: "strong",
|
|
9380
9384
|
paypalValidTint: false,
|
|
9381
9385
|
nomupayFormStyle: "plain",
|
|
9382
9386
|
nomupayShowLabels: true,
|
|
@@ -10276,21 +10280,41 @@ function decodeBranding(source) {
|
|
|
10276
10280
|
CARD_FIELD_CHROMES,
|
|
10277
10281
|
DEFAULT_BRANDING.paypalFieldChrome
|
|
10278
10282
|
),
|
|
10283
|
+
mollieFieldChrome: pickEnum(
|
|
10284
|
+
extras["mollieFieldChrome"],
|
|
10285
|
+
CARD_FIELD_CHROMES,
|
|
10286
|
+
DEFAULT_BRANDING.mollieFieldChrome
|
|
10287
|
+
),
|
|
10279
10288
|
paypalFieldFontSize: pickEnum(
|
|
10280
10289
|
extras["paypalFieldFontSize"],
|
|
10281
10290
|
CARD_FIELD_FONT_SIZES,
|
|
10282
10291
|
DEFAULT_BRANDING.paypalFieldFontSize
|
|
10283
10292
|
),
|
|
10293
|
+
mollieFieldFontSize: pickEnum(
|
|
10294
|
+
extras["mollieFieldFontSize"],
|
|
10295
|
+
CARD_FIELD_FONT_SIZES,
|
|
10296
|
+
DEFAULT_BRANDING.mollieFieldFontSize
|
|
10297
|
+
),
|
|
10284
10298
|
paypalFieldWeight: pickEnum(
|
|
10285
10299
|
extras["paypalFieldWeight"],
|
|
10286
10300
|
CARD_FIELD_WEIGHTS,
|
|
10287
10301
|
DEFAULT_BRANDING.paypalFieldWeight
|
|
10288
10302
|
),
|
|
10303
|
+
mollieFieldWeight: pickEnum(
|
|
10304
|
+
extras["mollieFieldWeight"],
|
|
10305
|
+
CARD_FIELD_WEIGHTS,
|
|
10306
|
+
DEFAULT_BRANDING.mollieFieldWeight
|
|
10307
|
+
),
|
|
10289
10308
|
paypalFocusRing: pickEnum(
|
|
10290
10309
|
extras["paypalFocusRing"],
|
|
10291
10310
|
CARD_FOCUS_RINGS,
|
|
10292
10311
|
DEFAULT_BRANDING.paypalFocusRing
|
|
10293
10312
|
),
|
|
10313
|
+
mollieFocusRing: pickEnum(
|
|
10314
|
+
extras["mollieFocusRing"],
|
|
10315
|
+
CARD_FOCUS_RINGS,
|
|
10316
|
+
DEFAULT_BRANDING.mollieFocusRing
|
|
10317
|
+
),
|
|
10294
10318
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10295
10319
|
nomupayFormStyle: pickEnum(
|
|
10296
10320
|
extras["nomupayFormStyle"],
|
|
@@ -10427,9 +10451,13 @@ function encodeBranding(branding, base) {
|
|
|
10427
10451
|
paypalCardLayout: branding.paypalCardLayout,
|
|
10428
10452
|
paypalLabelStyle: branding.paypalLabelStyle,
|
|
10429
10453
|
paypalFieldChrome: branding.paypalFieldChrome,
|
|
10454
|
+
mollieFieldChrome: branding.mollieFieldChrome,
|
|
10430
10455
|
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
10456
|
+
mollieFieldFontSize: branding.mollieFieldFontSize,
|
|
10431
10457
|
paypalFieldWeight: branding.paypalFieldWeight,
|
|
10458
|
+
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10432
10459
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10460
|
+
mollieFocusRing: branding.mollieFocusRing,
|
|
10433
10461
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10434
10462
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10435
10463
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10782,21 +10810,41 @@ function parseImportedBranding(raw) {
|
|
|
10782
10810
|
CARD_FIELD_CHROMES,
|
|
10783
10811
|
dflt.paypalFieldChrome
|
|
10784
10812
|
),
|
|
10813
|
+
mollieFieldChrome: pickEnum(
|
|
10814
|
+
root["mollieFieldChrome"],
|
|
10815
|
+
CARD_FIELD_CHROMES,
|
|
10816
|
+
dflt.mollieFieldChrome
|
|
10817
|
+
),
|
|
10785
10818
|
paypalFieldFontSize: pickEnum(
|
|
10786
10819
|
root["paypalFieldFontSize"],
|
|
10787
10820
|
CARD_FIELD_FONT_SIZES,
|
|
10788
10821
|
dflt.paypalFieldFontSize
|
|
10789
10822
|
),
|
|
10823
|
+
mollieFieldFontSize: pickEnum(
|
|
10824
|
+
root["mollieFieldFontSize"],
|
|
10825
|
+
CARD_FIELD_FONT_SIZES,
|
|
10826
|
+
dflt.mollieFieldFontSize
|
|
10827
|
+
),
|
|
10790
10828
|
paypalFieldWeight: pickEnum(
|
|
10791
10829
|
root["paypalFieldWeight"],
|
|
10792
10830
|
CARD_FIELD_WEIGHTS,
|
|
10793
10831
|
dflt.paypalFieldWeight
|
|
10794
10832
|
),
|
|
10833
|
+
mollieFieldWeight: pickEnum(
|
|
10834
|
+
root["mollieFieldWeight"],
|
|
10835
|
+
CARD_FIELD_WEIGHTS,
|
|
10836
|
+
dflt.mollieFieldWeight
|
|
10837
|
+
),
|
|
10795
10838
|
paypalFocusRing: pickEnum(
|
|
10796
10839
|
root["paypalFocusRing"],
|
|
10797
10840
|
CARD_FOCUS_RINGS,
|
|
10798
10841
|
dflt.paypalFocusRing
|
|
10799
10842
|
),
|
|
10843
|
+
mollieFocusRing: pickEnum(
|
|
10844
|
+
root["mollieFocusRing"],
|
|
10845
|
+
CARD_FOCUS_RINGS,
|
|
10846
|
+
dflt.mollieFocusRing
|
|
10847
|
+
),
|
|
10800
10848
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10801
10849
|
nomupayFormStyle: pickEnum(
|
|
10802
10850
|
root["nomupayFormStyle"],
|
|
@@ -11288,6 +11336,17 @@ var CheckoutSession = class {
|
|
|
11288
11336
|
return void 0;
|
|
11289
11337
|
}
|
|
11290
11338
|
}
|
|
11339
|
+
/** Create a new Apple merchant-validation session for a payable Mollie checkout.
|
|
11340
|
+
* Requires a live Mollie validation key even for a test payment; never charges.
|
|
11341
|
+
* Browser Origin must match the configured checkout domain.
|
|
11342
|
+
*/
|
|
11343
|
+
async mollieApplePaySession(params, options) {
|
|
11344
|
+
return this.client.request("POST", `${this.linkBase}/mollie/apple-pay-session`, {
|
|
11345
|
+
...options,
|
|
11346
|
+
body: params,
|
|
11347
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11348
|
+
});
|
|
11349
|
+
}
|
|
11291
11350
|
/**
|
|
11292
11351
|
* A short-lived VGS Collect session for browser-side card capture.
|
|
11293
11352
|
*
|
|
@@ -13210,6 +13269,22 @@ var PlatformSettings = class {
|
|
|
13210
13269
|
constructor(request) {
|
|
13211
13270
|
this.request = request;
|
|
13212
13271
|
}
|
|
13272
|
+
/** Provider-issued presets for this backend environment. */
|
|
13273
|
+
async applePayVerificationCatalogue() {
|
|
13274
|
+
return this.request("GET", "/payment-link/apple-pay-verification/catalogue");
|
|
13275
|
+
}
|
|
13276
|
+
/** Atomic, audited update. A stale revision leaves the current file unchanged. */
|
|
13277
|
+
async updateApplePayVerification(selection, expectedRevision) {
|
|
13278
|
+
return this.update({
|
|
13279
|
+
changes: [
|
|
13280
|
+
{
|
|
13281
|
+
key: "checkout.apple_pay_verification",
|
|
13282
|
+
value: selection,
|
|
13283
|
+
expected_revision: expectedRevision
|
|
13284
|
+
}
|
|
13285
|
+
]
|
|
13286
|
+
});
|
|
13287
|
+
}
|
|
13213
13288
|
/** `GET /admin-portal/settings` */
|
|
13214
13289
|
async retrieve() {
|
|
13215
13290
|
return this.request("GET", "/admin-portal/settings");
|