qbwc_requests 0.0.1

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.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +8 -0
  5. data/LICENSE +22 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +1 -0
  9. data/lib/qbwc_requests/qbwc/ordered_fields.rb +35 -0
  10. data/lib/qbwc_requests/qbwc/qbwc.rb +2 -0
  11. data/lib/qbwc_requests/qbwc/request/base.rb +61 -0
  12. data/lib/qbwc_requests/qbwc/request/v07/account.rb +13 -0
  13. data/lib/qbwc_requests/qbwc/request/v07/customer.rb +29 -0
  14. data/lib/qbwc_requests/qbwc/request/v07/estimate.rb +14 -0
  15. data/lib/qbwc_requests/qbwc/request/v07/invoice.rb +15 -0
  16. data/lib/qbwc_requests/qbwc/request/v07/item.rb +11 -0
  17. data/lib/qbwc_requests/qbwc/request/v07/item_discount.rb +15 -0
  18. data/lib/qbwc_requests/qbwc/request/v07/item_group.rb +14 -0
  19. data/lib/qbwc_requests/qbwc/request/v07/item_non_inventory.rb +15 -0
  20. data/lib/qbwc_requests/qbwc/request/v07/item_other_charge.rb +16 -0
  21. data/lib/qbwc_requests/qbwc/request/v07/item_payment.rb +14 -0
  22. data/lib/qbwc_requests/qbwc/request/v07/item_service.rb +15 -0
  23. data/lib/qbwc_requests/qbwc/request/v07/item_subtotal.rb +15 -0
  24. data/lib/qbwc_requests/qbwc/request/v07/purchase_order.rb +12 -0
  25. data/lib/qbwc_requests/qbwc/request/v07/vendor.rb +25 -0
  26. data/lib/qbwc_requests/qbwc/xml_actions.rb +31 -0
  27. data/lib/qbwc_requests/version.rb +3 -0
  28. data/lib/qbwc_requests.rb +7 -0
  29. data/qbwc_requests.gemspec +23 -0
  30. data/quickbook/xml/qbxml/examples/xmlfiles/AccountQueryRq.xml +31 -0
  31. data/quickbook/xml/qbxml/examples/xmlfiles/BillQueryRq.xml +28 -0
  32. data/quickbook/xml/qbxml/examples/xmlfiles/CheckQueryRq.xml +28 -0
  33. data/quickbook/xml/qbxml/examples/xmlfiles/CompanyQueryRq.xml +28 -0
  34. data/quickbook/xml/qbxml/examples/xmlfiles/EmployeeQueryRq.xml +28 -0
  35. data/quickbook/xml/qbxml/examples/xmlfiles/EntityQueryRq.xml +29 -0
  36. data/quickbook/xml/qbxml/examples/xmlfiles/HostQueryRq.xml +29 -0
  37. data/quickbook/xml/qbxml/examples/xmlfiles/InvoiceQueryRq.xml +29 -0
  38. data/quickbook/xml/qbxml/examples/xmlfiles/ItemInventoryQueryRq.xml +29 -0
  39. data/quickbook/xml/qbxml/examples/xmlfiles/ItemSalesTaxQueryRq.xml +30 -0
  40. data/quickbook/xml/qbxml/examples/xmlfiles/ItemServiceQueryRq.xml +30 -0
  41. data/quickbook/xml/qbxml/examples/xmlfiles/PayrollItemWageQueryRq.xml +29 -0
  42. data/quickbook/xml/qbxml/examples/xmlfiles/PreferencesQueryRq.xml +29 -0
  43. data/quickbook/xml/qbxml/examples/xmlfiles/ReceivePaymentQueryRq.xml +32 -0
  44. data/quickbook/xml/qbxml/examples/xmlfiles/SalesRepQueryRq.xml +29 -0
  45. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountAddRq.xml +41 -0
  46. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_1.xml +31 -0
  47. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_2.xml +31 -0
  48. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_3.xml +31 -0
  49. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_4.xml +31 -0
  50. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_5.xml +31 -0
  51. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_6.xml +31 -0
  52. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_7.xml +31 -0
  53. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AddInvoiceSpecifyTemplate.xml +47 -0
  54. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomDetailReport.xml +37 -0
  55. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldAddValue.xml +42 -0
  56. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldDelValue.xml +41 -0
  57. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldModValue.xml +42 -0
  58. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerAddRq.xml +71 -0
  59. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerQuery.xml +29 -0
  60. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerQuery_metadata.xml +30 -0
  61. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DepositAddRq.xml +36 -0
  62. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DisplayList.xml +38 -0
  63. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DisplayTxn.xml +46 -0
  64. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery1.xml +50 -0
  65. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery2.xml +28 -0
  66. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery3.xml +27 -0
  67. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/HostQuery.xml +27 -0
  68. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ItemServiceAddRq.xml +39 -0
  69. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ItemsAddRq.xml +80 -0
  70. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/JournalEntryAddRq.xml +55 -0
  71. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ProfitAndLossStdReport.xml +35 -0
  72. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/QueryFilterRq.xml +46 -0
  73. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ReceivePaymentAddRq.xml +49 -0
  74. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ReceivePaymentToDepositQueryRq.xml +27 -0
  75. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/TemplateQuery.xml +37 -0
  76. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/TxnDisplayAdd_Invoice.xml +35 -0
  77. data/quickbook/xml/qbxml/examples/xmlfiles/legacy/VendorAddRq.xml +63 -0
  78. data/quickbook/xml/qbxmlops130.xml +35788 -0
  79. data/quickbook/xml/qbxmlops70.xml +29844 -0
  80. data/spec/qbwc/request/v07/account_spec.rb +32 -0
  81. data/spec/qbwc/request/v07/customer_spec.rb +32 -0
  82. data/spec/qbwc/request/v07/estimate_spec.rb +39 -0
  83. data/spec/qbwc/request/v07/invoice_spec.rb +39 -0
  84. data/spec/qbwc/request/v07/item_discount_spec.rb +32 -0
  85. data/spec/qbwc/request/v07/item_group_spec.rb +31 -0
  86. data/spec/qbwc/request/v07/item_non_inventory_spec.rb +31 -0
  87. data/spec/qbwc/request/v07/item_other_charge_spec.rb +39 -0
  88. data/spec/qbwc/request/v07/item_payment_spec.rb +29 -0
  89. data/spec/qbwc/request/v07/item_service_spec.rb +32 -0
  90. data/spec/qbwc/request/v07/item_spec.rb +7 -0
  91. data/spec/qbwc/request/v07/item_subtotal_spec.rb +52 -0
  92. data/spec/qbwc/request/v07/purchase_orders_spec.rb +36 -0
  93. data/spec/qbwc/request/v07/vendor_spec.rb +31 -0
  94. data/spec/spec_helper.rb +98 -0
  95. data/spec/support/expectations/field_validations.rb +13 -0
  96. data/spec/support/expectations/xml_equal.rb +15 -0
  97. data/spec/support/shared_examples_for_xml_requests.rb +24 -0
  98. metadata +186 -0
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- EmployeeQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the employee query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to query all employees. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <EmployeeQueryRq requestID="c1" />
26
+ </QBXMLMsgsRq>
27
+ </QBXML>
28
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- EntityQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the entity query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all entities. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <EntityQueryRq requestID="4">
26
+ </EntityQueryRq>
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- HostQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the host query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to obtain QB version and support -->
16
+ <!-- information about the host running QuickBooks. -->
17
+ <!-- ========================================================================== -->
18
+ <!-- Language: xml -->
19
+ <!-- Structure: QBXML -->
20
+ <!-- QuickBooks: any -->
21
+ <!-- Deployment: any -->
22
+ <!-- ========================================================================== -->
23
+ <?qbxml version="8.0"?>
24
+ <QBXML>
25
+ <QBXMLMsgsRq onError="stopOnError">
26
+ <HostQueryRq requestID="requestID_123" />
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- InvoiceQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the invoice query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to get all invoices. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <InvoiceQueryRq requestID="4">
26
+ </InvoiceQueryRq>
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ItemInventoryQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the Item Inventory query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all of the items -->
16
+ <!-- in inventory. -->
17
+ <!-- ========================================================================== -->
18
+ <!-- Language: xml -->
19
+ <!-- Structure: QBXML -->
20
+ <!-- QuickBooks: any -->
21
+ <!-- Deployment: any -->
22
+ <!-- ========================================================================== -->
23
+ <?qbxml version="8.0"?>
24
+ <QBXML>
25
+ <QBXMLMsgsRq onError="stopOnError">
26
+ <ItemInventoryQueryRq requestID="1234" />
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ItemSalesTaxQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the item sales tax query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return the configured sales -->
16
+ <!-- tax schedules. -->
17
+ <!-- ========================================================================== -->
18
+ <!-- Language: xml -->
19
+ <!-- Structure: QBXML -->
20
+ <!-- QuickBooks: any -->
21
+ <!-- Deployment: any -->
22
+ <!-- ========================================================================== -->
23
+ <?qbxml version="8.0"?>
24
+ <QBXML>
25
+ <QBXMLMsgsRq onError="stopOnError">
26
+ <ItemSalesTaxQueryRq requestID="4">
27
+ </ItemSalesTaxQueryRq>
28
+ </QBXMLMsgsRq>
29
+ </QBXML>
30
+
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ItemServiceQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the item service query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all service related -->
16
+ <!-- items. -->
17
+ <!-- ========================================================================== -->
18
+ <!-- Language: xml -->
19
+ <!-- Structure: QBXML -->
20
+ <!-- QuickBooks: any -->
21
+ <!-- Deployment: any -->
22
+ <!-- ========================================================================== -->
23
+ <?qbxml version="8.0"?>
24
+ <QBXML>
25
+ <QBXMLMsgsRq onError="stopOnError">
26
+ <ItemServiceQueryRq requestID="4">
27
+ </ItemServiceQueryRq>
28
+ </QBXMLMsgsRq>
29
+ </QBXML>
30
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- PayrollItemWageQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the payroll item wage request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to return all of the payroll wage. -->
15
+ <!-- items -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <PayrollItemWageQueryRq requestID="4">
26
+ </PayrollItemWageQueryRq>
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- PreferencesQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the preferences query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all preferences data. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <PreferencesQueryRq requestID="4">
26
+ </PreferencesQueryRq>
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ReceivePaymentQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the receive payment query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all of the payments. -->
16
+ <!-- -->
17
+ <!-- Note that this request can return a great deal of data, even in the demo -->
18
+ <!-- system. This is an excellent opportunity to experiment with date -->
19
+ <!-- parameters or other filtering options. -->
20
+ <!-- ========================================================================== -->
21
+ <!-- Language: xml -->
22
+ <!-- Structure: QBXML -->
23
+ <!-- QuickBooks: any -->
24
+ <!-- Deployment: any -->
25
+ <!-- ========================================================================== -->
26
+ <?qbxml version="8.0"?>
27
+ <QBXML>
28
+ <QBXMLMsgsRq onError="stopOnError">
29
+ <ReceivePaymentQueryRq requestID="abc_123"/>
30
+ </QBXMLMsgsRq>
31
+ </QBXML>
32
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- SalesRepQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the sales report query request. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to return all sales report data. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="8.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError="stopOnError">
25
+ <SalesRepQueryRq requestID="4">
26
+ </SalesRepQueryRq>
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
29
+
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountAddRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the account add request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to add an account. -->
15
+ <!-- ========================================================================== -->
16
+ <!-- Language: xml -->
17
+ <!-- Structure: QBXML -->
18
+ <!-- Deployment: any -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- ========================================================================== -->
21
+ <?qbxml version="2.0"?>
22
+ <QBXML>
23
+ <!-- onError may be set to continueOnError or stopOnError -->
24
+ <QBXMLMsgsRq onError = "stopOnError">
25
+ <!-- Each request in a message needs a unique requestID string -->
26
+ <AccountAddRq requestID = "2">
27
+ <AccountAdd>
28
+ <Name>Event Expense Account</Name>
29
+ <IsActive>1</IsActive>
30
+ <!-- Here we're choosing to make the new account a sub account of -->
31
+ <!-- the Miscellaneous account. If that account doesn't exist in -->
32
+ <!-- your company file, an error status will be returned. -->
33
+ <ParentRef>
34
+ <FullName>Miscellaneous</FullName>
35
+ </ParentRef>
36
+ <AccountType>Expense</AccountType>
37
+ <Desc>Special events account</Desc>
38
+ </AccountAdd>
39
+ </AccountAddRq>
40
+ </QBXMLMsgsRq>
41
+ </QBXML>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="1.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="2.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="3.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="4.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="5.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="6.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AccountQueryRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2001-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/legal/devsite_tos.html -->
9
+ <!-- -->
10
+ <!-- -->
11
+ <!-- ========================================================================== -->
12
+ <!-- Summary: Sample illustrating the account query request. -->
13
+ <!-- This XML file contains a single request to query accounts. -->
14
+ <!-- -->
15
+ <!-- Description: -->
16
+ <!-- This XML file contains a single request to query all accounts. It does not -->
17
+ <!-- filter the output so lots of accounts could cause this to be a bit slow. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="7.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="stopOnError">
27
+ <AccountQueryRq requestID="1">
28
+ </AccountQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
31
+