Compare commits

...

4 Commits

5 changed files with 20 additions and 11 deletions

View File

@ -1,5 +1,16 @@
# Changelog
## 2025-03-20 - 7.1.0 - feat(ts/finance/invoice)
Add electronicAddress field to IInvoice for circular xinvoice support
- Introduce optional electronicAddress property with scheme and value
- Enhance documentation for buyer reference in invoice interface
## 2025-03-20 - 7.0.0 - BREAKING CHANGE(business/address)
Remove eAddress property from IAddress interface
- Removed eAddress field that allowed storage of electronic contact means (phone, email, peppolId)
## 2025-03-20 - 6.1.2 - fix(business/address)
Improve documentation comments for address interface properties

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "6.1.2",
"version": "7.1.0",
"private": false,
"description": "Provides TypeScript definitions for various business, financial, networking, content, and other common classes.",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@tsclass/tsclass',
version: '6.1.2',
version: '7.1.0',
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
}

View File

@ -14,13 +14,4 @@ export interface IAddress {
lat: number;
lng: number;
};
/**
* allows storage of electronic means to reach this address
* can be phone, email
*/
eAddress?: {
email?: string;
phone?: string;
peppolId?: string;
};
}

View File

@ -21,6 +21,13 @@ export interface IInvoice {
* buyer reference is an optional field, that helps the buyer to identify the invoice
*/
buyerReference?: string;
/**
* also a kind of reference, esspecially needed for circular xinvoice support.
*/
electronicAddress?: {
scheme: string;
value: string;
};
type: 'creditnote' | 'debitnote';
status: TInvoiceStatus;
items: IInvoiceItem[];