@delopay/sdk 0.323.0 → 0.329.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-5OGNNLHP.js → chunk-NKAIFOCG.js} +99 -23
- package/dist/chunk-NKAIFOCG.js.map +1 -0
- package/dist/{index-TnZlF8q3.d.cts → index-CuVWRoHh.d.cts} +419 -60
- package/dist/{index-TnZlF8q3.d.ts → index-CuVWRoHh.d.ts} +419 -60
- package/dist/index.cjs +98 -22
- 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 +98 -22
- 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-5OGNNLHP.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -833,27 +833,6 @@ var Billing = class {
|
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
835
|
|
|
836
|
-
// src/resources/blocklist.ts
|
|
837
|
-
var Blocklist = class {
|
|
838
|
-
constructor(request) {
|
|
839
|
-
this.request = request;
|
|
840
|
-
}
|
|
841
|
-
async add(params) {
|
|
842
|
-
return this.request("POST", "/blocklist", { body: params });
|
|
843
|
-
}
|
|
844
|
-
async remove(params) {
|
|
845
|
-
return this.request("DELETE", "/blocklist", { body: params });
|
|
846
|
-
}
|
|
847
|
-
async list(params) {
|
|
848
|
-
return this.request("GET", "/blocklist", {
|
|
849
|
-
query: params
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
async toggle(params) {
|
|
853
|
-
return this.request("POST", "/blocklist/toggle", { body: params });
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
|
-
|
|
857
836
|
// src/resources/connectors.ts
|
|
858
837
|
var Connectors = class {
|
|
859
838
|
constructor(request) {
|
|
@@ -2361,6 +2340,14 @@ var Events = class {
|
|
|
2361
2340
|
async list(merchantId, params) {
|
|
2362
2341
|
return this.request("POST", `/events/${encodeURIComponent(merchantId)}`, { body: params });
|
|
2363
2342
|
}
|
|
2343
|
+
/**
|
|
2344
|
+
* Every delivery attempt of one event, initial attempt first.
|
|
2345
|
+
* `GET /events/{merchant_id}/{event_id}/attempts`
|
|
2346
|
+
*
|
|
2347
|
+
* Each entry describes one attempt: `attempt_delivered` is that attempt's own
|
|
2348
|
+
* result, while `is_delivery_successful` and `delivery_terminal_reason` are
|
|
2349
|
+
* the event's and read the same on every entry.
|
|
2350
|
+
*/
|
|
2364
2351
|
async listDeliveryAttempts(merchantId, eventId) {
|
|
2365
2352
|
return this.request(
|
|
2366
2353
|
"GET",
|
|
@@ -3954,6 +3941,30 @@ var Refunds = class {
|
|
|
3954
3941
|
async list(params) {
|
|
3955
3942
|
return this.request("POST", "/refunds/list", { body: params });
|
|
3956
3943
|
}
|
|
3944
|
+
/**
|
|
3945
|
+
* Every identifier a block of each selected refund's buyer would name,
|
|
3946
|
+
* changing nothing: the payment's email and customer id, and every IP
|
|
3947
|
+
* address and device id seen on its checkout, each with where it was seen
|
|
3948
|
+
* and whether it is already blocked. Name the refunds by `ids` or by the
|
|
3949
|
+
* list's `filters`, exactly one of the two; at most `max_refunds` are read.
|
|
3950
|
+
*
|
|
3951
|
+
* `POST /refunds/bulk/block-buyer/preview`. Needs a dashboard JWT.
|
|
3952
|
+
*/
|
|
3953
|
+
async bulkBlockPreview(request) {
|
|
3954
|
+
return this.request("POST", "/refunds/bulk/block-buyer/preview", { body: request });
|
|
3955
|
+
}
|
|
3956
|
+
/**
|
|
3957
|
+
* Add the buyer of each listed refund's payment to the buyer blocklist with
|
|
3958
|
+
* the chosen `kinds`, leaving out the `exclude`d identifiers, at most the
|
|
3959
|
+
* preview's `max_run_refunds` per call. The server reads each payment again;
|
|
3960
|
+
* it never blocks a value the request names. Identifiers already blocked
|
|
3961
|
+
* are not added again, and every refund gets its own result.
|
|
3962
|
+
*
|
|
3963
|
+
* `POST /refunds/bulk/block-buyer`. Needs a dashboard JWT.
|
|
3964
|
+
*/
|
|
3965
|
+
async bulkBlockBuyer(request) {
|
|
3966
|
+
return this.request("POST", "/refunds/bulk/block-buyer", { body: request });
|
|
3967
|
+
}
|
|
3957
3968
|
// --- OLAP extensions (Task 4.3) ---
|
|
3958
3969
|
/**
|
|
3959
3970
|
* Refund requests buyers raised from the customer portal, newest first.
|
|
@@ -6727,6 +6738,72 @@ var BuyerBlocklist = class {
|
|
|
6727
6738
|
body: params ?? {}
|
|
6728
6739
|
});
|
|
6729
6740
|
}
|
|
6741
|
+
/**
|
|
6742
|
+
* Block the buyer of a payment by the identifiers the payment carries:
|
|
6743
|
+
* its card (the Stripe fingerprint), email, IP, device or customer, in the
|
|
6744
|
+
* payment's shop or in every shop.
|
|
6745
|
+
* `POST /buyer-blocklist/from-payment`
|
|
6746
|
+
*/
|
|
6747
|
+
async createFromPayment(params) {
|
|
6748
|
+
return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
|
|
6749
|
+
}
|
|
6750
|
+
/**
|
|
6751
|
+
* Retry now every failed or pending Radar sync of an entry.
|
|
6752
|
+
* `POST /buyer-blocklist/{entry_id}/sync/retry`
|
|
6753
|
+
*/
|
|
6754
|
+
async retrySync(entryId) {
|
|
6755
|
+
return this.request("POST", `/buyer-blocklist/${encodeURIComponent(entryId)}/sync/retry`);
|
|
6756
|
+
}
|
|
6757
|
+
/**
|
|
6758
|
+
* The Radar sync settings of every Stripe connection the caller sees. A
|
|
6759
|
+
* role that hides processor names is refused (403).
|
|
6760
|
+
* `GET /buyer-blocklist/radar-sync`
|
|
6761
|
+
*/
|
|
6762
|
+
async listRadarSync() {
|
|
6763
|
+
return this.request("GET", "/buyer-blocklist/radar-sync");
|
|
6764
|
+
}
|
|
6765
|
+
/**
|
|
6766
|
+
* The Radar sync settings of one Stripe connection.
|
|
6767
|
+
* `GET /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6768
|
+
*/
|
|
6769
|
+
async retrieveRadarSync(merchantConnectorId) {
|
|
6770
|
+
return this.request(
|
|
6771
|
+
"GET",
|
|
6772
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`
|
|
6773
|
+
);
|
|
6774
|
+
}
|
|
6775
|
+
/**
|
|
6776
|
+
* Turn Radar sync on or off for one Stripe connection and set what an
|
|
6777
|
+
* early fraud warning or a review does.
|
|
6778
|
+
* `PUT /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6779
|
+
*/
|
|
6780
|
+
async updateRadarSync(merchantConnectorId, params) {
|
|
6781
|
+
return this.request(
|
|
6782
|
+
"PUT",
|
|
6783
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`,
|
|
6784
|
+
{ body: params }
|
|
6785
|
+
);
|
|
6786
|
+
}
|
|
6787
|
+
/**
|
|
6788
|
+
* Remove every item DeloPay synced from this connection's Radar lists. The
|
|
6789
|
+
* lists themselves are kept.
|
|
6790
|
+
* `POST /buyer-blocklist/radar-sync/{merchant_connector_id}/remove-items`
|
|
6791
|
+
*/
|
|
6792
|
+
async removeRadarItems(merchantConnectorId) {
|
|
6793
|
+
return this.request(
|
|
6794
|
+
"POST",
|
|
6795
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}/remove-items`
|
|
6796
|
+
);
|
|
6797
|
+
}
|
|
6798
|
+
/**
|
|
6799
|
+
* Stripe's fraud signals on a payment (risk, early fraud warnings,
|
|
6800
|
+
* reviews), what of its buyer can be blocked, and the entries that
|
|
6801
|
+
* already match it.
|
|
6802
|
+
* `GET /buyer-blocklist/fraud-signals/{payment_id}`
|
|
6803
|
+
*/
|
|
6804
|
+
async fraudSignals(paymentId) {
|
|
6805
|
+
return this.request("GET", `/buyer-blocklist/fraud-signals/${encodeURIComponent(paymentId)}`);
|
|
6806
|
+
}
|
|
6730
6807
|
};
|
|
6731
6808
|
|
|
6732
6809
|
// src/resources/shopLabels.ts
|
|
@@ -10704,7 +10781,6 @@ var Delopay = class {
|
|
|
10704
10781
|
this.users = new Users(request);
|
|
10705
10782
|
this.apiKeys = new ApiKeys(request);
|
|
10706
10783
|
this.billing = new Billing(request);
|
|
10707
|
-
this.blocklist = new Blocklist(request);
|
|
10708
10784
|
this.fees = new Fees(request);
|
|
10709
10785
|
this.merchantAccounts = new MerchantAccounts(request);
|
|
10710
10786
|
this.projects = new Projects(request);
|