org.opencrx.application.shop1.service
Class ShopServiceImpl

java.lang.Object
  extended by org.opencrx.application.shop1.service.ShopServiceImpl
All Implemented Interfaces:
ShopService

public class ShopServiceImpl
extends Object
implements ShopService


Field Summary
protected  DatatypeMappers datatypeMappers
           
protected  boolean emailAddressMustBeUnique
           
protected  boolean noCopyOfProductConfiguration
           
protected  javax.jdo.PersistenceManager pm
           
protected  String providerName
           
protected  String segmentName
           
protected  String shopName
           
protected  UUIDGenerator uuids
           
 
Constructor Summary
ShopServiceImpl(javax.jdo.PersistenceManager pm, String providerName, String segmentName, String shopName, boolean emailAddressMustBeUnique, boolean noCopyOfProductConfiguration, DatatypeMappers datatypeMappers)
           
 
Method Summary
 AddActivityFollowUpResult addActivityFollowUp(AddActivityFollowUpParams params)
          Add a follow up to the specified activity.
protected  void addContractAddresses(AbstractContract contract, PostalAddressT postalAddressInvoiceT, PostalAddressT postalAddressDeliveryT)
           
protected  void addContractPositions(AbstractContract contract, List<ContractPositionT> contractPositions, String defaultSalesTaxType, Boolean discountIsPercentage, BigDecimal discount)
           
 AddCustomerToCustomerContractResult addCustomerToCustomerContract(AddCustomerToCustomerContractParams params)
          Add customer to the specified customer contract.
 AddDeliveryInformationResult addDeliveryInformation(AddDeliveryInformationParams params)
          Adds a delivery information record to the specified contract position.
 AddSalesOrderPositionResult addSalesOrderPosition(AddSalesOrderPositionParams params)
          Add item to sales order.
 CancelInvoiceResult cancelInvoice(CancelInvoiceParams params)
          Set cancelOn for specified invoice.
 CancelSalesOrderResult cancelSalesOrder(CancelSalesOrderParams params)
          Set cancelOn for specified sales order.
 void close()
           
 CreateActivityResult createActivity(CreateActivityParams params)
          Creates a new activity.
protected  AbstractContractPosition createContractPosition(AbstractContract contract, String productNumber, BigDecimal quantity, Boolean ignoreProductConfiguration, ProductConfigurationT actualProductConfigurationT, String priceUomName, Date pricingDate, SalesTaxType salesTaxType, Boolean discountIsPercentage, BigDecimal discount)
           
 CreateCustomerAsContactResult createCustomerAsContact(CreateCustomerAsContactParams params)
          Create a new customer as contact.
 CreateCustomerAsLegalEntityResult createCustomerAsLegalEntity(CreateCustomerAsLegalEntityParams params)
          Create a new customer as legal entity.
 CreateCustomerContractResult createCustomerContract(CreateCustomerContractParams params)
          Create a customer contract.
 CreateInvoiceResult createInvoice(CreateInvoiceParams params)
          Create a new invoice.
 CreateInvoiceFromInvoiceResult createInvoiceFromInvoice(CreateInvoiceFromInvoiceParams params)
          Create an invoice based on an invoice.
 CreateInvoiceFromSalesOrderResult createInvoiceFromSalesOrder(CreateInvoiceFromSalesOrderParams params)
          Create an invoice based on a sales order.
 CreateProductClassificationResult createProductClassification(CreateProductClassificationParams params)
          Create new product classifications.
 CreateProductsResult createProducts(CreateProductsParams params)
          Create products.
 CreateSalesOrderResult createSalesOrder(CreateSalesOrderParams params)
          Create a new sales order.
protected  Account findAccount(String customerNumber)
           
protected  Activity findActivity(String activityNumber, Segment activitySegment)
           
protected  CodeValueContainer findCodeValueContainer(String name, boolean isRootContainers)
           
protected  Lead findCustomerContract(AbstractContract contract)
           
protected  Lead findCustomerContractByContractNumber(String customerContractNumber)
           
protected  List<Lead> findCustomerContracts(Account account)
           
protected  Invoice findInvoice(String invoiceNumber)
           
