@delopay/sdk 0.322.0 → 0.326.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-SKSZ6A5U.js → chunk-DB725WRJ.js} +97 -25
- package/dist/chunk-DB725WRJ.js.map +1 -0
- package/dist/{index-DhWICEM_.d.cts → index-AF0ehsYg.d.cts} +411 -60
- package/dist/{index-DhWICEM_.d.ts → index-AF0ehsYg.d.ts} +411 -60
- package/dist/index.cjs +96 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +96 -24
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SKSZ6A5U.js.map +0 -1
|
@@ -527,27 +527,6 @@ var Billing = class {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
-
// src/resources/blocklist.ts
|
|
531
|
-
var Blocklist = class {
|
|
532
|
-
constructor(request) {
|
|
533
|
-
this.request = request;
|
|
534
|
-
}
|
|
535
|
-
async add(params) {
|
|
536
|
-
return this.request("POST", "/blocklist", { body: params });
|
|
537
|
-
}
|
|
538
|
-
async remove(params) {
|
|
539
|
-
return this.request("DELETE", "/blocklist", { body: params });
|
|
540
|
-
}
|
|
541
|
-
async list(params) {
|
|
542
|
-
return this.request("GET", "/blocklist", {
|
|
543
|
-
query: params
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
async toggle(params) {
|
|
547
|
-
return this.request("POST", "/blocklist/toggle", { body: params });
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
|
|
551
530
|
// src/resources/connectors.ts
|
|
552
531
|
var Connectors = class {
|
|
553
532
|
constructor(request) {
|
|
@@ -3648,6 +3627,30 @@ var Refunds = class {
|
|
|
3648
3627
|
async list(params) {
|
|
3649
3628
|
return this.request("POST", "/refunds/list", { body: params });
|
|
3650
3629
|
}
|
|
3630
|
+
/**
|
|
3631
|
+
* Every identifier a block of each selected refund's buyer would name,
|
|
3632
|
+
* changing nothing: the payment's email and customer id, and every IP
|
|
3633
|
+
* address and device id seen on its checkout, each with where it was seen
|
|
3634
|
+
* and whether it is already blocked. Name the refunds by `ids` or by the
|
|
3635
|
+
* list's `filters`, exactly one of the two; at most `max_refunds` are read.
|
|
3636
|
+
*
|
|
3637
|
+
* `POST /refunds/bulk/block-buyer/preview`. Needs a dashboard JWT.
|
|
3638
|
+
*/
|
|
3639
|
+
async bulkBlockPreview(request) {
|
|
3640
|
+
return this.request("POST", "/refunds/bulk/block-buyer/preview", { body: request });
|
|
3641
|
+
}
|
|
3642
|
+
/**
|
|
3643
|
+
* Add the buyer of each listed refund's payment to the buyer blocklist with
|
|
3644
|
+
* the chosen `kinds`, leaving out the `exclude`d identifiers, at most the
|
|
3645
|
+
* preview's `max_run_refunds` per call. The server reads each payment again;
|
|
3646
|
+
* it never blocks a value the request names. Identifiers already blocked
|
|
3647
|
+
* are not added again, and every refund gets its own result.
|
|
3648
|
+
*
|
|
3649
|
+
* `POST /refunds/bulk/block-buyer`. Needs a dashboard JWT.
|
|
3650
|
+
*/
|
|
3651
|
+
async bulkBlockBuyer(request) {
|
|
3652
|
+
return this.request("POST", "/refunds/bulk/block-buyer", { body: request });
|
|
3653
|
+
}
|
|
3651
3654
|
// --- OLAP extensions (Task 4.3) ---
|
|
3652
3655
|
/**
|
|
3653
3656
|
* Refund requests buyers raised from the customer portal, newest first.
|
|
@@ -4222,7 +4225,8 @@ var CheckoutThemeConversion = class {
|
|
|
4222
4225
|
* that governs seeing how a checkout looks.
|
|
4223
4226
|
*
|
|
4224
4227
|
* @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
|
|
4225
|
-
* shop,
|
|
4228
|
+
* shop, the dimension to group by, and the optional `device_class`,
|
|
4229
|
+
* `country` and `selection` filters.
|
|
4226
4230
|
*
|
|
4227
4231
|
* @example Which variant wins on which device, over the last 30 days.
|
|
4228
4232
|
* ```typescript
|
|
@@ -4245,7 +4249,10 @@ var CheckoutThemeConversion = class {
|
|
|
4245
4249
|
profile_id: params.profile_id,
|
|
4246
4250
|
start: params.start,
|
|
4247
4251
|
end: params.end,
|
|
4248
|
-
segment: params.segment
|
|
4252
|
+
segment: params.segment,
|
|
4253
|
+
device_class: params.device_class ?? void 0,
|
|
4254
|
+
country: params.country ?? void 0,
|
|
4255
|
+
selection: params.selection ?? void 0
|
|
4249
4256
|
}
|
|
4250
4257
|
});
|
|
4251
4258
|
}
|
|
@@ -6417,6 +6424,72 @@ var BuyerBlocklist = class {
|
|
|
6417
6424
|
body: params ?? {}
|
|
6418
6425
|
});
|
|
6419
6426
|
}
|
|
6427
|
+
/**
|
|
6428
|
+
* Block the buyer of a payment by the identifiers the payment carries:
|
|
6429
|
+
* its card (the Stripe fingerprint), email, IP, device or customer, in the
|
|
6430
|
+
* payment's shop or in every shop.
|
|
6431
|
+
* `POST /buyer-blocklist/from-payment`
|
|
6432
|
+
*/
|
|
6433
|
+
async createFromPayment(params) {
|
|
6434
|
+
return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
|
|
6435
|
+
}
|
|
6436
|
+
/**
|
|
6437
|
+
* Retry now every failed or pending Radar sync of an entry.
|
|
6438
|
+
* `POST /buyer-blocklist/{entry_id}/sync/retry`
|
|
6439
|
+
*/
|
|
6440
|
+
async retrySync(entryId) {
|
|
6441
|
+
return this.request("POST", `/buyer-blocklist/${encodeURIComponent(entryId)}/sync/retry`);
|
|
6442
|
+
}
|
|
6443
|
+
/**
|
|
6444
|
+
* The Radar sync settings of every Stripe connection the caller sees. A
|
|
6445
|
+
* role that hides processor names is refused (403).
|
|
6446
|
+
* `GET /buyer-blocklist/radar-sync`
|
|
6447
|
+
*/
|
|
6448
|
+
async listRadarSync() {
|
|
6449
|
+
return this.request("GET", "/buyer-blocklist/radar-sync");
|
|
6450
|
+
}
|
|
6451
|
+
/**
|
|
6452
|
+
* The Radar sync settings of one Stripe connection.
|
|
6453
|
+
* `GET /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6454
|
+
*/
|
|
6455
|
+
async retrieveRadarSync(merchantConnectorId) {
|
|
6456
|
+
return this.request(
|
|
6457
|
+
"GET",
|
|
6458
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`
|
|
6459
|
+
);
|
|
6460
|
+
}
|
|
6461
|
+
/**
|
|
6462
|
+
* Turn Radar sync on or off for one Stripe connection and set what an
|
|
6463
|
+
* early fraud warning or a review does.
|
|
6464
|
+
* `PUT /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6465
|
+
*/
|
|
6466
|
+
async updateRadarSync(merchantConnectorId, params) {
|
|
6467
|
+
return this.request(
|
|
6468
|
+
"PUT",
|
|
6469
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`,
|
|
6470
|
+
{ body: params }
|
|
6471
|
+
);
|
|
6472
|
+
}
|
|
6473
|
+
/**
|
|
6474
|
+
* Remove every item DeloPay synced from this connection's Radar lists. The
|
|
6475
|
+
* lists themselves are kept.
|
|
6476
|
+
* `POST /buyer-blocklist/radar-sync/{merchant_connector_id}/remove-items`
|
|
6477
|
+
*/
|
|
6478
|
+
async removeRadarItems(merchantConnectorId) {
|
|
6479
|
+
return this.request(
|
|
6480
|
+
"POST",
|
|
6481
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}/remove-items`
|
|
6482
|
+
);
|
|
6483
|
+
}
|
|
6484
|
+
/**
|
|
6485
|
+
* Stripe's fraud signals on a payment (risk, early fraud warnings,
|
|
6486
|
+
* reviews), what of its buyer can be blocked, and the entries that
|
|
6487
|
+
* already match it.
|
|
6488
|
+
* `GET /buyer-blocklist/fraud-signals/{payment_id}`
|
|
6489
|
+
*/
|
|
6490
|
+
async fraudSignals(paymentId) {
|
|
6491
|
+
return this.request("GET", `/buyer-blocklist/fraud-signals/${encodeURIComponent(paymentId)}`);
|
|
6492
|
+
}
|
|
6420
6493
|
};
|
|
6421
6494
|
|
|
6422
6495
|
// src/resources/shopLabels.ts
|
|
@@ -10394,7 +10467,6 @@ var Delopay = class {
|
|
|
10394
10467
|
this.users = new Users(request);
|
|
10395
10468
|
this.apiKeys = new ApiKeys(request);
|
|
10396
10469
|
this.billing = new Billing(request);
|
|
10397
|
-
this.blocklist = new Blocklist(request);
|
|
10398
10470
|
this.fees = new Fees(request);
|
|
10399
10471
|
this.merchantAccounts = new MerchantAccounts(request);
|
|
10400
10472
|
this.projects = new Projects(request);
|
|
@@ -15874,4 +15946,4 @@ export {
|
|
|
15874
15946
|
decodeNativePanes,
|
|
15875
15947
|
encodeNativePanes
|
|
15876
15948
|
};
|
|
15877
|
-
//# sourceMappingURL=chunk-
|
|
15949
|
+
//# sourceMappingURL=chunk-DB725WRJ.js.map
|