com.ibm.commerce.payment.objects
Class TradingRefundAmountBean

com.ibm.commerce.payment.objects.TradingRefundAmountBean

public class TradingRefundAmountBean

This bean provides access to the TRDREFAMT table.

The following is a description of this table:

This table is used to keep track of Refund Amounts by Trading Agreements, by Orders and by RMA Id. Entries are created only for Trading Agreement with Right-to-Buy by Amount or Obligation-to-Buy by Amount Terms and Conditions.


Constructor Summary
TradingRefundAmountBean()
           
 
Method Summary
 java.math.BigDecimal getAmount()
          This method provides access to the TRDREFAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the TRDREFAMT.SETCCURR column of DB2 type CHAR(3) NULL.
 java.lang.Long getOrderId()
          This method provides access to the TRDREFAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getRmaId()
          This method provides access to the TRDREFAMT.RMA_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingId()
          This method provides access to the TRDREFAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the TRDREFAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the TRDREFAMT.SETCCURR column of DB2 type CHAR(3) NULL.
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the TRDREFAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setRmaId(java.lang.Long aRmaId)
          This method provides access to the TRDREFAMT.RMA_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.Long aTradingId)
          This method provides access to the TRDREFAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

TradingRefundAmountBean

public TradingRefundAmountBean()
Method Detail

getAmount

public java.math.BigDecimal getAmount()

This method provides access to the TRDREFAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Total Refund Amount for this Trading Agreement for this RMA and Order. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

Returns:
java.math.BigDecimal

getCurrency

public java.lang.String getCurrency()

This method provides access to the TRDREFAMT.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Currency of the Amount field. This is a currency code as per ISO 4217 standards.

Returns:
java.lang.String

getOrderId

public java.lang.Long getOrderId()

This method provides access to the TRDREFAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Order ID. Foreign key to the ORDERS table.

Returns:
java.lang.Long

getRmaId

public java.lang.Long getRmaId()

This method provides access to the TRDREFAMT.RMA_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Return Merchandise Authorization (RMA).

Returns:
java.lang.Long

getTradingId

public java.lang.Long getTradingId()

This method provides access to the TRDREFAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

Returns:
java.lang.Long

setAmount

public void setAmount(java.math.BigDecimal aAmount)

This method provides access to the TRDREFAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Total Refund Amount for this Trading Agreement for this RMA and Order. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

Parameters:
aAmount - java.math.BigDecimal
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the TRDREFAMT.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Currency of the Amount field. This is a currency code as per ISO 4217 standards.

Parameters:
aCurrency - java.lang.String
Returns:
void

setOrderId

public void setOrderId(java.lang.Long aOrderId)

This method provides access to the TRDREFAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Order ID. Foreign key to the ORDERS table.

Parameters:
aOrderId - java.lang.Long
Returns:
void

setRmaId

public void setRmaId(java.lang.Long aRmaId)

This method provides access to the TRDREFAMT.RMA_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Return Merchandise Authorization (RMA).

Parameters:
aRmaId - java.lang.Long
Returns:
void

setTradingId

public void setTradingId(java.lang.Long aTradingId)

This method provides access to the TRDREFAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

Parameters:
aTradingId - java.lang.Long
Returns:
void