@disruptive-learning/n8n-nodes-gigstack 1.1.5 → 1.1.6
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.
|
@@ -68,6 +68,23 @@ function buildFilterQuery(filters) {
|
|
|
68
68
|
if (filters.team) {
|
|
69
69
|
qs.team = filters.team;
|
|
70
70
|
}
|
|
71
|
+
// Status filter (payments, invoices, receipts)
|
|
72
|
+
if (filters.status) {
|
|
73
|
+
qs.status = filters.status;
|
|
74
|
+
}
|
|
75
|
+
// Client filter
|
|
76
|
+
if (filters.client_id) {
|
|
77
|
+
qs.client_id = filters.client_id;
|
|
78
|
+
}
|
|
79
|
+
// Email filter (payments)
|
|
80
|
+
if (filters.email) {
|
|
81
|
+
qs.email = filters.email;
|
|
82
|
+
}
|
|
83
|
+
// Currency filter (payments)
|
|
84
|
+
if (filters.currency) {
|
|
85
|
+
qs.currency = filters.currency;
|
|
86
|
+
}
|
|
87
|
+
// Date filters
|
|
71
88
|
if (filters.createdAfter) {
|
|
72
89
|
qs['created[gte]'] = Math.floor(new Date(filters.createdAfter).getTime() / 1000);
|
|
73
90
|
}
|
|
@@ -447,6 +447,25 @@ exports.invoiceFields = [
|
|
|
447
447
|
},
|
|
448
448
|
},
|
|
449
449
|
options: [
|
|
450
|
+
{
|
|
451
|
+
displayName: 'Status',
|
|
452
|
+
name: 'status',
|
|
453
|
+
type: 'options',
|
|
454
|
+
options: [
|
|
455
|
+
{ name: 'Valid', value: 'valid' },
|
|
456
|
+
{ name: 'Canceled', value: 'canceled' },
|
|
457
|
+
{ name: 'Pending', value: 'pending' },
|
|
458
|
+
],
|
|
459
|
+
default: '',
|
|
460
|
+
description: 'Filter invoices by status',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
displayName: 'Client ID',
|
|
464
|
+
name: 'client_id',
|
|
465
|
+
type: 'string',
|
|
466
|
+
default: '',
|
|
467
|
+
description: 'Filter invoices by client ID',
|
|
468
|
+
},
|
|
450
469
|
{
|
|
451
470
|
displayName: 'Order By',
|
|
452
471
|
name: 'orderBy',
|
|
@@ -398,6 +398,44 @@ exports.paymentFields = [
|
|
|
398
398
|
},
|
|
399
399
|
},
|
|
400
400
|
options: [
|
|
401
|
+
{
|
|
402
|
+
displayName: 'Status',
|
|
403
|
+
name: 'status',
|
|
404
|
+
type: 'options',
|
|
405
|
+
options: [
|
|
406
|
+
{ name: 'Requires Payment Method', value: 'requires_payment_method' },
|
|
407
|
+
{ name: 'Succeeded', value: 'succeeded' },
|
|
408
|
+
{ name: 'Canceled', value: 'canceled' },
|
|
409
|
+
],
|
|
410
|
+
default: '',
|
|
411
|
+
description: 'Filter payments by status',
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
displayName: 'Client ID',
|
|
415
|
+
name: 'client_id',
|
|
416
|
+
type: 'string',
|
|
417
|
+
default: '',
|
|
418
|
+
description: 'Filter payments by client ID',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
displayName: 'Client Email',
|
|
422
|
+
name: 'email',
|
|
423
|
+
type: 'string',
|
|
424
|
+
default: '',
|
|
425
|
+
placeholder: 'name@email.com',
|
|
426
|
+
description: 'Filter payments by client email address',
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
displayName: 'Currency',
|
|
430
|
+
name: 'currency',
|
|
431
|
+
type: 'options',
|
|
432
|
+
options: [
|
|
433
|
+
{ name: 'MXN - Mexican Peso', value: 'MXN' },
|
|
434
|
+
{ name: 'USD - US Dollar', value: 'USD' },
|
|
435
|
+
],
|
|
436
|
+
default: '',
|
|
437
|
+
description: 'Filter payments by currency',
|
|
438
|
+
},
|
|
401
439
|
{
|
|
402
440
|
displayName: 'Order By',
|
|
403
441
|
name: 'orderBy',
|
|
@@ -313,6 +313,25 @@ exports.receiptFields = [
|
|
|
313
313
|
},
|
|
314
314
|
},
|
|
315
315
|
options: [
|
|
316
|
+
{
|
|
317
|
+
displayName: 'Status',
|
|
318
|
+
name: 'status',
|
|
319
|
+
type: 'options',
|
|
320
|
+
options: [
|
|
321
|
+
{ name: 'Pending', value: 'pending' },
|
|
322
|
+
{ name: 'Stamped', value: 'stamped' },
|
|
323
|
+
{ name: 'Canceled', value: 'canceled' },
|
|
324
|
+
],
|
|
325
|
+
default: '',
|
|
326
|
+
description: 'Filter receipts by status',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
displayName: 'Client ID',
|
|
330
|
+
name: 'client_id',
|
|
331
|
+
type: 'string',
|
|
332
|
+
default: '',
|
|
333
|
+
description: 'Filter receipts by client ID',
|
|
334
|
+
},
|
|
316
335
|
{
|
|
317
336
|
displayName: 'Order By',
|
|
318
337
|
name: 'orderBy',
|
package/package.json
CHANGED