@delopay/sdk 0.153.0 → 0.155.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-CRR4YKJV.js → chunk-GV7R45LR.js} +373 -1
- package/dist/chunk-GV7R45LR.js.map +1 -0
- package/dist/index.cjs +393 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -1
- package/dist/index.d.ts +112 -1
- package/dist/index.js +43 -1
- package/dist/internal.cjs +429 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +72 -3
- package/dist/internal.d.ts +72 -3
- package/dist/internal.js +79 -2
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CRR4YKJV.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -33,6 +33,8 @@ __export(internal_exports, {
|
|
|
33
33
|
ALL_CUSTOM_FIELD_CONDITION_SOURCES: () => ALL_CUSTOM_FIELD_CONDITION_SOURCES,
|
|
34
34
|
ALL_CUSTOM_FIELD_OPERATORS: () => ALL_CUSTOM_FIELD_OPERATORS,
|
|
35
35
|
ALL_CUSTOM_FIELD_TYPES: () => ALL_CUSTOM_FIELD_TYPES,
|
|
36
|
+
APPLE_PAY_BUTTON_STYLES: () => APPLE_PAY_BUTTON_STYLES,
|
|
37
|
+
APPLE_PAY_BUTTON_TYPES: () => APPLE_PAY_BUTTON_TYPES,
|
|
36
38
|
Admin: () => Admin,
|
|
37
39
|
AdminPortal: () => AdminPortal,
|
|
38
40
|
Analytics: () => Analytics,
|
|
@@ -42,6 +44,10 @@ __export(internal_exports, {
|
|
|
42
44
|
AvailabilityOverrides: () => AvailabilityOverrides,
|
|
43
45
|
BRANDING_EXPORT_FORMAT: () => BRANDING_EXPORT_FORMAT,
|
|
44
46
|
BRANDING_EXPORT_VERSION: () => BRANDING_EXPORT_VERSION,
|
|
47
|
+
CARD_FIELD_CHROMES: () => CARD_FIELD_CHROMES,
|
|
48
|
+
CARD_FIELD_FONT_SIZES: () => CARD_FIELD_FONT_SIZES,
|
|
49
|
+
CARD_FIELD_WEIGHTS: () => CARD_FIELD_WEIGHTS,
|
|
50
|
+
CARD_FOCUS_RINGS: () => CARD_FOCUS_RINGS,
|
|
45
51
|
CHECKBOX_CHECKED: () => CHECKBOX_CHECKED,
|
|
46
52
|
CHECKBOX_UNCHECKED: () => CHECKBOX_UNCHECKED,
|
|
47
53
|
CHECKOUT_EVENT_KINDS: () => CHECKOUT_EVENT_KINDS,
|
|
@@ -74,6 +80,8 @@ __export(internal_exports, {
|
|
|
74
80
|
FeeProgramBuilder: () => FeeProgramBuilder,
|
|
75
81
|
Files: () => Files,
|
|
76
82
|
Forex: () => Forex,
|
|
83
|
+
GOOGLE_PAY_BUTTON_COLORS: () => GOOGLE_PAY_BUTTON_COLORS,
|
|
84
|
+
GOOGLE_PAY_BUTTON_TYPES: () => GOOGLE_PAY_BUTTON_TYPES,
|
|
77
85
|
Gsm: () => Gsm,
|
|
78
86
|
LOCALIZABLE_COPY_FIELDS: () => LOCALIZABLE_COPY_FIELDS,
|
|
79
87
|
MAX_SECTION_LABEL_LENGTH: () => MAX_SECTION_LABEL_LENGTH,
|
|
@@ -84,10 +92,13 @@ __export(internal_exports, {
|
|
|
84
92
|
NATIVE_PANES_MAX: () => NATIVE_PANES_MAX,
|
|
85
93
|
NATIVE_PANE_CATEGORY_KEYS: () => NATIVE_PANE_CATEGORY_KEYS,
|
|
86
94
|
NATIVE_PANE_ICON_KEYS: () => NATIVE_PANE_ICON_KEYS,
|
|
95
|
+
NOMUPAY_FORM_STYLES: () => NOMUPAY_FORM_STYLES,
|
|
87
96
|
OperationLimits: () => OperationLimits,
|
|
88
97
|
PANES_MAX: () => PANES_MAX,
|
|
89
98
|
PANE_CATEGORY_KEYS: () => PANE_CATEGORY_KEYS,
|
|
90
99
|
PANE_ICON_KEYS: () => PANE_ICON_KEYS,
|
|
100
|
+
PAYPAL_CARD_LAYOUTS: () => PAYPAL_CARD_LAYOUTS,
|
|
101
|
+
PAYPAL_LABEL_STYLES: () => PAYPAL_LABEL_STYLES,
|
|
91
102
|
PaypalDisputes: () => PaypalDisputes,
|
|
92
103
|
PlatformBilling: () => PlatformBilling,
|
|
93
104
|
PlatformFees: () => PlatformFees,
|
|
@@ -97,7 +108,11 @@ __export(internal_exports, {
|
|
|
97
108
|
SECTION_ALIASES: () => SECTION_ALIASES,
|
|
98
109
|
STRIPE_FALLBACK_PANE_CATALOG: () => STRIPE_FALLBACK_PANE_CATALOG,
|
|
99
110
|
STRIPE_FALLBACK_PANE_METHODS: () => STRIPE_FALLBACK_PANE_METHODS,
|
|
111
|
+
STRIPE_INPUT_STYLES: () => STRIPE_INPUT_STYLES,
|
|
112
|
+
STRIPE_LABEL_PLACEMENTS: () => STRIPE_LABEL_PLACEMENTS,
|
|
100
113
|
STRIPE_NATIVE_PANE_METHODS: () => STRIPE_NATIVE_PANE_METHODS,
|
|
114
|
+
STRIPE_SPACINGS: () => STRIPE_SPACINGS,
|
|
115
|
+
STRIPE_THEMES: () => STRIPE_THEMES,
|
|
101
116
|
SURCHARGE_BORDER_STYLES: () => SURCHARGE_BORDER_STYLES,
|
|
102
117
|
SURCHARGE_BORDER_WIDTHS: () => SURCHARGE_BORDER_WIDTHS,
|
|
103
118
|
SURCHARGE_FIGURE_MODES: () => SURCHARGE_FIGURE_MODES,
|
|
@@ -127,6 +142,8 @@ __export(internal_exports, {
|
|
|
127
142
|
buildBrandingExport: () => buildBrandingExport,
|
|
128
143
|
buttonPadValue: () => buttonPadValue,
|
|
129
144
|
canonicalSectionId: () => canonicalSectionId,
|
|
145
|
+
cardFieldFontPx: () => cardFieldFontPx,
|
|
146
|
+
cardFieldWeightValue: () => cardFieldWeightValue,
|
|
130
147
|
checkoutCopy: () => checkoutCopy,
|
|
131
148
|
checkoutLocaleDir: () => checkoutLocaleDir,
|
|
132
149
|
cloneBranding: () => cloneBranding,
|
|
@@ -190,11 +207,15 @@ __export(internal_exports, {
|
|
|
190
207
|
readableInkOn: () => readableInkOn,
|
|
191
208
|
resolveAirwallexCardPreset: () => resolveAirwallexCardPreset,
|
|
192
209
|
resolveAirwallexLabelStyle: () => resolveAirwallexLabelStyle,
|
|
210
|
+
resolveApplePayButtonStyle: () => resolveApplePayButtonStyle,
|
|
211
|
+
resolveGooglePayButtonColor: () => resolveGooglePayButtonColor,
|
|
212
|
+
resolveStripeTheme: () => resolveStripeTheme,
|
|
193
213
|
ruleMatchToTree: () => ruleMatchToTree,
|
|
194
214
|
sanitizeCustomCss: () => sanitizeCustomCss,
|
|
195
215
|
sectionLabel: () => sectionLabel,
|
|
196
216
|
sectionOrderOf: () => sectionOrderOf,
|
|
197
217
|
shadowFor: () => shadowFor,
|
|
218
|
+
stripeSpacingValues: () => stripeSpacingValues,
|
|
198
219
|
surchargeFigurePlan: () => surchargeFigurePlan,
|
|
199
220
|
surchargeShowsLabel: () => surchargeShowsLabel,
|
|
200
221
|
surchargeStyleDrawsAShape: () => surchargeStyleDrawsAShape,
|
|
@@ -6062,6 +6083,72 @@ function airwallexFieldWeightValue(weight) {
|
|
|
6062
6083
|
}
|
|
6063
6084
|
var AIRWALLEX_NETWORK_MARKS = ["visa", "mastercard", "amex", "discover"];
|
|
6064
6085
|
|
|
6086
|
+
// src/cardFormStyles.ts
|
|
6087
|
+
var CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;
|
|
6088
|
+
var CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;
|
|
6089
|
+
var CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;
|
|
6090
|
+
var CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;
|
|
6091
|
+
function cardFieldFontPx(size) {
|
|
6092
|
+
return size === "sm" ? 14 : size === "lg" ? 18 : 16;
|
|
6093
|
+
}
|
|
6094
|
+
function cardFieldWeightValue(weight) {
|
|
6095
|
+
return weight === "regular" ? 400 : weight === "semibold" ? 600 : 500;
|
|
6096
|
+
}
|
|
6097
|
+
var STRIPE_THEMES = ["auto", "stripe", "flat", "night"];
|
|
6098
|
+
function resolveStripeTheme(theme, dark) {
|
|
6099
|
+
if (theme === "auto") return dark ? "night" : "stripe";
|
|
6100
|
+
return theme;
|
|
6101
|
+
}
|
|
6102
|
+
var STRIPE_INPUT_STYLES = ["spaced", "condensed"];
|
|
6103
|
+
var STRIPE_LABEL_PLACEMENTS = ["above", "floating"];
|
|
6104
|
+
var STRIPE_SPACINGS = ["compact", "comfortable", "spacious"];
|
|
6105
|
+
function stripeSpacingValues(spacing) {
|
|
6106
|
+
if (spacing === "compact") return { spacingUnit: "3px", gridRowSpacing: "8px" };
|
|
6107
|
+
if (spacing === "spacious") return { spacingUnit: "5px", gridRowSpacing: "16px" };
|
|
6108
|
+
return { spacingUnit: "4px", gridRowSpacing: "12px" };
|
|
6109
|
+
}
|
|
6110
|
+
var PAYPAL_CARD_LAYOUTS = ["split", "stacked"];
|
|
6111
|
+
var PAYPAL_LABEL_STYLES = ["above", "none"];
|
|
6112
|
+
var NOMUPAY_FORM_STYLES = ["plain", "card"];
|
|
6113
|
+
var APPLE_PAY_BUTTON_STYLES = ["auto", "black", "white", "white-outline"];
|
|
6114
|
+
function resolveApplePayButtonStyle(style, dark) {
|
|
6115
|
+
if (style === "auto") return dark ? "white" : "black";
|
|
6116
|
+
return style;
|
|
6117
|
+
}
|
|
6118
|
+
var APPLE_PAY_BUTTON_TYPES = [
|
|
6119
|
+
"pay",
|
|
6120
|
+
"plain",
|
|
6121
|
+
"buy",
|
|
6122
|
+
"check-out",
|
|
6123
|
+
"continue",
|
|
6124
|
+
"book",
|
|
6125
|
+
"order",
|
|
6126
|
+
"subscribe",
|
|
6127
|
+
"donate",
|
|
6128
|
+
"contribute",
|
|
6129
|
+
"support",
|
|
6130
|
+
"tip",
|
|
6131
|
+
"add-money",
|
|
6132
|
+
"top-up",
|
|
6133
|
+
"reload",
|
|
6134
|
+
"rent"
|
|
6135
|
+
];
|
|
6136
|
+
var GOOGLE_PAY_BUTTON_COLORS = ["auto", "default", "black", "white"];
|
|
6137
|
+
function resolveGooglePayButtonColor(color, dark) {
|
|
6138
|
+
if (color === "auto") return dark ? "white" : "black";
|
|
6139
|
+
return color;
|
|
6140
|
+
}
|
|
6141
|
+
var GOOGLE_PAY_BUTTON_TYPES = [
|
|
6142
|
+
"pay",
|
|
6143
|
+
"plain",
|
|
6144
|
+
"buy",
|
|
6145
|
+
"checkout",
|
|
6146
|
+
"book",
|
|
6147
|
+
"order",
|
|
6148
|
+
"subscribe",
|
|
6149
|
+
"donate"
|
|
6150
|
+
];
|
|
6151
|
+
|
|
6065
6152
|
// src/branding.ts
|
|
6066
6153
|
function surchargeShowsLabel(labelMode, style, position) {
|
|
6067
6154
|
if (labelMode !== "labelled") return false;
|
|
@@ -6625,6 +6712,34 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
6625
6712
|
airwallexAutofill: "system",
|
|
6626
6713
|
airwallexValidTint: false,
|
|
6627
6714
|
airwallexNetworkMarks: false,
|
|
6715
|
+
// Every card-form field below starts on what its pane drew before the
|
|
6716
|
+
// setting existed, so a merchant who never opens a section sees no change.
|
|
6717
|
+
stripeTheme: "auto",
|
|
6718
|
+
stripeInputs: "spaced",
|
|
6719
|
+
stripeLabels: "above",
|
|
6720
|
+
stripeSpacing: "comfortable",
|
|
6721
|
+
stripeFieldFontSize: "md",
|
|
6722
|
+
stripeFieldWeight: "medium",
|
|
6723
|
+
stripeFocusRing: "strong",
|
|
6724
|
+
stripeDisableAnimations: false,
|
|
6725
|
+
paypalCardLayout: "split",
|
|
6726
|
+
paypalLabelStyle: "above",
|
|
6727
|
+
paypalFieldChrome: "outlined",
|
|
6728
|
+
paypalFieldFontSize: "md",
|
|
6729
|
+
paypalFieldWeight: "regular",
|
|
6730
|
+
paypalFocusRing: "strong",
|
|
6731
|
+
paypalValidTint: false,
|
|
6732
|
+
nomupayFormStyle: "plain",
|
|
6733
|
+
nomupayShowLabels: true,
|
|
6734
|
+
nomupayShowPlaceholders: true,
|
|
6735
|
+
nomupayShowCvvHint: false,
|
|
6736
|
+
nomupayFieldChrome: "outlined",
|
|
6737
|
+
nomupayFieldFontSize: "md",
|
|
6738
|
+
nomupayFocusRing: "none",
|
|
6739
|
+
nomupayApplePayButtonStyle: "auto",
|
|
6740
|
+
nomupayApplePayButtonType: "pay",
|
|
6741
|
+
nomupayGooglePayButtonColor: "auto",
|
|
6742
|
+
nomupayGooglePayButtonType: "pay",
|
|
6628
6743
|
customCss: ""
|
|
6629
6744
|
};
|
|
6630
6745
|
var DEFAULT_BRANDING = {
|
|
@@ -7363,6 +7478,125 @@ function decodeBranding(source) {
|
|
|
7363
7478
|
extras["airwallexNetworkMarks"],
|
|
7364
7479
|
DEFAULT_BRANDING.airwallexNetworkMarks
|
|
7365
7480
|
),
|
|
7481
|
+
stripeTheme: pickEnum(
|
|
7482
|
+
extras["stripeTheme"],
|
|
7483
|
+
STRIPE_THEMES,
|
|
7484
|
+
DEFAULT_BRANDING.stripeTheme
|
|
7485
|
+
),
|
|
7486
|
+
stripeInputs: pickEnum(
|
|
7487
|
+
extras["stripeInputs"],
|
|
7488
|
+
STRIPE_INPUT_STYLES,
|
|
7489
|
+
DEFAULT_BRANDING.stripeInputs
|
|
7490
|
+
),
|
|
7491
|
+
stripeLabels: pickEnum(
|
|
7492
|
+
extras["stripeLabels"],
|
|
7493
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7494
|
+
DEFAULT_BRANDING.stripeLabels
|
|
7495
|
+
),
|
|
7496
|
+
stripeSpacing: pickEnum(
|
|
7497
|
+
extras["stripeSpacing"],
|
|
7498
|
+
STRIPE_SPACINGS,
|
|
7499
|
+
DEFAULT_BRANDING.stripeSpacing
|
|
7500
|
+
),
|
|
7501
|
+
stripeFieldFontSize: pickEnum(
|
|
7502
|
+
extras["stripeFieldFontSize"],
|
|
7503
|
+
CARD_FIELD_FONT_SIZES,
|
|
7504
|
+
DEFAULT_BRANDING.stripeFieldFontSize
|
|
7505
|
+
),
|
|
7506
|
+
stripeFieldWeight: pickEnum(
|
|
7507
|
+
extras["stripeFieldWeight"],
|
|
7508
|
+
CARD_FIELD_WEIGHTS,
|
|
7509
|
+
DEFAULT_BRANDING.stripeFieldWeight
|
|
7510
|
+
),
|
|
7511
|
+
stripeFocusRing: pickEnum(
|
|
7512
|
+
extras["stripeFocusRing"],
|
|
7513
|
+
CARD_FOCUS_RINGS,
|
|
7514
|
+
DEFAULT_BRANDING.stripeFocusRing
|
|
7515
|
+
),
|
|
7516
|
+
stripeDisableAnimations: parseBool(
|
|
7517
|
+
extras["stripeDisableAnimations"],
|
|
7518
|
+
DEFAULT_BRANDING.stripeDisableAnimations
|
|
7519
|
+
),
|
|
7520
|
+
paypalCardLayout: pickEnum(
|
|
7521
|
+
extras["paypalCardLayout"],
|
|
7522
|
+
PAYPAL_CARD_LAYOUTS,
|
|
7523
|
+
DEFAULT_BRANDING.paypalCardLayout
|
|
7524
|
+
),
|
|
7525
|
+
paypalLabelStyle: pickEnum(
|
|
7526
|
+
extras["paypalLabelStyle"],
|
|
7527
|
+
PAYPAL_LABEL_STYLES,
|
|
7528
|
+
DEFAULT_BRANDING.paypalLabelStyle
|
|
7529
|
+
),
|
|
7530
|
+
paypalFieldChrome: pickEnum(
|
|
7531
|
+
extras["paypalFieldChrome"],
|
|
7532
|
+
CARD_FIELD_CHROMES,
|
|
7533
|
+
DEFAULT_BRANDING.paypalFieldChrome
|
|
7534
|
+
),
|
|
7535
|
+
paypalFieldFontSize: pickEnum(
|
|
7536
|
+
extras["paypalFieldFontSize"],
|
|
7537
|
+
CARD_FIELD_FONT_SIZES,
|
|
7538
|
+
DEFAULT_BRANDING.paypalFieldFontSize
|
|
7539
|
+
),
|
|
7540
|
+
paypalFieldWeight: pickEnum(
|
|
7541
|
+
extras["paypalFieldWeight"],
|
|
7542
|
+
CARD_FIELD_WEIGHTS,
|
|
7543
|
+
DEFAULT_BRANDING.paypalFieldWeight
|
|
7544
|
+
),
|
|
7545
|
+
paypalFocusRing: pickEnum(
|
|
7546
|
+
extras["paypalFocusRing"],
|
|
7547
|
+
CARD_FOCUS_RINGS,
|
|
7548
|
+
DEFAULT_BRANDING.paypalFocusRing
|
|
7549
|
+
),
|
|
7550
|
+
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
7551
|
+
nomupayFormStyle: pickEnum(
|
|
7552
|
+
extras["nomupayFormStyle"],
|
|
7553
|
+
NOMUPAY_FORM_STYLES,
|
|
7554
|
+
DEFAULT_BRANDING.nomupayFormStyle
|
|
7555
|
+
),
|
|
7556
|
+
nomupayShowLabels: parseBool(extras["nomupayShowLabels"], DEFAULT_BRANDING.nomupayShowLabels),
|
|
7557
|
+
nomupayShowPlaceholders: parseBool(
|
|
7558
|
+
extras["nomupayShowPlaceholders"],
|
|
7559
|
+
DEFAULT_BRANDING.nomupayShowPlaceholders
|
|
7560
|
+
),
|
|
7561
|
+
nomupayShowCvvHint: parseBool(
|
|
7562
|
+
extras["nomupayShowCvvHint"],
|
|
7563
|
+
DEFAULT_BRANDING.nomupayShowCvvHint
|
|
7564
|
+
),
|
|
7565
|
+
nomupayFieldChrome: pickEnum(
|
|
7566
|
+
extras["nomupayFieldChrome"],
|
|
7567
|
+
CARD_FIELD_CHROMES,
|
|
7568
|
+
DEFAULT_BRANDING.nomupayFieldChrome
|
|
7569
|
+
),
|
|
7570
|
+
nomupayFieldFontSize: pickEnum(
|
|
7571
|
+
extras["nomupayFieldFontSize"],
|
|
7572
|
+
CARD_FIELD_FONT_SIZES,
|
|
7573
|
+
DEFAULT_BRANDING.nomupayFieldFontSize
|
|
7574
|
+
),
|
|
7575
|
+
nomupayFocusRing: pickEnum(
|
|
7576
|
+
extras["nomupayFocusRing"],
|
|
7577
|
+
CARD_FOCUS_RINGS,
|
|
7578
|
+
DEFAULT_BRANDING.nomupayFocusRing
|
|
7579
|
+
),
|
|
7580
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
7581
|
+
extras["nomupayApplePayButtonStyle"],
|
|
7582
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
7583
|
+
DEFAULT_BRANDING.nomupayApplePayButtonStyle
|
|
7584
|
+
),
|
|
7585
|
+
nomupayApplePayButtonType: pickEnum(
|
|
7586
|
+
extras["nomupayApplePayButtonType"],
|
|
7587
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
7588
|
+
DEFAULT_BRANDING.nomupayApplePayButtonType
|
|
7589
|
+
),
|
|
7590
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
7591
|
+
extras["nomupayGooglePayButtonColor"],
|
|
7592
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
7593
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonColor
|
|
7594
|
+
),
|
|
7595
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
7596
|
+
extras["nomupayGooglePayButtonType"],
|
|
7597
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
7598
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonType
|
|
7599
|
+
),
|
|
7366
7600
|
customCss: s(extras["customCss"])
|
|
7367
7601
|
};
|
|
7368
7602
|
}
|
|
@@ -7435,6 +7669,32 @@ function encodeBranding(branding, base) {
|
|
|
7435
7669
|
airwallexAutofill: branding.airwallexAutofill,
|
|
7436
7670
|
airwallexValidTint: String(branding.airwallexValidTint),
|
|
7437
7671
|
airwallexNetworkMarks: String(branding.airwallexNetworkMarks),
|
|
7672
|
+
stripeTheme: branding.stripeTheme,
|
|
7673
|
+
stripeInputs: branding.stripeInputs,
|
|
7674
|
+
stripeLabels: branding.stripeLabels,
|
|
7675
|
+
stripeSpacing: branding.stripeSpacing,
|
|
7676
|
+
stripeFieldFontSize: branding.stripeFieldFontSize,
|
|
7677
|
+
stripeFieldWeight: branding.stripeFieldWeight,
|
|
7678
|
+
stripeFocusRing: branding.stripeFocusRing,
|
|
7679
|
+
stripeDisableAnimations: String(branding.stripeDisableAnimations),
|
|
7680
|
+
paypalCardLayout: branding.paypalCardLayout,
|
|
7681
|
+
paypalLabelStyle: branding.paypalLabelStyle,
|
|
7682
|
+
paypalFieldChrome: branding.paypalFieldChrome,
|
|
7683
|
+
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
7684
|
+
paypalFieldWeight: branding.paypalFieldWeight,
|
|
7685
|
+
paypalFocusRing: branding.paypalFocusRing,
|
|
7686
|
+
paypalValidTint: String(branding.paypalValidTint),
|
|
7687
|
+
nomupayFormStyle: branding.nomupayFormStyle,
|
|
7688
|
+
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
7689
|
+
nomupayShowPlaceholders: String(branding.nomupayShowPlaceholders),
|
|
7690
|
+
nomupayShowCvvHint: String(branding.nomupayShowCvvHint),
|
|
7691
|
+
nomupayFieldChrome: branding.nomupayFieldChrome,
|
|
7692
|
+
nomupayFieldFontSize: branding.nomupayFieldFontSize,
|
|
7693
|
+
nomupayFocusRing: branding.nomupayFocusRing,
|
|
7694
|
+
nomupayApplePayButtonStyle: branding.nomupayApplePayButtonStyle,
|
|
7695
|
+
nomupayApplePayButtonType: branding.nomupayApplePayButtonType,
|
|
7696
|
+
nomupayGooglePayButtonColor: branding.nomupayGooglePayButtonColor,
|
|
7697
|
+
nomupayGooglePayButtonType: branding.nomupayGooglePayButtonType,
|
|
7438
7698
|
trustBadges: encodeBadges(branding.trustBadges),
|
|
7439
7699
|
[METHOD_SECTION_ORDER_KEY]: encodeMethodSectionOrder(branding.methodSectionOrder)
|
|
7440
7700
|
};
|
|
@@ -7705,6 +7965,118 @@ function parseImportedBranding(raw) {
|
|
|
7705
7965
|
),
|
|
7706
7966
|
airwallexValidTint: parseBool(root["airwallexValidTint"], dflt.airwallexValidTint),
|
|
7707
7967
|
airwallexNetworkMarks: parseBool(root["airwallexNetworkMarks"], dflt.airwallexNetworkMarks),
|
|
7968
|
+
stripeTheme: pickEnum(root["stripeTheme"], STRIPE_THEMES, dflt.stripeTheme),
|
|
7969
|
+
stripeInputs: pickEnum(
|
|
7970
|
+
root["stripeInputs"],
|
|
7971
|
+
STRIPE_INPUT_STYLES,
|
|
7972
|
+
dflt.stripeInputs
|
|
7973
|
+
),
|
|
7974
|
+
stripeLabels: pickEnum(
|
|
7975
|
+
root["stripeLabels"],
|
|
7976
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7977
|
+
dflt.stripeLabels
|
|
7978
|
+
),
|
|
7979
|
+
stripeSpacing: pickEnum(
|
|
7980
|
+
root["stripeSpacing"],
|
|
7981
|
+
STRIPE_SPACINGS,
|
|
7982
|
+
dflt.stripeSpacing
|
|
7983
|
+
),
|
|
7984
|
+
stripeFieldFontSize: pickEnum(
|
|
7985
|
+
root["stripeFieldFontSize"],
|
|
7986
|
+
CARD_FIELD_FONT_SIZES,
|
|
7987
|
+
dflt.stripeFieldFontSize
|
|
7988
|
+
),
|
|
7989
|
+
stripeFieldWeight: pickEnum(
|
|
7990
|
+
root["stripeFieldWeight"],
|
|
7991
|
+
CARD_FIELD_WEIGHTS,
|
|
7992
|
+
dflt.stripeFieldWeight
|
|
7993
|
+
),
|
|
7994
|
+
stripeFocusRing: pickEnum(
|
|
7995
|
+
root["stripeFocusRing"],
|
|
7996
|
+
CARD_FOCUS_RINGS,
|
|
7997
|
+
dflt.stripeFocusRing
|
|
7998
|
+
),
|
|
7999
|
+
stripeDisableAnimations: parseBool(
|
|
8000
|
+
root["stripeDisableAnimations"],
|
|
8001
|
+
dflt.stripeDisableAnimations
|
|
8002
|
+
),
|
|
8003
|
+
paypalCardLayout: pickEnum(
|
|
8004
|
+
root["paypalCardLayout"],
|
|
8005
|
+
PAYPAL_CARD_LAYOUTS,
|
|
8006
|
+
dflt.paypalCardLayout
|
|
8007
|
+
),
|
|
8008
|
+
paypalLabelStyle: pickEnum(
|
|
8009
|
+
root["paypalLabelStyle"],
|
|
8010
|
+
PAYPAL_LABEL_STYLES,
|
|
8011
|
+
dflt.paypalLabelStyle
|
|
8012
|
+
),
|
|
8013
|
+
paypalFieldChrome: pickEnum(
|
|
8014
|
+
root["paypalFieldChrome"],
|
|
8015
|
+
CARD_FIELD_CHROMES,
|
|
8016
|
+
dflt.paypalFieldChrome
|
|
8017
|
+
),
|
|
8018
|
+
paypalFieldFontSize: pickEnum(
|
|
8019
|
+
root["paypalFieldFontSize"],
|
|
8020
|
+
CARD_FIELD_FONT_SIZES,
|
|
8021
|
+
dflt.paypalFieldFontSize
|
|
8022
|
+
),
|
|
8023
|
+
paypalFieldWeight: pickEnum(
|
|
8024
|
+
root["paypalFieldWeight"],
|
|
8025
|
+
CARD_FIELD_WEIGHTS,
|
|
8026
|
+
dflt.paypalFieldWeight
|
|
8027
|
+
),
|
|
8028
|
+
paypalFocusRing: pickEnum(
|
|
8029
|
+
root["paypalFocusRing"],
|
|
8030
|
+
CARD_FOCUS_RINGS,
|
|
8031
|
+
dflt.paypalFocusRing
|
|
8032
|
+
),
|
|
8033
|
+
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
8034
|
+
nomupayFormStyle: pickEnum(
|
|
8035
|
+
root["nomupayFormStyle"],
|
|
8036
|
+
NOMUPAY_FORM_STYLES,
|
|
8037
|
+
dflt.nomupayFormStyle
|
|
8038
|
+
),
|
|
8039
|
+
nomupayShowLabels: parseBool(root["nomupayShowLabels"], dflt.nomupayShowLabels),
|
|
8040
|
+
nomupayShowPlaceholders: parseBool(
|
|
8041
|
+
root["nomupayShowPlaceholders"],
|
|
8042
|
+
dflt.nomupayShowPlaceholders
|
|
8043
|
+
),
|
|
8044
|
+
nomupayShowCvvHint: parseBool(root["nomupayShowCvvHint"], dflt.nomupayShowCvvHint),
|
|
8045
|
+
nomupayFieldChrome: pickEnum(
|
|
8046
|
+
root["nomupayFieldChrome"],
|
|
8047
|
+
CARD_FIELD_CHROMES,
|
|
8048
|
+
dflt.nomupayFieldChrome
|
|
8049
|
+
),
|
|
8050
|
+
nomupayFieldFontSize: pickEnum(
|
|
8051
|
+
root["nomupayFieldFontSize"],
|
|
8052
|
+
CARD_FIELD_FONT_SIZES,
|
|
8053
|
+
dflt.nomupayFieldFontSize
|
|
8054
|
+
),
|
|
8055
|
+
nomupayFocusRing: pickEnum(
|
|
8056
|
+
root["nomupayFocusRing"],
|
|
8057
|
+
CARD_FOCUS_RINGS,
|
|
8058
|
+
dflt.nomupayFocusRing
|
|
8059
|
+
),
|
|
8060
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
8061
|
+
root["nomupayApplePayButtonStyle"],
|
|
8062
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
8063
|
+
dflt.nomupayApplePayButtonStyle
|
|
8064
|
+
),
|
|
8065
|
+
nomupayApplePayButtonType: pickEnum(
|
|
8066
|
+
root["nomupayApplePayButtonType"],
|
|
8067
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
8068
|
+
dflt.nomupayApplePayButtonType
|
|
8069
|
+
),
|
|
8070
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
8071
|
+
root["nomupayGooglePayButtonColor"],
|
|
8072
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
8073
|
+
dflt.nomupayGooglePayButtonColor
|
|
8074
|
+
),
|
|
8075
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
8076
|
+
root["nomupayGooglePayButtonType"],
|
|
8077
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
8078
|
+
dflt.nomupayGooglePayButtonType
|
|
8079
|
+
),
|
|
7708
8080
|
customCss: sStr(root["customCss"], dflt.customCss).slice(0, CUSTOM_CSS_MAX_LENGTH)
|
|
7709
8081
|
};
|
|
7710
8082
|
}
|
|
@@ -8630,8 +9002,9 @@ var AdminPortal = class {
|
|
|
8630
9002
|
return this.request("GET", `/admin-portal/customers/${encodeURIComponent(customerId)}`);
|
|
8631
9003
|
}
|
|
8632
9004
|
async listTransactions(params) {
|
|
9005
|
+
const query = transactionListQuery(params);
|
|
8633
9006
|
return this.request("GET", "/admin-portal/transactions", {
|
|
8634
|
-
query
|
|
9007
|
+
query
|
|
8635
9008
|
});
|
|
8636
9009
|
}
|
|
8637
9010
|
/**
|
|
@@ -8674,6 +9047,15 @@ var AdminPortal = class {
|
|
|
8674
9047
|
`/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`
|
|
8675
9048
|
);
|
|
8676
9049
|
}
|
|
9050
|
+
/**
|
|
9051
|
+
* Refunds of ANY merchant mirrored from a connector webhook at a
|
|
9052
|
+
* non-terminal status that no sync can advance. Newest first.
|
|
9053
|
+
*/
|
|
9054
|
+
async listUnresolvedRefunds(params) {
|
|
9055
|
+
return this.request("GET", "/admin-portal/refunds/unresolved", {
|
|
9056
|
+
query: params
|
|
9057
|
+
});
|
|
9058
|
+
}
|
|
8677
9059
|
async analytics(params) {
|
|
8678
9060
|
return this.request("GET", "/admin-portal/analytics", {
|
|
8679
9061
|
query: params
|
|
@@ -9150,6 +9532,31 @@ var AdminPortal = class {
|
|
|
9150
9532
|
return this.request("PUT", "/admin-portal/promo-config", { body: params });
|
|
9151
9533
|
}
|
|
9152
9534
|
};
|
|
9535
|
+
function transactionListQuery(params) {
|
|
9536
|
+
if (!params) return void 0;
|
|
9537
|
+
const {
|
|
9538
|
+
statuses,
|
|
9539
|
+
connectors,
|
|
9540
|
+
payment_methods,
|
|
9541
|
+
payment_method_types,
|
|
9542
|
+
currencies,
|
|
9543
|
+
merchant_connector_ids,
|
|
9544
|
+
connector_settlement_statuses,
|
|
9545
|
+
routing_approaches,
|
|
9546
|
+
...query
|
|
9547
|
+
} = params;
|
|
9548
|
+
return {
|
|
9549
|
+
...query,
|
|
9550
|
+
...statuses?.length ? { statuses: statuses.join(",") } : {},
|
|
9551
|
+
...connectors?.length ? { connectors: connectors.join(",") } : {},
|
|
9552
|
+
...payment_methods?.length ? { payment_methods: payment_methods.join(",") } : {},
|
|
9553
|
+
...payment_method_types?.length ? { payment_method_types: payment_method_types.join(",") } : {},
|
|
9554
|
+
...currencies?.length ? { currencies: currencies.join(",") } : {},
|
|
9555
|
+
...merchant_connector_ids?.length ? { merchant_connector_ids: merchant_connector_ids.join(",") } : {},
|
|
9556
|
+
...connector_settlement_statuses?.length ? { connector_settlement_statuses: connector_settlement_statuses.join(",") } : {},
|
|
9557
|
+
...routing_approaches?.length ? { routing_approaches: routing_approaches.join(",") } : {}
|
|
9558
|
+
};
|
|
9559
|
+
}
|
|
9153
9560
|
|
|
9154
9561
|
// src/internal/resources/auditLogs.ts
|
|
9155
9562
|
var AuditLogs = class {
|
|
@@ -9808,6 +10215,8 @@ var DelopayInternal = class extends Delopay {
|
|
|
9808
10215
|
ALL_CUSTOM_FIELD_CONDITION_SOURCES,
|
|
9809
10216
|
ALL_CUSTOM_FIELD_OPERATORS,
|
|
9810
10217
|
ALL_CUSTOM_FIELD_TYPES,
|
|
10218
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
10219
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
9811
10220
|
Admin,
|
|
9812
10221
|
AdminPortal,
|
|
9813
10222
|
Analytics,
|
|
@@ -9817,6 +10226,10 @@ var DelopayInternal = class extends Delopay {
|
|
|
9817
10226
|
AvailabilityOverrides,
|
|
9818
10227
|
BRANDING_EXPORT_FORMAT,
|
|
9819
10228
|
BRANDING_EXPORT_VERSION,
|
|
10229
|
+
CARD_FIELD_CHROMES,
|
|
10230
|
+
CARD_FIELD_FONT_SIZES,
|
|
10231
|
+
CARD_FIELD_WEIGHTS,
|
|
10232
|
+
CARD_FOCUS_RINGS,
|
|
9820
10233
|
CHECKBOX_CHECKED,
|
|
9821
10234
|
CHECKBOX_UNCHECKED,
|
|
9822
10235
|
CHECKOUT_EVENT_KINDS,
|
|
@@ -9849,6 +10262,8 @@ var DelopayInternal = class extends Delopay {
|
|
|
9849
10262
|
FeeProgramBuilder,
|
|
9850
10263
|
Files,
|
|
9851
10264
|
Forex,
|
|
10265
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
10266
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
9852
10267
|
Gsm,
|
|
9853
10268
|
LOCALIZABLE_COPY_FIELDS,
|
|
9854
10269
|
MAX_SECTION_LABEL_LENGTH,
|
|
@@ -9859,10 +10274,13 @@ var DelopayInternal = class extends Delopay {
|
|
|
9859
10274
|
NATIVE_PANES_MAX,
|
|
9860
10275
|
NATIVE_PANE_CATEGORY_KEYS,
|
|
9861
10276
|
NATIVE_PANE_ICON_KEYS,
|
|
10277
|
+
NOMUPAY_FORM_STYLES,
|
|
9862
10278
|
OperationLimits,
|
|
9863
10279
|
PANES_MAX,
|
|
9864
10280
|
PANE_CATEGORY_KEYS,
|
|
9865
10281
|
PANE_ICON_KEYS,
|
|
10282
|
+
PAYPAL_CARD_LAYOUTS,
|
|
10283
|
+
PAYPAL_LABEL_STYLES,
|
|
9866
10284
|
PaypalDisputes,
|
|
9867
10285
|
PlatformBilling,
|
|
9868
10286
|
PlatformFees,
|
|
@@ -9872,7 +10290,11 @@ var DelopayInternal = class extends Delopay {
|
|
|
9872
10290
|
SECTION_ALIASES,
|
|
9873
10291
|
STRIPE_FALLBACK_PANE_CATALOG,
|
|
9874
10292
|
STRIPE_FALLBACK_PANE_METHODS,
|
|
10293
|
+
STRIPE_INPUT_STYLES,
|
|
10294
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
9875
10295
|
STRIPE_NATIVE_PANE_METHODS,
|
|
10296
|
+
STRIPE_SPACINGS,
|
|
10297
|
+
STRIPE_THEMES,
|
|
9876
10298
|
SURCHARGE_BORDER_STYLES,
|
|
9877
10299
|
SURCHARGE_BORDER_WIDTHS,
|
|
9878
10300
|
SURCHARGE_FIGURE_MODES,
|
|
@@ -9902,6 +10324,8 @@ var DelopayInternal = class extends Delopay {
|
|
|
9902
10324
|
buildBrandingExport,
|
|
9903
10325
|
buttonPadValue,
|
|
9904
10326
|
canonicalSectionId,
|
|
10327
|
+
cardFieldFontPx,
|
|
10328
|
+
cardFieldWeightValue,
|
|
9905
10329
|
checkoutCopy,
|
|
9906
10330
|
checkoutLocaleDir,
|
|
9907
10331
|
cloneBranding,
|
|
@@ -9965,11 +10389,15 @@ var DelopayInternal = class extends Delopay {
|
|
|
9965
10389
|
readableInkOn,
|
|
9966
10390
|
resolveAirwallexCardPreset,
|
|
9967
10391
|
resolveAirwallexLabelStyle,
|
|
10392
|
+
resolveApplePayButtonStyle,
|
|
10393
|
+
resolveGooglePayButtonColor,
|
|
10394
|
+
resolveStripeTheme,
|
|
9968
10395
|
ruleMatchToTree,
|
|
9969
10396
|
sanitizeCustomCss,
|
|
9970
10397
|
sectionLabel,
|
|
9971
10398
|
sectionOrderOf,
|
|
9972
10399
|
shadowFor,
|
|
10400
|
+
stripeSpacingValues,
|
|
9973
10401
|
surchargeFigurePlan,
|
|
9974
10402
|
surchargeShowsLabel,
|
|
9975
10403
|
surchargeStyleDrawsAShape,
|