PaymentSDK
Mobile payment SDK
de.wirecard.paymentsdk.models.OrderItem Class Reference

Order item data. More...

+ Inheritance diagram for de.wirecard.paymentsdk.models.OrderItem:
+ Collaboration diagram for de.wirecard.paymentsdk.models.OrderItem:

Public Instance Methods

 OrderItem (String name, String description, String articleNumber, BigDecimal amount, BigDecimal taxAmount, BigDecimal taxRate, int quantity)
 Constructor. More...
 
 OrderItem ()
 Constructor. More...
 
String getName ()
 Returns name of the item in basket. More...
 
void setName (String name)
 Sets name of the item in basket. More...
 
String getDescription ()
 Returns item description. More...
 
void setDescription (String description)
 Sets item description. More...
 
String getArticleNumber ()
 Returns item EAN or other article identifier. More...
 
void setArticleNumber (String articleNumber)
 Sets item EAN or other article identifier. More...
 
int getQuantity ()
 Returns total count of the item in the order. More...
 
void setQuantity (int quantity)
 Sets total count of the item in the order. More...
 
BigDecimal getTaxRate ()
 Returns item tax rate per unit. More...
 
void setTaxRate (BigDecimal taxRate)
 Sets item tax rate per unit. More...
 
BigDecimal getAmount ()
 Returns item price per unit. More...
 
void setAmount (BigDecimal amount)
 Sets item price per unit. More...
 
BigDecimal getTaxAmount ()
 Returns item tax per unit. More...
 
void setTaxAmount (BigDecimal taxAmount)
 Sets item tax per unit. More...
 

Private Fields

String name
 Name of the item in basket. More...
 
String description
 Item description. More...
 
String articleNumber
 Item EAN or other article identifier. More...
 
BigDecimal amount
 Item price per unit. More...
 
BigDecimal taxAmount
 Item tax per unit. More...
 
BigDecimal taxRate
 Item tax rate per unit. More...
 
int quantity = -1
 Total count of the item in the order. More...
 

Detailed Description

Order item data.

Constructor & Destructor Documentation

de.wirecard.paymentsdk.models.OrderItem.OrderItem ( String  name,
String  description,
String  articleNumber,
BigDecimal  amount,
BigDecimal  taxAmount,
BigDecimal  taxRate,
int  quantity 
)
inline

Constructor.

Parameters
nameName of the item in basket.
descriptionItem description.
articleNumberItem EAN or other article identifier.
amountItem price per unit.
taxAmountItem tax per unit.
taxRateItem tax rate per unit.
quantityTotal count of the item in the order.
de.wirecard.paymentsdk.models.OrderItem.OrderItem ( )
inline

Constructor.

Method Documentation

BigDecimal de.wirecard.paymentsdk.models.OrderItem.getAmount ( )
inline

Returns item price per unit.

Returns
amount
String de.wirecard.paymentsdk.models.OrderItem.getArticleNumber ( )
inline

Returns item EAN or other article identifier.

Returns
articleNumber
String de.wirecard.paymentsdk.models.OrderItem.getDescription ( )
inline

Returns item description.

Returns
description
String de.wirecard.paymentsdk.models.OrderItem.getName ( )
inline

Returns name of the item in basket.

Returns
name
int de.wirecard.paymentsdk.models.OrderItem.getQuantity ( )
inline

Returns total count of the item in the order.

Returns
quantity
BigDecimal de.wirecard.paymentsdk.models.OrderItem.getTaxAmount ( )
inline

Returns item tax per unit.

Returns
taxAmount
BigDecimal de.wirecard.paymentsdk.models.OrderItem.getTaxRate ( )
inline

Returns item tax rate per unit.

Returns
taxRate
void de.wirecard.paymentsdk.models.OrderItem.setAmount ( BigDecimal  amount)
inline

Sets item price per unit.

Parameters
amount
void de.wirecard.paymentsdk.models.OrderItem.setArticleNumber ( String  articleNumber)
inline

Sets item EAN or other article identifier.

Parameters
articleNumber
void de.wirecard.paymentsdk.models.OrderItem.setDescription ( String  description)
inline

Sets item description.

Parameters
description
void de.wirecard.paymentsdk.models.OrderItem.setName ( String  name)
inline

Sets name of the item in basket.

Parameters
name
void de.wirecard.paymentsdk.models.OrderItem.setQuantity ( int  quantity)
inline

Sets total count of the item in the order.

Parameters
quantity
void de.wirecard.paymentsdk.models.OrderItem.setTaxAmount ( BigDecimal  taxAmount)
inline

Sets item tax per unit.

Parameters
taxAmount
void de.wirecard.paymentsdk.models.OrderItem.setTaxRate ( BigDecimal  taxRate)
inline

Sets item tax rate per unit.

Parameters
taxRate

Member Data Documentation

BigDecimal de.wirecard.paymentsdk.models.OrderItem.amount
private

Item price per unit.

Order item amount always includes tax.

String de.wirecard.paymentsdk.models.OrderItem.articleNumber
private

Item EAN or other article identifier.

String de.wirecard.paymentsdk.models.OrderItem.description
private

Item description.

String de.wirecard.paymentsdk.models.OrderItem.name
private

Name of the item in basket.

int de.wirecard.paymentsdk.models.OrderItem.quantity = -1
private

Total count of the item in the order.

BigDecimal de.wirecard.paymentsdk.models.OrderItem.taxAmount
private

Item tax per unit.

BigDecimal de.wirecard.paymentsdk.models.OrderItem.taxRate
private

Item tax rate per unit.