qbwc_requests 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +8 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/lib/qbwc_requests/qbwc/ordered_fields.rb +35 -0
- data/lib/qbwc_requests/qbwc/qbwc.rb +2 -0
- data/lib/qbwc_requests/qbwc/request/base.rb +61 -0
- data/lib/qbwc_requests/qbwc/request/v07/account.rb +13 -0
- data/lib/qbwc_requests/qbwc/request/v07/customer.rb +29 -0
- data/lib/qbwc_requests/qbwc/request/v07/estimate.rb +14 -0
- data/lib/qbwc_requests/qbwc/request/v07/invoice.rb +15 -0
- data/lib/qbwc_requests/qbwc/request/v07/item.rb +11 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_discount.rb +15 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_group.rb +14 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_non_inventory.rb +15 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_other_charge.rb +16 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_payment.rb +14 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_service.rb +15 -0
- data/lib/qbwc_requests/qbwc/request/v07/item_subtotal.rb +15 -0
- data/lib/qbwc_requests/qbwc/request/v07/purchase_order.rb +12 -0
- data/lib/qbwc_requests/qbwc/request/v07/vendor.rb +25 -0
- data/lib/qbwc_requests/qbwc/xml_actions.rb +31 -0
- data/lib/qbwc_requests/version.rb +3 -0
- data/lib/qbwc_requests.rb +7 -0
- data/qbwc_requests.gemspec +23 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/AccountQueryRq.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/BillQueryRq.xml +28 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/CheckQueryRq.xml +28 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/CompanyQueryRq.xml +28 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/EmployeeQueryRq.xml +28 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/EntityQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/HostQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/InvoiceQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/ItemInventoryQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/ItemSalesTaxQueryRq.xml +30 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/ItemServiceQueryRq.xml +30 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/PayrollItemWageQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/PreferencesQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/ReceivePaymentQueryRq.xml +32 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/SalesRepQueryRq.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountAddRq.xml +41 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_1.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_2.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_3.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_4.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_5.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_6.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AccountQueryRq_7.xml +31 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/AddInvoiceSpecifyTemplate.xml +47 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomDetailReport.xml +37 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldAddValue.xml +42 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldDelValue.xml +41 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomFieldModValue.xml +42 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerAddRq.xml +71 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerQuery.xml +29 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/CustomerQuery_metadata.xml +30 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DepositAddRq.xml +36 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DisplayList.xml +38 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/DisplayTxn.xml +46 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery1.xml +50 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery2.xml +28 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ErrRecovery3.xml +27 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/HostQuery.xml +27 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ItemServiceAddRq.xml +39 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ItemsAddRq.xml +80 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/JournalEntryAddRq.xml +55 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ProfitAndLossStdReport.xml +35 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/QueryFilterRq.xml +46 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ReceivePaymentAddRq.xml +49 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/ReceivePaymentToDepositQueryRq.xml +27 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/TemplateQuery.xml +37 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/TxnDisplayAdd_Invoice.xml +35 -0
- data/quickbook/xml/qbxml/examples/xmlfiles/legacy/VendorAddRq.xml +63 -0
- data/quickbook/xml/qbxmlops130.xml +35788 -0
- data/quickbook/xml/qbxmlops70.xml +29844 -0
- data/spec/qbwc/request/v07/account_spec.rb +32 -0
- data/spec/qbwc/request/v07/customer_spec.rb +32 -0
- data/spec/qbwc/request/v07/estimate_spec.rb +39 -0
- data/spec/qbwc/request/v07/invoice_spec.rb +39 -0
- data/spec/qbwc/request/v07/item_discount_spec.rb +32 -0
- data/spec/qbwc/request/v07/item_group_spec.rb +31 -0
- data/spec/qbwc/request/v07/item_non_inventory_spec.rb +31 -0
- data/spec/qbwc/request/v07/item_other_charge_spec.rb +39 -0
- data/spec/qbwc/request/v07/item_payment_spec.rb +29 -0
- data/spec/qbwc/request/v07/item_service_spec.rb +32 -0
- data/spec/qbwc/request/v07/item_spec.rb +7 -0
- data/spec/qbwc/request/v07/item_subtotal_spec.rb +52 -0
- data/spec/qbwc/request/v07/purchase_orders_spec.rb +36 -0
- data/spec/qbwc/request/v07/vendor_spec.rb +31 -0
- data/spec/spec_helper.rb +98 -0
- data/spec/support/expectations/field_validations.rb +13 -0
- data/spec/support/expectations/xml_equal.rb +15 -0
- data/spec/support/shared_examples_for_xml_requests.rb +24 -0
- metadata +186 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- ItemServiceAdd.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 Item Service Add request -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML contains a request to add a particular service item. -->
|
15
|
+
<!-- -->
|
16
|
+
<!-- This script depends on there being an account named "Construction". -->
|
17
|
+
<!-- ========================================================================== -->
|
18
|
+
<!-- Language: xml -->
|
19
|
+
<!-- Structure: QBXML -->
|
20
|
+
<!-- QuickBooks: any -->
|
21
|
+
<!-- Deployment: any -->
|
22
|
+
<!-- ========================================================================== -->
|
23
|
+
<?qbxml version="2.0"?>
|
24
|
+
<QBXML>
|
25
|
+
<QBXMLMsgsRq onError="continueOnError">
|
26
|
+
<ItemServiceAddRq>
|
27
|
+
<ItemServiceAdd>
|
28
|
+
<Name>Gutter</Name>
|
29
|
+
<SalesOrPurchase>
|
30
|
+
<Desc>Clean gutter</Desc>
|
31
|
+
<Price>45.67</Price>
|
32
|
+
<AccountRef>
|
33
|
+
<FullName>Construction</FullName>
|
34
|
+
</AccountRef>
|
35
|
+
</SalesOrPurchase>
|
36
|
+
</ItemServiceAdd>
|
37
|
+
</ItemServiceAddRq>
|
38
|
+
</QBXMLMsgsRq>
|
39
|
+
</QBXML>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- ItemsAddRq.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 item add requests. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains four add requests for items, an inventory item, -->
|
15
|
+
<!-- non-inventory item, service item and a sales tax item. -->
|
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
|
+
<ItemInventoryAddRq requestID = "2">
|
27
|
+
<ItemInventoryAdd>
|
28
|
+
<Name>Hammer</Name>
|
29
|
+
<IncomeAccountRef>
|
30
|
+
<FullName>Other Income</FullName>
|
31
|
+
</IncomeAccountRef>
|
32
|
+
<COGSAccountRef>
|
33
|
+
<FullName>Cost Of Goods Sold</FullName>
|
34
|
+
</COGSAccountRef>
|
35
|
+
<AssetAccountRef>
|
36
|
+
<FullName>Other Income</FullName>
|
37
|
+
</AssetAccountRef>
|
38
|
+
</ItemInventoryAdd>
|
39
|
+
</ItemInventoryAddRq>
|
40
|
+
<ItemNonInventoryAddRq requestID = "3">
|
41
|
+
<!-- Begin second add request: item non-inventory add request -->
|
42
|
+
<ItemNonInventoryAdd>
|
43
|
+
<Name>Desk</Name>
|
44
|
+
<SalesOrPurchase>
|
45
|
+
<Desc>Desk for the office</Desc>
|
46
|
+
<Price>206.89</Price>
|
47
|
+
<AccountRef>
|
48
|
+
<FullName>Other Expenses</FullName>
|
49
|
+
</AccountRef>
|
50
|
+
</SalesOrPurchase>
|
51
|
+
</ItemNonInventoryAdd>
|
52
|
+
</ItemNonInventoryAddRq>
|
53
|
+
<!-- Begin third add request: item service add request -->
|
54
|
+
<ItemServiceAddRq requestID = "4">
|
55
|
+
<ItemServiceAdd>
|
56
|
+
<Name>Office Cleaning</Name>
|
57
|
+
<IsActive>1</IsActive>
|
58
|
+
<SalesOrPurchase>
|
59
|
+
<Desc>Labor for cleaning office</Desc>
|
60
|
+
<Price>120.00</Price>
|
61
|
+
<AccountRef>
|
62
|
+
<FullName>Other Expenses</FullName>
|
63
|
+
</AccountRef>
|
64
|
+
</SalesOrPurchase>
|
65
|
+
</ItemServiceAdd>
|
66
|
+
</ItemServiceAddRq>
|
67
|
+
<!-- Begin fourth add request: item sales tax add -->
|
68
|
+
<ItemSalesTaxAddRq requestID = "5">
|
69
|
+
<ItemSalesTaxAdd>
|
70
|
+
<Name>Alameda County</Name>
|
71
|
+
<IsActive>1</IsActive>
|
72
|
+
<ItemDesc>County Tax</ItemDesc>
|
73
|
+
<TaxRate>8.25</TaxRate>
|
74
|
+
<TaxVendorRef>
|
75
|
+
<FullName>State Board of Equalization</FullName>
|
76
|
+
</TaxVendorRef>
|
77
|
+
</ItemSalesTaxAdd>
|
78
|
+
</ItemSalesTaxAddRq>
|
79
|
+
</QBXMLMsgsRq>
|
80
|
+
</QBXML>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- JournalEntryAddRq.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 a journal entry add request -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains a single request to add a journal entry -->
|
15
|
+
<!-- transaction. -->
|
16
|
+
<!-- -->
|
17
|
+
<!-- This example depends on having Bank accounts named "Bank Account 1" -->
|
18
|
+
<!-- and "Bank Account 2" and the classes "Class1" and "Class2". -->
|
19
|
+
<!-- ========================================================================== -->
|
20
|
+
<!-- Language: xml -->
|
21
|
+
<!-- Structure: QBXML -->
|
22
|
+
<!-- QuickBooks: any -->
|
23
|
+
<!-- Deployment: any -->
|
24
|
+
<!-- ========================================================================== -->
|
25
|
+
<?qbxml version="2.0"?>
|
26
|
+
<QBXML>
|
27
|
+
<!-- onError may be set to continueOnError or stopOnError-->
|
28
|
+
<QBXMLMsgsRq onError = "stopOnError">
|
29
|
+
<JournalEntryAddRq requestID = "1">
|
30
|
+
<JournalEntryAdd>
|
31
|
+
<TxnDate>2001-04-14</TxnDate>
|
32
|
+
<RefNumber>1</RefNumber>
|
33
|
+
<JournalDebitLine>
|
34
|
+
<AccountRef>
|
35
|
+
<FullName>Bank Account 1</FullName>
|
36
|
+
</AccountRef>
|
37
|
+
<Amount>10.23</Amount>
|
38
|
+
<Memo>Adjustment for the bank account</Memo>
|
39
|
+
<ClassRef>
|
40
|
+
<FullName>Class1</FullName>
|
41
|
+
</ClassRef>
|
42
|
+
</JournalDebitLine>
|
43
|
+
<JournalCreditLine>
|
44
|
+
<AccountRef>
|
45
|
+
<FullName>Bank Account 2</FullName>
|
46
|
+
</AccountRef>
|
47
|
+
<Amount>10.23</Amount>
|
48
|
+
<ClassRef>
|
49
|
+
<FullName>Class2</FullName>
|
50
|
+
</ClassRef>
|
51
|
+
</JournalCreditLine>
|
52
|
+
</JournalEntryAdd>
|
53
|
+
</JournalEntryAddRq>
|
54
|
+
</QBXMLMsgsRq>
|
55
|
+
</QBXML>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- ProfitAndLossStdReport.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: Shows the Profit and Loss Standard Report Query request. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains a single request to generate a standard P&L, -->
|
15
|
+
<!-- summarized by month for a specified date range. -->
|
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="continueOnError">
|
26
|
+
<GeneralSummaryReportQueryRq>
|
27
|
+
<GeneralSummaryReportType>ProfitAndLossStandard</GeneralSummaryReportType>
|
28
|
+
<ReportPeriod>
|
29
|
+
<FromReportDate>2002-05-01</FromReportDate>
|
30
|
+
<ToReportDate>2003-05-01</ToReportDate>
|
31
|
+
</ReportPeriod>
|
32
|
+
<SummarizeColumnsBy>Month</SummarizeColumnsBy>
|
33
|
+
</GeneralSummaryReportQueryRq>
|
34
|
+
</QBXMLMsgsRq>
|
35
|
+
</QBXML>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- QueryFilterRq.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 query requests that use filtering. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains several query requests. One request asks for -->
|
15
|
+
<!-- the Other Expenses account. Another request asks for Customers based on -->
|
16
|
+
<!-- their names. -->
|
17
|
+
<!-- -->
|
18
|
+
<!-- This examples depends on the following: -->
|
19
|
+
<!-- 'Other Expenses' account -->
|
20
|
+
<!-- 'Joe Customer' customer -->
|
21
|
+
<!-- 'Equipment Installation' job -->
|
22
|
+
<!-- -->
|
23
|
+
<!-- In order for this query to return the expected data you must run the -->
|
24
|
+
<!-- sample XML file CustomerAddRq.xml -->
|
25
|
+
<!-- ========================================================================== -->
|
26
|
+
<!-- Language: xml -->
|
27
|
+
<!-- Structure: QBXML -->
|
28
|
+
<!-- QuickBooks: any -->
|
29
|
+
<!-- Deployment: any -->
|
30
|
+
<!-- Before: CustomerAddRq.xml -->
|
31
|
+
<!-- ========================================================================== -->
|
32
|
+
<?qbxml version="2.0"?>
|
33
|
+
<QBXML>
|
34
|
+
<!-- onError may be set to continueOnError or stopOnError-->
|
35
|
+
<QBXMLMsgsRq onError = "stopOnError">
|
36
|
+
<!-- Begin first query filter request -->
|
37
|
+
<AccountQueryRq requestID = "1">
|
38
|
+
<FullName>Other Expenses</FullName>
|
39
|
+
</AccountQueryRq>
|
40
|
+
<!-- Begin second query filter request -->
|
41
|
+
<CustomerQueryRq requestID = "2">
|
42
|
+
<FullName>Joe Customer</FullName>
|
43
|
+
<FullName>Joe Customer:Equipment Installation</FullName> <!-- use : to separate parents/children -->
|
44
|
+
</CustomerQueryRq>
|
45
|
+
</QBXMLMsgsRq>
|
46
|
+
</QBXML>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- ReceivePaymentAddRq.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 receive payment add request. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains a single request to add a receive payment. -->
|
15
|
+
<!-- -->
|
16
|
+
<!-- This sample requires at least a 1.1 version DOCTYPE since this request -->
|
17
|
+
<!-- is not implemented in earlier versions -->
|
18
|
+
<!-- ========================================================================== -->
|
19
|
+
<!-- Language: xml -->
|
20
|
+
<!-- Structure: QBXML -->
|
21
|
+
<!-- QuickBooks: any -->
|
22
|
+
<!-- Deployment: any -->
|
23
|
+
<!-- ========================================================================== -->
|
24
|
+
<?qbxml version="2.0"?>
|
25
|
+
<QBXML>
|
26
|
+
<!-- onError may be set to continueOnError or stopOnError -->
|
27
|
+
<QBXMLMsgsRq onError = "stopOnError">
|
28
|
+
<!-- Each request in a message needs a unique requestID string -->
|
29
|
+
<ReceivePaymentAddRq requestID = "2">
|
30
|
+
<ReceivePaymentAdd>
|
31
|
+
<CustomerRef>
|
32
|
+
<FullName>Ecker Designs:Office Repairs</FullName>
|
33
|
+
</CustomerRef>
|
34
|
+
<!-- Provide a date and a reference number for the payment -->
|
35
|
+
<TxnDate>2002-02-01</TxnDate>
|
36
|
+
<RefNumber>1000</RefNumber>
|
37
|
+
<TotalAmount>100.00</TotalAmount>
|
38
|
+
<PaymentMethodRef>
|
39
|
+
<FullName>Cash</FullName>
|
40
|
+
</PaymentMethodRef>
|
41
|
+
<!-- This payment applies to a single invoice -->
|
42
|
+
<AppliedToTxnAdd>
|
43
|
+
<TxnID>44F3-1071525107</TxnID>
|
44
|
+
<PaymentAmount>100.00</PaymentAmount>
|
45
|
+
</AppliedToTxnAdd>
|
46
|
+
</ReceivePaymentAdd>
|
47
|
+
</ReceivePaymentAddRq>
|
48
|
+
</QBXMLMsgsRq>
|
49
|
+
</QBXML>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- ReceivePaymentToDepositQueryRq.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 Receive Payment To Deposit Query request. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This is a helper request that provides back a response that contains -->
|
15
|
+
<!-- a list of payments that are available to deposit. -->
|
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
|
+
<ReceivePaymentToDepositQueryRq requestID = "0"/>
|
26
|
+
</QBXMLMsgsRq>
|
27
|
+
</QBXML>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- TemplateQuery.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 template query request. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains a single request to query for the list of -->
|
15
|
+
<!-- templates defined for the currently open company file. -->
|
16
|
+
<!-- -->
|
17
|
+
<!-- This is the request an application would use to determine which templates -->
|
18
|
+
<!-- are defined in a company file. An application might ask a user to import -->
|
19
|
+
<!-- or download a template if it can't find a particular template in the -->
|
20
|
+
<!-- query response. Another strategy would be to have the user designate a -->
|
21
|
+
<!-- template to be used when the application creates a particular transaction. -->
|
22
|
+
<!-- -->
|
23
|
+
<!-- This xml file will only work when passed through the QBXMLRP2 request -->
|
24
|
+
<!-- processor. The QBXMLRP request processor does not support SDK 3.0 version -->
|
25
|
+
<!-- messages. -->
|
26
|
+
<!-- ========================================================================== -->
|
27
|
+
<!-- Language: xml -->
|
28
|
+
<!-- Structure: QBXML -->
|
29
|
+
<!-- QuickBooks: any -->
|
30
|
+
<!-- Deployment: any -->
|
31
|
+
<!-- ========================================================================== -->
|
32
|
+
<?qbxml version="3.0"?>
|
33
|
+
<QBXML>
|
34
|
+
<QBXMLMsgsRq onError="stopOnError">
|
35
|
+
<TemplateQueryRq requestID="0"/>
|
36
|
+
</QBXMLMsgsRq>
|
37
|
+
</QBXML>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- TxnDisplayAdd_Invoice.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/rd/qbXML_agreement -->
|
9
|
+
<!-- -->
|
10
|
+
<!-- ========================================================================== -->
|
11
|
+
<!-- Summary: Show the transaction display with populated data. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- Sample illustrating the transaction display add request for invoice, -->
|
15
|
+
<!-- prefilling the new invoice with an existing customer name. The end user -->
|
16
|
+
<!-- has to tab out of the new invoice form in QuickBooks to complete -->
|
17
|
+
<!-- the prefilling, just as the user would when working purely in QuickBooks. -->
|
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
|
+
<TxnDisplayAddRq requestID = "0">
|
28
|
+
<TxnDisplayAddType>Invoice</TxnDisplayAddType>
|
29
|
+
<EntityRef>
|
30
|
+
<FullName>Abercrombie, Kristy</FullName>
|
31
|
+
<!-- <ListID>150000-933272658</ListID>-->
|
32
|
+
</EntityRef>
|
33
|
+
</TxnDisplayAddRq>
|
34
|
+
</QBXMLMsgsRq>
|
35
|
+
</QBXML>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!-- ========================================================================== -->
|
3
|
+
<!-- VendorAddRq.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 vendor add request. -->
|
12
|
+
<!-- -->
|
13
|
+
<!-- Description: -->
|
14
|
+
<!-- This XML file contains one add requests for a vendor. -->
|
15
|
+
<!-- -->
|
16
|
+
<!-- This sample depends on a vendor type called "Materials". -->
|
17
|
+
<!-- ========================================================================== -->
|
18
|
+
<!-- Language: xml -->
|
19
|
+
<!-- Structure: QBXML -->
|
20
|
+
<!-- QuickBooks: any -->
|
21
|
+
<!-- Deployment: any -->
|
22
|
+
<!-- ========================================================================== -->
|
23
|
+
<?qbxml version="2.0"?>
|
24
|
+
<QBXML>
|
25
|
+
<!-- onError may be set to continueOnError or stopOnError-->
|
26
|
+
<QBXMLMsgsRq onError = "stopOnError">
|
27
|
+
<VendorAddRq requestID="1">
|
28
|
+
<VendorAdd>
|
29
|
+
<!-- Name is the only required field for an add request, unless Vendor1099 -->
|
30
|
+
<!-- is set to true or 1. Then, the Address elements giving the vendor's -->
|
31
|
+
<!-- address are required. -->
|
32
|
+
<Name>Acme</Name>
|
33
|
+
<IsActive>1</IsActive>
|
34
|
+
<CompanyName>Acme Food Products</CompanyName>
|
35
|
+
<Salutation>Mr</Salutation>
|
36
|
+
<FirstName>Mike</FirstName>
|
37
|
+
<LastName>Acme</LastName>
|
38
|
+
<VendorAddress>
|
39
|
+
<Addr1>4600 N. 1st St.</Addr1>
|
40
|
+
<Addr2>Suite B</Addr2>
|
41
|
+
<City>San Francisco</City>
|
42
|
+
<State>CA</State>
|
43
|
+
<PostalCode>94044</PostalCode>
|
44
|
+
<Country>USA</Country>
|
45
|
+
</VendorAddress>
|
46
|
+
<Phone>650-987-9654</Phone>
|
47
|
+
<AltPhone>650-214-6549</AltPhone>
|
48
|
+
<Fax>650-214-6549</Fax>
|
49
|
+
<Email>Beka@bestfoods.com</Email>
|
50
|
+
<Contact>Mr Leon</Contact>
|
51
|
+
<NameOnCheck>Acme Food Products</NameOnCheck>
|
52
|
+
<AccountNumber>1239-854</AccountNumber>
|
53
|
+
<VendorTypeRef>
|
54
|
+
<FullName>Materials</FullName>
|
55
|
+
</VendorTypeRef>
|
56
|
+
<TermsRef>
|
57
|
+
<FullName>1% 10 Net 30</FullName>
|
58
|
+
</TermsRef>
|
59
|
+
<CreditLimit>10000.00</CreditLimit>
|
60
|
+
</VendorAdd>
|
61
|
+
</VendorAddRq>
|
62
|
+
</QBXMLMsgsRq>
|
63
|
+
</QBXML>
|