@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/internal.js CHANGED
@@ -12,12 +12,18 @@ import {
12
12
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
13
13
  ALL_CUSTOM_FIELD_OPERATORS,
14
14
  ALL_CUSTOM_FIELD_TYPES,
15
+ APPLE_PAY_BUTTON_STYLES,
16
+ APPLE_PAY_BUTTON_TYPES,
15
17
  Analytics,
16
18
  AnalyticsDashboard,
17
19
  Audit,
18
20
  AvailabilityOverrides,
19
21
  BRANDING_EXPORT_FORMAT,
20
22
  BRANDING_EXPORT_VERSION,
23
+ CARD_FIELD_CHROMES,
24
+ CARD_FIELD_FONT_SIZES,
25
+ CARD_FIELD_WEIGHTS,
26
+ CARD_FOCUS_RINGS,
21
27
  CHECKBOX_CHECKED,
22
28
  CHECKBOX_UNCHECKED,
23
29
  CHECKOUT_EVENT_KINDS,
@@ -43,6 +49,8 @@ import {
43
49
  FeeProgramBuilder,
44
50
  Files,
45
51
  Forex,
52
+ GOOGLE_PAY_BUTTON_COLORS,
53
+ GOOGLE_PAY_BUTTON_TYPES,
46
54
  LOCALIZABLE_COPY_FIELDS,
47
55
  MAX_SECTION_LABEL_LENGTH,
48
56
  MAX_SECTION_ORDER,
@@ -52,10 +60,13 @@ import {
52
60
  NATIVE_PANES_MAX,
53
61
  NATIVE_PANE_CATEGORY_KEYS,
54
62
  NATIVE_PANE_ICON_KEYS,
63
+ NOMUPAY_FORM_STYLES,
55
64
  OperationLimits,
56
65
  PANES_MAX,
57
66
  PANE_CATEGORY_KEYS,
58
67
  PANE_ICON_KEYS,
68
+ PAYPAL_CARD_LAYOUTS,
69
+ PAYPAL_LABEL_STYLES,
59
70
  PaypalDisputes,
60
71
  RTL_CHECKOUT_LOCALES,
61
72
  Regions,
@@ -63,7 +74,11 @@ import {
63
74
  SECTION_ALIASES,
64
75
  STRIPE_FALLBACK_PANE_CATALOG,
65
76
  STRIPE_FALLBACK_PANE_METHODS,
77
+ STRIPE_INPUT_STYLES,
78
+ STRIPE_LABEL_PLACEMENTS,
66
79
  STRIPE_NATIVE_PANE_METHODS,
80
+ STRIPE_SPACINGS,
81
+ STRIPE_THEMES,
67
82
  SURCHARGE_BORDER_STYLES,
68
83
  SURCHARGE_BORDER_WIDTHS,
69
84
  SURCHARGE_FIGURE_MODES,
@@ -93,6 +108,8 @@ import {
93
108
  buildBrandingExport,
94
109
  buttonPadValue,
95
110
  canonicalSectionId,
111
+ cardFieldFontPx,
112
+ cardFieldWeightValue,
96
113
  checkoutCopy,
97
114
  checkoutLocaleDir,
98
115
  cloneBranding,
@@ -156,11 +173,15 @@ import {
156
173
  readableInkOn,
157
174
  resolveAirwallexCardPreset,
158
175
  resolveAirwallexLabelStyle,
176
+ resolveApplePayButtonStyle,
177
+ resolveGooglePayButtonColor,
178
+ resolveStripeTheme,
159
179
  ruleMatchToTree,
160
180
  sanitizeCustomCss,
161
181
  sectionLabel,
162
182
  sectionOrderOf,
163
183
  shadowFor,
184
+ stripeSpacingValues,
164
185
  surchargeFigurePlan,
165
186
  surchargeShowsLabel,
166
187
  surchargeStyleDrawsAShape,
@@ -170,7 +191,7 @@ import {
170
191
  validatePanes,
171
192
  verticalGapValue,
172
193
  visibleCustomFields
173
- } from "./chunk-CRR4YKJV.js";
194
+ } from "./chunk-GV7R45LR.js";
174
195
 
175
196
  // src/internal/resources/admin.ts
176
197
  var Admin = class {
@@ -226,8 +247,9 @@ var AdminPortal = class {
226
247
  return this.request("GET", `/admin-portal/customers/${encodeURIComponent(customerId)}`);
227
248
  }
228
249
  async listTransactions(params) {
250
+ const query = transactionListQuery(params);
229
251
  return this.request("GET", "/admin-portal/transactions", {
230
- query: params
252
+ query
231
253
  });
232
254
  }
233
255
  /**
@@ -270,6 +292,15 @@ var AdminPortal = class {
270
292
  `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`
271
293
  );
272
294
  }
295
+ /**
296
+ * Refunds of ANY merchant mirrored from a connector webhook at a
297
+ * non-terminal status that no sync can advance. Newest first.
298
+ */
299
+ async listUnresolvedRefunds(params) {
300
+ return this.request("GET", "/admin-portal/refunds/unresolved", {
301
+ query: params
302
+ });
303
+ }
273
304
  async analytics(params) {
274
305
  return this.request("GET", "/admin-portal/analytics", {
275
306
  query: params
@@ -746,6 +777,31 @@ var AdminPortal = class {
746
777
  return this.request("PUT", "/admin-portal/promo-config", { body: params });
747
778
  }
748
779
  };
780
+ function transactionListQuery(params) {
781
+ if (!params) return void 0;
782
+ const {
783
+ statuses,
784
+ connectors,
785
+ payment_methods,
786
+ payment_method_types,
787
+ currencies,
788
+ merchant_connector_ids,
789
+ connector_settlement_statuses,
790
+ routing_approaches,
791
+ ...query
792
+ } = params;
793
+ return {
794
+ ...query,
795
+ ...statuses?.length ? { statuses: statuses.join(",") } : {},
796
+ ...connectors?.length ? { connectors: connectors.join(",") } : {},
797
+ ...payment_methods?.length ? { payment_methods: payment_methods.join(",") } : {},
798
+ ...payment_method_types?.length ? { payment_method_types: payment_method_types.join(",") } : {},
799
+ ...currencies?.length ? { currencies: currencies.join(",") } : {},
800
+ ...merchant_connector_ids?.length ? { merchant_connector_ids: merchant_connector_ids.join(",") } : {},
801
+ ...connector_settlement_statuses?.length ? { connector_settlement_statuses: connector_settlement_statuses.join(",") } : {},
802
+ ...routing_approaches?.length ? { routing_approaches: routing_approaches.join(",") } : {}
803
+ };
804
+ }
749
805
 
750
806
  // src/internal/resources/auditLogs.ts
751
807
  var AuditLogs = class {
@@ -1403,6 +1459,8 @@ export {
1403
1459
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
1404
1460
  ALL_CUSTOM_FIELD_OPERATORS,
1405
1461
  ALL_CUSTOM_FIELD_TYPES,
1462
+ APPLE_PAY_BUTTON_STYLES,
1463
+ APPLE_PAY_BUTTON_TYPES,
1406
1464
  Admin,
1407
1465
  AdminPortal,
1408
1466
  Analytics,
@@ -1412,6 +1470,10 @@ export {
1412
1470
  AvailabilityOverrides,
1413
1471
  BRANDING_EXPORT_FORMAT,
1414
1472
  BRANDING_EXPORT_VERSION,
1473
+ CARD_FIELD_CHROMES,
1474
+ CARD_FIELD_FONT_SIZES,
1475
+ CARD_FIELD_WEIGHTS,
1476
+ CARD_FOCUS_RINGS,
1415
1477
  CHECKBOX_CHECKED,
1416
1478
  CHECKBOX_UNCHECKED,
1417
1479
  CHECKOUT_EVENT_KINDS,
@@ -1444,6 +1506,8 @@ export {
1444
1506
  FeeProgramBuilder,
1445
1507
  Files,
1446
1508
  Forex,
1509
+ GOOGLE_PAY_BUTTON_COLORS,
1510
+ GOOGLE_PAY_BUTTON_TYPES,
1447
1511
  Gsm,
1448
1512
  LOCALIZABLE_COPY_FIELDS,
1449
1513
  MAX_SECTION_LABEL_LENGTH,
@@ -1454,10 +1518,13 @@ export {
1454
1518
  NATIVE_PANES_MAX,
1455
1519
  NATIVE_PANE_CATEGORY_KEYS,
1456
1520
  NATIVE_PANE_ICON_KEYS,
1521
+ NOMUPAY_FORM_STYLES,
1457
1522
  OperationLimits,
1458
1523
  PANES_MAX,
1459
1524
  PANE_CATEGORY_KEYS,
1460
1525
  PANE_ICON_KEYS,
1526
+ PAYPAL_CARD_LAYOUTS,
1527
+ PAYPAL_LABEL_STYLES,
1461
1528
  PaypalDisputes,
1462
1529
  PlatformBilling,
1463
1530
  PlatformFees,
@@ -1467,7 +1534,11 @@ export {
1467
1534
  SECTION_ALIASES,
1468
1535
  STRIPE_FALLBACK_PANE_CATALOG,
1469
1536
  STRIPE_FALLBACK_PANE_METHODS,
1537
+ STRIPE_INPUT_STYLES,
1538
+ STRIPE_LABEL_PLACEMENTS,
1470
1539
  STRIPE_NATIVE_PANE_METHODS,
1540
+ STRIPE_SPACINGS,
1541
+ STRIPE_THEMES,
1471
1542
  SURCHARGE_BORDER_STYLES,
1472
1543
  SURCHARGE_BORDER_WIDTHS,
1473
1544
  SURCHARGE_FIGURE_MODES,
@@ -1497,6 +1568,8 @@ export {
1497
1568
  buildBrandingExport,
1498
1569
  buttonPadValue,
1499
1570
  canonicalSectionId,
1571
+ cardFieldFontPx,
1572
+ cardFieldWeightValue,
1500
1573
  checkoutCopy,
1501
1574
  checkoutLocaleDir,
1502
1575
  cloneBranding,
@@ -1560,11 +1633,15 @@ export {
1560
1633
  readableInkOn,
1561
1634
  resolveAirwallexCardPreset,
1562
1635
  resolveAirwallexLabelStyle,
1636
+ resolveApplePayButtonStyle,
1637
+ resolveGooglePayButtonColor,
1638
+ resolveStripeTheme,
1563
1639
  ruleMatchToTree,
1564
1640
  sanitizeCustomCss,
1565
1641
  sectionLabel,
1566
1642
  sectionOrderOf,
1567
1643
  shadowFor,
1644
+ stripeSpacingValues,
1568
1645
  surchargeFigurePlan,
1569
1646
  surchargeShowsLabel,
1570
1647
  surchargeStyleDrawsAShape,