message: Fix serialization of credit note properties
diff: @@ -29,18 +29,18 @@ var CreditNoteSchema = Entity.SchemaObject({
  },
  Date: { type: Date, toObject: 'always' },
  Status: { type: String, toObject: 'hasValue' },
  - LineAmountTypes: { type: String },
  - SubTotal: { type: Number },
  - TotalTax: { type: Number },
  - Total: { type: Number },
  + LineAmountTypes: { type: String, toObject: 'hasValue' },
  + SubTotal: { type: Number, toObject: 'hasValue' },
  + TotalTax: { type: Number, toObject: 'hasValue' },
  + Total: { type: Number, toObject: 'hasValue' },
  UpdatedDateUTC: { type: Date, toObject: 'never' },
  - CurrencyCode: { type: String },
  - FullyPaidOnDate: { type: Date },
  + CurrencyCode: { type: String, toObject: 'hasValue' },
  + FullyPaidOnDate: { type: Date, toObject: 'hasValue' },
  Type: { type: String, toObject: 'always' },
  - CreditNoteNumber: { type: String },
  - CurrencyRate: { type: Number },
  - RemainingCredit: { type: Number },
  - Allocations: { type: Array, arrayType: CreditNoteAllocationsSchema },
  + CreditNoteNumber: { type: String, toObject: 'hasValue' },
  + CurrencyRate: { type: Number, toObject: 'hasValue' },
  + RemainingCredit: { type: Number, toObject: 'hasValue' },
  + Allocations: { type: Array, arrayType: CreditNoteAllocationsSchema, toObject: 'hasValue' },
  LineItems: { type: Array, arrayType: LineItemSchema, toObject: 'hasValue' }
  });
  