@delopay/sdk 0.248.0 → 0.255.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
@@ -20,6 +20,7 @@ import {
20
20
  AvailabilityOverrides,
21
21
  BRANDING_EXPORT_FORMAT,
22
22
  BRANDING_EXPORT_VERSION,
23
+ BUILTIN_PAYMENT_ICON_KEYS,
23
24
  BuyerBlocklist,
24
25
  CARD_FIELD_CHROMES,
25
26
  CARD_FIELD_FONT_SIZES,
@@ -81,7 +82,9 @@ import {
81
82
  PANE_ICON_KEYS,
82
83
  PAYPAL_CARD_LAYOUTS,
83
84
  PAYPAL_LABEL_STYLES,
85
+ PRESENTATION_CONTRACT_VERSION,
84
86
  PaypalDisputes,
87
+ PresentationCache,
85
88
  ProcessorCosts,
86
89
  Products,
87
90
  RTL_CHECKOUT_LOCALES,
@@ -135,6 +138,8 @@ import {
135
138
  applyBrandingVariables,
136
139
  asAirwallexCardPreset,
137
140
  buildBrandingExport,
141
+ builtinPaymentIconDataUri,
142
+ builtinPaymentIconSvg,
138
143
  buttonPadValue,
139
144
  canonicalSectionId,
140
145
  cardFieldFontPx,
@@ -192,6 +197,7 @@ import {
192
197
  isNoticeIcon,
193
198
  isSubscriptionDisputeWebhook,
194
199
  isSubscriptionLifecycleWebhook,
200
+ isSupportedPresentation,
195
201
  knownSectionLabelKey,
196
202
  leaf,
197
203
  logoDimensions,
@@ -209,6 +215,9 @@ import {
209
215
  parseCustomFieldsLoose,
210
216
  parseImportedBranding,
211
217
  parseNoticesLoose,
218
+ presentationIconDataUri,
219
+ presentationIconSrc,
220
+ presentationTiers,
212
221
  programToTree,
213
222
  radiusValue,
214
223
  readableInkOn,
@@ -224,6 +233,7 @@ import {
224
233
  sanitizeCustomCss,
225
234
  sectionLabel,
226
235
  sectionOrderOf,
236
+ selectableEntries,
227
237
  shadowFor,
228
238
  shownNotices,
229
239
  stripeSpacingValues,
@@ -239,7 +249,7 @@ import {
239
249
  visibleCustomFields,
240
250
  whopAccentSwatch,
241
251
  whopCardElement
242
- } from "./chunk-RPPCA42D.js";
252
+ } from "./chunk-U3KDAIWB.js";
243
253
 
244
254
  // src/internal/resources/admin.ts
245
255
  var Admin = class {
@@ -307,6 +317,34 @@ var AdminPortal = class {
307
317
  }
308
318
  );
309
319
  }
320
+ /** Read whether refunds return their share of the platform fee, and the scope supplying it. */
321
+ async getPlatformFeeReturn(merchantId, query = {}) {
322
+ return this.request(
323
+ "GET",
324
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,
325
+ {
326
+ query: { ...query }
327
+ }
328
+ );
329
+ }
330
+ /** Change the fee return for refunds that succeed from now on; earlier refunds keep their decision. */
331
+ async updatePlatformFeeReturn(merchantId, body, query = {}) {
332
+ return this.request(
333
+ "PUT",
334
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,
335
+ {
336
+ query: { ...query },
337
+ body
338
+ }
339
+ );
340
+ }
341
+ /** What each successful refund of one payment returned of the platform fee. */
342
+ async listPaymentPlatformFeeReturns(merchantId, paymentId) {
343
+ return this.request(
344
+ "GET",
345
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transactions/${encodeURIComponent(paymentId)}/platform-fee-returns`
346
+ );
347
+ }
310
348
  /**
311
349
  * The deployment's merchant roles: shared roles, the roles defined in code,
312
350
  * and every merchant's own custom roles. `GET /admin-portal/merchant-roles`
@@ -1866,6 +1904,7 @@ export {
1866
1904
  AvailabilityOverrides,
1867
1905
  BRANDING_EXPORT_FORMAT,
1868
1906
  BRANDING_EXPORT_VERSION,
1907
+ BUILTIN_PAYMENT_ICON_KEYS,
1869
1908
  BuyerBlocklist,
1870
1909
  CARD_FIELD_CHROMES,
1871
1910
  CARD_FIELD_FONT_SIZES,
@@ -1936,11 +1975,13 @@ export {
1936
1975
  PANE_ICON_KEYS,
1937
1976
  PAYPAL_CARD_LAYOUTS,
1938
1977
  PAYPAL_LABEL_STYLES,
1978
+ PRESENTATION_CONTRACT_VERSION,
1939
1979
  PaypalDisputes,
1940
1980
  PlatformBilling,
1941
1981
  PlatformFees,
1942
1982
  PlatformMessageTemplates,
1943
1983
  PlatformSettings,
1984
+ PresentationCache,
1944
1985
  ProcessorCosts,
1945
1986
  Products,
1946
1987
  RTL_CHECKOUT_LOCALES,
@@ -1994,6 +2035,8 @@ export {
1994
2035
  applyBrandingVariables,
1995
2036
  asAirwallexCardPreset,
1996
2037
  buildBrandingExport,
2038
+ builtinPaymentIconDataUri,
2039
+ builtinPaymentIconSvg,
1997
2040
  buttonPadValue,
1998
2041
  canonicalSectionId,
1999
2042
  cardFieldFontPx,
@@ -2051,6 +2094,7 @@ export {
2051
2094
  isNoticeIcon,
2052
2095
  isSubscriptionDisputeWebhook,
2053
2096
  isSubscriptionLifecycleWebhook,
2097
+ isSupportedPresentation,
2054
2098
  knownSectionLabelKey,
2055
2099
  leaf,
2056
2100
  logoDimensions,
@@ -2068,6 +2112,9 @@ export {
2068
2112
  parseCustomFieldsLoose,
2069
2113
  parseImportedBranding,
2070
2114
  parseNoticesLoose,
2115
+ presentationIconDataUri,
2116
+ presentationIconSrc,
2117
+ presentationTiers,
2071
2118
  programToTree,
2072
2119
  radiusValue,
2073
2120
  readableInkOn,
@@ -2082,6 +2129,7 @@ export {
2082
2129
  sanitizeCustomCss,
2083
2130
  sectionLabel,
2084
2131
  sectionOrderOf,
2132
+ selectableEntries,
2085
2133
  shadowFor,
2086
2134
  shownNotices,
2087
2135
  stripeSpacingValues,