<commit_before>require("should");
var validateUnitPaymentCorrectionNoteItem = require('../purchasing/unit-payment-correction-note-item-validator');

module.exports = function (data) {
    data.should.have.property('no');
    data.no.should.instanceOf(String);
    
    data.should.have.property('date');
    data.date.should.instanceOf(Date);
    
    data.should.have.property('unitPaymentOrderId');
    data.unitPaymentOrderId.should.instanceof(Object);
    
    data.should.have.property('unitPaymentOrder');
    data.unitPaymentOrder.should.instanceof(Object);
    
    data.should.have.property('invoiceCorrectionNo');
    data.invoiceCorrectionNo.should.instanceof(String);
    
    data.should.have.property('invoiceCorrectionDate');
    data.invoiceCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('incomeTaxCorrectionNo');
    data.incomeTaxCorrectionNo.should.instanceof(String);
    
    data.should.have.property('incomeTaxCorrectionDate');
    data.incomeTaxCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('vatTaxCorrectionNo');
    data.vatTaxCorrectionNo.should.instanceof(String);
    
    data.should.have.property('vatTaxCorrectionDate');
    data.vatTaxCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('returNoteNo');
    data.returNoteNo.should.instanceof(String);
    
    data.should.have.property('priceCorrectionType');
    data.priceCorrectionType.should.instanceof(String);
    
    data.should.have.property('releaseOrderNoteNo');
    data.releaseOrderNoteNo.should.instanceof(String);
    
    data.should.have.property('remark');
    data.remark.should.instanceOf(String);
    
    data.should.have.property('items');
    data.items.should.instanceOf(Array); 
    for (var item of data.items) {
        validateUnitPaymentCorrectionNoteItem(item);<commit_msg>update field priceCorrectionType  -> correctionType<commit_after>require("should");
var validateUnitPaymentCorrectionNoteItem = require('../purchasing/unit-payment-correction-note-item-validator');

module.exports = function (data) {
    data.should.have.property('no');
    data.no.should.instanceOf(String);
    
    data.should.have.property('date');
    data.date.should.instanceOf(Date);
    
    data.should.have.property('unitPaymentOrderId');
    data.unitPaymentOrderId.should.instanceof(Object);
    
    data.should.have.property('unitPaymentOrder');
    data.unitPaymentOrder.should.instanceof(Object);
    
    data.should.have.property('invoiceCorrectionNo');
    data.invoiceCorrectionNo.should.instanceof(String);
    
    data.should.have.property('invoiceCorrectionDate');
    data.invoiceCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('incomeTaxCorrectionNo');
    data.incomeTaxCorrectionNo.should.instanceof(String);
    
    data.should.have.property('incomeTaxCorrectionDate');
    data.incomeTaxCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('vatTaxCorrectionNo');
    data.vatTaxCorrectionNo.should.instanceof(String);
    
    data.should.have.property('vatTaxCorrectionDate');
    data.vatTaxCorrectionDate.should.instanceof(Date);
    
    data.should.have.property('returNoteNo');
    data.returNoteNo.should.instanceof(String);
    
    data.should.have.property('correctionType');
    data.correctionType.should.instanceof(String);
    
    data.should.have.property('releaseOrderNoteNo');
    data.releaseOrderNoteNo.should.instanceof(String);
    
    data.should.have.property('remark');
    data.remark.should.instanceOf(String);
    
    data.should.have.property('items');
    data.items.should.instanceOf(Array); 
    for (var item of data.items) {
        validateUnitPaymentCorrectionNoteItem(item);
{'fraction_non_alphanumeric': 0.13078149920255183, 'fraction_numerical': 0.0, 'mean_word_length': 4.307475317348378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1788407', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1121, 'n_words': 88}