payservedb 9.6.1 → 9.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "9.6.1",
3
+ "version": "9.6.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -362,21 +362,33 @@ const invoiceSchema = new mongoose.Schema(
362
362
  response: mongoose.Schema.Types.Mixed,
363
363
  creditNote: {
364
364
 
365
- synced: false,
365
+ synced: {
366
+ type: Boolean,
367
+ default: false
368
+ },
369
+
370
+ syncedAt: Date,
366
371
 
367
372
  creditNoteId: String,
368
373
 
374
+ invoiceNumber: String,
375
+
369
376
  receiptNumber: String,
370
377
 
371
378
  status: String,
372
379
 
373
- syncedAt: Date,
380
+ attempts: {
381
+ type: Number,
382
+ default: 0
383
+ },
384
+
385
+ lastAttemptAt: Date,
374
386
 
375
- response: {},
387
+ errorMessage: String,
376
388
 
377
- error: String
389
+ response: mongoose.Schema.Types.Mixed
378
390
 
379
- }
391
+ }
380
392
  },
381
393
  // New fields for double entry accounts
382
394
  invoiceDoubleEntryAccount: {