public class OrderLineItemDiscount extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderLineItemDiscount.Builder
Class to build instances of
OrderLineItemDiscount. |
| Constructor and Description |
|---|
OrderLineItemDiscount(String uid,
String catalogObjectId,
Long catalogVersion,
String name,
String type,
String percentage,
Money amountMoney,
Money appliedMoney,
Map<String,String> metadata,
String scope,
List<String> rewardIds,
String pricingRuleId)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Money |
getAmountMoney()
Getter for AmountMoney.
|
Money |
getAppliedMoney()
Getter for AppliedMoney.
|
String |
getCatalogObjectId()
Getter for CatalogObjectId.
|
Long |
getCatalogVersion()
Getter for CatalogVersion.
|
Map<String,String> |
getMetadata()
Getter for Metadata.
|
String |
getName()
Getter for Name.
|
String |
getPercentage()
Getter for Percentage.
|
String |
getPricingRuleId()
Getter for PricingRuleId.
|
List<String> |
getRewardIds()
Getter for RewardIds.
|
String |
getScope()
Getter for Scope.
|
String |
getType()
Getter for Type.
|
String |
getUid()
Getter for Uid.
|
int |
hashCode() |
OrderLineItemDiscount.Builder |
toBuilder()
Builds a new
OrderLineItemDiscount.Builder object. |
String |
toString()
Converts this OrderLineItemDiscount into string format.
|
public OrderLineItemDiscount(String uid, String catalogObjectId, Long catalogVersion, String name, String type, String percentage, Money amountMoney, Money appliedMoney, Map<String,String> metadata, String scope, List<String> rewardIds, String pricingRuleId)
uid - String value for uid.catalogObjectId - String value for catalogObjectId.catalogVersion - Long value for catalogVersion.name - String value for name.type - String value for type.percentage - String value for percentage.amountMoney - Money value for amountMoney.appliedMoney - Money value for appliedMoney.metadata - Map of String, value for metadata.scope - String value for scope.rewardIds - List of String value for rewardIds.pricingRuleId - String value for pricingRuleId.public String getUid()
public String getCatalogObjectId()
public Long getCatalogVersion()
public String getName()
public String getType()
public String getPercentage()
public Money getAmountMoney()
public Money getAppliedMoney()
public Map<String,String> getMetadata()
public String getScope()
public List<String> getRewardIds()
public String getPricingRuleId()
public String toString()
public OrderLineItemDiscount.Builder toBuilder()
OrderLineItemDiscount.Builder object.
Creates the instance with the state of the current model.OrderLineItemDiscount.Builder objectCopyright © 2022. All rights reserved.