@delopay/sdk 0.225.0 → 0.226.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-KJFUYMWL.js → chunk-ILCBRQSO.js} +45 -2
- package/dist/chunk-ILCBRQSO.js.map +1 -0
- package/dist/index.cjs +45 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +153 -2
- package/dist/index.d.ts +153 -2
- package/dist/index.js +3 -1
- package/dist/internal.cjs +45 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KJFUYMWL.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
AvailabilityOverrides: () => AvailabilityOverrides,
|
|
42
42
|
BRANDING_EXPORT_FORMAT: () => BRANDING_EXPORT_FORMAT,
|
|
43
43
|
BRANDING_EXPORT_VERSION: () => BRANDING_EXPORT_VERSION,
|
|
44
|
+
BuyerBlocklist: () => BuyerBlocklist,
|
|
44
45
|
CARD_FIELD_CHROMES: () => CARD_FIELD_CHROMES,
|
|
45
46
|
CARD_FIELD_FONT_SIZES: () => CARD_FIELD_FONT_SIZES,
|
|
46
47
|
CARD_FIELD_WEIGHTS: () => CARD_FIELD_WEIGHTS,
|
|
@@ -5368,6 +5369,45 @@ var SellToRestrictions = class {
|
|
|
5368
5369
|
}
|
|
5369
5370
|
};
|
|
5370
5371
|
|
|
5372
|
+
// src/resources/buyerBlocklist.ts
|
|
5373
|
+
var BuyerBlocklist = class {
|
|
5374
|
+
constructor(request) {
|
|
5375
|
+
this.request = request;
|
|
5376
|
+
}
|
|
5377
|
+
/**
|
|
5378
|
+
* One page of blocked buyers, newest first, filtered by scope, kind and a
|
|
5379
|
+
* search over the value and the note. Expired entries are not listed.
|
|
5380
|
+
* `GET /buyer-blocklist`
|
|
5381
|
+
*/
|
|
5382
|
+
async list(params) {
|
|
5383
|
+
return this.request("GET", "/buyer-blocklist", {
|
|
5384
|
+
query: params
|
|
5385
|
+
});
|
|
5386
|
+
}
|
|
5387
|
+
/**
|
|
5388
|
+
* Block a buyer in one shop or, without `profile_id`, in every shop of the
|
|
5389
|
+
* merchant. The value is normalised as it is matched; a value already
|
|
5390
|
+
* blocked in that scope is refused. The change is recorded in the audit log
|
|
5391
|
+
* before it is made.
|
|
5392
|
+
* `POST /buyer-blocklist`
|
|
5393
|
+
*/
|
|
5394
|
+
async create(params) {
|
|
5395
|
+
return this.request("POST", "/buyer-blocklist", { body: params });
|
|
5396
|
+
}
|
|
5397
|
+
/**
|
|
5398
|
+
* Remove an entry, so the buyer can pay again. Payments the entry already
|
|
5399
|
+
* refused keep their status. The removal and the optional `reason` are
|
|
5400
|
+
* recorded in the audit log before it is made. The route requires a body,
|
|
5401
|
+
* so `{}` is sent when no reason is given.
|
|
5402
|
+
* `DELETE /buyer-blocklist/{entry_id}`
|
|
5403
|
+
*/
|
|
5404
|
+
async delete(entryId, params) {
|
|
5405
|
+
return this.request("DELETE", `/buyer-blocklist/${encodeURIComponent(entryId)}`, {
|
|
5406
|
+
body: params ?? {}
|
|
5407
|
+
});
|
|
5408
|
+
}
|
|
5409
|
+
};
|
|
5410
|
+
|
|
5371
5411
|
// src/resources/checkoutRecovery.ts
|
|
5372
5412
|
var CheckoutRecovery = class {
|
|
5373
5413
|
constructor(request) {
|
|
@@ -8015,6 +8055,7 @@ var Delopay = class {
|
|
|
8015
8055
|
this.regions = new Regions(request);
|
|
8016
8056
|
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
8017
8057
|
this.sellToRestrictions = new SellToRestrictions(request);
|
|
8058
|
+
this.buyerBlocklist = new BuyerBlocklist(request);
|
|
8018
8059
|
this.checkoutRecovery = new CheckoutRecovery(request);
|
|
8019
8060
|
this.costRules = new CostRules(request);
|
|
8020
8061
|
this.externalRecords = new ExternalRecords(request);
|
|
@@ -11565,7 +11606,9 @@ var CheckoutSession = class {
|
|
|
11565
11606
|
*
|
|
11566
11607
|
* The router judges the card's issuing country and the buyer's IP country
|
|
11567
11608
|
* against the shop's sell-to restrictions before Stripe authorises, and a
|
|
11568
|
-
* refusal throws a `DelopayError` with code `DE_10`.
|
|
11609
|
+
* refusal throws a `DelopayError` with code `DE_10`. A buyer on the
|
|
11610
|
+
* merchant's buyer blocklist is refused before any Stripe call with code
|
|
11611
|
+
* `DE_14` (`buyer_blocked`, 422), which names no entry. When the answer's
|
|
11569
11612
|
* `status` is `requires_action`, run `stripe.handleNextAction` with its
|
|
11570
11613
|
* `client_secret` — safe, because the intent is `confirmation_method=manual`
|
|
11571
11614
|
* and that secret confirms nothing without the secret key — then call this
|
|
@@ -12167,6 +12210,7 @@ var encodeNativePanes = encodePanes;
|
|
|
12167
12210
|
AvailabilityOverrides,
|
|
12168
12211
|
BRANDING_EXPORT_FORMAT,
|
|
12169
12212
|
BRANDING_EXPORT_VERSION,
|
|
12213
|
+
BuyerBlocklist,
|
|
12170
12214
|
CARD_FIELD_CHROMES,
|
|
12171
12215
|
CARD_FIELD_FONT_SIZES,
|
|
12172
12216
|
CARD_FIELD_WEIGHTS,
|