@delopay/sdk 0.216.0 → 0.218.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.
@@ -3103,6 +3103,44 @@ var Routing = class {
3103
3103
  async connectorCaps(profileId) {
3104
3104
  return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
3105
3105
  }
3106
+ /** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */
3107
+ async connectorCapSchedules(profileId) {
3108
+ return this.request("GET", `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);
3109
+ }
3110
+ /**
3111
+ * Replace a shop's complete schedule using its last-read revision.
3112
+ * Remove an entry to cancel it; ordinary configured caps are unchanged.
3113
+ * Instants require explicit offsets, and overlapping entries for the same
3114
+ * account and unit are refused by the server. Capability preflight refuses
3115
+ * unsupported backends before submitting any schedule.
3116
+ *
3117
+ * `PUT /routing/connector-cap-schedules/{profileId}`
3118
+ */
3119
+ async setConnectorCapSchedules(profileId, params) {
3120
+ const caps = await this.connectorCaps(profileId);
3121
+ if (!caps.features?.includes("limit_schedules")) {
3122
+ throw new Error("Connector limit schedules are unsupported by the serving backend");
3123
+ }
3124
+ return this.request(
3125
+ "PUT",
3126
+ `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,
3127
+ {
3128
+ body: params
3129
+ }
3130
+ );
3131
+ }
3132
+ /** Change the drawn value of an active scheduled range; preserves all usage. */
3133
+ async shuffleConnectorCapSchedule(profileId, params) {
3134
+ const caps = await this.connectorCaps(profileId);
3135
+ if (!caps.features?.includes("limit_schedules")) {
3136
+ throw new Error("Connector limit schedules are unsupported by the serving backend");
3137
+ }
3138
+ return this.request(
3139
+ "POST",
3140
+ `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,
3141
+ { body: params }
3142
+ );
3143
+ }
3106
3144
  /**
3107
3145
  * The live `routing_volume` counters behind a shop's active advanced
3108
3146
  * program: one per distinct budget the program reads, each with the window
@@ -9112,9 +9150,13 @@ var DEFAULT_BRANDING_BASE = {
9112
9150
  paypalCardLayout: "split",
9113
9151
  paypalLabelStyle: "above",
9114
9152
  paypalFieldChrome: "outlined",
9153
+ mollieFieldChrome: "outlined",
9115
9154
  paypalFieldFontSize: "md",
9155
+ mollieFieldFontSize: "md",
9116
9156
  paypalFieldWeight: "regular",
9157
+ mollieFieldWeight: "regular",
9117
9158
  paypalFocusRing: "strong",
9159
+ mollieFocusRing: "strong",
9118
9160
  paypalValidTint: false,
9119
9161
  nomupayFormStyle: "plain",
9120
9162
  nomupayShowLabels: true,
@@ -10014,21 +10056,41 @@ function decodeBranding(source) {
10014
10056
  CARD_FIELD_CHROMES,
10015
10057
  DEFAULT_BRANDING.paypalFieldChrome
10016
10058
  ),
10059
+ mollieFieldChrome: pickEnum(
10060
+ extras["mollieFieldChrome"],
10061
+ CARD_FIELD_CHROMES,
10062
+ DEFAULT_BRANDING.mollieFieldChrome
10063
+ ),
10017
10064
  paypalFieldFontSize: pickEnum(
10018
10065
  extras["paypalFieldFontSize"],
10019
10066
  CARD_FIELD_FONT_SIZES,
10020
10067
  DEFAULT_BRANDING.paypalFieldFontSize
10021
10068
  ),
10069
+ mollieFieldFontSize: pickEnum(
10070
+ extras["mollieFieldFontSize"],
10071
+ CARD_FIELD_FONT_SIZES,
10072
+ DEFAULT_BRANDING.mollieFieldFontSize
10073
+ ),
10022
10074
  paypalFieldWeight: pickEnum(
10023
10075
  extras["paypalFieldWeight"],
10024
10076
  CARD_FIELD_WEIGHTS,
10025
10077
  DEFAULT_BRANDING.paypalFieldWeight
10026
10078
  ),
10079
+ mollieFieldWeight: pickEnum(
10080
+ extras["mollieFieldWeight"],
10081
+ CARD_FIELD_WEIGHTS,
10082
+ DEFAULT_BRANDING.mollieFieldWeight
10083
+ ),
10027
10084
  paypalFocusRing: pickEnum(
10028
10085
  extras["paypalFocusRing"],
10029
10086
  CARD_FOCUS_RINGS,
10030
10087
  DEFAULT_BRANDING.paypalFocusRing
10031
10088
  ),
10089
+ mollieFocusRing: pickEnum(
10090
+ extras["mollieFocusRing"],
10091
+ CARD_FOCUS_RINGS,
10092
+ DEFAULT_BRANDING.mollieFocusRing
10093
+ ),
10032
10094
  paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
10033
10095
  nomupayFormStyle: pickEnum(
10034
10096
  extras["nomupayFormStyle"],
@@ -10165,9 +10227,13 @@ function encodeBranding(branding, base) {
10165
10227
  paypalCardLayout: branding.paypalCardLayout,
10166
10228
  paypalLabelStyle: branding.paypalLabelStyle,
10167
10229
  paypalFieldChrome: branding.paypalFieldChrome,
10230
+ mollieFieldChrome: branding.mollieFieldChrome,
10168
10231
  paypalFieldFontSize: branding.paypalFieldFontSize,
10232
+ mollieFieldFontSize: branding.mollieFieldFontSize,
10169
10233
  paypalFieldWeight: branding.paypalFieldWeight,
10234
+ mollieFieldWeight: branding.mollieFieldWeight,
10170
10235
  paypalFocusRing: branding.paypalFocusRing,
10236
+ mollieFocusRing: branding.mollieFocusRing,
10171
10237
  paypalValidTint: String(branding.paypalValidTint),
10172
10238
  nomupayFormStyle: branding.nomupayFormStyle,
10173
10239
  nomupayShowLabels: String(branding.nomupayShowLabels),
@@ -10520,21 +10586,41 @@ function parseImportedBranding(raw) {
10520
10586
  CARD_FIELD_CHROMES,
10521
10587
  dflt.paypalFieldChrome
10522
10588
  ),
10589
+ mollieFieldChrome: pickEnum(
10590
+ root["mollieFieldChrome"],
10591
+ CARD_FIELD_CHROMES,
10592
+ dflt.mollieFieldChrome
10593
+ ),
10523
10594
  paypalFieldFontSize: pickEnum(
10524
10595
  root["paypalFieldFontSize"],
10525
10596
  CARD_FIELD_FONT_SIZES,
10526
10597
  dflt.paypalFieldFontSize
10527
10598
  ),
10599
+ mollieFieldFontSize: pickEnum(
10600
+ root["mollieFieldFontSize"],
10601
+ CARD_FIELD_FONT_SIZES,
10602
+ dflt.mollieFieldFontSize
10603
+ ),
10528
10604
  paypalFieldWeight: pickEnum(
10529
10605
  root["paypalFieldWeight"],
10530
10606
  CARD_FIELD_WEIGHTS,
10531
10607
  dflt.paypalFieldWeight
10532
10608
  ),
10609
+ mollieFieldWeight: pickEnum(
10610
+ root["mollieFieldWeight"],
10611
+ CARD_FIELD_WEIGHTS,
10612
+ dflt.mollieFieldWeight
10613
+ ),
10533
10614
  paypalFocusRing: pickEnum(
10534
10615
  root["paypalFocusRing"],
10535
10616
  CARD_FOCUS_RINGS,
10536
10617
  dflt.paypalFocusRing
10537
10618
  ),
10619
+ mollieFocusRing: pickEnum(
10620
+ root["mollieFocusRing"],
10621
+ CARD_FOCUS_RINGS,
10622
+ dflt.mollieFocusRing
10623
+ ),
10538
10624
  paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
10539
10625
  nomupayFormStyle: pickEnum(
10540
10626
  root["nomupayFormStyle"],
@@ -11026,6 +11112,17 @@ var CheckoutSession = class {
11026
11112
  return void 0;
11027
11113
  }
11028
11114
  }
11115
+ /** Create a new Apple merchant-validation session for a payable Mollie checkout.
11116
+ * Requires a live Mollie validation key even for a test payment; never charges.
11117
+ * Browser Origin must match the configured checkout domain.
11118
+ */
11119
+ async mollieApplePaySession(params, options) {
11120
+ return this.client.request("POST", `${this.linkBase}/mollie/apple-pay-session`, {
11121
+ ...options,
11122
+ body: params,
11123
+ headers: this.bearerHeaders(options?.headers)
11124
+ });
11125
+ }
11029
11126
  /**
11030
11127
  * A short-lived VGS Collect session for browser-side card capture.
11031
11128
  *
@@ -11879,4 +11976,4 @@ export {
11879
11976
  decodeNativePanes,
11880
11977
  encodeNativePanes
11881
11978
  };
11882
- //# sourceMappingURL=chunk-2FVZDCET.js.map
11979
+ //# sourceMappingURL=chunk-N2QCUNWM.js.map