protected  Lead findMainCustomerContract(Account account)
           
protected  PricingRule findPricingRule()
           
protected  Product findProduct(String productNumber)
           
protected  ProductClassification findProductClassification(String classificationName)
           
protected  ProductConfigurationTypeSet findProductConfigurationType(String name)
           
protected  SalesOrder findSalesOrder(String salesOrderNumber)
           
protected  SalesTaxType findSalesTaxType(String salesTaxTypeName)
           
protected  Uom findUom(String uomName)
           
protected  Account1Package getAccountPackage()
           
protected  Segment getAccountSegment()
           
 GetActivitiesByQueryResult getActivitiesByQuery(GetActivitiesByQueryParams params)
          Return activities matching the specified query.
 GetActivityResult getActivity(GetActivityParams params)
          Get activity with the specified activity number.
protected  Activity1Package getActivityPackage()
           
protected  Segment getActivitySegment()
           
protected  BasePackage getBasePackage()
           
protected  Code1Package getCodePackage()
           
protected  Segment getCodeSegment(String segmentName)
           
 GetCodeValueContainerResult getCodeValueContainer(GetCodeValueContainerParams params)
          Get specified code value containers.
protected  Contract1Package getContractPackage()
           
protected  Segment getContractSegment()
           
 GetCredentialsResult getCredentials(GetCredentialsParams params)
          Get credentials for the specified customer.
 GetCredentialsByEmailAddressResult getCredentialsByEmailAddress(GetCredentialsByEmailAddressParams params)
           
 GetCustomerResult getCustomer(GetCustomerParams params)
          Get customer data.
 GetCustomersByQueryResult getCustomersByQuery(GetCustomersByQueryParams params)
          Query customers and return customer numbers of matching customers.
protected  Depot1Package getDepotPackage()
           
protected  Segment getDepotSegment()
           
 GetDocumentsResult getDocuments(GetDocumentsParams params)
          Get documents of the specified document folder.
protected  Segment getDocumentSegment()
           
protected  GenericPackage getGenericPackage()
           
 GetInvoiceResult getInvoice(GetInvoiceParams params)
          Get invoice with the specified invoice number.
protected  Collection<ContractPositionT> getInvoicePositions(Account customer, Integer invoiceStatusThreshold, boolean includeVouchers, Product restrictToProduct)
           
 GetInvoicePositionsResult getInvoicePositions(GetInvoicePositionsParams params)
          Collect all positions from all invoices with invoice status greater or equal to the supplied invoice status threshold.
 GetInvoicesResult getInvoices(GetInvoicesParams params)
          Returns all invoices for the customer.
protected  String getNextInvoiceNumber(Account customer)
          Generate next invoice number.
 GetPriceLevelResult getPriceLevel(GetPriceLevelParams params)
          Get price levels.
 GetProductConfigurationTypesResult getProductConfigurationTypes(GetProductConfigurationTypesParams params)
          Return all product configuration types.
protected  Product1Package getProductPackage()
           
 GetProductPricesResult getProductPrices(GetProductPricesParams params)
          Get price of a product for the specified pricing date and currency.
 GetProductsResult getProducts(GetProductsParams params)
          Return a product.
 GetProductsByQueryResult getProductsByQuery(GetProductsByQueryParams params)
          Get products matching the product query.
protected  Segment getProductSegment()
           
 GetSalesOrderResult getSalesOrder(GetSalesOrderParams params)
          Returns a sales order.
protected  Collection<ContractPositionT> getSalesOrderPositions(Account customer, Integer salesOrderStatusThreshold)
           
 GetSalesOrderPositionsResult getSalesOrderPositions(GetSalesOrderPositionsParams params)
           
 GetSalesOrdersResult getSalesOrders(GetSalesOrdersParams params)
          Returns the sales orders for the customer.
protected  String getShopCategory()
          Currently the following objects are shop-local: Contracts Account membership Objects which are shop-local are marked by setting their category field.
protected  Uom1Package getUomPackage()
           
