aboutsummaryrefslogtreecommitdiff
path: root/src/classes/invoice.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/invoice.ts')
-rw-r--r--src/classes/invoice.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/classes/invoice.ts b/src/classes/invoice.ts
new file mode 100644
index 0000000..213eddc
--- /dev/null
+++ b/src/classes/invoice.ts
@@ -0,0 +1,34 @@
+import Address from './address'
+import Item from './item'
+
+export default class Customer {
+ InvoiceDate: string
+ InvoiceNumber: number
+ BillingAddress: Address
+ ShippingAddress: Address
+ IsDraft: boolean
+ Items: Item[]
+
+ CustomerName: string
+ CustomerGstin: string
+ CustomerContactName: string
+ CustomerPhone: string
+ CustomerEmail: string
+ CustomerWebsite: string
+
+ constructor() {
+ this.InvoiceDate = ""
+ this.InvoiceNumber = 0
+ this.BillingAddress = new Address()
+ this.ShippingAddress = new Address()
+ this.IsDraft = true
+ this.Items = []
+
+ this.CustomerName = ""
+ this.CustomerGstin = ""
+ this.CustomerContactName = ""
+ this.CustomerPhone = ""
+ this.CustomerEmail = ""
+ this.CustomerWebsite = ""
+ }
+}