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