@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.
@@ -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"],
@@ -11176,6 +11229,28 @@ var CheckoutSession = class {
11176
11229
  headers: this.bearerHeaders(options?.headers)
11177
11230
  });
11178
11231
  }
11232
+ /**
11233
+ * Prepare MicroPayment transfer instructions or an unsigned SEPA mandate.
11234
+ * No debit is approved. Show the returned mandate disclosure before collecting
11235
+ * acceptance, then confirm with metadata.micropayment_preparation and, for
11236
+ * new SEPA mandates, explicit customer_acceptance. Every SEPA confirm must
11237
+ * acknowledge its amount/date notice with metadata.micropayment_prenotified.
11238
+ * Echo native_pane_merchant_connector_id and the returned
11239
+ * native_pane_quote_generation on confirm. Saved reuse sends
11240
+ * recurring_details: { type: 'payment_method_id', data: payment_method_id }
11241
+ * with payment_method: 'bank_debit', payment_method_type: 'sepa' and no raw
11242
+ * bank data. Only saved off-session preparation may omit quote_generation.
11243
+ * Transfer instructions become available only after canonical confirmation.
11244
+ *
11245
+ * `POST /payment-link/{merchantId}/{paymentId}/micropayment/bank-session`
11246
+ */
11247
+ async micropaymentBankSession(params, options) {
11248
+ return this.client.request("POST", `${this.linkBase}/micropayment/bank-session`, {
11249
+ ...options,
11250
+ body: params,
11251
+ headers: this.bearerHeaders(options?.headers)
11252
+ });
11253
+ }
11179
11254
  /**
11180
11255
  * A short-lived VGS Collect session for browser-side card capture.
11181
11256
  *
@@ -11199,6 +11274,24 @@ var CheckoutSession = class {
11199
11274
  headers: this.bearerHeaders(options?.headers)
11200
11275
  });
11201
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
+ }
11202
11295
  /**
11203
11296
  * Register the aliased card as a payment method and mint the one-shot
11204
11297
  * `payment_token` the confirm call spends.
@@ -12030,4 +12123,4 @@ export {
12030
12123
  decodeNativePanes,
12031
12124
  encodeNativePanes
12032
12125
  };
12033
- //# sourceMappingURL=chunk-VOI3NAJB.js.map
12126
+ //# sourceMappingURL=chunk-KJFUYMWL.js.map