-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInvoiceRowFactory.js
More file actions
166 lines (127 loc) · 2.51 KB
/
InvoiceRowFactory.js
File metadata and controls
166 lines (127 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/**
* Construct an InvoiceRow class using a specific abstract Model implementation.
*
* @param DataModel {typeof PlainDataModel}
* @return {typeof InvoiceRow}
*/
export function InvoiceRowFactory (DataModel) {
class InvoiceRow extends DataModel {
/**
*
* @param value {object}
*/
constructor (value = {}) {
super(value);
}
/**
*
*/
getId () {
return this.invoiceRowId;
}
/**
*
*/
setId (value) {
this.invoiceRowId = value;
return value;
}
get invoiceRowId () {
return this._get('invoiceRowId');
}
get invoiceId () {
return this._get('invoiceId');
}
get paymentId () {
return this._get('paymentId');
}
get campaignId () {
return this._get('campaignId');
}
get campaignPaymentId () {
return this._get('campaignPaymentId');
}
get productId () {
return this._get('productId');
}
get updated () {
return this._get('updated');
}
get creation () {
return this._get('creation');
}
get startDate () {
return this._get('startDate');
}
get endDate () {
return this._get('endDate');
}
get description () {
return this._get('description');
}
get internalNote () {
return this._get('internalNote');
}
get amount () {
return this._get('amount');
}
get price () {
return this._get('price');
}
get vatPercent () {
return this._get('vatPercent');
}
get discountPercent () {
return this._get('discountPercent');
}
set invoiceRowId (value) {
this._set('invoiceRowId', value);
}
set invoiceId (value) {
this._set('invoiceId', value);
}
set paymentId (value) {
this._set('paymentId', value);
}
set campaignId (value) {
this._set('campaignId', value);
}
set campaignPaymentId (value) {
this._set('campaignPaymentId', value);
}
set productId (value) {
this._set('productId', value);
}
set updated (value) {
this._set('updated', value);
}
set creation (value) {
this._set('creation', value);
}
set startDate (value) {
this._set('startDate', value);
}
set endDate (value) {
this._set('endDate', value);
}
set description (value) {
this._set('description', value);
}
set internalNote (value) {
this._set('internalNote', value);
}
set amount (value) {
this._set('amount', value);
}
set price (value) {
this._set('price', value);
}
set vatPercent (value) {
this._set('vatPercent', value);
}
set discountPercent (value) {
this._set('discountPercent', value);
}
}
return InvoiceRow;
}