public class CreateOrderFromQuoteRequest extends SalesOrderRequest
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element | businessChannelElement_
businessChannelElement_ contains the request document's BusinessChannel element.
|
protected org.w3c.dom.Element | createCriteriaElement_
createCriteriaElement_ contains the request document's CreateCriteria element.
|
protected org.w3c.dom.Element | createElement_
createElement_ contains the request document's Create element.
|
protected org.w3c.dom.Element | customerPartyElement_
customerPartyElement_ contains the request document's CustomerParty element.
|
protected org.w3c.dom.Element | documentIdsElement_
documentIdsElement_ contains the request document's DocumentIds element.
|
protected org.w3c.dom.Element | headerElement_
headerElement_ contains the request document's Header element.
|
protected org.w3c.dom.Element | partiesElement_
partiesElement_ contains the request document's Parties element.
|
protected org.w3c.dom.Element | partyIdElement_
partyIdElement_ contains the request document's PartyId element.
|
protected org.w3c.dom.Element | salesOrderElement_
salesOrderElement_ contains the request document's SalesOrder element.
|
Constructor and Description |
---|
CreateOrderFromQuoteRequest()
Default constructor to create a new request.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createBusinessChannelElement()
This method builds the BusinessChannel element and adds it as a child of headerElement_.
|
protected org.w3c.dom.Element | createCreateCriteriaElement()
This method builds the CreateCriteria element and adds it as a child of createElement_.
|
protected org.w3c.dom.Element | createCreateElement()
This method builds the Create element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createCreateExpressionElement()
This method builds the CreateExpression element and adds it as a child of createCriteriaElement_.
|
protected org.w3c.dom.Element | createCustomerPartyElement()
This method builds the CustomerParty element and adds it as a child of partiesElement_.
|
protected org.w3c.dom.Element | createDataAreaElement()
This method builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createDocumentIdsElement()
This method builds the DocumentIds element and adds it as a child of headerElement_.
|
protected org.w3c.dom.Element | createHeaderElement()
This method builds the Header element and adds it as a child of salesOrderElement_.
|
protected org.w3c.dom.Element | createPartiesElement()
This method builds the Parties element and adds it as a child of headerElement_.
|
protected org.w3c.dom.Element | createPartyIdElement()
This method builds the PartyId element and adds it as a child of customerPartyElement_.
|
protected org.w3c.dom.Element | createSalesOrderElement()
This method builds the SalesOrder element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createSenderElement()
This method builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Document | getRequestBod()
This method constructs the request document.
|
protected java.lang.String[] | getRequestNodePathsToMask()
The CreateOrderFromQuoteRequest implementation returns the array of request SyncSalesOrder/DataArea/SalesOrder/Header/Parties/BillToParty/PaymentInstructions/UserDataField node paths which needs to be masked because of sensitive information.
|
protected Session | getResponseData()
This method returns the unmarshalled response com.ibm.commerce.telesales.model.Order data bean.
|
protected java.lang.String[] | getResponseNodePathsToMask()
The CreateOrderFromQuoteRequest implementation returns the array of response ConfirmSalesOrder/DataArea/BOD/NounOutcome/SalesOrder/Header/Parties/BillToParty/PaymentInstruction/UserDataField node paths which needs to be masked because of sensitive information.
|
ServiceContext | getServiceContext()
This method constructs ServiceContext object specific to this service request.
|
protected java.lang.String | getXSDFileName()
This method returns the name of the schema file for the request BOD (business object document).
|
protected org.w3c.dom.Element createElement_
protected org.w3c.dom.Element createCriteriaElement_
protected org.w3c.dom.Element customerPartyElement_
protected org.w3c.dom.Element documentIdsElement_
protected org.w3c.dom.Element headerElement_
protected org.w3c.dom.Element partiesElement_
protected org.w3c.dom.Element partyIdElement_
protected org.w3c.dom.Element salesOrderElement_
protected org.w3c.dom.Element businessChannelElement_
public CreateOrderFromQuoteRequest()
protected Session getResponseData()
public ServiceContext getServiceContext()
protected org.w3c.dom.Element createCreateElement()
The following sample shows the structure of the Create element and its construction:
<oa:Create confirm="Never"> <oa:CreateCriteria> <!-- constructed by createCreateCriteriaElement() --> . . </oa:CreateCriteria> </oa:Create>
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Document getRequestBod()
<CreateSalesOrder> <!-- created by the createWCRootElement method --> . . </CreateSalesOrder>
protected org.w3c.dom.Element createCustomerPartyElement()
The following outline shows the structure of the CustomerParty element and its construction:
<oa:CustomerParty> <oa:PartyId> <!-- constructed by createPartyIdElement() --> . . </oa:PartyId> </oa:CustomerParty>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <oa:Create confirm="Never"/> <!-- constructed by createCreateElement --> <SalesOrder> <!-- constructed by createSalesOrderElement() --> . . </SalesOrder> </DataArea>
protected org.w3c.dom.Element createDocumentIdsElement()
The following outline shows the structure of the DocumentIds element and its construction:
<oa:DocumentIds> <oa:DocumentId> . . </oa:DocumentId> </oa:DocumentIds>
protected org.w3c.dom.Element createHeaderElement()
The following outline shows the structure of the Header element and its construction:
<Header> <oa:DocumentIds> <!-- constructed by createDocumentIdsElement() --> . . </oa:DocumentIds> <oa:Description lang="en-US" owner="">String</oa:Description> <oa:Note author="String" lang="en-US">String</oa:Note> <oa:Parties> <!-- constructed by createPartiesElement() --> . . </oa:Parties> <oa:UserArea/> <ForUserId>52</ForUserId> <!-- memberId of the "customer" TelesalesProperties property --> <CommerceArea> <!-- constructed by createCommerceAreaElement() --> . . </CommerceArea> </Header>
protected org.w3c.dom.Element createBusinessChannelElement()
The following outline shows the structure of the BusinessChannel element and its construction:
<BusinessChannel> T<BusinessChannelId> <<!-- retrieved from the order object --> . . </oa:BusinessChannelId> </oa:BusinessChannel>
protected org.w3c.dom.Element createPartiesElement()
The following outline shows the structure of the Parties element and its construction:
<oa:Parties> <oa:CustomerParty> <!-- constructed by createCustomerPartiesElement() --> . . </oa:CustomerParty> </oa:Parties>
protected org.w3c.dom.Element createPartyIdElement()
The following outline shows the structure of the PartyId element and its construction:
<oa:PartyId> <oa:Id/> <!-- customer.getMemberId() --> </oa:PartyId>
protected org.w3c.dom.Element createSalesOrderElement()
The following outline shows the structure of the SalesOrder element and its construction:
<SalesOrder> <Header> <!-- constructed by createHeaderElement() --> . . </Header> <UserData> <!-- constructed by createUserDataElement("order") --> . . </UserData> </SalesOrder>
protected org.w3c.dom.Element createCreateExpressionElement()
The following outline shows the structure of the CreateExpression element and its construction:
<CreateExpression fromObject="Quote">101</CreateExpression> <!-- quote.getContainerId() -->
protected org.w3c.dom.Element createCreateCriteriaElement()
The following sample shows the structure of the CreateCriteria element and its construction:
<oa:CreateCriteria expressionLanguage="XPath"> <oa:CreateExpression/> <!-- created by the createCreateExpressionElement() --> </oa:CreateCriteria>
protected org.w3c.dom.Element createSenderElement()
The following sample Sender element shows how the element is constructed:
<oa:Sender> <oa:LogicalId>TSCLIENT</oa:LogicalId> <oa:Component>Order</oa:Component> <oa:Task>CreateOrderContainer</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getActionCtx --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId>LOGON_TOKEN_ID_SCAFFOLDING</oa:AuthorizationId> <!-- value of ContextManager.getInstance().getSessionCtx() --> </oa:Sender>
protected java.lang.String[] getResponseNodePathsToMask()
protected java.lang.String[] getRequestNodePathsToMask()