@delopay/sdk 0.383.0 → 0.384.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-JZBJHC2M.js → chunk-J75SXXXD.js} +18 -3
- package/dist/chunk-J75SXXXD.js.map +1 -0
- package/dist/{index-DaphEdaZ.d.cts → index-B3pOn9vI.d.cts} +75 -12
- package/dist/{index-DaphEdaZ.d.ts → index-B3pOn9vI.d.ts} +75 -12
- package/dist/index.cjs +17 -2
- 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 +30 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -3
- package/dist/internal.d.ts +10 -3
- package/dist/internal.js +14 -1
- package/dist/internal.js.map +1 -1
- package/package.json +19 -17
- package/dist/chunk-JZBJHC2M.js.map +0 -1
|
@@ -9991,7 +9991,8 @@ var Settlement = class {
|
|
|
9991
9991
|
);
|
|
9992
9992
|
}
|
|
9993
9993
|
/**
|
|
9994
|
-
* Generate (or regenerate) the statement for one shop and
|
|
9994
|
+
* Generate (or regenerate) the statement for one shop and period: a
|
|
9995
|
+
* calendar month by `year` and `month`, or any period by its `period_start`.
|
|
9995
9996
|
*
|
|
9996
9997
|
* `POST /settlement/statements/generate`
|
|
9997
9998
|
*/
|
|
@@ -10040,7 +10041,7 @@ var Settlement = class {
|
|
|
10040
10041
|
options
|
|
10041
10042
|
);
|
|
10042
10043
|
}
|
|
10043
|
-
/** Record a transfer against a shop's
|
|
10044
|
+
/** Record a transfer against a shop's period before its statement exists. */
|
|
10044
10045
|
async recordAdvance(params, options) {
|
|
10045
10046
|
return this.request("POST", "/settlement/advances", {
|
|
10046
10047
|
body: params,
|
|
@@ -10054,11 +10055,25 @@ var Settlement = class {
|
|
|
10054
10055
|
profile_id: params.profile_id,
|
|
10055
10056
|
year: params.year,
|
|
10056
10057
|
month: params.month,
|
|
10058
|
+
period_start: params.period_start,
|
|
10057
10059
|
test_mode: params.test_mode
|
|
10058
10060
|
},
|
|
10059
10061
|
...options
|
|
10060
10062
|
});
|
|
10061
10063
|
}
|
|
10064
|
+
/**
|
|
10065
|
+
* A shop's statement periods, newest first: the running one and those that
|
|
10066
|
+
* closed in the last twelve months. Each `period_start` names its period to
|
|
10067
|
+
* {@link generateStatement}, {@link recordAdvance} and {@link listAdvances}.
|
|
10068
|
+
*
|
|
10069
|
+
* `GET /settlement/periods`
|
|
10070
|
+
*/
|
|
10071
|
+
async listPeriods(params, options) {
|
|
10072
|
+
return this.request("GET", "/settlement/periods", {
|
|
10073
|
+
query: { profile_id: params.profile_id },
|
|
10074
|
+
...options
|
|
10075
|
+
});
|
|
10076
|
+
}
|
|
10062
10077
|
/**
|
|
10063
10078
|
* Export a statement as PDF, or with `format` as CSV, JSON
|
|
10064
10079
|
* (`StatementDocument`) or XLSX. Returns the raw bytes as a `Blob`, with
|
|
@@ -17321,4 +17336,4 @@ export {
|
|
|
17321
17336
|
decodeNativePanes,
|
|
17322
17337
|
encodeNativePanes
|
|
17323
17338
|
};
|
|
17324
|
-
//# sourceMappingURL=chunk-
|
|
17339
|
+
//# sourceMappingURL=chunk-J75SXXXD.js.map
|