# com.bea.commerce.ebusiness.price.service
PricingRequestImpl Class

public class PricingRequestImpl
extends `Object`
implements `PricingRequest`

The PricingRequestImpl is used as input to the Price Service during a pricing operation. This class is not designed for concurrent use and may produce unpredicatable results if used concurrently.

Related Topics

``PriceService``
``PricingReply``
``PricingRequest``

Hierarchy
  `Object`
  `PricingRequestImpl`

All Implemented Interfaces
  `PricingRequest`, `Serializable`

## Constructor Summary

PricingRequestImpl()

## Method Summary

`public `Serializable`` | `getAttribute`(`String` name) Retrieves the value of a request attribute by name.
`public `Money`` | `getBaseShipping`() Retreives the base shipping cost for the request.
`public `CustomerPk`` | `getCustomerPK`() Retrieves the CustomerPk associated with this request.
`public `Calendar`` | `getEffectiveDate`() The effective date is the date which the Price Service will use to determine whether a given discount is in effect.
`public `Line`[]` | `getLines`() Retrieves the Line items for this pricing operation.
`public `Object`` | `setAttribute`(`String` name, `Serializable` value) Sets the value of a request attribute by name.
`public void` | `setBaseShipping`(`Money` baseShippingCost) Sets the base shipping cost for this request.
`public void` | `setCustomerPK`(`CustomerPk` customerPk) Sets the customer associated with this request.
`public void` | `setEffectiveDate`(`Calendar` effectiveDate) Sets the effective date for this pricig request.
`public void` | `setLines`(`Line`[] lines) Sets the Line array for this request.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.commerce.ebusiness.price.service.`PricingRequest``
``getAttribute`, `getBaseShipping`, `getCustomerPK`, `getEffectiveDate`, `getLines``

## Constructor Detail

### PricingRequestImpl

    public PricingRequestImpl()

## Method Detail

### getAttribute(String) Method

    public Serializable getAttribute(String name)

Retrieves the value of a request attribute by name. The semantics of this method are the same as the get() method in the java.util.Map interface. Attributes allow for customization of the PricingRequest without modifying the interface.

#### Parameters

name
  the name of a request attribute to get the value for.

#### Returns

the value for the named request attribute.

Related Topics

``Map``

### getBaseShipping() Method

    public Money getBaseShipping()

Retreives the base shipping cost for the request.

#### Returns

com.beasys.commerce.axiom.units.Money corresponding to the base shipping cost.

Related Topics

``Money``

### getCustomerPK() Method

    public CustomerPk getCustomerPK()

Retrieves the CustomerPk associated with this request. A null value indicates an anonymous customer.

#### Returns

a CustomerPk object.

Related Topics

``CustomerPk``

### getEffectiveDate() Method

    public Calendar getEffectiveDate()

The effective date is the date which the Price Service will use to determine whether a given discount is in effect. more precisely if effective date is >= the discount start date and <= the discount end date the discount will be considered for application during the pricing operation. If this value is not set the Price Service will use the current date as obtained through the JVM.

#### Returns

the Calendar object representing the effective date for the pricing operation.

Related Topics

``Calendar``

### getLines() Method

    public Line[] getLines()

Retrieves the Line items for this pricing operation.

#### Returns

an array of Line items.

Related Topics

``Line``

### setAttribute(String, Serializable) Method

    public Object setAttribute(String name,
                               Serializable value)

Sets the value of a request attribute by name. The semantics of this method are the same as the put() method in the java.util.Map interface. Attributes allow for customization of the PricingRequest without modifying the implementation.

#### Parameters

name
  the name of a request attribute to set the value for.

value
  the value for the specified attribute name.

#### Returns

the previous value for the key or null if no previous value exists or the previous value was null.

Related Topics

``Map``

### setBaseShipping(Money) Method

    public void setBaseShipping(Money baseShippingCost)

Sets the base shipping cost for this request.

#### Parameters

baseShippingCost
  the base shipping cost for this request.

### setCustomerPK(CustomerPk) Method

    public void setCustomerPK(CustomerPk customerPk)

Sets the customer associated with this request. A null value indicates an anonymous customer.

#### Parameters

customerPk
  customer for this pricing operation

### setEffectiveDate(Calendar) Method

    public void setEffectiveDate(Calendar effectiveDate)

Sets the effective date for this pricig request. The effective date is the date which the Price Service will use to determine whether a given discount is in effect. more precisely if effective date is >= the discount start date and <= the discount end date the discount will be considered for application during the pricing operation. If this value is not set the Price Service will use the current date as obtained through the JVM.

#### Parameters

effectiveDate
  the effectiveDate for the pricing request.

Related Topics

``Calendar``

### setLines(Line[]) Method

    public void setLines(Line[] lines)

Sets the Line array for this request.

#### Parameters

lines
  an array of Line items for this pricing request.