public abstract class SyncSalesContainerRequest extends SalesContainerRequest
Modifier and Type | Field and Description |
---|---|
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 | nounElement_
nounElement_ contains the request document's noun element.
|
protected org.w3c.dom.Element | syncCriteriaElement_
syncCriteriaElement_ contains the request document's SyncCriteria element.
|
protected org.w3c.dom.Element | syncElement_
syncElement_ contains the request document's Sync element.
|
Constructor and Description |
---|
SyncSalesContainerRequest()
Default constructor to create a new request.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createAddressElement(org.w3c.dom.Element parentElement)
This method builds the Address element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createAddressElement(org.w3c.dom.Element parentElement, int itemIndex)
This method builds the Address element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createAddressesElement(org.w3c.dom.Element parentElement)
This method builds the Addresses element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createAddressesElement(org.w3c.dom.Element parentElement, int itemIndex)
This method builds the Addresses element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createAssigningPartyIdElement(org.w3c.dom.Element supplierItemElement)
This method builds the AssigningPartyId element and adds it as a child of supplierItemElement.
|
protected void | createAutoPaymentElement(org.w3c.dom.Element parentElement, SalesContainer salesContainer)
This method creates an element to indicate if auto payment must be added if there is an underpayment.
|
protected org.w3c.dom.Element | createBillToPartyElement(org.w3c.dom.Element parentElement)
This method builds the BillToParty element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createBillToPartyElement(org.w3c.dom.Element parentElement, int itemIndex)
This method builds the BillToParty element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createBusinessChannelElement(org.w3c.dom.Element parentElement)
This method builds the BusinessChannel element and adds it as a child of headerElement_.
|
protected org.w3c.dom.Element | createContractIDElement(org.w3c.dom.Element lineElement, java.lang.String value)
This method builds the DocumentReferences element and adds it as a child of lineElement.
|
protected org.w3c.dom.Element | createCustomerPartyElement(org.w3c.dom.Element parentElement, java.lang.String parentType, int itemIndex)
This method builds the CustomerParty element and adds it as a child of parentElement.
|
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 | createDocumentIdElement()
This method builds the DocumentId element and adds it as a child of documentIdsElement_.
|
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 | createExpediteOrderItemElement(org.w3c.dom.Element lineElement, boolean value)
This method builds the ExpediteOrderItem element and adds it as a child of lineElement.
|
protected org.w3c.dom.Element | createHeaderElement()
This method builds the Header element and adds it as a child of nounElement_.
|
protected org.w3c.dom.Element | createItemIdElement(org.w3c.dom.Element itemIdsElement, int itemIndex)
This method builds the ItemId element and adds it as a child of itemIdsElement_.
|
protected org.w3c.dom.Element | createItemIdsElement(org.w3c.dom.Element orderItemElement, int itemIndex)
This method builds the ItemIds element and adds it as a child of orderItemElement_.
|
protected org.w3c.dom.Element | createLineElement(int itemIndex)
This method builds the Line element and adds it as a child of nounElement_.
|
protected org.w3c.dom.Element | createNounElement()
This method builds the SalesOrder or Quote element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createOrderBlocksElement(org.w3c.dom.Element parentElement)
This method builds the OrderBlocks element and adds it as a child of headerElement_.
|
protected void | createOrderChangeInformationElement(org.w3c.dom.Element parentElement, SalesContainer salesContainer)
This method creates Order change information element to capture the reason and comment for order changes.
|
protected org.w3c.dom.Element | createOrderItemElement(org.w3c.dom.Element lineElement, int itemIndex)
This method builds the OrderItem element and adds it as a child of lineElement.
|
protected org.w3c.dom.Element | createOrderPromotionCodesElement(org.w3c.dom.Element parentElement)
This method builds the "OrderPromotionCodes" element and adds it as a child of "Header".
|
protected org.w3c.dom.Element | createOrderQuantityElement(org.w3c.dom.Element lineElement, java.lang.String value)
This method builds the OrderQuantity element and adds it as a child of lineElement.
|
protected org.w3c.dom.Element | createOrderStatusElement()
This method builds the OrderStatus element and adds it as a child of headerElement_.
|
protected org.w3c.dom.Element | createPartiesElement(org.w3c.dom.Element parentElement)
This method builds the Parties element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createPartiesElement(org.w3c.dom.Element parentElement, java.lang.String parentType, int itemIndex)
This method builds the Parties element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createPartyIdElement(org.w3c.dom.Element parentElement)
This method builds the PartyId element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createPaymentInstructionsElement(org.w3c.dom.Element parentElement)
This method builds the PaymentInstructions element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createPromotionCodeElement(org.w3c.dom.Element parentElement)
This method builds the PromotionCode element and adds it as a child of OrderPromotionCodes.
|
protected org.w3c.dom.Element | createShippingAdjustmentElement(org.w3c.dom.Element parentElement, ShippingAdjustments adjustment)
This method builds the ShippingAdjustments element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createShippingCarriersElement(org.w3c.dom.Element parentElement, ShippingCarriers carriers)
This method builds the ShippingCarriers element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createShippingInfoElement(org.w3c.dom.Element parentElement, ShippingInfo info)
This method builds the OrderShippingInformation element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createShippingInstructionsElement(org.w3c.dom.Element parentElement, ShippingInstructions instructions)
This method builds the ShippingInstructions element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createSupplierItemIdElement(org.w3c.dom.Element itemIdsElement, int itemIndex)
This method builds the SupplierItemId element and adds it as a child of itemIdsElement.
|
protected org.w3c.dom.Element | createSyncCriteriaElement()
This method builds the SyncCriteria element and adds it as a child of syncElement_.
|
protected org.w3c.dom.Element | createSyncElement()
This method builds the Sync element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createSyncExpressionElement()
This method builds the SyncExpression element and adds it as a child of syncCriteriaElement_.
|
protected org.w3c.dom.Element | createTieCodeElement(org.w3c.dom.Element lineElement, java.lang.String value)
This method builds the TieCode element and adds it as a child of lineElement.
|
protected org.w3c.dom.Element | createTransportationTermElement(org.w3c.dom.Element parentElement, int itemIndex)
This method builds the TransportationTerm element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createUnitPriceOverrideElement(org.w3c.dom.Element parentElement)
This method builds the UnitPriceOverride element and adds it as a child of Line.
|
ServiceContext | getServiceContext()
This method returns the ServiceContext object specific to this request.
|
protected void | setTelesalesProperties(TelesalesProperties properties)
This method sets the TelesalesProperties properties.
|
protected org.w3c.dom.Element syncElement_
protected org.w3c.dom.Element syncCriteriaElement_
protected org.w3c.dom.Element documentIdsElement_
protected org.w3c.dom.Element nounElement_
protected org.w3c.dom.Element headerElement_
public SyncSalesContainerRequest()
public ServiceContext getServiceContext()
protected org.w3c.dom.Element createAddressElement(org.w3c.dom.Element parentElement, int itemIndex)
The following sample shows the structure of the Address element and its construction:
<oa:Address primary="false" type="SB"> <!-- primary is address.getPrimary(), type is address.getType() --> <oa:AddressId>4052</oa:AddressId> <!-- address.getAddressId() --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Address>
protected org.w3c.dom.Element createAddressesElement(org.w3c.dom.Element parentElement, int itemIndex)
The following outline shows the structure of the Addresses element and its construction:
<oa:Addresses> <oa:Address> <!-- constructed by createAddressElement(). --> . . </oa:Address> </oa:Addresses>
protected org.w3c.dom.Element createAddressElement(org.w3c.dom.Element parentElement)
The following sample shows the structure of the Address element and its construction:
<oa:Address> <oa:AddressId>4052</oa:AddressId> <!-- address.getAddressId(); --> </oa:Address>
protected org.w3c.dom.Element createAddressesElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the Addresses element and its construction:
<oa:Addresses> <oa:Address> <!-- constructed by createAddressElement(). --> . . </oa:Address> </oa:Addresses>
protected org.w3c.dom.Element createBillToPartyElement(org.w3c.dom.Element parentElement, int itemIndex)
The following sample shows the structure of the BillToParty element and its construction:
<BillToParty> <oa:Address> . . </oa:Address> </BillToParty>
protected org.w3c.dom.Element createBillToPartyElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the BillToParty element and its construction:
<BillToParty> <oa:Addresses> <!-- constructed by createAddressesElement() --> . . </oa:Addresses> <PaymentInstructions> <!-- constructed by createPaymentInstructionsElement() --> . . </PaymentInstructions> </BillToParty>
protected org.w3c.dom.Element createAssigningPartyIdElement(org.w3c.dom.Element supplierItemElement)
The following outline shows the structure of the AssigningPartyId element and its construction:
<oa:AssigningPartyId> <oa:Id>100</oa:Id> <!-- "store".getMemberId --> </oa:AssigningPartyId>
protected org.w3c.dom.Element createCustomerPartyElement(org.w3c.dom.Element parentElement, java.lang.String parentType, int itemIndex)
The following outline shows the structure of the CustomerParty element and its construction. If parentType is "Header":
<oa:CustomerParty> <oa:PartyId> <!-- constructed by createPartyIdElement() --> . . </oa:PartyId> </oa:CustomerParty>If parentType is "Line":
<oa:CustomerParty> <oa:Addresses> <!-- constructed by createAddressesElement() --> . . </oa:Addresses> </oa:CustomerParty>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <oa:Sync> <!-- constructed by createSyncElement() --> . . </oa:Sync> <SalesOrder> <!-- constructed by createNounElement() --> . . </SalesOrder> </DataArea>
protected org.w3c.dom.Element createDocumentIdElement()
The following outline shows the structure of the DocumentId element and its construction:
<oa:DocumentId> <oa:Id>100</oa:Id> <!-- salesContainer.getContainerId() --> </oa:DocumentId>
protected org.w3c.dom.Element createDocumentIdsElement()
The following outline shows the structure of the DocumentIds element and its construction:
<oa:DocumentIds> <oa:DocumentId> <!-- createDocumentIdElement() --> . . </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> <!-- createDocumentIdsElement() --> . . </oa:DocumentIds> <oa:OrderStatus> <!-- createOrderStatusElement() --> . . </oa:OrderStatus> <oa:Parties> <!-- createPartiesElement() --> . . </oa:Parties> <ForUserId>52</ForUserId> <!-- "customer" IBM Sales Center property --> <ShipAsComplete>Y</ShipAsComplete> <!-- order.isShipAsComplete() --> <OrderBlocks> <!-- createOrderBlocksElement() --> . . </OrderBlocks> <BusinessChannel> <!-- createBusinessChannelElement() --> . . </BusinessChannel> </wc:OrderPromotionCodes> <!-- createOrderPromotionCodeElement() --> . . </wc:OrderPromotionCodes> <CommerceArea> <!-- createCommerceAreaElement() --> . . </CommerceArea> </Header>
protected void createOrderChangeInformationElement(org.w3c.dom.Element parentElement, SalesContainer salesContainer)
The following outline indicates the structure of the OrderChangeInformation element and how it is constructed:
<OrderChangeInformation> <wc:CurrentOrderEditorId> ID </wc:CurrentOrderEditorId> <wc:OrderVersion> Order Version </wc:OrderVersion> </OrderChangeInformation> <OrderChangeInformationLine> <wc:ChangeReason> Change Reason </wc:ChangeReason> <wc:ChangeComment> Change Comment </wc:ChangeComment> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </OrderChangeInformationLine>
protected org.w3c.dom.Element createItemIdElement(org.w3c.dom.Element itemIdsElement, int itemIndex)
The following outline shows the structure of the ItemId element and its construction:
<oa:ItemId> <Id>20101087100</Id> <!-- line.getProduct().getCatalogEntryId() --> </oa:ItemId>
protected org.w3c.dom.Element createItemIdsElement(org.w3c.dom.Element orderItemElement, int itemIndex)
The following outline shows the structure of the ItemIds element and its construction:
<oa:ItemIds> <oa:ItemId> <!-- createItemIdElement() --> . . </oa:ItemId> </oa:ItemIds>
protected org.w3c.dom.Element createLineElement(int itemIndex)
The following outline shows the structure of the Line element and its construction:
<Line> <oa:LineNumber>1001<oa:LineNumber> <!-- line.getCorrelationNumber() --> <oa:OrderItem> <!-- createOrderItemElement() --> . . </oa:OrderItem> <oa:OrderQuantity uom="NMTOKEN">1</oa:OrderQuantity> <!-- createOrderQuantityElement() --> <oa:NeedDeliveryDate>2004-02-22</oa:NeedDeliveryDate> <!-- line.getRequestedDeliveryDate() --> <DocumentReferences> <!-- createContractIDElement() --> . . </DocumentReferences> <oa:Parties> <!-- createPartiesElement() --> . . </oa:Parties> <ExpediteOrderItem> <!-- createExpediteOrderItemElement() --> . . </ExpediteOrderItem> <oa:TransportationTerm> <!-- createTransportationTermElement() --> . . </oa:TransportationTerm> <TieCode> <!-- createTieCodeElement() --> . . </TieCode> <UnitPriceOverride> <!-- createUnitPriceOverrideElement() --> . . </UnitPriceOverride> <UserData> <!-- constructed by createUserDataElement() --> <wc:UserDataField name="name">value</wc:UserDataField> . </UserData> </Line>
protected org.w3c.dom.Element createOrderQuantityElement(org.w3c.dom.Element lineElement, java.lang.String value)
The following outline shows the structure of the OrderQuantity element and its construction:
<oa:OrderQuantity uom="NMTOKEN">1</oa:OrderQuantity> <!-- value -->
protected org.w3c.dom.Element createContractIDElement(org.w3c.dom.Element lineElement, java.lang.String value)
The following outline shows the structure of the DocumentReferences element and its construction:
<oa:DocumentReferences> <oa:ContractDocumentReference> <oa:DocumentIds> <oa:DocumentId> <oa:Id>10006</oa:Id> <!-- value --> </oa:DocumentId> </oa:DocumentIds> </oa:ContractDocumentReference> </oa:DocumentReferences>
protected org.w3c.dom.Element createExpediteOrderItemElement(org.w3c.dom.Element lineElement, boolean value)
The following outline shows the structure of the OrderQuantity element and its construction:
<oa:ExpediteOrderItem>Y</ExpediteOrderItem> <!-- value -->
protected org.w3c.dom.Element createTieCodeElement(org.w3c.dom.Element lineElement, java.lang.String value)
The following outline shows the structure of the TieCode element and its construction:
<TieCode>1</TieCode> <!-- value -->
protected org.w3c.dom.Element createOrderItemElement(org.w3c.dom.Element lineElement, int itemIndex)
The following outline shows the structure of the OrderItem element and its construction:
<oa:OrderItem uom="NMTOKEN"> <oa:ItemIds> <!-- createItemIdsElement() --> . . </oa:ItemIds> </oa:OrderItem>
protected org.w3c.dom.Element createOrderStatusElement()
The following outline shows the structure of the OrderStatus element and its construction:
<oa:OrderStatus> <oa:Code></oa:Code> <!-- "salesContainer".getStatus --> </oa:OrderStatus>
protected org.w3c.dom.Element createPartiesElement(org.w3c.dom.Element parentElement, java.lang.String parentType, int itemIndex)
The following outline shows the structure of the Parties element and its construction:
<oa:Parties> <oa:CustomerParty> <!-- constructed by createCustomerPartyElement() --> . . </oa:CustomerParty> <BillToParty> <!-- constructed by createBillToPartyElement() --> . . </BillToParty> </oa:Parties>
protected org.w3c.dom.Element createPartiesElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the Parties element and its construction:
<oa:Parties> <BillToParty> <!-- constructed by createBillToPartyElement() --> . . </BillToParty> </oa:Parties>
protected org.w3c.dom.Element createOrderPromotionCodesElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the "OrderPromotionCodes" element and its construction:
<wc:OrderPromotionCodes> <wc:PromotionCode> <!-- constructed by createPromotionCodeElement() --> . . </wc:PromotionCode> </wc:OrderPromotionCodes>
protected org.w3c.dom.Element createPromotionCodeElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the PromotionCode element and its construction:
<wc:PromotionCode> <wc:Code>102</wc:Code> </wc:PromotionCode> <UserData/> <!-- constructed by createUserDataElement(Elemnt,ModelObject) -->
protected org.w3c.dom.Element createPartyIdElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the PartyId element and its construction:
<oa:PartyId> <oa:Id>4052</oa:Id> <!-- "customer" --> </oa:PartyId>
protected org.w3c.dom.Element createNounElement()
The following outline shows the structure of the SalesOrder element and its construction:
<SalesOrder> <!-- for a quote request, this will be Quote --> <Header> <!-- constructed by createHeaderElement() --> . . </Header> <Line> <!-- constructed by createLineElement() --> . . </Line> <Line> <!-- constructed by createLineElement() --> . . </Line> <ShippingInformation> <!-- constructed by createShippingInfoElement("orderShippingInfo") --> . . </ShippingInformation> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </SalesOrder>
protected org.w3c.dom.Element createSupplierItemIdElement(org.w3c.dom.Element itemIdsElement, int itemIndex)
The following outline shows the structure of the SupplierItemId element and its construction:
<oa:SupplierItemId> <Id>4052</Id> <!-- line.getProduct().getProductId() --> <oa:AssigningPartyId> <!-- createAssigningPartyIdElement() --> . . </oa:AssigningPartyId> </oa:SupplierItemId>
protected org.w3c.dom.Element createSyncElement()
The following outline shows the structure of the DataArea element and its construction:
<oa:Sync confirm="Never"> <oa:SyncCriteria> <!-- constructed by createSyncCriteriaElement() --> . . </oa:SyncCriteria> </oa:Sync>
protected org.w3c.dom.Element createSyncCriteriaElement()
The following sample shows the structure of the SyncCriteria element and its construction:
<oa:SyncCriteria expressionLanguage="XPath"> <oa:SyncExpression/> <!-- createSyncExpressionElement() --> </oa:SyncCriteria>
protected org.w3c.dom.Element createSyncExpressionElement()
The following samples indicate the structure of the SyncExpression element and its construction:
If the service request ID is "com.ibm.commerce.telesales.addOrderItem":
<SyncExpression action="Add">OrderItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addQuoteItem".
<SyncExpression action="Add">QuoteItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteOrderItem":
<SyncExpression action="Delete">OrderItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteQuoteItem".
<SyncExpression action="Delete">QuoteItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderItem":
<SyncExpression action="Change">OrderItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateQuoteItem".
<SyncExpression action="Change">QuoteItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.beginOrder":
<SyncExpression action="Begin">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.endOrder":
<SyncExpression action="End">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrder":
<SyncExpression action="Change">Order</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderBlocks":
<SyncExpression action="Block">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderChannel":
<SyncExpression action="EditBusinessChannel">Order<SyncExpression>
If the service request ID is ""com.ibm.commerce.telesales.overrideOrderPrice"":
<SyncExpression action="Change">OrderItemPrice<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.prepareOrder":
<SyncExpression action="Prepare">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.prepareQuote".
<SyncExpression action="Prepare">Quote<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.submitOrder":
<SyncExpression action="Submit">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.saveQuote".
<SyncExpression action="Save">Quote<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addOrderPayment":
<SyncExpression action="Add">OrderPayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addQuotePayment".
<SyncExpression action="Add">QuotePayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteOrderPayment":
<SyncExpression action="Delete">OrderPayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteQuotePayment".
<SyncExpression action="Delete">QuotePayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderPayment":
<SyncExpression action="Change">OrderPayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateQuotePayment".
<SyncExpression action="Change">QuotePayment<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addOrderShippingCarrier":
<SyncExpression action="Add">OrderShippingCarrier</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteQuoteShippingCarrier":
<SyncExpression action="Delete">OrderShippingCarrier</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderShippingCarrier":
<SyncExpression action="Change">OrderShippingCarrier</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addOrderShippingInstructions":
<SyncExpression action="Add">OrderItemShippingInstruction</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteOrderShippingInstructions":
<SyncExpression action="Delete">OrderItemShippingInstruction</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateOrderShippingInstructions":
<SyncExpression action="Change">OrderItemShippingInstruction</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateShippingInformation":
<SyncExpression action="Change">OrderShippingInformation</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.duplicateOrder":
<SyncExpression action="Copy">Order<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.duplicateQuote".
<SyncExpression action="Copy">Quote<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.cancelQuote".
<SyncExpression action="Cancel">Quote<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.addOrderPromotionCode".
<SyncExpression action="Add">OrderPromotionCode<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.removeOrderPromotionCode".
<SyncExpression action="Delete">OrderPromotionCode<SyncExpression>
protected org.w3c.dom.Element createTransportationTermElement(org.w3c.dom.Element parentElement, int itemIndex)
The following outline shows the structure of the TransportationTerm element and its construction:
<oa:TransportationTerm> <oa:TermCode issuingAgency="">10003</oa:TermCode> <!-- line.getShippingMode --> </oa:TransportationTerm>
protected org.w3c.dom.Element createOrderBlocksElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the OrderBlocks element and its construction:
<OrderBlocks> <!-- createOrderBlocksElement() --> <OrderBlock> <BlockId>1234</BlockId> <BlockReasonCodeId>5010</BlockReasonCodeId> <Description>The customer acted like a real jerk</Description> <ResolvedInd>false</ResolvedInd> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </OrderBlock> . . </OrderBlocks>
protected org.w3c.dom.Element createBusinessChannelElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the BusinessChannel element and its construction:
<BusinessChannel> <BusinessChannelId>1234</BlockId> </BusinessChannel>
protected org.w3c.dom.Element createUnitPriceOverrideElement(org.w3c.dom.Element parentElement)
The following outline shows the structure of the UnitPriceOverride element and its construction:
<UnitPriceOverride> <!-- createUnitPriceOverrideElement() --> <OverridePrice currency="USD">15.36</OverridePrice> <ReasonCode>4141</ReasonCode> <Description>RepeatCustomer</Description> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </UnitPriceOverride>
protected org.w3c.dom.Element createPaymentInstructionsElement(org.w3c.dom.Element parentElement)
The following sample shows the structure of the PaymentInstructions element and its construction:
<PaymentInstructions> <UserDataField name="cc_brand">VISA</UserDataField> . . <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </PaymentInstructions>
protected org.w3c.dom.Element createShippingAdjustmentElement(org.w3c.dom.Element parentElement, ShippingAdjustments adjustment)
The following sample shows the structure of the ShippingAdjustments element and its construction:
<ShippingAdjustments> <ShipModeId>54052</ShipModeId> <!-- adjustment.getShipModeId(); --> <AdjustmentPercent>40</AdjustmentPercent> <!-- adjustment.getPercent(); --> <AdjustmentReasonCode>40</AdjustmentReasonCode> <!-- adjustment.getReasonCode(); --> <Description>String</Description> <!-- adjustment.getComment(); --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </ShippingAdjustments>
protected org.w3c.dom.Element createShippingCarriersElement(org.w3c.dom.Element parentElement, ShippingCarriers carriers)
The following sample shows the structure of the ShippingCarriers element and its construction:
<ShippingCarriers> <ShipModeId>1238</ShipModeId> <!-- carrier.getShipModeId(); --> <ShipChargeAccountType>Charge Type</ShipChargeAccountType> <!-- carrier.getShipChargeAccountType(); --> <CarrierAccount>232525ABC2353256</CarrierAccount> <!-- carrier.getShippingInstruction(); --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </ShippingCarriers>
protected org.w3c.dom.Element createShippingInstructionsElement(org.w3c.dom.Element parentElement, ShippingInstructions instructions)
The following sample shows the structure of the ShippingInstructoins element and its construction:
<ShippingInstructions> <ShipModeId>1238</ShipModeId> <!-- instructions.getShipModeId(); --> <AddressId>123688</AddressId> <!-- instructions.getAddressId(); --> <ShippingInstruction>Leave on back porch</ShippingInstruction> <!-- instructions.getShippingInstruction(); --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </ShippingInstructions>
protected org.w3c.dom.Element createShippingInfoElement(org.w3c.dom.Element parentElement, ShippingInfo info)
The following sample shows the structure of the OrderShippingInformation element and its construction in this instance:
<OrderShippingInformation> <ShippingAdjusments> <!-- createShippingAdjustmentElement(adjustment1); --> </ShippingAdjusments> <ShippingAdjusments> <!-- createShippingAdjustmentElement(adjustment2); --> </ShippingAdjusments> . . <ShippingAdjusments> <!-- createShippingAdjustmentElement(adjustmentN); --> </ShippingAdjusments> <ShippingCarriers> <!-- createShippingCarriersElement(carrier1); --> </ShippingCarriers> <ShippingCarriers> <!-- createShippingCarriersElement(carrier2); --> </ShippingCarriers> . . <ShippingCarriers> <!-- createShippingCarriersElement(carrierN); --> </ShippingCarriers> <ShippingInstructions> <!-- createShippingInstructionsElement(instructions1); --> </ShippingInstructions> <ShippingInstructions> <!-- createShippingInstructionsElement(instructions2); --> </ShippingInstructions> . . <ShippingInstructions> <!-- createShippingInstructionsElement(instructionsN); --> </ShippingInstructions> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </OrderShippingInformation>
protected void setTelesalesProperties(TelesalesProperties properties)
protected void createAutoPaymentElement(org.w3c.dom.Element parentElement, SalesContainer salesContainer)