@delopay/sdk 0.323.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-5OGNNLHP.js → chunk-DB725WRJ.js} +91 -23
- package/dist/chunk-DB725WRJ.js.map +1 -0
- package/dist/{index-TnZlF8q3.d.cts → index-AF0ehsYg.d.cts} +387 -58
- package/dist/{index-TnZlF8q3.d.ts → index-AF0ehsYg.d.ts} +387 -58
- package/dist/index.cjs +90 -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 +90 -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 +17 -18
- package/dist/chunk-5OGNNLHP.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -815,27 +815,6 @@ var Billing = class {
|
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
|
|
818
|
-
// src/resources/blocklist.ts
|
|
819
|
-
var Blocklist = class {
|
|
820
|
-
constructor(request) {
|
|
821
|
-
this.request = request;
|
|
822
|
-
}
|
|
823
|
-
async add(params) {
|
|
824
|
-
return this.request("POST", "/blocklist", { body: params });
|
|
825
|
-
}
|
|
826
|
-
async remove(params) {
|
|
827
|
-
return this.request("DELETE", "/blocklist", { body: params });
|
|
828
|
-
}
|
|
829
|
-
async list(params) {
|
|
830
|
-
return this.request("GET", "/blocklist", {
|
|
831
|
-
query: params
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
async toggle(params) {
|
|
835
|
-
return this.request("POST", "/blocklist/toggle", { body: params });
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
|
|
839
818
|
// src/resources/connectors.ts
|
|
840
819
|
var Connectors = class {
|
|
841
820
|
constructor(request) {
|
|
@@ -3936,6 +3915,30 @@ var Refunds = class {
|
|
|
3936
3915
|
async list(params) {
|
|
3937
3916
|
return this.request("POST", "/refunds/list", { body: params });
|
|
3938
3917
|
}
|
|
3918
|
+
/**
|
|
3919
|
+
* Every identifier a block of each selected refund's buyer would name,
|
|
3920
|
+
* changing nothing: the payment's email and customer id, and every IP
|
|
3921
|
+
* address and device id seen on its checkout, each with where it was seen
|
|
3922
|
+
* and whether it is already blocked. Name the refunds by `ids` or by the
|
|
3923
|
+
* list's `filters`, exactly one of the two; at most `max_refunds` are read.
|
|
3924
|
+
*
|
|
3925
|
+
* `POST /refunds/bulk/block-buyer/preview`. Needs a dashboard JWT.
|
|
3926
|
+
*/
|
|
3927
|
+
async bulkBlockPreview(request) {
|
|
3928
|
+
return this.request("POST", "/refunds/bulk/block-buyer/preview", { body: request });
|
|
3929
|
+
}
|
|
3930
|
+
/**
|
|
3931
|
+
* Add the buyer of each listed refund's payment to the buyer blocklist with
|
|
3932
|
+
* the chosen `kinds`, leaving out the `exclude`d identifiers, at most the
|
|
3933
|
+
* preview's `max_run_refunds` per call. The server reads each payment again;
|
|
3934
|
+
* it never blocks a value the request names. Identifiers already blocked
|
|
3935
|
+
* are not added again, and every refund gets its own result.
|
|
3936
|
+
*
|
|
3937
|
+
* `POST /refunds/bulk/block-buyer`. Needs a dashboard JWT.
|
|
3938
|
+
*/
|
|
3939
|
+
async bulkBlockBuyer(request) {
|
|
3940
|
+
return this.request("POST", "/refunds/bulk/block-buyer", { body: request });
|
|
3941
|
+
}
|
|
3939
3942
|
// --- OLAP extensions (Task 4.3) ---
|
|
3940
3943
|
/**
|
|
3941
3944
|
* Refund requests buyers raised from the customer portal, newest first.
|
|
@@ -6709,6 +6712,72 @@ var BuyerBlocklist = class {
|
|
|
6709
6712
|
body: params ?? {}
|
|
6710
6713
|
});
|
|
6711
6714
|
}
|
|
6715
|
+
/**
|
|
6716
|
+
* Block the buyer of a payment by the identifiers the payment carries:
|
|
6717
|
+
* its card (the Stripe fingerprint), email, IP, device or customer, in the
|
|
6718
|
+
* payment's shop or in every shop.
|
|
6719
|
+
* `POST /buyer-blocklist/from-payment`
|
|
6720
|
+
*/
|
|
6721
|
+
async createFromPayment(params) {
|
|
6722
|
+
return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
|
|
6723
|
+
}
|
|
6724
|
+
/**
|
|
6725
|
+
* Retry now every failed or pending Radar sync of an entry.
|
|
6726
|
+
* `POST /buyer-blocklist/{entry_id}/sync/retry`
|
|
6727
|
+
*/
|
|
6728
|
+
async retrySync(entryId) {
|
|
6729
|
+
return this.request("POST", `/buyer-blocklist/${encodeURIComponent(entryId)}/sync/retry`);
|
|
6730
|
+
}
|
|
6731
|
+
/**
|
|
6732
|
+
* The Radar sync settings of every Stripe connection the caller sees. A
|
|
6733
|
+
* role that hides processor names is refused (403).
|
|
6734
|
+
* `GET /buyer-blocklist/radar-sync`
|
|
6735
|
+
*/
|
|
6736
|
+
async listRadarSync() {
|
|
6737
|
+
return this.request("GET", "/buyer-blocklist/radar-sync");
|
|
6738
|
+
}
|
|
6739
|
+
/**
|
|
6740
|
+
* The Radar sync settings of one Stripe connection.
|
|
6741
|
+
* `GET /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6742
|
+
*/
|
|
6743
|
+
async retrieveRadarSync(merchantConnectorId) {
|
|
6744
|
+
return this.request(
|
|
6745
|
+
"GET",
|
|
6746
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`
|
|
6747
|
+
);
|
|
6748
|
+
}
|
|
6749
|
+
/**
|
|
6750
|
+
* Turn Radar sync on or off for one Stripe connection and set what an
|
|
6751
|
+
* early fraud warning or a review does.
|
|
6752
|
+
* `PUT /buyer-blocklist/radar-sync/{merchant_connector_id}`
|
|
6753
|
+
*/
|
|
6754
|
+
async updateRadarSync(merchantConnectorId, params) {
|
|
6755
|
+
return this.request(
|
|
6756
|
+
"PUT",
|
|
6757
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`,
|
|
6758
|
+
{ body: params }
|
|
6759
|
+
);
|
|
6760
|
+
}
|
|
6761
|
+
/**
|
|
6762
|
+
* Remove every item DeloPay synced from this connection's Radar lists. The
|
|
6763
|
+
* lists themselves are kept.
|
|
6764
|
+
* `POST /buyer-blocklist/radar-sync/{merchant_connector_id}/remove-items`
|
|
6765
|
+
*/
|
|
6766
|
+
async removeRadarItems(merchantConnectorId) {
|
|
6767
|
+
return this.request(
|
|
6768
|
+
"POST",
|
|
6769
|
+
`/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}/remove-items`
|
|
6770
|
+
);
|
|
6771
|
+
}
|
|
6772
|
+
/**
|
|
6773
|
+
* Stripe's fraud signals on a payment (risk, early fraud warnings,
|
|
6774
|
+
* reviews), what of its buyer can be blocked, and the entries that
|
|
6775
|
+
* already match it.
|
|
6776
|
+
* `GET /buyer-blocklist/fraud-signals/{payment_id}`
|
|
6777
|
+
*/
|
|
6778
|
+
async fraudSignals(paymentId) {
|
|
6779
|
+
return this.request("GET", `/buyer-blocklist/fraud-signals/${encodeURIComponent(paymentId)}`);
|
|
6780
|
+
}
|
|
6712
6781
|
};
|
|
6713
6782
|
|
|
6714
6783
|
// src/resources/shopLabels.ts
|
|
@@ -10686,7 +10755,6 @@ var Delopay = class {
|
|
|
10686
10755
|
this.users = new Users(request);
|
|
10687
10756
|
this.apiKeys = new ApiKeys(request);
|
|
10688
10757
|
this.billing = new Billing(request);
|
|
10689
|
-
this.blocklist = new Blocklist(request);
|
|
10690
10758
|
this.fees = new Fees(request);
|
|
10691
10759
|
this.merchantAccounts = new MerchantAccounts(request);
|
|
10692
10760
|
this.projects = new Projects(request);
|