protected  Segment getUomSegment()
           
 SendEMailResult sendEMail(SendEMailParams params)
           
 void setContractStatus(AbstractContract contract, ContractStatusT contractStatusT)
           
 SetCredentialsResult setCredentials(SetCredentialsParams params)
          Sets the credentials for the specified customer.
 SetCustomerContractStatusResult setCustomerContractStatus(SetCustomerContractStatusParams params)
           
 SetCustomerStatusResult setCustomerStatus(SetCustomerStatusParams params)
          Set the customer's status.
 SetInvoiceStatusResult setInvoiceStatus(SetInvoiceStatusParams params)
          Set the status of an invoice.
 SetProductStatusResult setProductStatus(SetProductStatusParams params)
          Set the status of the specified product.
 SetSalesOrderPositionQuantityResult setSalesOrderPositionQuantity(SetSalesOrderPositionQuantityParams params)
          Set quantity of an ordered item.
 SetSalesOrderStatusResult setSalesOrderStatus(SetSalesOrderStatusParams params)
          Set the status of a sales order.
protected  Collection<Object> toNonNullElementsCollection(Collection<?> source, Collection<Object> target, Object nullValue)
           
 UpdateCustomerResult updateCustomer(UpdateCustomerParams params)
          Update customer data.
 UpdateCustomerContractResult updateCustomerContract(UpdateCustomerContractParams params)
           
 UpdateProductResult updateProduct(UpdateProductParams params)
          Update product data.
 void updateProductBundle(ProductT productT, Product product)
           
protected  void updateProductConfiguration(ProductT productT, Product product, ProductConfigurationTypeSet configurationType)
           
protected  void updateProductDescriptions(ProductT productT, Product product)
           
protected  void updateProductPhase(ProductT productT, Product product)
           
protected  void updateProductPicture(ProductT productT, Product product)
           
protected  void updatePropertySet(List<StringPropertyT> propertiesT, PropertySet propertySet, boolean removeNonExisting)
           
protected  String uuidAsString()
           
protected  String validateContractPosition(String productNumber, String priceUomName)
           
