@delopay/sdk 0.109.0 → 0.111.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-XMFG7CPX.js → chunk-TS422PA3.js} +40 -4
- package/dist/chunk-TS422PA3.js.map +1 -0
- package/dist/index.cjs +40 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -2
- package/dist/index.d.ts +135 -2
- package/dist/index.js +3 -1
- package/dist/internal.cjs +40 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +81 -2
- package/dist/internal.d.ts +81 -2
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-XMFG7CPX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
ALL_CUSTOM_FIELD_TYPES: () => ALL_CUSTOM_FIELD_TYPES,
|
|
26
26
|
Analytics: () => Analytics,
|
|
27
27
|
AnalyticsDashboard: () => AnalyticsDashboard,
|
|
28
|
+
Audit: () => Audit,
|
|
28
29
|
AvailabilityOverrides: () => AvailabilityOverrides,
|
|
29
30
|
BRANDING_EXPORT_FORMAT: () => BRANDING_EXPORT_FORMAT,
|
|
30
31
|
BRANDING_EXPORT_VERSION: () => BRANDING_EXPORT_VERSION,
|
|
@@ -4129,6 +4130,25 @@ var Subscriptions = class {
|
|
|
4129
4130
|
}
|
|
4130
4131
|
};
|
|
4131
4132
|
|
|
4133
|
+
// src/resources/audit.ts
|
|
4134
|
+
var Audit = class {
|
|
4135
|
+
constructor(request) {
|
|
4136
|
+
this.request = request;
|
|
4137
|
+
}
|
|
4138
|
+
async list(params) {
|
|
4139
|
+
return this.request("GET", "/audit", {
|
|
4140
|
+
query: params
|
|
4141
|
+
});
|
|
4142
|
+
}
|
|
4143
|
+
/**
|
|
4144
|
+
* One entry. An id belonging to another merchant answers 404, not 403 — the
|
|
4145
|
+
* endpoint does not confirm that an entry it will not serve exists.
|
|
4146
|
+
*/
|
|
4147
|
+
async retrieve(logId) {
|
|
4148
|
+
return this.request("GET", `/audit/${encodeURIComponent(logId)}`);
|
|
4149
|
+
}
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4132
4152
|
// src/resources/settlement.ts
|
|
4133
4153
|
var Settlement = class {
|
|
4134
4154
|
constructor(request) {
|
|
@@ -4630,6 +4650,7 @@ var Delopay = class {
|
|
|
4630
4650
|
this.relay = new Relay(request);
|
|
4631
4651
|
this.stripeConnect = new StripeConnect(request);
|
|
4632
4652
|
this.threeDsRules = new ThreeDsRules(request);
|
|
4653
|
+
this.audit = new Audit(request);
|
|
4633
4654
|
this.settlement = new Settlement(request);
|
|
4634
4655
|
this.operationLimits = new OperationLimits(request);
|
|
4635
4656
|
this.risk = new Risk(request);
|
|
@@ -6551,7 +6572,15 @@ var PANE_ICON_KEYS = [
|
|
|
6551
6572
|
"apple",
|
|
6552
6573
|
"google",
|
|
6553
6574
|
"bnpl",
|
|
6554
|
-
"cash"
|
|
6575
|
+
"cash",
|
|
6576
|
+
// Brand marks, not category glyphs: the checkout draws PayPal's monogram,
|
|
6577
|
+
// Klarna's squircle-K and the Bitcoin mark for these, the same logos the
|
|
6578
|
+
// bespoke panes they replace already drew. Listed here so a merchant's own
|
|
6579
|
+
// dashboard can offer them; the router decides which one a tile *defaults*
|
|
6580
|
+
// to, and a router predating them simply keeps sending the old default.
|
|
6581
|
+
"paypal",
|
|
6582
|
+
"klarna",
|
|
6583
|
+
"crypto"
|
|
6555
6584
|
];
|
|
6556
6585
|
var PANE_CATEGORY_KEYS = [
|
|
6557
6586
|
"wallet",
|
|
@@ -6575,7 +6604,11 @@ function offerablePaneMethods(catalog) {
|
|
|
6575
6604
|
}
|
|
6576
6605
|
var DISPLAY_DEFAULTS_BY_KEY = {
|
|
6577
6606
|
apple_pay: { icon: "apple", category: "wallet" },
|
|
6578
|
-
google_pay: { icon: "google", category: "wallet" }
|
|
6607
|
+
google_pay: { icon: "google", category: "wallet" },
|
|
6608
|
+
paypal: { icon: "paypal", category: "wallet" },
|
|
6609
|
+
// Both the Klarna connector's own tile and Stripe's Klarna. Affirm stays on
|
|
6610
|
+
// the generic `bnpl` glyph — same rail, no mark of its own.
|
|
6611
|
+
klarna: { icon: "klarna", category: "bnpl" }
|
|
6579
6612
|
};
|
|
6580
6613
|
var DISPLAY_DEFAULTS_BY_PAYMENT_METHOD = {
|
|
6581
6614
|
wallet: { icon: "wallet", category: "wallet" },
|
|
@@ -6585,7 +6618,10 @@ var DISPLAY_DEFAULTS_BY_PAYMENT_METHOD = {
|
|
|
6585
6618
|
bank_redirect: { icon: "bank", category: "bank_redirect" },
|
|
6586
6619
|
bank_transfer: { icon: "bank", category: "bank_transfer" },
|
|
6587
6620
|
bank_debit: { icon: "bank", category: "bank_transfer" },
|
|
6588
|
-
|
|
6621
|
+
// Cryptomus and NowPayments publish the same `crypto` key on this rail, and
|
|
6622
|
+
// the router defaults both to the Bitcoin mark.
|
|
6623
|
+
crypto: { icon: "crypto", category: "crypto" },
|
|
6624
|
+
// Skinsback, which has no mark: the router defaults it to `wallet` too.
|
|
6589
6625
|
game_items: { icon: "wallet", category: "game_items" },
|
|
6590
6626
|
cash: { icon: "cash", category: "cash" },
|
|
6591
6627
|
voucher: { icon: "cash", category: "cash" }
|
|
@@ -6777,6 +6813,7 @@ var encodeNativePanes = encodePanes;
|
|
|
6777
6813
|
ALL_CUSTOM_FIELD_TYPES,
|
|
6778
6814
|
Analytics,
|
|
6779
6815
|
AnalyticsDashboard,
|
|
6816
|
+
Audit,
|
|
6780
6817
|
AvailabilityOverrides,
|
|
6781
6818
|
BRANDING_EXPORT_FORMAT,
|
|
6782
6819
|
BRANDING_EXPORT_VERSION,
|