@delopay/sdk 0.222.0 → 0.225.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-YI6NOPLG.js → chunk-KJFUYMWL.js} +72 -1
- package/dist/chunk-KJFUYMWL.js.map +1 -0
- package/dist/index.cjs +71 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +104 -8
- package/dist/index.d.ts +104 -8
- package/dist/index.js +1 -1
- package/dist/internal.cjs +148 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +296 -3
- package/dist/internal.d.ts +296 -3
- package/dist/internal.js +78 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-YI6NOPLG.js.map +0 -1
|
@@ -4176,6 +4176,11 @@ var Users = class {
|
|
|
4176
4176
|
* parent-groups shape: `[{role_id, role_name, entity_type, role_scope,
|
|
4177
4177
|
* parent_groups: [{name, description, scopes}]}]`; without it, the
|
|
4178
4178
|
* deprecated flat `groups` shape.
|
|
4179
|
+
*
|
|
4180
|
+
* Each role carries `managed_centrally: true` when it is a shared role the
|
|
4181
|
+
* platform offers this merchant: it can be assigned, but `updateRole`,
|
|
4182
|
+
* `deleteRole` and `updateRoleConnectors` refuse it with `UR_71`
|
|
4183
|
+
* (`data.reason: 'managed_centrally'`).
|
|
4179
4184
|
*/
|
|
4180
4185
|
async listRoles(params) {
|
|
4181
4186
|
if (params === void 0) {
|
|
@@ -9222,6 +9227,10 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9222
9227
|
nomupayApplePayButtonType: "pay",
|
|
9223
9228
|
nomupayGooglePayButtonColor: "auto",
|
|
9224
9229
|
nomupayGooglePayButtonType: "pay",
|
|
9230
|
+
micropaymentFieldChrome: "outlined",
|
|
9231
|
+
micropaymentFieldFontSize: "md",
|
|
9232
|
+
micropaymentFieldWeight: "regular",
|
|
9233
|
+
micropaymentFocusRing: "strong",
|
|
9225
9234
|
customCss: ""
|
|
9226
9235
|
};
|
|
9227
9236
|
var DEFAULT_BRANDING = {
|
|
@@ -10144,6 +10153,26 @@ function decodeBranding(source) {
|
|
|
10144
10153
|
CARD_FOCUS_RINGS,
|
|
10145
10154
|
DEFAULT_BRANDING.mollieFocusRing
|
|
10146
10155
|
),
|
|
10156
|
+
micropaymentFieldChrome: pickEnum(
|
|
10157
|
+
extras["micropaymentFieldChrome"],
|
|
10158
|
+
CARD_FIELD_CHROMES,
|
|
10159
|
+
DEFAULT_BRANDING.micropaymentFieldChrome
|
|
10160
|
+
),
|
|
10161
|
+
micropaymentFieldFontSize: pickEnum(
|
|
10162
|
+
extras["micropaymentFieldFontSize"],
|
|
10163
|
+
CARD_FIELD_FONT_SIZES,
|
|
10164
|
+
DEFAULT_BRANDING.micropaymentFieldFontSize
|
|
10165
|
+
),
|
|
10166
|
+
micropaymentFieldWeight: pickEnum(
|
|
10167
|
+
extras["micropaymentFieldWeight"],
|
|
10168
|
+
CARD_FIELD_WEIGHTS,
|
|
10169
|
+
DEFAULT_BRANDING.micropaymentFieldWeight
|
|
10170
|
+
),
|
|
10171
|
+
micropaymentFocusRing: pickEnum(
|
|
10172
|
+
extras["micropaymentFocusRing"],
|
|
10173
|
+
CARD_FOCUS_RINGS,
|
|
10174
|
+
DEFAULT_BRANDING.micropaymentFocusRing
|
|
10175
|
+
),
|
|
10147
10176
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10148
10177
|
nomupayFormStyle: pickEnum(
|
|
10149
10178
|
extras["nomupayFormStyle"],
|
|
@@ -10287,6 +10316,10 @@ function encodeBranding(branding, base) {
|
|
|
10287
10316
|
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10288
10317
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10289
10318
|
mollieFocusRing: branding.mollieFocusRing,
|
|
10319
|
+
micropaymentFieldChrome: branding.micropaymentFieldChrome,
|
|
10320
|
+
micropaymentFieldFontSize: branding.micropaymentFieldFontSize,
|
|
10321
|
+
micropaymentFieldWeight: branding.micropaymentFieldWeight,
|
|
10322
|
+
micropaymentFocusRing: branding.micropaymentFocusRing,
|
|
10290
10323
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10291
10324
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10292
10325
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10674,6 +10707,26 @@ function parseImportedBranding(raw) {
|
|
|
10674
10707
|
CARD_FOCUS_RINGS,
|
|
10675
10708
|
dflt.mollieFocusRing
|
|
10676
10709
|
),
|
|
10710
|
+
micropaymentFieldChrome: pickEnum(
|
|
10711
|
+
root["micropaymentFieldChrome"],
|
|
10712
|
+
CARD_FIELD_CHROMES,
|
|
10713
|
+
dflt.micropaymentFieldChrome
|
|
10714
|
+
),
|
|
10715
|
+
micropaymentFieldFontSize: pickEnum(
|
|
10716
|
+
root["micropaymentFieldFontSize"],
|
|
10717
|
+
CARD_FIELD_FONT_SIZES,
|
|
10718
|
+
dflt.micropaymentFieldFontSize
|
|
10719
|
+
),
|
|
10720
|
+
micropaymentFieldWeight: pickEnum(
|
|
10721
|
+
root["micropaymentFieldWeight"],
|
|
10722
|
+
CARD_FIELD_WEIGHTS,
|
|
10723
|
+
dflt.micropaymentFieldWeight
|
|
10724
|
+
),
|
|
10725
|
+
micropaymentFocusRing: pickEnum(
|
|
10726
|
+
root["micropaymentFocusRing"],
|
|
10727
|
+
CARD_FOCUS_RINGS,
|
|
10728
|
+
dflt.micropaymentFocusRing
|
|
10729
|
+
),
|
|
10677
10730
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10678
10731
|
nomupayFormStyle: pickEnum(
|
|
10679
10732
|
root["nomupayFormStyle"],
|
|
@@ -11221,6 +11274,24 @@ var CheckoutSession = class {
|
|
|
11221
11274
|
headers: this.bearerHeaders(options?.headers)
|
|
11222
11275
|
});
|
|
11223
11276
|
}
|
|
11277
|
+
/**
|
|
11278
|
+
* Mint the security-code form for a saved card, on a shop whose vault keeps
|
|
11279
|
+
* the code itself (Enigma Vault). The buyer re-enters the code into the
|
|
11280
|
+
* vault's own form, so it never reaches the checkout; confirm with the saved
|
|
11281
|
+
* card's `payment_token` once the form reports it stored.
|
|
11282
|
+
*
|
|
11283
|
+
* `paymentToken` is the saved card's token from the payment-method list. A
|
|
11284
|
+
* VGS shop answers `400`: VGS re-collects the code with Collect.
|
|
11285
|
+
*
|
|
11286
|
+
* `GET /payment-link/{merchantId}/{paymentId}/vault/security-code-session`
|
|
11287
|
+
*/
|
|
11288
|
+
async vaultSecurityCodeSession(paymentToken, options) {
|
|
11289
|
+
return this.client.request("GET", `${this.linkBase}/vault/security-code-session`, {
|
|
11290
|
+
...options,
|
|
11291
|
+
query: { payment_token: paymentToken },
|
|
11292
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11293
|
+
});
|
|
11294
|
+
}
|
|
11224
11295
|
/**
|
|
11225
11296
|
* Register the aliased card as a payment method and mint the one-shot
|
|
11226
11297
|
* `payment_token` the confirm call spends.
|
|
@@ -12052,4 +12123,4 @@ export {
|
|
|
12052
12123
|
decodeNativePanes,
|
|
12053
12124
|
encodeNativePanes
|
|
12054
12125
|
};
|
|
12055
|
-
//# sourceMappingURL=chunk-
|
|
12126
|
+
//# sourceMappingURL=chunk-KJFUYMWL.js.map
|