freeagent_api 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -1
- data/README.rdoc +194 -22
- data/Rakefile +4 -5
- data/VERSION +1 -1
- data/freeagent_api.gemspec +46 -17
- data/lib/freeagent_api.rb +78 -135
- data/test/authentication_test.rb +13 -0
- data/test/company_test.rb +33 -0
- data/test/contact_test.rb +62 -0
- data/test/invoice_item_test.rb +66 -0
- data/test/invoice_test.rb +70 -0
- data/test/project_test.rb +106 -0
- data/test/stubs/company/invoice_timeline +91 -0
- data/test/stubs/company/tax_timeline +28 -0
- data/test/stubs/contacts/find_all +391 -0
- data/test/stubs/contacts/find_single +29 -0
- data/test/stubs/http/200 +3 -0
- data/test/stubs/http/201 +4 -0
- data/test/stubs/invoice_items/find_all +40 -0
- data/test/stubs/invoice_items/find_single +15 -0
- data/test/stubs/invoices/find_all +239 -0
- data/test/stubs/invoices/find_single +57 -0
- data/test/stubs/projects/find_all +92 -0
- data/test/stubs/projects/find_single +22 -0
- data/test/stubs/projects/invoices +92 -0
- data/test/stubs/projects/timeslips +223 -0
- data/test/stubs/tasks/find_all +42 -0
- data/test/stubs/tasks/find_single +10 -0
- data/test/stubs/timeslips/find_all +52 -0
- data/test/stubs/timeslips/find_single +14 -0
- data/test/task_test.rb +60 -0
- data/test/test_helper.rb +83 -0
- data/test/timeslip_test.rb +62 -0
- metadata +41 -19
- data/test/freeagent_api_test.rb +0 -7
@@ -0,0 +1,239 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Status: 200
|
3
|
+
Content-Type: application/xml; charset=utf-8
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
6
|
+
<invoices type="array">
|
7
|
+
<invoice>
|
8
|
+
<id type="integer">61761</id>
|
9
|
+
<company-id type="integer">3795</company-id>
|
10
|
+
<project-id type="integer"></project-id>
|
11
|
+
<contact-id type="integer">27318</contact-id>
|
12
|
+
<dated-on type="datetime">2009-04-07T00:00:00Z</dated-on>
|
13
|
+
<due-on type="datetime">2009-04-21T00:00:00Z</due-on>
|
14
|
+
<reference>INV014</reference>
|
15
|
+
<net-value type="decimal">1944.0</net-value>
|
16
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
17
|
+
<status>Paid</status>
|
18
|
+
<comments></comments>
|
19
|
+
<discount-percent type="decimal"></discount-percent>
|
20
|
+
<omit-header type="boolean">false</omit-header>
|
21
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
22
|
+
<written-off-date type="datetime"></written-off-date>
|
23
|
+
<invoice-items type="array">
|
24
|
+
<invoice-item>
|
25
|
+
<description>Contract work</description>
|
26
|
+
<id type="integer">142835</id>
|
27
|
+
<invoice-id type="integer">61761</invoice-id>
|
28
|
+
<item-type>-no unit-</item-type>
|
29
|
+
<price type="decimal">1944.0</price>
|
30
|
+
<project-id type="integer" nil="true"></project-id>
|
31
|
+
<quantity type="decimal">1.0</quantity>
|
32
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
33
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
34
|
+
</invoice-item>
|
35
|
+
</invoice-items>
|
36
|
+
</invoice>
|
37
|
+
<invoice>
|
38
|
+
<id type="integer">61765</id>
|
39
|
+
<company-id type="integer">3795</company-id>
|
40
|
+
<project-id type="integer"></project-id>
|
41
|
+
<contact-id type="integer">27309</contact-id>
|
42
|
+
<dated-on type="datetime">2009-04-07T00:00:00Z</dated-on>
|
43
|
+
<due-on type="datetime">2009-04-21T00:00:00Z</due-on>
|
44
|
+
<reference>INV015</reference>
|
45
|
+
<net-value type="decimal">175.0</net-value>
|
46
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
47
|
+
<status>Paid</status>
|
48
|
+
<comments></comments>
|
49
|
+
<discount-percent type="decimal"></discount-percent>
|
50
|
+
<omit-header type="boolean">false</omit-header>
|
51
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
52
|
+
<written-off-date type="datetime"></written-off-date>
|
53
|
+
<invoice-items type="array">
|
54
|
+
<invoice-item>
|
55
|
+
<description>Contract work</description>
|
56
|
+
<id type="integer">142843</id>
|
57
|
+
<invoice-id type="integer">61765</invoice-id>
|
58
|
+
<item-type>-no unit-</item-type>
|
59
|
+
<price type="decimal">175.0</price>
|
60
|
+
<project-id type="integer" nil="true"></project-id>
|
61
|
+
<quantity type="decimal">1.0</quantity>
|
62
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
63
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
64
|
+
</invoice-item>
|
65
|
+
</invoice-items>
|
66
|
+
</invoice>
|
67
|
+
<invoice>
|
68
|
+
<id type="integer">61764</id>
|
69
|
+
<company-id type="integer">3795</company-id>
|
70
|
+
<project-id type="integer"></project-id>
|
71
|
+
<contact-id type="integer">27307</contact-id>
|
72
|
+
<dated-on type="datetime">2009-04-16T00:00:00Z</dated-on>
|
73
|
+
<due-on type="datetime">2009-04-30T00:00:00Z</due-on>
|
74
|
+
<reference>INV016</reference>
|
75
|
+
<net-value type="decimal">35.0</net-value>
|
76
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
77
|
+
<status>Paid</status>
|
78
|
+
<comments></comments>
|
79
|
+
<discount-percent type="decimal"></discount-percent>
|
80
|
+
<omit-header type="boolean">false</omit-header>
|
81
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
82
|
+
<written-off-date type="datetime"></written-off-date>
|
83
|
+
<invoice-items type="array">
|
84
|
+
<invoice-item>
|
85
|
+
<description>Contract work</description>
|
86
|
+
<id type="integer">142842</id>
|
87
|
+
<invoice-id type="integer">61764</invoice-id>
|
88
|
+
<item-type>-no unit-</item-type>
|
89
|
+
<price type="decimal">35.0</price>
|
90
|
+
<project-id type="integer" nil="true"></project-id>
|
91
|
+
<quantity type="decimal">1.0</quantity>
|
92
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
93
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
94
|
+
</invoice-item>
|
95
|
+
</invoice-items>
|
96
|
+
</invoice>
|
97
|
+
<invoice>
|
98
|
+
<id type="integer">61767</id>
|
99
|
+
<company-id type="integer">3795</company-id>
|
100
|
+
<project-id type="integer"></project-id>
|
101
|
+
<contact-id type="integer">27311</contact-id>
|
102
|
+
<dated-on type="datetime">2009-04-16T00:00:00Z</dated-on>
|
103
|
+
<due-on type="datetime">2009-04-30T00:00:00Z</due-on>
|
104
|
+
<reference>INV017</reference>
|
105
|
+
<net-value type="decimal">385.0</net-value>
|
106
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
107
|
+
<status>Paid</status>
|
108
|
+
<comments></comments>
|
109
|
+
<discount-percent type="decimal"></discount-percent>
|
110
|
+
<omit-header type="boolean">false</omit-header>
|
111
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
112
|
+
<written-off-date type="datetime"></written-off-date>
|
113
|
+
<invoice-items type="array">
|
114
|
+
<invoice-item>
|
115
|
+
<description>Contract work</description>
|
116
|
+
<id type="integer">142845</id>
|
117
|
+
<invoice-id type="integer">61767</invoice-id>
|
118
|
+
<item-type>-no unit-</item-type>
|
119
|
+
<price type="decimal">385.0</price>
|
120
|
+
<project-id type="integer" nil="true"></project-id>
|
121
|
+
<quantity type="decimal">1.0</quantity>
|
122
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
123
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
124
|
+
</invoice-item>
|
125
|
+
</invoice-items>
|
126
|
+
</invoice>
|
127
|
+
<invoice>
|
128
|
+
<id type="integer">61768</id>
|
129
|
+
<company-id type="integer">3795</company-id>
|
130
|
+
<project-id type="integer"></project-id>
|
131
|
+
<contact-id type="integer">27318</contact-id>
|
132
|
+
<dated-on type="datetime">2009-05-04T00:00:00Z</dated-on>
|
133
|
+
<due-on type="datetime">2009-05-18T00:00:00Z</due-on>
|
134
|
+
<reference>INV018</reference>
|
135
|
+
<net-value type="decimal">1038.51</net-value>
|
136
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
137
|
+
<status>Paid</status>
|
138
|
+
<comments></comments>
|
139
|
+
<discount-percent type="decimal"></discount-percent>
|
140
|
+
<omit-header type="boolean">false</omit-header>
|
141
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
142
|
+
<written-off-date type="datetime"></written-off-date>
|
143
|
+
<invoice-items type="array">
|
144
|
+
<invoice-item>
|
145
|
+
<description>Contract work</description>
|
146
|
+
<id type="integer">142846</id>
|
147
|
+
<invoice-id type="integer">61768</invoice-id>
|
148
|
+
<item-type>-no unit-</item-type>
|
149
|
+
<price type="decimal">1038.51</price>
|
150
|
+
<project-id type="integer" nil="true"></project-id>
|
151
|
+
<quantity type="decimal">1.0</quantity>
|
152
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
153
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
154
|
+
</invoice-item>
|
155
|
+
</invoice-items>
|
156
|
+
</invoice>
|
157
|
+
<invoice>
|
158
|
+
<id type="integer">61769</id>
|
159
|
+
<company-id type="integer">3795</company-id>
|
160
|
+
<project-id type="integer"></project-id>
|
161
|
+
<contact-id type="integer">27309</contact-id>
|
162
|
+
<dated-on type="datetime">2009-05-05T00:00:00Z</dated-on>
|
163
|
+
<due-on type="datetime">2009-05-19T00:00:00Z</due-on>
|
164
|
+
<reference>INV019</reference>
|
165
|
+
<net-value type="decimal">70.0</net-value>
|
166
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
167
|
+
<status>Paid</status>
|
168
|
+
<comments></comments>
|
169
|
+
<discount-percent type="decimal"></discount-percent>
|
170
|
+
<omit-header type="boolean">false</omit-header>
|
171
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
172
|
+
<written-off-date type="datetime"></written-off-date>
|
173
|
+
<invoice-items type="array">
|
174
|
+
<invoice-item>
|
175
|
+
<description>Contract work</description>
|
176
|
+
<id type="integer">142847</id>
|
177
|
+
<invoice-id type="integer">61769</invoice-id>
|
178
|
+
<item-type>-no unit-</item-type>
|
179
|
+
<price type="decimal">70.0</price>
|
180
|
+
<project-id type="integer" nil="true"></project-id>
|
181
|
+
<quantity type="decimal">1.0</quantity>
|
182
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
183
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
184
|
+
</invoice-item>
|
185
|
+
</invoice-items>
|
186
|
+
</invoice>
|
187
|
+
<invoice>
|
188
|
+
<id type="integer">73867</id>
|
189
|
+
<company-id type="integer">3795</company-id>
|
190
|
+
<project-id type="integer"></project-id>
|
191
|
+
<contact-id type="integer">27308</contact-id>
|
192
|
+
<dated-on type="datetime">2009-10-08T00:00:00Z</dated-on>
|
193
|
+
<due-on type="datetime">2009-10-22T00:00:00Z</due-on>
|
194
|
+
<reference>INV034</reference>
|
195
|
+
<net-value type="decimal">670.0</net-value>
|
196
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
197
|
+
<status>Overdue</status>
|
198
|
+
<comments></comments>
|
199
|
+
<discount-percent type="decimal"></discount-percent>
|
200
|
+
<omit-header type="boolean">false</omit-header>
|
201
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
202
|
+
<written-off-date type="datetime"></written-off-date>
|
203
|
+
<invoice-items type="array">
|
204
|
+
<invoice-item>
|
205
|
+
<description>Email build, testing and delivery.</description>
|
206
|
+
<id type="integer">168981</id>
|
207
|
+
<invoice-id type="integer">73867</invoice-id>
|
208
|
+
<item-type>Hours</item-type>
|
209
|
+
<price type="decimal">35.0</price>
|
210
|
+
<project-id type="integer" nil="true"></project-id>
|
211
|
+
<quantity type="decimal">6.0</quantity>
|
212
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
213
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
214
|
+
</invoice-item>
|
215
|
+
<invoice-item>
|
216
|
+
<description>1/2 day training session.</description>
|
217
|
+
<id type="integer">169399</id>
|
218
|
+
<invoice-id type="integer">73867</invoice-id>
|
219
|
+
<item-type>Training</item-type>
|
220
|
+
<price type="decimal">350.0</price>
|
221
|
+
<project-id type="integer" nil="true"></project-id>
|
222
|
+
<quantity type="decimal">1.0</quantity>
|
223
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
224
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
225
|
+
</invoice-item>
|
226
|
+
<invoice-item>
|
227
|
+
<description>Travel costs</description>
|
228
|
+
<id type="integer">169403</id>
|
229
|
+
<invoice-id type="integer">73867</invoice-id>
|
230
|
+
<item-type>Expenses</item-type>
|
231
|
+
<price type="decimal">110.0</price>
|
232
|
+
<project-id type="integer" nil="true"></project-id>
|
233
|
+
<quantity type="decimal">1.0</quantity>
|
234
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
235
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
236
|
+
</invoice-item>
|
237
|
+
</invoice-items>
|
238
|
+
</invoice>
|
239
|
+
</invoices>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Status: 200
|
3
|
+
Content-Type: application/xml; charset=utf-8
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
6
|
+
<invoice>
|
7
|
+
<id type="integer">73867</id>
|
8
|
+
<company-id type="integer">3795</company-id>
|
9
|
+
<project-id type="integer"></project-id>
|
10
|
+
<contact-id type="integer">27308</contact-id>
|
11
|
+
<dated-on type="datetime">2009-10-08T00:00:00Z</dated-on>
|
12
|
+
<due-on type="datetime">2009-10-22T00:00:00Z</due-on>
|
13
|
+
<reference>INV034</reference>
|
14
|
+
<net-value type="decimal">670.0</net-value>
|
15
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
16
|
+
<status>Overdue</status>
|
17
|
+
<comments></comments>
|
18
|
+
<discount-percent type="decimal"></discount-percent>
|
19
|
+
<omit-header type="boolean">false</omit-header>
|
20
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
21
|
+
<written-off-date type="datetime"></written-off-date>
|
22
|
+
<invoice-items type="array">
|
23
|
+
<invoice-item>
|
24
|
+
<description>Email build, testing and delivery.</description>
|
25
|
+
<id type="integer">168981</id>
|
26
|
+
<invoice-id type="integer">73867</invoice-id>
|
27
|
+
<item-type>Hours</item-type>
|
28
|
+
<price type="decimal">35.0</price>
|
29
|
+
<project-id type="integer" nil="true"></project-id>
|
30
|
+
<quantity type="decimal">6.0</quantity>
|
31
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
32
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
33
|
+
</invoice-item>
|
34
|
+
<invoice-item>
|
35
|
+
<description>1/2 day training session.</description>
|
36
|
+
<id type="integer">169399</id>
|
37
|
+
<invoice-id type="integer">73867</invoice-id>
|
38
|
+
<item-type>Training</item-type>
|
39
|
+
<price type="decimal">350.0</price>
|
40
|
+
<project-id type="integer" nil="true"></project-id>
|
41
|
+
<quantity type="decimal">1.0</quantity>
|
42
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
43
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
44
|
+
</invoice-item>
|
45
|
+
<invoice-item>
|
46
|
+
<description>Travel costs</description>
|
47
|
+
<id type="integer">169403</id>
|
48
|
+
<invoice-id type="integer">73867</invoice-id>
|
49
|
+
<item-type>Expenses</item-type>
|
50
|
+
<price type="decimal">110.0</price>
|
51
|
+
<project-id type="integer" nil="true"></project-id>
|
52
|
+
<quantity type="decimal">1.0</quantity>
|
53
|
+
<sales-tax-rate type="decimal">15.0</sales-tax-rate>
|
54
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
55
|
+
</invoice-item>
|
56
|
+
</invoice-items>
|
57
|
+
</invoice>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Status: 200
|
3
|
+
Content-Type: application/xml; charset=utf-8
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
6
|
+
<projects type="array">
|
7
|
+
<project>
|
8
|
+
<billing-basis type="decimal">7.5</billing-basis>
|
9
|
+
<budget type="integer">0</budget>
|
10
|
+
<budget-units>Hours</budget-units>
|
11
|
+
<contact-id type="integer">27314</contact-id>
|
12
|
+
<contract-po-reference></contract-po-reference>
|
13
|
+
<created-at type="datetime">2009-08-26T17:11:22Z</created-at>
|
14
|
+
<ends-on type="datetime" nil="true"></ends-on>
|
15
|
+
<id type="integer">17820</id>
|
16
|
+
<is-ir35 type="boolean">false</is-ir35>
|
17
|
+
<name>Ecommerce web development</name>
|
18
|
+
<normal-billing-rate type="decimal">200.0</normal-billing-rate>
|
19
|
+
<starts-on type="datetime" nil="true"></starts-on>
|
20
|
+
<status>Active</status>
|
21
|
+
<updated-at type="datetime">2009-08-26T17:11:22Z</updated-at>
|
22
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
23
|
+
</project>
|
24
|
+
<project>
|
25
|
+
<billing-basis type="decimal">1.0</billing-basis>
|
26
|
+
<budget type="integer">8</budget>
|
27
|
+
<budget-units>Hours</budget-units>
|
28
|
+
<contact-id type="integer">27317</contact-id>
|
29
|
+
<contract-po-reference></contract-po-reference>
|
30
|
+
<created-at type="datetime">2009-10-09T09:53:29Z</created-at>
|
31
|
+
<ends-on type="datetime">2009-12-01T00:00:00Z</ends-on>
|
32
|
+
<id type="integer">20601</id>
|
33
|
+
<is-ir35 type="boolean">false</is-ir35>
|
34
|
+
<name>Website multi-lingual support</name>
|
35
|
+
<normal-billing-rate type="decimal">35.0</normal-billing-rate>
|
36
|
+
<starts-on type="datetime">2009-11-30T00:00:00Z</starts-on>
|
37
|
+
<status>Active</status>
|
38
|
+
<updated-at type="datetime">2009-10-09T10:53:21Z</updated-at>
|
39
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
40
|
+
</project>
|
41
|
+
<project>
|
42
|
+
<billing-basis type="decimal">1.0</billing-basis>
|
43
|
+
<budget type="integer">0</budget>
|
44
|
+
<budget-units>Hours</budget-units>
|
45
|
+
<contact-id type="integer">27318</contact-id>
|
46
|
+
<contract-po-reference></contract-po-reference>
|
47
|
+
<created-at type="datetime">2009-10-20T08:47:31Z</created-at>
|
48
|
+
<ends-on type="datetime" nil="true"></ends-on>
|
49
|
+
<id type="integer">21356</id>
|
50
|
+
<is-ir35 type="boolean">false</is-ir35>
|
51
|
+
<name>Ongoing design and maintenance work</name>
|
52
|
+
<normal-billing-rate type="decimal">30.0</normal-billing-rate>
|
53
|
+
<starts-on type="datetime" nil="true"></starts-on>
|
54
|
+
<status>Active</status>
|
55
|
+
<updated-at type="datetime">2009-10-20T08:47:31Z</updated-at>
|
56
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
57
|
+
</project>
|
58
|
+
<project>
|
59
|
+
<billing-basis type="decimal">1.0</billing-basis>
|
60
|
+
<budget type="integer">61</budget>
|
61
|
+
<budget-units>Hours</budget-units>
|
62
|
+
<contact-id type="integer">30530</contact-id>
|
63
|
+
<contract-po-reference></contract-po-reference>
|
64
|
+
<created-at type="datetime">2009-10-09T10:00:52Z</created-at>
|
65
|
+
<ends-on type="datetime">2009-12-01T00:00:00Z</ends-on>
|
66
|
+
<id type="integer">20602</id>
|
67
|
+
<is-ir35 type="boolean">false</is-ir35>
|
68
|
+
<name>Website redesign and redevelopment</name>
|
69
|
+
<normal-billing-rate type="decimal">35.0</normal-billing-rate>
|
70
|
+
<starts-on type="datetime">2009-10-26T00:00:00Z</starts-on>
|
71
|
+
<status>Active</status>
|
72
|
+
<updated-at type="datetime">2009-10-09T10:39:08Z</updated-at>
|
73
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
74
|
+
</project>
|
75
|
+
<project>
|
76
|
+
<billing-basis type="decimal">1.0</billing-basis>
|
77
|
+
<budget type="integer">34</budget>
|
78
|
+
<budget-units>Hours</budget-units>
|
79
|
+
<contact-id type="integer">30530</contact-id>
|
80
|
+
<contract-po-reference></contract-po-reference>
|
81
|
+
<created-at type="datetime">2009-10-09T10:15:26Z</created-at>
|
82
|
+
<ends-on type="datetime">2010-01-12T00:00:00Z</ends-on>
|
83
|
+
<id type="integer">20603</id>
|
84
|
+
<is-ir35 type="boolean">false</is-ir35>
|
85
|
+
<name>Single page product mini sites</name>
|
86
|
+
<normal-billing-rate type="decimal">35.0</normal-billing-rate>
|
87
|
+
<starts-on type="datetime">2009-12-08T00:00:00Z</starts-on>
|
88
|
+
<status>Active</status>
|
89
|
+
<updated-at type="datetime">2009-10-09T10:59:29Z</updated-at>
|
90
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
91
|
+
</project>
|
92
|
+
</projects>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Status: 200
|
3
|
+
Content-Type: application/xml; charset=utf-8
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
6
|
+
<project>
|
7
|
+
<billing-basis type="decimal">7.5</billing-basis>
|
8
|
+
<budget type="integer">0</budget>
|
9
|
+
<budget-units>Hours</budget-units>
|
10
|
+
<contact-id type="integer">27314</contact-id>
|
11
|
+
<contract-po-reference></contract-po-reference>
|
12
|
+
<created-at type="datetime">2009-08-26T17:11:22Z</created-at>
|
13
|
+
<ends-on type="datetime" nil="true"></ends-on>
|
14
|
+
<id type="integer">17820</id>
|
15
|
+
<is-ir35 type="boolean">false</is-ir35>
|
16
|
+
<name>Ecommerce web development</name>
|
17
|
+
<normal-billing-rate type="decimal">200.0</normal-billing-rate>
|
18
|
+
<starts-on type="datetime" nil="true"></starts-on>
|
19
|
+
<status>Active</status>
|
20
|
+
<updated-at type="datetime">2009-08-26T17:11:22Z</updated-at>
|
21
|
+
<uses-project-invoice-sequence type="boolean">false</uses-project-invoice-sequence>
|
22
|
+
</project>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Status: 200
|
3
|
+
Content-Type: application/xml; charset=utf-8
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
6
|
+
<invoices type="array">
|
7
|
+
<invoice>
|
8
|
+
<id type="integer">66913</id>
|
9
|
+
<company-id type="integer">3795</company-id>
|
10
|
+
<project-id type="integer">17820</project-id>
|
11
|
+
<contact-id type="integer">27314</contact-id>
|
12
|
+
<dated-on type="datetime">2009-09-14T00:00:00Z</dated-on>
|
13
|
+
<due-on type="datetime">2009-09-28T00:00:00Z</due-on>
|
14
|
+
<reference>INV033</reference>
|
15
|
+
<net-value type="decimal">3000.0</net-value>
|
16
|
+
<sales-tax-value type="decimal">0.0</sales-tax-value>
|
17
|
+
<status>Paid</status>
|
18
|
+
<comments></comments>
|
19
|
+
<discount-percent type="decimal"></discount-percent>
|
20
|
+
<omit-header type="boolean">false</omit-header>
|
21
|
+
<payment-terms-in-days type="integer">14</payment-terms-in-days>
|
22
|
+
<written-off-date type="datetime"></written-off-date>
|
23
|
+
<invoice-items type="array">
|
24
|
+
<invoice-item>
|
25
|
+
<description>Back end development</description>
|
26
|
+
<id type="integer">153069</id>
|
27
|
+
<invoice-id type="integer">66913</invoice-id>
|
28
|
+
<item-type>Days</item-type>
|
29
|
+
<price type="decimal">200.0</price>
|
30
|
+
<project-id type="integer" nil="true"></project-id>
|
31
|
+
<quantity type="decimal">2.5</quantity>
|
32
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
33
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
34
|
+
</invoice-item>
|
35
|
+
<invoice-item>
|
36
|
+
<description>Briefing and research</description>
|
37
|
+
<id type="integer">153070</id>
|
38
|
+
<invoice-id type="integer">66913</invoice-id>
|
39
|
+
<item-type>Days</item-type>
|
40
|
+
<price type="decimal">200.0</price>
|
41
|
+
<project-id type="integer" nil="true"></project-id>
|
42
|
+
<quantity type="decimal">1.0</quantity>
|
43
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
44
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
45
|
+
</invoice-item>
|
46
|
+
<invoice-item>
|
47
|
+
<description>Front end development</description>
|
48
|
+
<id type="integer">153071</id>
|
49
|
+
<invoice-id type="integer">66913</invoice-id>
|
50
|
+
<item-type>Days</item-type>
|
51
|
+
<price type="decimal">200.0</price>
|
52
|
+
<project-id type="integer" nil="true"></project-id>
|
53
|
+
<quantity type="decimal">3.5</quantity>
|
54
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
55
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
56
|
+
</invoice-item>
|
57
|
+
<invoice-item>
|
58
|
+
<description>Game website development</description>
|
59
|
+
<id type="integer">153072</id>
|
60
|
+
<invoice-id type="integer">66913</invoice-id>
|
61
|
+
<item-type>Days</item-type>
|
62
|
+
<price type="decimal">200.0</price>
|
63
|
+
<project-id type="integer" nil="true"></project-id>
|
64
|
+
<quantity type="decimal">2.0</quantity>
|
65
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
66
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
67
|
+
</invoice-item>
|
68
|
+
<invoice-item>
|
69
|
+
<description>Mobile website development</description>
|
70
|
+
<id type="integer">153073</id>
|
71
|
+
<invoice-id type="integer">66913</invoice-id>
|
72
|
+
<item-type>Days</item-type>
|
73
|
+
<price type="decimal">200.0</price>
|
74
|
+
<project-id type="integer" nil="true"></project-id>
|
75
|
+
<quantity type="decimal">5.0</quantity>
|
76
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
77
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
78
|
+
</invoice-item>
|
79
|
+
<invoice-item>
|
80
|
+
<description>Photographic website development</description>
|
81
|
+
<id type="integer">153074</id>
|
82
|
+
<invoice-id type="integer">66913</invoice-id>
|
83
|
+
<item-type>Days</item-type>
|
84
|
+
<price type="decimal">200.0</price>
|
85
|
+
<project-id type="integer" nil="true"></project-id>
|
86
|
+
<quantity type="decimal">1.0</quantity>
|
87
|
+
<sales-tax-rate type="decimal">0.0</sales-tax-rate>
|
88
|
+
<second-sales-tax-rate type="decimal">0.0</second-sales-tax-rate>
|
89
|
+
</invoice-item>
|
90
|
+
</invoice-items>
|
91
|
+
</invoice>
|
92
|
+
</invoices>
|