File tree 3 files changed +44
-16
lines changed
3 files changed +44
-16
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,12 @@ public function testCompleteInvoiceGenerationFlow(): void
104
104
[
105
105
'taxableAmount ' => 200 ,
106
106
'taxAmount ' => 30 ,
107
- 'percent ' => 15 ,
108
- 'taxScheme ' => ['id ' => 'VAT ' ]
107
+ 'taxCategory ' => [
108
+ 'percent ' => 15 ,
109
+ 'taxScheme ' => [
110
+ 'id ' => 'VAT '
111
+ ]
112
+ ]
109
113
]
110
114
]
111
115
],
@@ -124,8 +128,14 @@ public function testCompleteInvoiceGenerationFlow(): void
124
128
'lineExtensionAmount ' => 200 , // Calculated: 100 * 2 = 200
125
129
'item ' => [
126
130
'name ' => 'Product A ' ,
127
- 'taxPercent ' => 15 ,
128
- 'taxScheme ' => ['id ' => 'VAT ' ]
131
+ 'classifiedTaxCategory ' => [
132
+ [
133
+ 'percent ' => 15 ,
134
+ 'taxScheme ' => [
135
+ 'id ' => 'VAT '
136
+ ]
137
+ ]
138
+ ],
129
139
],
130
140
'price ' => [
131
141
'amount ' => 100 ,
Original file line number Diff line number Diff line change @@ -124,9 +124,11 @@ public function testMapToInvoiceWithValidData(): void
124
124
[
125
125
'taxableAmount ' => 4 ,
126
126
'taxAmount ' => 0.6 ,
127
- 'percent ' => 15 ,
128
- 'taxScheme ' => [
129
- 'id ' => 'VAT '
127
+ 'taxCategory ' => [
128
+ 'percent ' => 15 ,
129
+ 'taxScheme ' => [
130
+ 'id ' => 'VAT '
131
+ ]
130
132
]
131
133
]
132
134
]
@@ -147,10 +149,14 @@ public function testMapToInvoiceWithValidData(): void
147
149
'lineExtensionAmount ' => 4 ,
148
150
'item ' => [
149
151
'name ' => 'Product ' ,
150
- 'taxPercent ' => 15 ,
151
- 'taxScheme ' => [
152
- 'id ' => 'VAT '
153
- ]
152
+ 'classifiedTaxCategory ' => [
153
+ [
154
+ 'percent ' => 15 ,
155
+ 'taxScheme ' => [
156
+ 'id ' => 'VAT '
157
+ ]
158
+ ]
159
+ ],
154
160
],
155
161
'price ' => [
156
162
'amount ' => 2 ,
Original file line number Diff line number Diff line change @@ -79,8 +79,14 @@ public function testValidInvoiceData(): void
79
79
'lineExtensionAmount ' => 200 , // 100 * 2 = 200
80
80
'item ' => [
81
81
'name ' => 'Product A ' ,
82
- 'taxPercent ' => 15 ,
83
- 'taxScheme ' => ['id ' => 'VAT ' ]
82
+ 'classifiedTaxCategory ' => [
83
+ [
84
+ 'percent ' => 15 ,
85
+ 'taxScheme ' => [
86
+ 'id ' => 'VAT '
87
+ ]
88
+ ]
89
+ ],
84
90
],
85
91
'price ' => [
86
92
'amount ' => 100 ,
@@ -154,12 +160,18 @@ public function testMissingRequiredFieldThrowsException(): void
154
160
'lineExtensionAmount ' => 200 ,
155
161
'item ' => [
156
162
'name ' => 'Product A ' ,
157
- 'taxPercent ' => 15 ,
158
- 'taxScheme ' => ['id ' => 'VAT ' ]
163
+ 'classifiedTaxCategory ' => [
164
+ [
165
+ 'percent ' => 15 ,
166
+ 'taxScheme ' => [
167
+ 'id ' => 'VAT '
168
+ ]
169
+ ]
170
+ ],
159
171
],
160
172
'price ' => [
161
173
'amount ' => 100 ,
162
- 'unitCode ' => 'PCE '
174
+ 'unitCode ' => 'PCE ' ,
163
175
],
164
176
'taxTotal ' => [
165
177
'taxAmount ' => 30 ,
You can’t perform that action at this time.
0 commit comments