protected  String validateContractPositions(List<ContractPositionT> contractPositions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pm

protected final javax.jdo.PersistenceManager pm

providerName

protected final String providerName

segmentName

protected final String segmentName

emailAddressMustBeUnique

protected final boolean emailAddressMustBeUnique

noCopyOfProductConfiguration

protected final boolean noCopyOfProductConfiguration

shopName

protected final String shopName

datatypeMappers

protected final DatatypeMappers datatypeMappers

uuids

protected final UUIDGenerator uuids
Constructor Detail

ShopServiceImpl

public ShopServiceImpl(javax.jdo.PersistenceManager pm,
                       String providerName,
                       String segmentName,
                       String shopName,
                       boolean emailAddressMustBeUnique,
                       boolean noCopyOfProductConfiguration,
                       DatatypeMappers datatypeMappers)
Method Detail

getShopCategory

protected String getShopCategory()
Currently the following objects are shop-local: Objects which are shop-local are marked by setting their category field. Functions which create and query shop-local objects apply a category filter. Shop-local objects allow multiple shop instances to share the same data segment. By default the shop category is equal to the shop name.


getBasePackage

protected BasePackage getBasePackage()

getAccountPackage

protected Account1Package getAccountPackage()

getAccountSegment

protected Segment getAccountSegment()

getGenericPackage

protected GenericPackage getGenericPackage()

getCodePackage

protected Code1Package getCodePackage()

getCodeSegment

protected Segment getCodeSegment(String segmentName)

getContractPackage

protected Contract1Package getContractPackage()

getContractSegment

protected Segment getContractSegment()

getDepotPackage

protected Depot1Package getDepotPackage()

getDepotSegment

protected Segment getDepotSegment()

getProductPackage

protected Product1Package getProductPackage()

getProductSegment

protected Segment getProductSegment()

getActivityPackage

protected Activity1Package getActivityPackage()

getActivitySegment

protected Segment getActivitySegment()

getDocumentSegment

protected Segment getDocumentSegment()

getUomPackage

protected Uom1Package getUomPackage()

getUomSegment

protected Segment getUomSegment()

uuidAsString

protected String uuidAsString()

findAccount

protected Account findAccount(String customerNumber)

findActivity

protected Activity findActivity(String activityNumber,
                                Segment activitySegment)

findPricingRule

protected PricingRule findPricingRule()

getInvoicePositions

protected Collection<ContractPositionT> getInvoicePositions(Account customer,
                                                            Integer invoiceStatusThreshold,
                                                            boolean includeVouchers,
                                                            Product restrictToProduct)

findInvoice

protected Invoice findInvoice(String invoiceNumber)

findSalesOrder

protected SalesOrder findSalesOrder(String salesOrderNumber)

findCustomerContracts

protected List<Lead> findCustomerContracts(Account account)

findMainCustomerContract

protected Lead findMainCustomerContract(Account account)

findCustomerContract

protected Lead findCustomerContract(AbstractContract contract)

findCustomerContractByContractNumber

protected Lead findCustomerContractByContractNumber(String customerContractNumber)

findProductConfigurationType

protected ProductConfigurationTypeSet findProductConfigurationType(String name)

findProduct

protected Product findProduct(String productNumber)

findProductClassification

protected ProductClassification findProductClassification(String classificationName)

findUom

protected Uom findUom(String uomName)

findSalesTaxType

protected SalesTaxType findSalesTaxType(String salesTaxTypeName)

findCodeValueContainer

protected CodeValueContainer findCodeValueContainer(String name,
                                                    boolean isRootContainers)

getNextInvoiceNumber

protected String getNextInvoiceNumber(Account customer)
Generate next invoice number.

Returns:
Next invoice number formatted as {customer number}-{7-digit invoice count}I-{4-digit millis}.

createContractPosition

protected AbstractContractPosition createContractPosition(AbstractContract contract,
                                                          String productNumber,
                                                          BigDecimal quantity,
                                                          Boolean ignoreProductConfiguration,
                                                          ProductConfigurationT actualProductConfigurationT,
                                                          String priceUomName,
                                                          Date pricingDate,
                                                          SalesTaxType salesTaxType,
                                                          Boolean discountIsPercentage,
                                                          BigDecimal discount)

updatePropertySet

protected void updatePropertySet(List<StringPropertyT> propertiesT,
                                 PropertySet propertySet,
                                 boolean removeNonExisting)

addContractAddresses

protected void addContractAddresses(AbstractContract contract,
                                    PostalAddressT postalAddressInvoiceT,
                                    PostalAddressT postalAddressDeliveryT)

addContractPositions

protected void addContractPositions(AbstractContract contract,
                                    List<ContractPositionT> contractPositions,
                                    String defaultSalesTaxType,
                                    Boolean discountIsPercentage,
                                    BigDecimal discount)

validateContractPosition

protected String validateContractPosition(String productNumber,
                                          String priceUomName)

validateContractPositions

protected String validateContractPositions(List<ContractPositionT> contractPositions)

toNonNullElementsCollection

protected Collection<Object> toNonNullElementsCollection(Collection<?> source,
                                                         Collection<Object> target,
                                                         Object nullValue)

updateProductConfiguration

protected void updateProductConfiguration(ProductT productT,
                                          Product product,
                                          ProductConfigurationTypeSet configurationType)

updateProductDescriptions

protected void updateProductDescriptions(ProductT productT,
                                         Product product)

updateProductPicture

protected void updateProductPicture(ProductT productT,
                                    Product product)

updateProductPhase

protected void updateProductPhase(ProductT productT,
                                  Product product)

getSalesOrderPositions

protected Collection<ContractPositionT> getSalesOrderPositions(Account customer,
                                                               Integer salesOrderStatusThreshold)

setContractStatus

public void setContractStatus(AbstractContract contract,
                              ContractStatusT contractStatusT)

updateProductBundle

public void updateProductBundle(ProductT productT,
                                Product product)

addActivityFollowUp

public AddActivityFollowUpResult addActivityFollowUp(AddActivityFollowUpParams params)
Description copied from interface: ShopService
Add a follow up to the specified activity.

Specified by:
addActivityFollowUp in interface ShopService

addCustomerToCustomerContract

public AddCustomerToCustomerContractResult addCustomerToCustomerContract(AddCustomerToCustomerContractParams params)
Description copied from interface: ShopService
Add customer to the specified customer contract. A customer can be assigned to at most one customer contract. The assignment is added to the customer contract as account assignment.

Specified by:
addCustomerToCustomerContract in interface ShopService

addDeliveryInformation

public AddDeliveryInformationResult addDeliveryInformation(AddDeliveryInformationParams params)
Description copied from interface: ShopService
Adds a delivery information record to the specified contract position.

Specified by:
addDeliveryInformation in interface ShopService

addSalesOrderPosition

public AddSalesOrderPositionResult addSalesOrderPosition(AddSalesOrderPositionParams params)
Description copied from interface: ShopService
Add item to sales order. If a sales order position with the specified product exists, then the position quantity is incremented by quantity. If no position exists, a new position is created. After the update the sales order is recalculated.

Specified by:
addSalesOrderPosition in interface ShopService
Returns:
updated and recalculated sales order.

cancelInvoice

public CancelInvoiceResult cancelInvoice(CancelInvoiceParams params)
Description copied from interface: ShopService
Set cancelOn for specified invoice. The state of the invoice is not changed. If the cancelOn date is set, the customer does not supposed to consume services starting from this date.

Specified by:
cancelInvoice in interface ShopService

cancelSalesOrder

public CancelSalesOrderResult cancelSalesOrder(CancelSalesOrderParams params)
Description copied from interface: ShopService
Set cancelOn for specified sales order. The state of the sales order is not changed. If the cancelOn date is set, the customer does not intend to order any products.

Specified by:
cancelSalesOrder in interface ShopService

createActivity

public CreateActivityResult createActivity(CreateActivityParams params)
Description copied from interface: ShopService
Creates a new activity.

Specified by:
createActivity in interface ShopService

createCustomerAsContact

public CreateCustomerAsContactResult createCustomerAsContact(CreateCustomerAsContactParams params)
Description copied from interface: ShopService
Create a new customer as contact. The supplied customerId, userName and emailAddress (optional) must be unique, i.e. no two customers may have the same customerId, userName or emailAddress (optional).

Error status:

Specified by:
createCustomerAsContact in interface ShopService
Returns:
validated and updated customer main data.

createCustomerAsLegalEntity

public CreateCustomerAsLegalEntityResult createCustomerAsLegalEntity(CreateCustomerAsLegalEntityParams params)
Description copied from interface: ShopService
Create a new customer as legal entity. The supplied legalName must be unique, i.e. no two customers may have the same legalName.

Specified by:
createCustomerAsLegalEntity in interface ShopService
Returns:
validated and updated customer main data.

createCustomerContract

public CreateCustomerContractResult createCustomerContract(CreateCustomerContractParams params)
Description copied from interface: ShopService
Create a customer contract. The customer contract holds information which is required to create sales orders and invoices, i.e. the operations createInvoice() and createSalesOrders() require that a customer contract exists for the customer.

Specified by:
createCustomerContract in interface ShopService

createInvoice

public CreateInvoiceResult createInvoice(CreateInvoiceParams params)
Description copied from interface: ShopService
Create a new invoice.

Specified by:
createInvoice in interface ShopService

createInvoiceFromInvoice

public CreateInvoiceFromInvoiceResult createInvoiceFromInvoice(CreateInvoiceFromInvoiceParams params)
Description copied from interface: ShopService
Create an invoice based on an invoice. The origin of the newly created invoice is set to the existing invoice.

Specified by:
createInvoiceFromInvoice in interface ShopService
Returns:
created and recalculated invoice.

createInvoiceFromSalesOrder

public CreateInvoiceFromSalesOrderResult createInvoiceFromSalesOrder(CreateInvoiceFromSalesOrderParams params)
Description copied from interface: ShopService
Create an invoice based on a sales order. The origin of the newly created invoice is set to the sales order.

Specified by:
createInvoiceFromSalesOrder in interface ShopService
Returns:
created and recalculated invoice.

createProductClassification

public CreateProductClassificationResult createProductClassification(CreateProductClassificationParams params)
Description copied from interface: ShopService
Create new product classifications.

Specified by:
createProductClassification in interface ShopService

createProducts

public CreateProductsResult createProducts(CreateProductsParams params)
Description copied from interface: ShopService
Create products. After import the prices of existing products are recalculated and initial the prices of new products are created. Existing products are updated.

Specified by:
createProducts in interface ShopService

createSalesOrder

public CreateSalesOrderResult createSalesOrder(CreateSalesOrderParams params)
Description copied from interface: ShopService
Create a new sales order. In addition, a corresponding 'sales process activity' is created. The sales process activity allows to track the life-cycle of the sales process starting from the sales order and ending with the payment of the invoice. The created quote is linked to this activity an vice-versa. Default values for salesTax, billing provider, etc. are taken from the customer contract.

Specified by:
createSalesOrder in interface ShopService
Returns:
the created and recalculated sales order.

getActivitiesByQuery

public GetActivitiesByQueryResult getActivitiesByQuery(GetActivitiesByQueryParams params)
Description copied from interface: ShopService
Return activities matching the specified query.

Specified by:
getActivitiesByQuery in interface ShopService
Returns:
activities matching the query.

getActivity

public GetActivityResult getActivity(GetActivityParams params)
Description copied from interface: ShopService
Get activity with the specified activity number.

Specified by:
getActivity in interface ShopService
Returns:
activity matching the activity number.

getCodeValueContainer

public GetCodeValueContainerResult getCodeValueContainer(GetCodeValueContainerParams params)
Description copied from interface: ShopService
Get specified code value containers.

Specified by:
getCodeValueContainer in interface ShopService
Returns:
list of code value containers.

getCredentials

public GetCredentialsResult getCredentials(GetCredentialsParams params)
Description copied from interface: ShopService
Get credentials for the specified customer.

Specified by:
getCredentials in interface ShopService
Returns:
credentials.

getCredentialsByEmailAddress

public GetCredentialsByEmailAddressResult getCredentialsByEmailAddress(GetCredentialsByEmailAddressParams params)
Specified by:
getCredentialsByEmailAddress in interface ShopService

getCustomer

public GetCustomerResult getCustomer(GetCustomerParams params)
Description copied from interface: ShopService
Get customer data.

Specified by:
getCustomer in interface ShopService
Returns:
customer data.

getCustomersByQuery

public GetCustomersByQueryResult getCustomersByQuery(GetCustomersByQueryParams params)
Description copied from interface: ShopService
Query customers and return customer numbers of matching customers.

Specified by:
getCustomersByQuery in interface ShopService
Returns:
customer numbers.

getDocuments

public GetDocumentsResult getDocuments(GetDocumentsParams params)
Description copied from interface: ShopService
Get documents of the specified document folder.

Specified by:
getDocuments in interface ShopService
Returns:
documents which are assigned to the specified folder.

getInvoice

public GetInvoiceResult getInvoice(GetInvoiceParams params)
Description copied from interface: ShopService
Get invoice with the specified invoice number.

Specified by:
getInvoice in interface ShopService
Returns:
invoice.

getInvoicePositions

public GetInvoicePositionsResult getInvoicePositions(GetInvoicePositionsParams params)
Description copied from interface: ShopService
Collect all positions from all invoices with invoice status greater or equal to the supplied invoice status threshold.

Specified by:
getInvoicePositions in interface ShopService

getInvoices

public GetInvoicesResult getInvoices(GetInvoicesParams params)
Description copied from interface: ShopService
Returns all invoices for the customer.

Specified by:
getInvoices in interface ShopService
Returns:
list of invoices.

getPriceLevel

public GetPriceLevelResult getPriceLevel(GetPriceLevelParams params)
Description copied from interface: ShopService
Get price levels.

Specified by:
getPriceLevel in interface ShopService

getProducts

public GetProductsResult getProducts(GetProductsParams params)
Description copied from interface: ShopService
Return a product.

Specified by:
getProducts in interface ShopService
Returns:
list of products.

getProductsByQuery

public GetProductsByQueryResult getProductsByQuery(GetProductsByQueryParams params)
Description copied from interface: ShopService
Get products matching the product query.

Specified by:
getProductsByQuery in interface ShopService

getProductConfigurationTypes

public GetProductConfigurationTypesResult getProductConfigurationTypes(GetProductConfigurationTypesParams params)
Description copied from interface: ShopService
Return all product configuration types.

Specified by:
getProductConfigurationTypes in interface ShopService
Returns:
product configuration types.

getProductPrices

public GetProductPricesResult getProductPrices(GetProductPricesParams params)
Description copied from interface: ShopService
Get price of a product for the specified pricing date and currency. The default pricing rule is applied.

Specified by:
getProductPrices in interface ShopService

getSalesOrder

public GetSalesOrderResult getSalesOrder(GetSalesOrderParams params)
Description copied from interface: ShopService
Returns a sales order.

Specified by:
getSalesOrder in interface ShopService
Returns:
sales order.

getSalesOrders

public GetSalesOrdersResult getSalesOrders(GetSalesOrdersParams params)
Description copied from interface: ShopService
Returns the sales orders for the customer.

Specified by:
getSalesOrders in interface ShopService
Returns:
list of sales orders.

getSalesOrderPositions

public GetSalesOrderPositionsResult getSalesOrderPositions(GetSalesOrderPositionsParams params)
Specified by:
getSalesOrderPositions in interface ShopService

sendEMail

public SendEMailResult sendEMail(SendEMailParams params)
Specified by:
sendEMail in interface ShopService

setCredentials

public SetCredentialsResult setCredentials(SetCredentialsParams params)
Description copied from interface: ShopService
Sets the credentials for the specified customer.

Specified by:
setCredentials in interface ShopService

setCustomerContractStatus

public SetCustomerContractStatusResult setCustomerContractStatus(SetCustomerContractStatusParams params)
Specified by:
setCustomerContractStatus in interface ShopService

setCustomerStatus

public SetCustomerStatusResult setCustomerStatus(SetCustomerStatusParams params)
Description copied from interface: ShopService
Set the customer's status. In addition a follow up is performed on the customer's life-cycle activity which reflects the status change.

Specified by:
setCustomerStatus in interface ShopService
Returns:
previous status of the customer.

setInvoiceStatus

public SetInvoiceStatusResult setInvoiceStatus(SetInvoiceStatusParams params)
Description copied from interface: ShopService
Set the status of an invoice. paymentDate of the contract is set if the status is set to INVOICE_STATE_PAID.

Specified by:
setInvoiceStatus in interface ShopService
Returns:
the previous invoice status.

setProductStatus

public SetProductStatusResult setProductStatus(SetProductStatusParams params)
Description copied from interface: ShopService
Set the status of the specified product.

Specified by:
setProductStatus in interface ShopService

setSalesOrderPositionQuantity

public SetSalesOrderPositionQuantityResult setSalesOrderPositionQuantity(SetSalesOrderPositionQuantityParams params)
Description copied from interface: ShopService
Set quantity of an ordered item. The sales order is recalculated after updating the position. If the quantity is 0 the position is removed.

Specified by:
setSalesOrderPositionQuantity in interface ShopService
Returns:
updated and recalculated sales order.

setSalesOrderStatus

public SetSalesOrderStatusResult setSalesOrderStatus(SetSalesOrderStatusParams params)
Description copied from interface: ShopService
Set the status of a sales order.

Specified by:
setSalesOrderStatus in interface ShopService
Returns:
the the old sales order status.

updateCustomer

public UpdateCustomerResult updateCustomer(UpdateCustomerParams params)
Description copied from interface: ShopService
Update customer data. If updateAddressData is true the following addresses are updated:

Specified by:
updateCustomer in interface ShopService
Returns:
customer main data before modification.

updateCustomerContract

public UpdateCustomerContractResult updateCustomerContract(UpdateCustomerContractParams params)
Specified by:
updateCustomerContract in interface ShopService

updateProduct

public UpdateProductResult updateProduct(UpdateProductParams params)
Description copied from interface: ShopService
Update product data. For products with isBundle=true a corresponding product filter is created. The filter properties are set to ProductT::bundleData, i.e. the filter selects the products listed by ProductBundleDataT::member and ProductBundleDataT::classificationIdFilter.

Specified by:
updateProduct in interface ShopService

close

public void close()


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.