invoicexpress 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +0 -0
- data/README.md +322 -0
- data/Rakefile +19 -0
- data/invoicexpress.gemspec +26 -0
- data/lib/faraday/response/parse_xml.rb +23 -0
- data/lib/faraday/response/raise_invoicexpress_errors.rb +20 -0
- data/lib/invoicexpress.rb +26 -0
- data/lib/invoicexpress/authentication.rb +15 -0
- data/lib/invoicexpress/client.rb +56 -0
- data/lib/invoicexpress/client/cash_invoices.rb +110 -0
- data/lib/invoicexpress/client/charts.rb +57 -0
- data/lib/invoicexpress/client/clients.rb +215 -0
- data/lib/invoicexpress/client/credit_notes.rb +128 -0
- data/lib/invoicexpress/client/debit_notes.rb +129 -0
- data/lib/invoicexpress/client/invoices.rb +107 -0
- data/lib/invoicexpress/client/items.rb +82 -0
- data/lib/invoicexpress/client/purchase_orders.rb +126 -0
- data/lib/invoicexpress/client/schedules.rb +110 -0
- data/lib/invoicexpress/client/sequences.rb +71 -0
- data/lib/invoicexpress/client/simplified_invoices.rb +130 -0
- data/lib/invoicexpress/client/taxes.rb +82 -0
- data/lib/invoicexpress/client/users.rb +48 -0
- data/lib/invoicexpress/configuration.rb +51 -0
- data/lib/invoicexpress/connection.rb +40 -0
- data/lib/invoicexpress/error.rb +68 -0
- data/lib/invoicexpress/models.rb +29 -0
- data/lib/invoicexpress/models/chart.rb +41 -0
- data/lib/invoicexpress/models/client.rb +24 -0
- data/lib/invoicexpress/models/filter.rb +60 -0
- data/lib/invoicexpress/models/invoice.rb +235 -0
- data/lib/invoicexpress/models/purchase_order.rb +72 -0
- data/lib/invoicexpress/models/quarterly_result.rb +45 -0
- data/lib/invoicexpress/models/schedule.rb +87 -0
- data/lib/invoicexpress/models/sequence.rb +17 -0
- data/lib/invoicexpress/models/supplier.rb +17 -0
- data/lib/invoicexpress/models/top_client.rb +15 -0
- data/lib/invoicexpress/models/top_debtor.rb +14 -0
- data/lib/invoicexpress/models/user.rb +31 -0
- data/lib/invoicexpress/request.rb +63 -0
- data/lib/invoicexpress/version.rb +3 -0
- data/spec/fixtures/charts.invoicing.xml +21 -0
- data/spec/fixtures/charts.quarterly-results.xml +25 -0
- data/spec/fixtures/charts.top-clients.xml +10 -0
- data/spec/fixtures/charts.top-debtors.xml +10 -0
- data/spec/fixtures/charts.treasury.xml +49 -0
- data/spec/fixtures/clients.create.xml +6 -0
- data/spec/fixtures/clients.get.xml +21 -0
- data/spec/fixtures/clients.invoices.xml +11 -0
- data/spec/fixtures/clients.list.xml +18 -0
- data/spec/fixtures/clients.update.xml +1 -0
- data/spec/fixtures/credit_notes.create.xml +53 -0
- data/spec/fixtures/credit_notes.email_document.xml +9 -0
- data/spec/fixtures/credit_notes.list.xml +114 -0
- data/spec/fixtures/credit_notes.update_state.xml +7 -0
- data/spec/fixtures/invoices.create.xml +37 -0
- data/spec/fixtures/invoices.get.xml +50 -0
- data/spec/fixtures/invoices.list.xml +537 -0
- data/spec/fixtures/invoices.update_state.xml +7 -0
- data/spec/fixtures/ok.xml +0 -0
- data/spec/fixtures/po.create.xml +42 -0
- data/spec/fixtures/po.email_document.xml +0 -0
- data/spec/fixtures/po.get.xml +42 -0
- data/spec/fixtures/po.list.xml +44 -0
- data/spec/fixtures/po.update_state.xml +7 -0
- data/spec/fixtures/schedules.create.xml +48 -0
- data/spec/fixtures/schedules.get.xml +57 -0
- data/spec/fixtures/schedules.list.xml +40 -0
- data/spec/fixtures/sequences.create.xml +9 -0
- data/spec/fixtures/sequences.get.xml +10 -0
- data/spec/fixtures/sequences.list.xml +12 -0
- data/spec/fixtures/sequences.update.xml +10 -0
- data/spec/fixtures/simplified_invoices.create.xml +53 -0
- data/spec/fixtures/simplified_invoices.email_document.xml +9 -0
- data/spec/fixtures/simplified_invoices.get.xml +74 -0
- data/spec/fixtures/simplified_invoices.list.xml +114 -0
- data/spec/fixtures/simplified_invoices.update.xml +0 -0
- data/spec/fixtures/simplified_invoices.update_state.xml +7 -0
- data/spec/fixtures/taxes.create.xml +7 -0
- data/spec/fixtures/taxes.list.xml +18 -0
- data/spec/fixtures/taxes.update.xml +7 -0
- data/spec/fixtures/users.accounts.xml +12 -0
- data/spec/fixtures/users.change-account.xml +0 -0
- data/spec/fixtures/users.login.xml +11 -0
- data/spec/helper.rb +62 -0
- data/spec/invoicexpress/client/charts_spec.rb +69 -0
- data/spec/invoicexpress/client/clients_spec.rb +108 -0
- data/spec/invoicexpress/client/credit_notes_spec.rb +104 -0
- data/spec/invoicexpress/client/invoices_spec.rb +110 -0
- data/spec/invoicexpress/client/purchase_orders_spec.rb +116 -0
- data/spec/invoicexpress/client/schedules_spec.rb +111 -0
- data/spec/invoicexpress/client/sequences_spec.rb +68 -0
- data/spec/invoicexpress/client/simplified_invoices_spec.rb +116 -0
- data/spec/invoicexpress/client/taxes_spec.rb +70 -0
- data/spec/invoicexpress/client/users_spec.rb +40 -0
- data/spec/invoicexpress/client_spec.rb +24 -0
- data/spec/invoicexpress_spec.rb +19 -0
- metadata +279 -0
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<purchase_order>
|
3
|
+
<id>1430276</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<type>PurchaseOrder</type>
|
6
|
+
<sequence_number>draft</sequence_number>
|
7
|
+
<date>30/05/2013</date>
|
8
|
+
<due_date>08/08/2013</due_date>
|
9
|
+
<loaded_at>30/05/2013</loaded_at>
|
10
|
+
<delivery_site>LX Factory</delivery_site>
|
11
|
+
<observations></observations>
|
12
|
+
<supplier>
|
13
|
+
<id>439232</id>
|
14
|
+
<name>Pedro Sousa</name>
|
15
|
+
<email>psousa@thinkorange.pt</email>
|
16
|
+
<address>Rua Luisa de Camões 18</address>
|
17
|
+
<postal_code>1231-123</postal_code>
|
18
|
+
<country>Portugal</country>
|
19
|
+
<fiscal_id>210533382</fiscal_id>
|
20
|
+
</supplier>
|
21
|
+
<currency>Euro</currency>
|
22
|
+
<items type="array">
|
23
|
+
<item>
|
24
|
+
<name>Item 1</name>
|
25
|
+
<description></description>
|
26
|
+
<unit_price>60.0</unit_price>
|
27
|
+
<unit>unit</unit>
|
28
|
+
<quantity>2.0</quantity>
|
29
|
+
<tax>
|
30
|
+
<id>48900</id>
|
31
|
+
<name>IVA23</name>
|
32
|
+
<value>23.0</value>
|
33
|
+
</tax>
|
34
|
+
<discount>0.0</discount>
|
35
|
+
</item>
|
36
|
+
</items>
|
37
|
+
<sum>120.0</sum>
|
38
|
+
<discount>0.0</discount>
|
39
|
+
<before_taxes>120.0</before_taxes>
|
40
|
+
<taxes>27.6</taxes>
|
41
|
+
<total>147.6</total>
|
42
|
+
</purchase_order>
|
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<purchase_order>
|
3
|
+
<id>1430276</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<type>PurchaseOrder</type>
|
6
|
+
<sequence_number>draft</sequence_number>
|
7
|
+
<date>30/05/2013</date>
|
8
|
+
<due_date>08/08/2013</due_date>
|
9
|
+
<loaded_at>30/05/2013</loaded_at>
|
10
|
+
<delivery_site>LX Factory</delivery_site>
|
11
|
+
<observations></observations>
|
12
|
+
<supplier>
|
13
|
+
<id>439232</id>
|
14
|
+
<name>Pedro Sousa</name>
|
15
|
+
<email>psousa@thinkorange.pt</email>
|
16
|
+
<address>Rua Luisa de Camões 18</address>
|
17
|
+
<postal_code>1231-123</postal_code>
|
18
|
+
<country>Portugal</country>
|
19
|
+
<fiscal_id>210533382</fiscal_id>
|
20
|
+
</supplier>
|
21
|
+
<currency>Euro</currency>
|
22
|
+
<items type="array">
|
23
|
+
<item>
|
24
|
+
<name>Item 1</name>
|
25
|
+
<description></description>
|
26
|
+
<unit_price>60.0</unit_price>
|
27
|
+
<unit>unit</unit>
|
28
|
+
<quantity>2.0</quantity>
|
29
|
+
<tax>
|
30
|
+
<id>48900</id>
|
31
|
+
<name>IVA23</name>
|
32
|
+
<value>23.0</value>
|
33
|
+
</tax>
|
34
|
+
<discount>0.0</discount>
|
35
|
+
</item>
|
36
|
+
</items>
|
37
|
+
<sum>120.0</sum>
|
38
|
+
<discount>0.0</discount>
|
39
|
+
<before_taxes>120.0</before_taxes>
|
40
|
+
<taxes>27.6</taxes>
|
41
|
+
<total>147.6</total>
|
42
|
+
</purchase_order>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<purchase_orders>
|
3
|
+
<purchase_order>
|
4
|
+
<id>1430276</id>
|
5
|
+
<status>draft</status>
|
6
|
+
<type>PurchaseOrder</type>
|
7
|
+
<sequence_number>draft</sequence_number>
|
8
|
+
<date>30/05/2013</date>
|
9
|
+
<due_date>08/08/2013</due_date>
|
10
|
+
<loaded_at>30/05/2013</loaded_at>
|
11
|
+
<delivery_site>LX Factory</delivery_site>
|
12
|
+
<observations></observations>
|
13
|
+
<supplier>
|
14
|
+
<id>439232</id>
|
15
|
+
<name>Pedro Sousa</name>
|
16
|
+
<email>psousa@thinkorange.pt</email>
|
17
|
+
<address>Rua Luisa de Camões 18</address>
|
18
|
+
<postal_code>1231-123</postal_code>
|
19
|
+
<country>Portugal</country>
|
20
|
+
<fiscal_id>210533382</fiscal_id>
|
21
|
+
</supplier>
|
22
|
+
<currency>Euro</currency>
|
23
|
+
<items type="array">
|
24
|
+
<item>
|
25
|
+
<name>Item 1</name>
|
26
|
+
<description></description>
|
27
|
+
<unit_price>60.0</unit_price>
|
28
|
+
<unit>unit</unit>
|
29
|
+
<quantity>2.0</quantity>
|
30
|
+
<tax>
|
31
|
+
<id>48900</id>
|
32
|
+
<name>IVA23</name>
|
33
|
+
<value>23.0</value>
|
34
|
+
</tax>
|
35
|
+
<discount>0.0</discount>
|
36
|
+
</item>
|
37
|
+
</items>
|
38
|
+
<sum>120.0</sum>
|
39
|
+
<discount>0.0</discount>
|
40
|
+
<before_taxes>120.0</before_taxes>
|
41
|
+
<taxes>27.6</taxes>
|
42
|
+
<total>147.6</total>
|
43
|
+
</purchase_order>
|
44
|
+
</purchase_orders>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schedule>
|
3
|
+
<id>4462</id>
|
4
|
+
<next_date>16/08/2013</next_date>
|
5
|
+
<next_due_date>16/08/2013</next_due_date>
|
6
|
+
<reference></reference>
|
7
|
+
<observations></observations>
|
8
|
+
<retention></retention>
|
9
|
+
<client>
|
10
|
+
<name>Rui Leito</name>
|
11
|
+
<email>rmleitao@thinkorange.pt</email>
|
12
|
+
<address></address>
|
13
|
+
<postal_code></postal_code>
|
14
|
+
<fiscal_id></fiscal_id>
|
15
|
+
</client>
|
16
|
+
<currency>Euro</currency>
|
17
|
+
<items type="array">
|
18
|
+
<item>
|
19
|
+
<id>288911</id>
|
20
|
+
<name>Item 1</name>
|
21
|
+
<description></description>
|
22
|
+
<unit_price>30.0</unit_price>
|
23
|
+
<quantity>2.0</quantity>
|
24
|
+
<tax>
|
25
|
+
<name>IVA23</name>
|
26
|
+
<value>23.0</value>
|
27
|
+
</tax>
|
28
|
+
<discount>0.0</discount>
|
29
|
+
</item>
|
30
|
+
<item>
|
31
|
+
<id>288781</id>
|
32
|
+
<name>Item 2</name>
|
33
|
+
<description></description>
|
34
|
+
<unit_price>60.0</unit_price>
|
35
|
+
<quantity>5.0</quantity>
|
36
|
+
<tax>
|
37
|
+
<name>IVA23</name>
|
38
|
+
<value>23.0</value>
|
39
|
+
</tax>
|
40
|
+
<discount>0.0</discount>
|
41
|
+
</item>
|
42
|
+
</items>
|
43
|
+
<sum>360.0</sum>
|
44
|
+
<discount>0.0</discount>
|
45
|
+
<before_taxes>360.0</before_taxes>
|
46
|
+
<taxes>82.8</taxes>
|
47
|
+
<total>442.8</total>
|
48
|
+
</schedule>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schedule>
|
3
|
+
<id>4462</id>
|
4
|
+
<date>16/08/2013</date>
|
5
|
+
<due_date>17/08/2013</due_date>
|
6
|
+
<next_date>16/08/2013</next_date>
|
7
|
+
<next_due_date>16/08/2013</next_due_date>
|
8
|
+
<start_date>16/06/2013</start_date>
|
9
|
+
<end_date>18/08/2013</end_date>
|
10
|
+
<reference></reference>
|
11
|
+
<observations></observations>
|
12
|
+
<retention></retention>
|
13
|
+
<client>
|
14
|
+
<id>501506</id>
|
15
|
+
<name>Rui Leito</name>
|
16
|
+
<email>rmleitao@thinkorange.pt</email>
|
17
|
+
<address></address>
|
18
|
+
<postal_code></postal_code>
|
19
|
+
<fiscal_id></fiscal_id>
|
20
|
+
</client>
|
21
|
+
<currency>Euro</currency>
|
22
|
+
<items type="array">
|
23
|
+
<item>
|
24
|
+
<id>288911</id>
|
25
|
+
<name>Item 1</name>
|
26
|
+
<description></description>
|
27
|
+
<unit_price>30.0</unit_price>
|
28
|
+
<quantity>2.0</quantity>
|
29
|
+
<tax>
|
30
|
+
<id>48900</id>
|
31
|
+
<name>IVA23</name>
|
32
|
+
<value>23.0</value>
|
33
|
+
</tax>
|
34
|
+
<discount>0.0</discount>
|
35
|
+
</item>
|
36
|
+
<item>
|
37
|
+
<id>288781</id>
|
38
|
+
<name>Item 2</name>
|
39
|
+
<description></description>
|
40
|
+
<unit_price>60.0</unit_price>
|
41
|
+
<quantity>5.0</quantity>
|
42
|
+
<tax>
|
43
|
+
<id>48900</id>
|
44
|
+
<name>IVA23</name>
|
45
|
+
<value>23.0</value>
|
46
|
+
</tax>
|
47
|
+
<discount>0.0</discount>
|
48
|
+
</item>
|
49
|
+
</items>
|
50
|
+
<sum>360.0</sum>
|
51
|
+
<discount>0.0</discount>
|
52
|
+
<before_taxes>360.0</before_taxes>
|
53
|
+
<taxes>82.8</taxes>
|
54
|
+
<total>442.8</total>
|
55
|
+
<sent_invoices>
|
56
|
+
</sent_invoices>
|
57
|
+
</schedule>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schedules>
|
3
|
+
<schedule>
|
4
|
+
<id>4307</id>
|
5
|
+
<date>08/04/2013</date>
|
6
|
+
<due_date>08/04/2013</due_date>
|
7
|
+
<reference/>
|
8
|
+
<observations>Foi criado no site.</observations>
|
9
|
+
<retention>5.0</retention>
|
10
|
+
<client>
|
11
|
+
<id>439232</id>
|
12
|
+
<name>Pedro Sousa</name>
|
13
|
+
<email>psousa@thinkorange.pt</email>
|
14
|
+
<address>Rua Luisa de Camões 18</address>
|
15
|
+
<postal_code>1231-123</postal_code>
|
16
|
+
<fiscal_id>210533382</fiscal_id>
|
17
|
+
</client>
|
18
|
+
<currency>Euro</currency>
|
19
|
+
<items type="array">
|
20
|
+
<item>
|
21
|
+
<id>312260</id>
|
22
|
+
<name>555</name>
|
23
|
+
<description>Macbook</description>
|
24
|
+
<unit_price>50.0</unit_price>
|
25
|
+
<quantity>2.0</quantity>
|
26
|
+
<tax>
|
27
|
+
<id>48900</id>
|
28
|
+
<name>IVA23</name>
|
29
|
+
<value>23.0</value>
|
30
|
+
</tax>
|
31
|
+
<discount>0.0</discount>
|
32
|
+
</item>
|
33
|
+
</items>
|
34
|
+
<sum>100.0</sum>
|
35
|
+
<discount>0.0</discount>
|
36
|
+
<before_taxes>100.0</before_taxes>
|
37
|
+
<taxes>23.0</taxes>
|
38
|
+
<total>118.0</total>
|
39
|
+
</schedule>
|
40
|
+
</schedules>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<sequence>
|
3
|
+
<id>266500</id>
|
4
|
+
<serie>2099</serie>
|
5
|
+
<current_invoice_number>100</current_invoice_number>
|
6
|
+
<current_credit_note_number>200</current_credit_note_number>
|
7
|
+
<current_debit_note_number>300</current_debit_note_number>
|
8
|
+
<default_sequence>0</default_sequence>
|
9
|
+
</sequence>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<sequence>
|
3
|
+
<id>230568</id>
|
4
|
+
<serie>2013</serie>
|
5
|
+
<current_invoice_number>1</current_invoice_number>
|
6
|
+
<current_credit_note_number>3</current_credit_note_number>
|
7
|
+
<current_debit_note_number>1</current_debit_note_number>
|
8
|
+
<default_sequence>1</default_sequence>
|
9
|
+
<!-- default sequence -->
|
10
|
+
</sequence>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<sequences type="array">
|
3
|
+
<sequence>
|
4
|
+
<id>230568</id>
|
5
|
+
<serie>2013</serie>
|
6
|
+
<current_invoice_number>1</current_invoice_number>
|
7
|
+
<current_credit_note_number>3</current_credit_note_number>
|
8
|
+
<current_debit_note_number>1</current_debit_note_number>
|
9
|
+
<default_sequence>1</default_sequence>
|
10
|
+
<!-- default sequence -->
|
11
|
+
</sequence>
|
12
|
+
</sequences>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<sequence>
|
3
|
+
<id>266500</id>
|
4
|
+
<serie>2098</serie>
|
5
|
+
<current_invoice_number>1</current_invoice_number>
|
6
|
+
<current_credit_note_number>3</current_credit_note_number>
|
7
|
+
<current_debit_note_number>1</current_debit_note_number>
|
8
|
+
<default_sequence>0</default_sequence>
|
9
|
+
<!-- default sequence -->
|
10
|
+
</sequence>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<simplified_invoice>
|
3
|
+
<id>1425061</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<type>SimplifiedInvoice</type>
|
6
|
+
<sequence_number>draft</sequence_number>
|
7
|
+
<date>01/05/2013</date>
|
8
|
+
<reference></reference>
|
9
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
10
|
+
<retention></retention>
|
11
|
+
<permalink>http://www.invoicexpress.net/documents/9c21e2aa2fd5a9f999673bc993407a562177fecb</permalink>
|
12
|
+
<client>
|
13
|
+
<id>439232</id>
|
14
|
+
<name>Pedro Sousa</name>
|
15
|
+
<email>psousa@thinkorange.pt</email>
|
16
|
+
<address>Rua Luisa de Camões 18</address>
|
17
|
+
<postal_code>1231-123</postal_code>
|
18
|
+
<country>Portugal</country>
|
19
|
+
<fiscal_id>210533382</fiscal_id>
|
20
|
+
</client>
|
21
|
+
<currency>Euro</currency>
|
22
|
+
<items type="array">
|
23
|
+
<item>
|
24
|
+
<name>Item 1</name>
|
25
|
+
<description></description>
|
26
|
+
<unit_price>60.0</unit_price>
|
27
|
+
<unit>unit</unit>
|
28
|
+
<quantity>2.0</quantity>
|
29
|
+
<tax>
|
30
|
+
<name></name>
|
31
|
+
<value>0.0</value>
|
32
|
+
</tax>
|
33
|
+
<discount>0.0</discount>
|
34
|
+
</item>
|
35
|
+
<item>
|
36
|
+
<name>Item 2</name>
|
37
|
+
<description></description>
|
38
|
+
<unit_price>50.0</unit_price>
|
39
|
+
<unit>unit</unit>
|
40
|
+
<quantity>1.0</quantity>
|
41
|
+
<tax>
|
42
|
+
<name></name>
|
43
|
+
<value>0.0</value>
|
44
|
+
</tax>
|
45
|
+
<discount>0.0</discount>
|
46
|
+
</item>
|
47
|
+
</items>
|
48
|
+
<sum>170.0</sum>
|
49
|
+
<discount>0.0</discount>
|
50
|
+
<before_taxes>170.0</before_taxes>
|
51
|
+
<taxes>0.0</taxes>
|
52
|
+
<total>170.0</total>
|
53
|
+
</simplified_invoice>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<simplified_invoice>
|
3
|
+
<id>1425061</id>
|
4
|
+
<status>settled</status>
|
5
|
+
<archived>false</archived>
|
6
|
+
<type>SimplifiedInvoice</type>
|
7
|
+
<sequence_number>1/2013</sequence_number>
|
8
|
+
<date>01/05/2013</date>
|
9
|
+
<reference></reference>
|
10
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
11
|
+
<retention></retention>
|
12
|
+
<permalink>http://www.invoicexpress.net/documents/9c21e2aa2fd5a9f999673bc993407a562177fecb</permalink>
|
13
|
+
<client>
|
14
|
+
<id>550611</id>
|
15
|
+
<name>Pedro Sousa</name>
|
16
|
+
<email>psousa@thinkorange.pt</email>
|
17
|
+
<address>Rua Luisa de Camões 18</address>
|
18
|
+
<postal_code>1231-123</postal_code>
|
19
|
+
<country>Portugal</country>
|
20
|
+
<fiscal_id>210533382</fiscal_id>
|
21
|
+
</client>
|
22
|
+
<currency>Euro</currency>
|
23
|
+
<items type="array">
|
24
|
+
<item>
|
25
|
+
<name>Item 1</name>
|
26
|
+
<description></description>
|
27
|
+
<unit_price>60.0</unit_price>
|
28
|
+
<unit>unit</unit>
|
29
|
+
<quantity>2.0</quantity>
|
30
|
+
<tax>
|
31
|
+
<name></name>
|
32
|
+
<value>0.0</value>
|
33
|
+
</tax>
|
34
|
+
<discount>0.0</discount>
|
35
|
+
</item>
|
36
|
+
<item>
|
37
|
+
<name>Item 2</name>
|
38
|
+
<description></description>
|
39
|
+
<unit_price>50.0</unit_price>
|
40
|
+
<unit>unit</unit>
|
41
|
+
<quantity>1.0</quantity>
|
42
|
+
<tax>
|
43
|
+
<name></name>
|
44
|
+
<value>0.0</value>
|
45
|
+
</tax>
|
46
|
+
<discount>0.0</discount>
|
47
|
+
</item>
|
48
|
+
</items>
|
49
|
+
<sum>170.0</sum>
|
50
|
+
<discount>0.0</discount>
|
51
|
+
<before_taxes>170.0</before_taxes>
|
52
|
+
<taxes>0.0</taxes>
|
53
|
+
<total>170.0</total>
|
54
|
+
<invoice_timeline type="array">
|
55
|
+
<event>
|
56
|
+
<type>create</type>
|
57
|
+
<date type="date">30/05/2013</date>
|
58
|
+
<time type="time">16:16</time>
|
59
|
+
<user>info@thinkorange.pt</user>
|
60
|
+
</event>
|
61
|
+
<event>
|
62
|
+
<type>finalized</type>
|
63
|
+
<date type="date">30/05/2013</date>
|
64
|
+
<time type="time">16:19</time>
|
65
|
+
<user>info@thinkorange.pt</user>
|
66
|
+
</event>
|
67
|
+
<event>
|
68
|
+
<type>created_partial_payment</type>
|
69
|
+
<date type="date">30/05/2013</date>
|
70
|
+
<time type="time">16:19</time>
|
71
|
+
<user>info@thinkorange.pt</user>
|
72
|
+
</event>
|
73
|
+
</invoice_timeline>
|
74
|
+
</simplified_invoice>
|