@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/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"],
@@ -11468,6 +11521,24 @@ var CheckoutSession = class {
11468
11521
  headers: this.bearerHeaders(options?.headers)
11469
11522
  });
11470
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
+ }
11471
11542
  /**
11472
11543
  * Register the aliased card as a payment method and mint the one-shot
11473
11544
  * `payment_token` the confirm call spends.