Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create customer pos #6

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions django_quickbooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class QUICKBOOKS_ENUMS:
RESOURCE_BILL = 'Bill'
RESOURCE_ITEM_SERVICE = 'ItemService'
RESOURCE_TXN = 'Txn'
RESOURCE_ITEM_INVENTORY_POS = 'ItemInventory'
RESOURCE_DEPARTMENT = 'Department'


class QBXML_RESPONSE_STATUS_CODES:
Expand Down
77 changes: 77 additions & 0 deletions django_quickbooks/data/pos/customer_add_request.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" ?>
<!-- ========================================================================== -->
<!-- CustomerAddRq.xml -->
<!-- -->
<!-- INTUIT CONFIDENTIAL. -->
<!-- Copyright (c) 2001-2009 Intuit Inc. All rights reserved. -->
<!-- Use is subject to the terms specified at: -->
<!-- http://developer.intuit.com/legal/devsite_tos.html -->
<!-- -->
<!-- -->
<!-- ========================================================================== -->
<!-- Summary: Sample illustrating the account query request. -->
<!-- This XML file contains a single request to query accounts. -->
<!-- -->
<!-- Description: -->
<!-- A sample qbposXML request for use with SDKTest samples so that you can see -->
<!-- the response from QB POS and verify that the QB POS Request Processor is -->
<!-- behaving appropriately. -->
<!-- ========================================================================== -->
<!-- Language: xml -->
<!-- Structure: qbposXML -->
<!-- QuickBooks: any -->
<!-- Deployment: any -->
<!-- ========================================================================== -->
<?qbposxml version="1.0"?>
<QBPOSXML>
<QBPOSXMLMsgsRq onError="stopOnError">
<CustomerAddRq requestID = "26">
<CustomerAdd>
<CompanyName>STRTYPE</CompanyName> <!-- opt, field max = 41 -->
<CustomerID>STRTYPE</CustomerID> <!-- opt, field max = 40, v2.5 -->
<CustomerDiscPercent>FLOATTYPE</CustomerDiscPercent> <!-- opt -->
<!-- CustomerDiscType may have one of the following values: None,PriceLevel,Percentage -->
<CustomerDiscType>ENUMTYPE</CustomerDiscType> <!-- opt -->
<CustomerType>STRTYPE</CustomerType> <!-- opt, field max = 15, v1.1 -->
<EMail>STRTYPE</EMail> <!-- opt, field max = 99 -->
<IsOkToEMail>BOOLTYPE</IsOkToEMail> <!-- opt, v3.0 -->
<FirstName>STRTYPE</FirstName> <!-- opt, field max = 30 -->
<IsAcceptingChecks>BOOLTYPE</IsAcceptingChecks> <!-- opt -->
<IsUsingChargeAccount>BOOLTYPE</IsUsingChargeAccount> <!-- opt, v2.0 -->
<IsUsingWithQB>BOOLTYPE</IsUsingWithQB> <!-- opt -->
<IsRewardsMember>BOOLTYPE</IsRewardsMember> <!-- opt, v2.5 -->
<IsNoShipToBilling>BOOLTYPE</IsNoShipToBilling> <!-- opt, v2.5 -->
<LastName>STRTYPE</LastName> <!-- field max = 30 -->
<Notes>STRTYPE</Notes> <!-- opt, field max = 245 -->
<Phone>STRTYPE</Phone> <!-- opt, field max = 40 -->
<Phone2>STRTYPE</Phone2> <!-- opt, field max = 40 -->
<Phone3>STRTYPE</Phone3> <!-- opt, field max = 40, v1.1 -->
<Phone4>STRTYPE</Phone4> <!-- opt, field max = 40, v1.1 -->
<!-- PriceLevelNumber may have one of the following values: 1,2,3,4,5 -->
<PriceLevelNumber>ENUMTYPE</PriceLevelNumber> <!-- opt -->
<Salutation>STRTYPE</Salutation> <!-- opt, field max = 15 -->
<TaxCategory>STRTYPE</TaxCategory> <!-- opt, field max = 20 -->
<BillAddress> <!-- opt -->
<City>STRTYPE</City> <!-- opt, field max = 31 -->
<Country>STRTYPE</Country> <!-- opt, field max = 31, v1.1 -->
<PostalCode>STRTYPE</PostalCode> <!-- opt, field max = 13 -->
<State>STRTYPE</State> <!-- opt, field max = 21 -->
<Street>STRTYPE</Street> <!-- opt, field max = 41 -->
<Street2>STRTYPE</Street2> <!-- opt, field max = 41, v3.0 -->
</BillAddress>
<DefaultShipAddress>STRTYPE</DefaultShipAddress> <!-- opt, field max = 32, v2.5 -->
<ShipAddress> <!-- opt, may rep -->
<AddressName>STRTYPE</AddressName> <!-- opt, field max = 32, v2.5 -->
<CompanyName>STRTYPE</CompanyName> <!-- opt, field max = 41, v2.5 -->
<FullName>STRTYPE</FullName> <!-- opt, field max = 64, v2.5 -->
<City>STRTYPE</City> <!-- opt, field max = 31 -->
<Country>STRTYPE</Country> <!-- opt, field max = 32, v1.1 -->
<PostalCode>STRTYPE</PostalCode> <!-- opt, field max = 13 -->
<State>STRTYPE</State> <!-- opt, field max = 21 -->
<Street>STRTYPE</Street> <!-- opt, field max = 41 -->
<Street2>STRTYPE</Street2> <!-- opt, field max = 41, v3.0 -->
</ShipAddress>
</CustomerAdd>
</CustomerAddRq>
</QBPOSXMLMsgsRq>
</QBPOSXML>
38 changes: 38 additions & 0 deletions django_quickbooks/data/pos/department_add_request.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" ?>
<!-- ========================================================================== -->
<!-- DepartmentAddRq.xml -->
<!-- -->
<!-- INTUIT CONFIDENTIAL. -->
<!-- Copyright (c) 2001-2009 Intuit Inc. All rights reserved. -->
<!-- Use is subject to the terms specified at: -->
<!-- http://developer.intuit.com/legal/devsite_tos.html -->
<!-- -->
<!-- -->
<!-- ========================================================================== -->
<!-- Summary: Sample illustrating the account query request. -->
<!-- This XML file contains a single request to query accounts. -->
<!-- -->
<!-- Description: -->
<!-- A sample qbposXML request for use with SDKTest samples so that you can see -->
<!-- the response from QB POS and verify that the QB POS Request Processor is -->
<!-- behaving appropriately. -->
<!-- ========================================================================== -->
<!-- Language: xml -->
<!-- Structure: qbposXML -->
<!-- QuickBooks: any -->
<!-- Deployment: any -->
<!-- ========================================================================== -->
<?qbposxml version="1.0"?>
<QBPOSXML>
<QBPOSXMLMsgsRq onError="stopOnError">
<DepartmentAddRq requestID="65">
<DepartmentAdd>
<DefaultMarginPercent>INTTYPE</DefaultMarginPercent> <!-- opt -->
<DefaultMarkupPercent>INTTYPE</DefaultMarkupPercent> <!-- opt -->
<DepartmentCode>STRTYPE</DepartmentCode> <!-- field max = 3 -->
<DepartmentName>STRTYPE</DepartmentName> <!-- opt, field max = 30 -->
<TaxCode>STRTYPE</TaxCode> <!-- opt -->
</DepartmentAdd>
</DepartmentAddRq>
</QBPOSXMLMsgsRq>
</QBPOSXML>
Loading