qbwc_requests 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
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,47 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- AddInvoiceSpecifyTemplate.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the addition of an invoice using a specified -->
12
+ <!-- template for the invoice. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains one request to add an invoice specifying the -->
16
+ <!-- template to be used for the invoice. -->
17
+ <!-- -->
18
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
19
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
20
+ <!-- messages. -->
21
+ <!-- ========================================================================== -->
22
+ <!-- Language: xml -->
23
+ <!-- Structure: QBXML -->
24
+ <!-- QuickBooks: any -->
25
+ <!-- Deployment: any -->
26
+ <!-- ========================================================================== -->
27
+ <?qbxml version="3.0"?>
28
+ <QBXML>
29
+ <QBXMLMsgsRq onError="stopOnError">
30
+ <InvoiceAddRq requestID = "0">
31
+ <InvoiceAdd defMacro = "TxnID:NewInvoice">
32
+ <CustomerRef>
33
+ <FullName>Baker, Chris</FullName>
34
+ </CustomerRef>
35
+ <TemplateRef>
36
+ <FullName>Intuit Service Invoice</FullName>
37
+ </TemplateRef>
38
+ <InvoiceLineAdd>
39
+ <ItemRef>
40
+ <FullName>Blueprint Changes</FullName>
41
+ </ItemRef>
42
+ <Amount>100.00</Amount>
43
+ </InvoiceLineAdd>
44
+ </InvoiceAdd>
45
+ </InvoiceAddRq>
46
+ </QBXMLMsgsRq>
47
+ </QBXML>
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomDetailReport.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 custom detail report query request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to generate a custom detail report -->
15
+ <!-- ========================================================================== -->
16
+ <!-- Language: xml -->
17
+ <!-- Structure: QBXML -->
18
+ <!-- QuickBooks: any -->
19
+ <!-- Deployment: any -->
20
+ <!-- ========================================================================== -->
21
+ <?qbxml version="2.0"?>
22
+ <QBXML>
23
+ <!-- onError may be set to continueOnError or stopOnError-->
24
+ <QBXMLMsgsRq onError="continueOnError">
25
+ <CustomDetailReportQueryRq requestID = "UUIDTYPE">
26
+ <CustomDetailReportType>CustomTxnDetail</CustomDetailReportType>
27
+ <ReportDateMacro>ThisMonth</ReportDateMacro>
28
+ <ReportAccountFilter>
29
+ <AccountTypeFilter>AccountsReceivable</AccountTypeFilter>
30
+ </ReportAccountFilter>
31
+ <SummarizeRowsBy>Account</SummarizeRowsBy>
32
+ <IncludeColumn>TxnNumber</IncludeColumn>
33
+ <IncludeColumn>TxnType</IncludeColumn>
34
+ <IncludeColumn>Amount</IncludeColumn>
35
+ </CustomDetailReportQueryRq>
36
+ </QBXMLMsgsRq>
37
+ </QBXML>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomFieldAddValue.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the custom field value add request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to add a value to a custom field -->
15
+ <!-- for a pre-existing customer in the QuickBooks 2004 sample product-based -->
16
+ <!-- company file. -->
17
+ <!-- -->
18
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
19
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
20
+ <!-- messages. -->
21
+ <!-- ========================================================================== -->
22
+ <!-- Language: xml -->
23
+ <!-- Structure: QBXML -->
24
+ <!-- QuickBooks: any -->
25
+ <!-- Deployment: any -->
26
+ <!-- ========================================================================== -->
27
+ <?qbxml version="3.0"?>
28
+ <QBXML>
29
+ <QBXMLMsgsRq onError="stopOnError">
30
+ <DataExtAddRq requestID="0">
31
+ <DataExtAdd>
32
+ <OwnerID>0</OwnerID>
33
+ <DataExtName>Spouse's Name</DataExtName>
34
+ <ListDataExtType>Customer</ListDataExtType>
35
+ <ListObjRef>
36
+ <FullName>Baker, Chris</FullName>
37
+ </ListObjRef>
38
+ <DataExtValue>Robin</DataExtValue>
39
+ </DataExtAdd>
40
+ </DataExtAddRq>
41
+ </QBXMLMsgsRq>
42
+ </QBXML>
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomFieldDelValue.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the custom field value delete request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to delete (clear) a value in a -->
15
+ <!-- pre-existing custom field for a customer in the QuickBooks 2004 sample -->
16
+ <!-- product-based company file. -->
17
+ <!-- -->
18
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
19
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
20
+ <!-- messages. -->
21
+ <!-- ========================================================================== -->
22
+ <!-- Language: xml -->
23
+ <!-- Structure: QBXML -->
24
+ <!-- QuickBooks: any -->
25
+ <!-- Deployment: any -->
26
+ <!-- ========================================================================== -->
27
+ <?qbxml version="3.0"?>
28
+ <QBXML>
29
+ <QBXMLMsgsRq onError="stopOnError">
30
+ <DataExtDelRq requestID="0">
31
+ <DataExtDel>
32
+ <OwnerID>0</OwnerID>
33
+ <DataExtName>Spouse's Name</DataExtName>
34
+ <ListDataExtType>Customer</ListDataExtType>
35
+ <ListObjRef>
36
+ <FullName>Ecker Designs</FullName>
37
+ </ListObjRef>
38
+ </DataExtDel>
39
+ </DataExtDelRq>
40
+ </QBXMLMsgsRq>
41
+ </QBXML>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomFieldModValue.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the custom field value modify request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to modify a value in a -->
15
+ <!-- pre-existing custom field for a customer in the QuickBooks 2004 sample -->
16
+ <!-- product-based company file. -->
17
+ <!-- -->
18
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
19
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
20
+ <!-- messages. -->
21
+ <!-- ========================================================================== -->
22
+ <!-- Language: xml -->
23
+ <!-- Structure: QBXML -->
24
+ <!-- QuickBooks: any -->
25
+ <!-- Deployment: any -->
26
+ <!-- ========================================================================== -->
27
+ <?qbxml version="3.0"?>
28
+ <QBXML>
29
+ <QBXMLMsgsRq onError="stopOnError">
30
+ <DataExtModRq requestID="0">
31
+ <DataExtMod>
32
+ <OwnerID>0</OwnerID>
33
+ <DataExtName>Spouse's Name</DataExtName>
34
+ <ListDataExtType>Customer</ListDataExtType>
35
+ <ListObjRef>
36
+ <FullName>Abercrombie, Kristy</FullName>
37
+ </ListObjRef>
38
+ <DataExtValue>Gary</DataExtValue>
39
+ </DataExtMod>
40
+ </DataExtModRq>
41
+ </QBXMLMsgsRq>
42
+ </QBXML>
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomerAddRq.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 customer add requests -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains two customer add requests. The first request -->
15
+ <!-- adds a top-level customer, and the second request adds a job. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="2.0"?>
23
+ <QBXML>
24
+ <!-- onError may be set to continueOnError or stopOnError. -->
25
+ <QBXMLMsgsRq onError = "stopOnError">
26
+ <!-- Begin first request: adding a customer -->
27
+ <CustomerAddRq requestID = "2">
28
+ <CustomerAdd>
29
+ <Name>Joe Customer</Name>
30
+ <IsActive>1</IsActive>
31
+ <CompanyName>Joes Garage</CompanyName>
32
+ <Salutation>Mr</Salutation>
33
+ <FirstName>Joe</FirstName>
34
+ <LastName>Customer</LastName>
35
+ <BillAddress>
36
+ <Addr1>123 Main St.</Addr1>
37
+ <City>Mountain View</City>
38
+ <State>CA</State>
39
+ <PostalCode>94566</PostalCode>
40
+ </BillAddress>
41
+ <Phone>650-944-1111</Phone>
42
+ <AltPhone>650-944-2111</AltPhone>
43
+ <Email>joe@joegargage.com</Email>
44
+ <!-- references to objects by name or ID require that the object -->
45
+ <!-- already exist -->
46
+ <TermsRef>
47
+ <FullName>Net 30</FullName>
48
+ </TermsRef>
49
+ <AccountNumber>89087</AccountNumber>
50
+ <CreditLimit>2000.00</CreditLimit>
51
+ </CustomerAdd>
52
+ </CustomerAddRq>
53
+ <!-- Begin second request: adding another customer -->
54
+ <CustomerAddRq requestID = "3">
55
+ <CustomerAdd>
56
+ <Name>Equipment Installation</Name>
57
+ <IsActive>1</IsActive>
58
+ <!-- Here we're choosing to create job Equipment Installation under -->
59
+ <!-- an existing customer, Joe Customer -->
60
+ <ParentRef>
61
+ <FullName>Joe Customer</FullName>
62
+ </ParentRef>
63
+ <JobStatus>Awarded</JobStatus>
64
+ <JobStartDate>2001-03-01</JobStartDate>
65
+ <JobProjectedEndDate>2001-12-01</JobProjectedEndDate>
66
+ <JobEndDate>2001-12-15</JobEndDate>
67
+ <JobDesc>Install new smog equipment</JobDesc>
68
+ </CustomerAdd>
69
+ </CustomerAddRq>
70
+ </QBXMLMsgsRq>
71
+ </QBXML>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomerQuery.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2002-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 Customer Query request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to query for customers. Since -->
15
+ <!-- no filters are used in this request all customers will be returned. -->
16
+ <!-- This could be slow on company files with large numbers of customers. -->
17
+ <!-- You should use Iterators or filters to reduce the amount of data returned. -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="2.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="continueOnError">
27
+ <CustomerQueryRq requestID="2" />
28
+ </QBXMLMsgsRq>
29
+ </QBXML>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- CustomerQuery_metadata.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2004-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rdmgr/?ID=100 -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the Customer Query request using the new 4.0 -->
12
+ <!-- metadata attribute. -->
13
+ <!-- -->
14
+ <!-- Description: -->
15
+ <!-- This XML file contains a single request to query for customers. -->
16
+ <!-- Only the count of customers will be returned in the response. -->
17
+ <!-- -->
18
+ <!-- ========================================================================== -->
19
+ <!-- Language: xml -->
20
+ <!-- Structure: QBXML -->
21
+ <!-- QuickBooks: any -->
22
+ <!-- Deployment: any -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="4.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq onError="continueOnError">
27
+ <CustomerQueryRq requestID="2" metaData="MetaDataOnly">
28
+ </CustomerQueryRq>
29
+ </QBXMLMsgsRq>
30
+ </QBXML>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- DepositAddRq.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2002-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 a Deposit Add request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to add a deposit to a checking -->
15
+ <!-- account. This sample requires there to be an account named "Checking". -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="2.0" ?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError = "stopOnError">
25
+ <DepositAddRq requestID = "0">
26
+ <DepositAdd>
27
+ <DepositToAccountRef>
28
+ <FullName>Checking</FullName>
29
+ </DepositToAccountRef>
30
+ <DepositLineAdd>
31
+ <PaymentTxnID>3D95-1071497099</PaymentTxnID>
32
+ </DepositLineAdd>
33
+ </DepositAdd>
34
+ </DepositAddRq>
35
+ </QBXMLMsgsRq>
36
+ </QBXML>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- DisplayList.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the list display add request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This request allows an application to cause QuickBooks to bring up the -->
15
+ <!-- edit window for an new entity. An application can use this feature if the -->
16
+ <!-- application's design requires the creation of a new entity, but the -->
17
+ <!-- frequency of this operation is low enough that implementing the UI for the -->
18
+ <!-- creation doesn't make sense. -->
19
+ <!-- -->
20
+ <!-- This XML file contains a single request to display the Other Name add UI. -->
21
+ <!-- -->
22
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
23
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
24
+ <!-- messages. -->
25
+ <!-- ========================================================================== -->
26
+ <!-- Language: xml -->
27
+ <!-- Structure: QBXML -->
28
+ <!-- QuickBooks: any -->
29
+ <!-- Deployment: any -->
30
+ <!-- ========================================================================== -->
31
+ <?qbxml version="3.0"?>
32
+ <QBXML>
33
+ <QBXMLMsgsRq onError="stopOnError">
34
+ <ListDisplayAddRq requestID = "0">
35
+ <ListDisplayAddType>OtherName</ListDisplayAddType>
36
+ </ListDisplayAddRq>
37
+ </QBXMLMsgsRq>
38
+ </QBXML>
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- DisplayTxn.xml -->
4
+ <!-- -->
5
+ <!-- INTUIT CONFIDENTIAL. -->
6
+ <!-- Copyright (c) 2003-2013 Intuit Inc. All rights reserved. -->
7
+ <!-- Use is subject to the terms specified at: -->
8
+ <!-- http://developer.intuit.com/rd/qbXML_agreement -->
9
+ <!-- -->
10
+ <!-- ========================================================================== -->
11
+ <!-- Summary: Sample illustrating the transaction display modify request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This request allows an application to cause QuickBooks to bring up the -->
15
+ <!-- edit window for an existing transaction. An application can use this if -->
16
+ <!-- the application's design allows or requires transaction modifications to -->
17
+ <!-- be performed in the QuickBooks UI. It can also be used to present an -->
18
+ <!-- existing transaction so that operations not supported by the SDK can be -->
19
+ <!-- performed by the user in the QuickBooks UI. For example, one cannot cause -->
20
+ <!-- items to be received against a Purchase Order by adding a bill from an -->
21
+ <!-- application through the SDK. An application could instead direct the user -->
22
+ <!-- create a bill or item receipt against a Purchase Order and bring up the PO -->
23
+ <!-- so the user only need right click on the PO to perform the operation. -->
24
+ <!-- -->
25
+ <!-- This XML file contains a single request to display a purchase order that -->
26
+ <!-- exists in the sample product-based company file. QuickBooks must have the -->
27
+ <!-- sample product-based company file open in order for this request to work. -->
28
+ <!-- -->
29
+ <!-- This xml file will only work when passed through the QBXMLRP2 request -->
30
+ <!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
31
+ <!-- messages. -->
32
+ <!-- ========================================================================== -->
33
+ <!-- Language: xml -->
34
+ <!-- Structure: QBXML -->
35
+ <!-- QuickBooks: any -->
36
+ <!-- Deployment: any -->
37
+ <!-- ========================================================================== -->
38
+ <?qbxml version="3.0"?>
39
+ <QBXML>
40
+ <QBXMLMsgsRq onError="stopOnError">
41
+ <TxnDisplayModRq requestID = "0">
42
+ <TxnDisplayModType>PurchaseOrder</TxnDisplayModType>
43
+ <TxnID>341-933281845</TxnID>
44
+ </TxnDisplayModRq>
45
+ </QBXMLMsgsRq>
46
+ </QBXML>
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ErrRecovery1.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: Request to add a check. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This file contains an XML request to add a check. -->
15
+ <!-- It also passes in a new message set ID so information for this session will-->
16
+ <!-- be saved. If everything proceeds normally, the check request will be -->
17
+ <!-- processed and the session status will be saved. In the event of a -->
18
+ <!-- failure (or just to test) this XML file may be sent to QuickBooks -->
19
+ <!-- a second time and status will be returned for the message set named -->
20
+ <!-- by the ID "AB1F2395". -->
21
+ <!-- ========================================================================== -->
22
+ <!-- Language: xml -->
23
+ <!-- Structure: QBXML -->
24
+ <!-- QuickBooks: any -->
25
+ <!-- Deployment: any -->
26
+ <!-- After: ErrRecovery2.xml -->
27
+ <!-- ========================================================================== -->
28
+ <?qbxml version="2.0"?>
29
+ <QBXML>
30
+ <QBXMLMsgsRq newMessageSetID = "AB1F2395" onError="continueOnError">
31
+ <CheckAddRq requestID = "1">
32
+ <CheckAdd>
33
+ <AccountRef>
34
+ <FullName>Checking</FullName>
35
+ </AccountRef>
36
+ <PayeeEntityRef>
37
+ <FullName>East Bayshore Auto Mall</FullName>
38
+ </PayeeEntityRef>
39
+ <TxnDate>2001-10-14</TxnDate>
40
+ <Memo>Installment check</Memo>
41
+ <ExpenseLineAdd>
42
+ <AccountRef>
43
+ <FullName>Automobile</FullName>
44
+ </AccountRef>
45
+ <Amount>520.00</Amount>
46
+ </ExpenseLineAdd>
47
+ </CheckAdd>
48
+ </CheckAddRq>
49
+ </QBXMLMsgsRq>
50
+ </QBXML>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ErrRecovery2.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: Demonstrate checking a session status -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains no requests. It asks QuickBooks for status -->
15
+ <!-- for a message set that it sent earlier, named by "AB1F2395". -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- Before: ErrRecovery1.xml -->
22
+ <!-- After: ErrRecovery3.xml -->
23
+ <!-- ========================================================================== -->
24
+ <?qbxml version="2.0"?>
25
+ <QBXML>
26
+ <QBXMLMsgsRq oldMessageSetID = "AB1F2395" newMessageSetID = "AB1F2395" onError="continueOnError">
27
+ </QBXMLMsgsRq>
28
+ </QBXML>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0"?>
2
+ <!-- ========================================================================== -->
3
+ <!-- ErrRecovery3.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: Demonstrate deleting session status. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains no requests. It asks QuickBooks to delete -->
15
+ <!-- session status saved for the session with the ID of "AB1F2395". -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- Before: ErrRecovery2.xml -->
22
+ <!-- ========================================================================== -->
23
+ <?qbxml version="2.0"?>
24
+ <QBXML>
25
+ <QBXMLMsgsRq oldMessageSetID = "AB1F2395" onError="continueOnError">
26
+ </QBXMLMsgsRq>
27
+ </QBXML>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- ========================================================================== -->
3
+ <!-- HostQuery.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 host query request. -->
12
+ <!-- -->
13
+ <!-- Description: -->
14
+ <!-- This XML file contains a single request to obtain QB version and support -->
15
+ <!-- information about the host running QuickBooks. -->
16
+ <!-- ========================================================================== -->
17
+ <!-- Language: xml -->
18
+ <!-- Structure: QBXML -->
19
+ <!-- QuickBooks: any -->
20
+ <!-- Deployment: any -->
21
+ <!-- ========================================================================== -->
22
+ <?qbxml version="2.0"?>
23
+ <QBXML>
24
+ <QBXMLMsgsRq onError = "stopOnError">
25
+ <HostQueryRq requestID = "0"/>
26
+ </QBXMLMsgsRq>
27
+ </QBXML>