LineItemInput Class

Sends the list of individual line items associated with the payment to the gateway adapter.

CommercePayments

The following are properties for LineItemInput.

  • additionalAttributes

    Map of additional attributes.

  • commodityCode

    Commodity code.

  • description

    Description of the product.

  • discount

    Discount applied to the line item level.

  • discountIndicator

    Specifies whether a discount was applied to the specific line item.

  • dutyAmount

    Duty or tariff applied specifically to a item (not the whole order).

  • grossNetIndicator

    Specifies if the line item amount is Gross (before discounts) or Net (after discounts).

  • lineItemId

    Line item identifier. Specify when multiple items are present.

  • lineItemTotal

    Total amount for that line item.

  • name

    Product or service name.

  • quantity

    Quantity purchased.

  • shippingAmount

    Shipping or freight cost allocated to that line item.

  • sku

    SKU or product code.

  • taxAmount

    Line-level tax amount.

  • taxRate

    Tax percentage applied to that specific line item.

  • unitPrice

    Unit price.

  • uom

    Unit of measure. For example, EA, HRS, and KG.

Map of additional attributes.

public Map<String,String> additionalAttributes {get; set;}

Type: Map<String,String>

Commodity code.

public String commodityCode {get; set;}

Type: String

Description of the product.

public String description {get; set;}

Type: String

Discount applied to the line item level.

public Double discount {get; set;}

Type: Double

Specifies whether a discount was applied to the specific line item.

public Boolean discountIndicator {get; set;}

Type: Boolean

Duty or tariff applied specifically to a item (not the whole order).

public Double dutyAmount {get; set;}

Type: Double

Specifies if the line item amount is Gross (before discounts) or Net (after discounts).

public String grossNetIndicator {get; set;}

Type: String

Line item identifier. Specify when multiple items are present.

public String lineItemId {get; set;}

Type: String

Total amount for that line item.

public Double lineItemTotal {get; set;}

Type: Double

Product or service name.

public String name {get; set;}

Type: String

Quantity purchased.

public Integer quantity {get; set;}

Type: Integer

Shipping or freight cost allocated to that line item.

public Double shippingAmount {get; set;}

Type: Double

SKU or product code.

public String sku {get; set;}

Type: String

Line-level tax amount.

public Double taxAmount {get; set;}

Type: Double

Tax percentage applied to that specific line item.

public Double taxRate {get; set;}

Type: Double

Unit price.

public Double unitPrice {get; set;}

Type: Double

Unit of measure. For example, EA, HRS, and KG.

public String uom {get; set;}

Type: String

The following are methods for LineItemInput.

  • equals(obj)

    Maintains the integrity of lists of type LineItemInput by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

  • hashCode()

    Maintains the integrity of lists of type LineItemInput.

  • toString()

    Converts a date to a string.

Maintains the integrity of lists of type LineItemInput by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

public Boolean equals(Object obj)

  • obj:

    Type:

    Object External object whose key is to be validated.

Type: Boolean

Maintains the integrity of lists of type LineItemInput.

public Integer hashCode()

Type: Integer

Converts a date to a string.

public String toString()

Type: String