@delopay/sdk 0.221.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-VOI3NAJB.js → chunk-KJFUYMWL.js} +94 -1
- package/dist/chunk-KJFUYMWL.js.map +1 -0
- package/dist/index.cjs +93 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -8
- package/dist/index.d.ts +214 -8
- package/dist/index.js +1 -1
- package/dist/internal.cjs +170 -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 +17 -18
- package/dist/chunk-VOI3NAJB.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4423,6 +4423,11 @@ var Users = class {
|
|
|
4423
4423
|
* parent-groups shape: `[{role_id, role_name, entity_type, role_scope,
|
|
4424
4424
|
* parent_groups: [{name, description, scopes}]}]`; without it, the
|
|
4425
4425
|
* deprecated flat `groups` shape.
|
|
4426
|
+
*
|
|
4427
|
+
* Each role carries `managed_centrally: true` when it is a shared role the
|
|
4428
|
+
* platform offers this merchant: it can be assigned, but `updateRole`,
|
|
4429
|
+
* `deleteRole` and `updateRoleConnectors` refuse it with `UR_71`
|
|
4430
|
+
* (`data.reason: 'managed_centrally'`).
|
|
4426
4431
|
*/
|
|
4427
4432
|
async listRoles(params) {
|
|
4428
4433
|
if (params === void 0) {
|
|
@@ -9469,6 +9474,10 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9469
9474
|
nomupayApplePayButtonType: "pay",
|
|
9470
9475
|
nomupayGooglePayButtonColor: "auto",
|
|
9471
9476
|
nomupayGooglePayButtonType: "pay",
|
|
9477
|
+
micropaymentFieldChrome: "outlined",
|
|
9478
|
+
micropaymentFieldFontSize: "md",
|
|
9479
|
+
micropaymentFieldWeight: "regular",
|
|
9480
|
+
micropaymentFocusRing: "strong",
|
|
9472
9481
|
customCss: ""
|
|
9473
9482
|
};
|
|
9474
9483
|
var DEFAULT_BRANDING = {
|
|
@@ -10391,6 +10400,26 @@ function decodeBranding(source) {
|
|
|
10391
10400
|
CARD_FOCUS_RINGS,
|
|
10392
10401
|
DEFAULT_BRANDING.mollieFocusRing
|
|
10393
10402
|
),
|
|
10403
|
+
micropaymentFieldChrome: pickEnum(
|
|
10404
|
+
extras["micropaymentFieldChrome"],
|
|
10405
|
+
CARD_FIELD_CHROMES,
|
|
10406
|
+
DEFAULT_BRANDING.micropaymentFieldChrome
|
|
10407
|
+
),
|
|
10408
|
+
micropaymentFieldFontSize: pickEnum(
|
|
10409
|
+
extras["micropaymentFieldFontSize"],
|
|
10410
|
+
CARD_FIELD_FONT_SIZES,
|
|
10411
|
+
DEFAULT_BRANDING.micropaymentFieldFontSize
|
|
10412
|
+
),
|
|
10413
|
+
micropaymentFieldWeight: pickEnum(
|
|
10414
|
+
extras["micropaymentFieldWeight"],
|
|
10415
|
+
CARD_FIELD_WEIGHTS,
|
|
10416
|
+
DEFAULT_BRANDING.micropaymentFieldWeight
|
|
10417
|
+
),
|
|
10418
|
+
micropaymentFocusRing: pickEnum(
|
|
10419
|
+
extras["micropaymentFocusRing"],
|
|
10420
|
+
CARD_FOCUS_RINGS,
|
|
10421
|
+
DEFAULT_BRANDING.micropaymentFocusRing
|
|
10422
|
+
),
|
|
10394
10423
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10395
10424
|
nomupayFormStyle: pickEnum(
|
|
10396
10425
|
extras["nomupayFormStyle"],
|
|
@@ -10534,6 +10563,10 @@ function encodeBranding(branding, base) {
|
|
|
10534
10563
|
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10535
10564
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10536
10565
|
mollieFocusRing: branding.mollieFocusRing,
|
|
10566
|
+
micropaymentFieldChrome: branding.micropaymentFieldChrome,
|
|
10567
|
+
micropaymentFieldFontSize: branding.micropaymentFieldFontSize,
|
|
10568
|
+
micropaymentFieldWeight: branding.micropaymentFieldWeight,
|
|
10569
|
+
micropaymentFocusRing: branding.micropaymentFocusRing,
|
|
10537
10570
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10538
10571
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10539
10572
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10921,6 +10954,26 @@ function parseImportedBranding(raw) {
|
|
|
10921
10954
|
CARD_FOCUS_RINGS,
|
|
10922
10955
|
dflt.mollieFocusRing
|
|
10923
10956
|
),
|
|
10957
|
+
micropaymentFieldChrome: pickEnum(
|
|
10958
|
+
root["micropaymentFieldChrome"],
|
|
10959
|
+
CARD_FIELD_CHROMES,
|
|
10960
|
+
dflt.micropaymentFieldChrome
|
|
10961
|
+
),
|
|
10962
|
+
micropaymentFieldFontSize: pickEnum(
|
|
10963
|
+
root["micropaymentFieldFontSize"],
|
|
10964
|
+
CARD_FIELD_FONT_SIZES,
|
|
10965
|
+
dflt.micropaymentFieldFontSize
|
|
10966
|
+
),
|
|
10967
|
+
micropaymentFieldWeight: pickEnum(
|
|
10968
|
+
root["micropaymentFieldWeight"],
|
|
10969
|
+
CARD_FIELD_WEIGHTS,
|
|
10970
|
+
dflt.micropaymentFieldWeight
|
|
10971
|
+
),
|
|
10972
|
+
micropaymentFocusRing: pickEnum(
|
|
10973
|
+
root["micropaymentFocusRing"],
|
|
10974
|
+
CARD_FOCUS_RINGS,
|
|
10975
|
+
dflt.micropaymentFocusRing
|
|
10976
|
+
),
|
|
10924
10977
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10925
10978
|
nomupayFormStyle: pickEnum(
|
|
10926
10979
|
root["nomupayFormStyle"],
|
|
@@ -11423,6 +11476,28 @@ var CheckoutSession = class {
|
|
|
11423
11476
|
headers: this.bearerHeaders(options?.headers)
|
|
11424
11477
|
});
|
|
11425
11478
|
}
|
|
11479
|
+
/**
|
|
11480
|
+
* Prepare MicroPayment transfer instructions or an unsigned SEPA mandate.
|
|
11481
|
+
* No debit is approved. Show the returned mandate disclosure before collecting
|
|
11482
|
+
* acceptance, then confirm with metadata.micropayment_preparation and, for
|
|
11483
|
+
* new SEPA mandates, explicit customer_acceptance. Every SEPA confirm must
|
|
11484
|
+
* acknowledge its amount/date notice with metadata.micropayment_prenotified.
|
|
11485
|
+
* Echo native_pane_merchant_connector_id and the returned
|
|
11486
|
+
* native_pane_quote_generation on confirm. Saved reuse sends
|
|
11487
|
+
* recurring_details: { type: 'payment_method_id', data: payment_method_id }
|
|
11488
|
+
* with payment_method: 'bank_debit', payment_method_type: 'sepa' and no raw
|
|
11489
|
+
* bank data. Only saved off-session preparation may omit quote_generation.
|
|
11490
|
+
* Transfer instructions become available only after canonical confirmation.
|
|
11491
|
+
*
|
|
11492
|
+
* `POST /payment-link/{merchantId}/{paymentId}/micropayment/bank-session`
|
|
11493
|
+
*/
|
|
11494
|
+
async micropaymentBankSession(params, options) {
|
|
11495
|
+
return this.client.request("POST", `${this.linkBase}/micropayment/bank-session`, {
|
|
11496
|
+
...options,
|
|
11497
|
+
body: params,
|
|
11498
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11499
|
+
});
|
|
11500
|
+
}
|
|
11426
11501
|
/**
|
|
11427
11502
|
* A short-lived VGS Collect session for browser-side card capture.
|
|
11428
11503
|
*
|
|
@@ -11446,6 +11521,24 @@ var CheckoutSession = class {
|
|
|
11446
11521
|
headers: this.bearerHeaders(options?.headers)
|
|
11447
11522
|
});
|
|
11448
11523
|
}
|
|
11524
|
+
/**
|
|
11525
|
+
* Mint the security-code form for a saved card, on a shop whose vault keeps
|
|
11526
|
+
* the code itself (Enigma Vault). The buyer re-enters the code into the
|
|
11527
|
+
* vault's own form, so it never reaches the checkout; confirm with the saved
|
|
11528
|
+
* card's `payment_token` once the form reports it stored.
|
|
11529
|
+
*
|
|
11530
|
+
* `paymentToken` is the saved card's token from the payment-method list. A
|
|
11531
|
+
* VGS shop answers `400`: VGS re-collects the code with Collect.
|
|
11532
|
+
*
|
|
11533
|
+
* `GET /payment-link/{merchantId}/{paymentId}/vault/security-code-session`
|
|
11534
|
+
*/
|
|
11535
|
+
async vaultSecurityCodeSession(paymentToken, options) {
|
|
11536
|
+
return this.client.request("GET", `${this.linkBase}/vault/security-code-session`, {
|
|
11537
|
+
...options,
|
|
11538
|
+
query: { payment_token: paymentToken },
|
|
11539
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11540
|
+
});
|
|
11541
|
+
}
|
|
11449
11542
|
/**
|
|
11450
11543
|
* Register the aliased card as a payment method and mint the one-shot
|
|
11451
11544
|
* `payment_token` the confirm call spends.
|