@delopay/sdk 0.178.0 → 0.179.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-ZMQAKTXQ.js → chunk-LCYYPYOP.js} +44 -1
- package/dist/chunk-LCYYPYOP.js.map +1 -0
- package/dist/index.cjs +43 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +169 -3
- package/dist/index.d.ts +169 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +43 -0
- 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 +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZMQAKTXQ.js.map +0 -1
|
@@ -4406,6 +4406,49 @@ var Analytics = class {
|
|
|
4406
4406
|
query: params
|
|
4407
4407
|
});
|
|
4408
4408
|
}
|
|
4409
|
+
/**
|
|
4410
|
+
* Every analytics exclusion of the merchant, with the payments each one
|
|
4411
|
+
* matched in the lookback window (todos#184).
|
|
4412
|
+
*
|
|
4413
|
+
* These rules change what the merchant's own dashboards count. Financial
|
|
4414
|
+
* records and transaction lists are never filtered by them.
|
|
4415
|
+
*
|
|
4416
|
+
* ⚠️ `matched_payments` **overlaps between rules and must not be summed**:
|
|
4417
|
+
* a payment matched by three rules is counted once by each. The envelope's
|
|
4418
|
+
* `best_effort` and `lookback_days` qualify every row — matching runs on
|
|
4419
|
+
* client signals that may be absent or expired, within that window.
|
|
4420
|
+
* `GET /analytics/exclusions`
|
|
4421
|
+
*/
|
|
4422
|
+
async listExclusions() {
|
|
4423
|
+
return this.request("GET", "/analytics/exclusions");
|
|
4424
|
+
}
|
|
4425
|
+
/**
|
|
4426
|
+
* Write a new exclusion. A shop-scoped user must name their own shop in
|
|
4427
|
+
* `profile_id`; omitting it applies the rule to every shop of the merchant.
|
|
4428
|
+
* Omitting `surfaces` means **all five**, not none.
|
|
4429
|
+
* `POST /analytics/exclusions`
|
|
4430
|
+
*/
|
|
4431
|
+
async createExclusion(rule) {
|
|
4432
|
+
return this.request("POST", "/analytics/exclusions", { body: rule });
|
|
4433
|
+
}
|
|
4434
|
+
/**
|
|
4435
|
+
* Replace a stored exclusion **completely**. This is not a patch: every
|
|
4436
|
+
* field you leave out reverts to its default rather than keeping its stored
|
|
4437
|
+
* value, so send the whole rule — including an explicit `null` for a
|
|
4438
|
+
* `profile_id`, `value`, `valid_from`, `valid_until` or `note` you mean to
|
|
4439
|
+
* clear, and the full `surfaces` list you mean to keep.
|
|
4440
|
+
* `PUT /analytics/exclusions/{id}`
|
|
4441
|
+
*/
|
|
4442
|
+
async updateExclusion(id, rule) {
|
|
4443
|
+
return this.request("PUT", `/analytics/exclusions/${encodeURIComponent(id)}`, { body: rule });
|
|
4444
|
+
}
|
|
4445
|
+
/**
|
|
4446
|
+
* Delete a stored exclusion. Returns the rule as it was, so a caller can
|
|
4447
|
+
* say what it removed. `DELETE /analytics/exclusions/{id}`
|
|
4448
|
+
*/
|
|
4449
|
+
async deleteExclusion(id) {
|
|
4450
|
+
return this.request("DELETE", `/analytics/exclusions/${encodeURIComponent(id)}`);
|
|
4451
|
+
}
|
|
4409
4452
|
/** Global search. `POST /analytics/search` */
|
|
4410
4453
|
async search(params) {
|
|
4411
4454
|
return this.request("POST", "/analytics/search", { body: params });
|
|
@@ -10287,4 +10330,4 @@ export {
|
|
|
10287
10330
|
decodeNativePanes,
|
|
10288
10331
|
encodeNativePanes
|
|
10289
10332
|
};
|
|
10290
|
-
//# sourceMappingURL=chunk-
|
|
10333
|
+
//# sourceMappingURL=chunk-LCYYPYOP.js.map
|