@delopay/sdk 0.225.0 → 0.227.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-J6JKP5UX.js} +47 -2
- package/dist/chunk-J6JKP5UX.js.map +1 -0
- package/dist/index.cjs +47 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +209 -2
- package/dist/index.d.ts +209 -2
- package/dist/index.js +3 -1
- package/dist/internal.cjs +47 -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
|
@@ -5121,6 +5121,47 @@ var SellToRestrictions = class {
|
|
|
5121
5121
|
}
|
|
5122
5122
|
};
|
|
5123
5123
|
|
|
5124
|
+
// src/resources/buyerBlocklist.ts
|
|
5125
|
+
var BuyerBlocklist = class {
|
|
5126
|
+
constructor(request) {
|
|
5127
|
+
this.request = request;
|
|
5128
|
+
}
|
|
5129
|
+
/**
|
|
5130
|
+
* One page of blocked buyers, newest first, filtered by scope, by `kind`
|
|
5131
|
+
* (the entries that include an identifier of that kind) and by a search
|
|
5132
|
+
* over every identifier and the note. Expired entries are not listed.
|
|
5133
|
+
* `GET /buyer-blocklist`
|
|
5134
|
+
*/
|
|
5135
|
+
async list(params) {
|
|
5136
|
+
return this.request("GET", "/buyer-blocklist", {
|
|
5137
|
+
query: params
|
|
5138
|
+
});
|
|
5139
|
+
}
|
|
5140
|
+
/**
|
|
5141
|
+
* Block a buyer in one shop or, without `profile_id`, in every shop of the
|
|
5142
|
+
* merchant, named by one or more of `email`, `ip`, `customer_id` and
|
|
5143
|
+
* `device_id`. Each identifier is normalised as it is matched; an
|
|
5144
|
+
* identifier another entry already names in that scope is refused. The
|
|
5145
|
+
* change is recorded in the audit log before it is made.
|
|
5146
|
+
* `POST /buyer-blocklist`
|
|
5147
|
+
*/
|
|
5148
|
+
async create(params) {
|
|
5149
|
+
return this.request("POST", "/buyer-blocklist", { body: params });
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* Remove an entry, so the buyer can pay again. Payments the entry already
|
|
5153
|
+
* refused keep their status. The removal and the optional `reason` are
|
|
5154
|
+
* recorded in the audit log before it is made. The route requires a body,
|
|
5155
|
+
* so `{}` is sent when no reason is given.
|
|
5156
|
+
* `DELETE /buyer-blocklist/{entry_id}`
|
|
5157
|
+
*/
|
|
5158
|
+
async delete(entryId, params) {
|
|
5159
|
+
return this.request("DELETE", `/buyer-blocklist/${encodeURIComponent(entryId)}`, {
|
|
5160
|
+
body: params ?? {}
|
|
5161
|
+
});
|
|
5162
|
+
}
|
|
5163
|
+
};
|
|
5164
|
+
|
|
5124
5165
|
// src/resources/checkoutRecovery.ts
|
|
5125
5166
|
var CheckoutRecovery = class {
|
|
5126
5167
|
constructor(request) {
|
|
@@ -7768,6 +7809,7 @@ var Delopay = class {
|
|
|
7768
7809
|
this.regions = new Regions(request);
|
|
7769
7810
|
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
7770
7811
|
this.sellToRestrictions = new SellToRestrictions(request);
|
|
7812
|
+
this.buyerBlocklist = new BuyerBlocklist(request);
|
|
7771
7813
|
this.checkoutRecovery = new CheckoutRecovery(request);
|
|
7772
7814
|
this.costRules = new CostRules(request);
|
|
7773
7815
|
this.externalRecords = new ExternalRecords(request);
|
|
@@ -11318,7 +11360,9 @@ var CheckoutSession = class {
|
|
|
11318
11360
|
*
|
|
11319
11361
|
* The router judges the card's issuing country and the buyer's IP country
|
|
11320
11362
|
* against the shop's sell-to restrictions before Stripe authorises, and a
|
|
11321
|
-
* refusal throws a `DelopayError` with code `DE_10`.
|
|
11363
|
+
* refusal throws a `DelopayError` with code `DE_10`. A buyer on the
|
|
11364
|
+
* merchant's buyer blocklist is refused before any Stripe call with code
|
|
11365
|
+
* `DE_14` (`buyer_blocked`, 422), which names no entry. When the answer's
|
|
11322
11366
|
* `status` is `requires_action`, run `stripe.handleNextAction` with its
|
|
11323
11367
|
* `client_secret` — safe, because the intent is `confirmation_method=manual`
|
|
11324
11368
|
* and that secret confirms nothing without the secret key — then call this
|
|
@@ -11918,6 +11962,7 @@ export {
|
|
|
11918
11962
|
Regions,
|
|
11919
11963
|
AvailabilityOverrides,
|
|
11920
11964
|
SellToRestrictions,
|
|
11965
|
+
BuyerBlocklist,
|
|
11921
11966
|
CheckoutRecovery,
|
|
11922
11967
|
CostRules,
|
|
11923
11968
|
ExternalRecords,
|
|
@@ -12123,4 +12168,4 @@ export {
|
|
|
12123
12168
|
decodeNativePanes,
|
|
12124
12169
|
encodeNativePanes
|
|
12125
12170
|
};
|
|
12126
|
-
//# sourceMappingURL=chunk-
|
|
12171
|
+
//# sourceMappingURL=chunk-J6JKP5UX.js.map
|