@merchi/sdk 1.42.7 → 1.42.8
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/entity.js +3 -0
- package/package.json +1 -1
- package/src/entity.ts +5 -0
package/dist/entity.js
CHANGED
|
@@ -691,6 +691,9 @@ var Entity = /** @class */ (function () {
|
|
|
691
691
|
if (options.isTest !== undefined) {
|
|
692
692
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
693
693
|
}
|
|
694
|
+
if (options.invoicePaid !== undefined) {
|
|
695
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
696
|
+
}
|
|
694
697
|
if (options.sourceChannel !== undefined) {
|
|
695
698
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
696
699
|
}
|
package/package.json
CHANGED
package/src/entity.ts
CHANGED
|
@@ -131,6 +131,8 @@ interface ListOptions {
|
|
|
131
131
|
publicOnly?: boolean;
|
|
132
132
|
isDraft?: boolean;
|
|
133
133
|
isTest?: boolean;
|
|
134
|
+
/** true = invoice fully paid, false = invoice issued but not fully paid */
|
|
135
|
+
invoicePaid?: boolean;
|
|
134
136
|
sourceChannel?: string;
|
|
135
137
|
q?: string;
|
|
136
138
|
receiverId?: number;
|
|
@@ -503,6 +505,9 @@ export class Entity {
|
|
|
503
505
|
if (options.isTest !== undefined) {
|
|
504
506
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
505
507
|
}
|
|
508
|
+
if (options.invoicePaid !== undefined) {
|
|
509
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
510
|
+
}
|
|
506
511
|
if (options.sourceChannel !== undefined) {
|
|
507
512
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
508
513
|
}
|