@delopay/sdk 0.174.0 → 0.176.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-7KHTBFO6.js → chunk-OBEPMMEL.js} +31 -2
- package/dist/{chunk-7KHTBFO6.js.map → chunk-OBEPMMEL.js.map} +1 -1
- package/dist/index.cjs +30 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -4
- package/dist/index.d.ts +27 -4
- package/dist/index.js +1 -1
- package/dist/internal.cjs +30 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +17 -18
|
@@ -7546,6 +7546,9 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
7546
7546
|
totalLabel: "Total",
|
|
7547
7547
|
showCurrencyCode: false,
|
|
7548
7548
|
showOrderItems: true,
|
|
7549
|
+
cancelLinkEnabled: true,
|
|
7550
|
+
cancelLinkPosition: "top",
|
|
7551
|
+
cancelLinkStyle: "link",
|
|
7549
7552
|
// Each flat field keeps its meaning: what the merchant wrote, used in every
|
|
7550
7553
|
// locale that carries no override. Empty maps therefore change nothing for a
|
|
7551
7554
|
// profile saved before translations existed.
|
|
@@ -8364,6 +8367,17 @@ function decodeBranding(source) {
|
|
|
8364
8367
|
totalLabel: s(extras["totalLabel"]) || DEFAULT_BRANDING.totalLabel,
|
|
8365
8368
|
showCurrencyCode: parseBool(extras["showCurrencyCode"], DEFAULT_BRANDING.showCurrencyCode),
|
|
8366
8369
|
showOrderItems: parseBool(extras["showOrderItems"], DEFAULT_BRANDING.showOrderItems),
|
|
8370
|
+
cancelLinkEnabled: parseBool(extras["cancelLinkEnabled"], DEFAULT_BRANDING.cancelLinkEnabled),
|
|
8371
|
+
cancelLinkPosition: pickEnum(
|
|
8372
|
+
extras["cancelLinkPosition"],
|
|
8373
|
+
["top", "bottom"],
|
|
8374
|
+
DEFAULT_BRANDING.cancelLinkPosition
|
|
8375
|
+
),
|
|
8376
|
+
cancelLinkStyle: pickEnum(
|
|
8377
|
+
extras["cancelLinkStyle"],
|
|
8378
|
+
["link", "button"],
|
|
8379
|
+
DEFAULT_BRANDING.cancelLinkStyle
|
|
8380
|
+
),
|
|
8367
8381
|
trustBadges: trustRow.trustBadges,
|
|
8368
8382
|
notices: trustRow.notices,
|
|
8369
8383
|
customFields: decodedCustomFields ?? [],
|
|
@@ -8603,6 +8617,9 @@ function encodeBranding(branding, base) {
|
|
|
8603
8617
|
totalLabel: branding.totalLabel,
|
|
8604
8618
|
showCurrencyCode: String(branding.showCurrencyCode),
|
|
8605
8619
|
showOrderItems: String(branding.showOrderItems),
|
|
8620
|
+
cancelLinkEnabled: String(branding.cancelLinkEnabled),
|
|
8621
|
+
cancelLinkPosition: branding.cancelLinkPosition,
|
|
8622
|
+
cancelLinkStyle: branding.cancelLinkStyle,
|
|
8606
8623
|
showLogo: String(branding.showLogo),
|
|
8607
8624
|
logoShape: branding.logoShape,
|
|
8608
8625
|
logoSize: branding.logoSize,
|
|
@@ -8870,6 +8887,17 @@ function parseImportedBranding(raw) {
|
|
|
8870
8887
|
trustBadges,
|
|
8871
8888
|
notices,
|
|
8872
8889
|
customFields,
|
|
8890
|
+
cancelLinkEnabled: parseBool(root["cancelLinkEnabled"], dflt.cancelLinkEnabled),
|
|
8891
|
+
cancelLinkPosition: pickEnum(
|
|
8892
|
+
root["cancelLinkPosition"],
|
|
8893
|
+
["top", "bottom"],
|
|
8894
|
+
dflt.cancelLinkPosition
|
|
8895
|
+
),
|
|
8896
|
+
cancelLinkStyle: pickEnum(
|
|
8897
|
+
root["cancelLinkStyle"],
|
|
8898
|
+
["link", "button"],
|
|
8899
|
+
dflt.cancelLinkStyle
|
|
8900
|
+
),
|
|
8873
8901
|
// An export writes the decoded maps; a hand-written file may carry the
|
|
8874
8902
|
// JSON strings the bag uses. Both are accepted, and neither is required.
|
|
8875
8903
|
methodSectionOrder: parseSectionOrderLoose(root[METHOD_SECTION_ORDER_KEY]),
|
|
@@ -9999,7 +10027,8 @@ var CHECKOUT_EVENT_KINDS = [
|
|
|
9999
10027
|
"native_pane_tab_opened",
|
|
10000
10028
|
"native_pane_tab_blocked",
|
|
10001
10029
|
"native_pane_abandoned",
|
|
10002
|
-
"native_pane_returned"
|
|
10030
|
+
"native_pane_returned",
|
|
10031
|
+
"checkout_cancelled"
|
|
10003
10032
|
];
|
|
10004
10033
|
var STRIPE_NATIVE_PANE_METHODS = STRIPE_FALLBACK_PANE_METHODS;
|
|
10005
10034
|
var NATIVE_PANE_ICON_KEYS = PANE_ICON_KEYS;
|
|
@@ -10239,4 +10268,4 @@ export {
|
|
|
10239
10268
|
decodeNativePanes,
|
|
10240
10269
|
encodeNativePanes
|
|
10241
10270
|
};
|
|
10242
|
-
//# sourceMappingURL=chunk-
|
|
10271
|
+
//# sourceMappingURL=chunk-OBEPMMEL.js.map
|