Interface DiscountedLineItemPortionDraft
+-
+
- All Superinterfaces: +
Draft<DiscountedLineItemPortionDraft>
+
+ +
+ Example to create an instance using the builder pattern +
+ DiscountedLineItemPortionDraft discountedLineItemPortionDraft = DiscountedLineItemPortionDraft.builder()
+ .discount(discountBuilder -> discountBuilder)
+ .discountedAmount(discountedAmountBuilder -> discountedAmountBuilder)
+ .build()
+
+ -
+
+
-
+
+ +Method Summary
++ ++++++Modifier and Type+Method+Description+ ++builder()
++ +builder factory method for DiscountedLineItemPortionDraft++builder
(DiscountedLineItemPortionDraft template) ++ +create builder for DiscountedLineItemPortionDraft instance++deepCopy
(DiscountedLineItemPortionDraft template) ++factory method to create a deep copy of DiscountedLineItemPortionDraft++ +@NotNull @Valid Reference
++A CartDiscountReference or DirectDiscountReference for the discount applicable on the Line Item.++ +@NotNull @Valid TypedMoneyDraft
++ +Money value for the discount applicable.++of()
++ +factory method++of
(DiscountedLineItemPortionDraft template) ++factory method to create a shallow copy DiscountedLineItemPortionDraft++void
+setDiscount
(Reference discount) ++A CartDiscountReference or DirectDiscountReference for the discount applicable on the Line Item.++void
+setDiscountedAmount
(TypedMoneyDraft discountedAmount) ++Money value for the discount applicable.++ +static com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPortionDraft>
++gives a TypeReference for usage with Jackson DataBind++ +default <T> T
++accessor map function+
+
-
+
+
-
+
+ +Method Details
+-
+
-
+
+ +getDiscount
+ ++A CartDiscountReference or DirectDiscountReference for the discount applicable on the Line Item.
-
+
- Returns: +
- discount +
+ -
+
+ +getDiscountedAmount
+ ++Money value for the discount applicable.
-
+
- Returns: +
- discountedAmount +
+ -
+
+ +setDiscount
+ ++A CartDiscountReference or DirectDiscountReference for the discount applicable on the Line Item.
-
+
- Parameters: +
discount
- value to be set
+
+ -
+
+ +setDiscountedAmount
+ ++Money value for the discount applicable.
-
+
- Parameters: +
discountedAmount
- value to be set
+
+ -
+
+ +of
+ +factory method+-
+
- Returns: +
- instance of DiscountedLineItemPortionDraft +
+ -
+
+ +of
+ +factory method to create a shallow copy DiscountedLineItemPortionDraft+-
+
- Parameters: +
template
- instance to be copied
+- Returns: +
- copy instance +
+ -
+
+ +deepCopy
+@Nullable +static DiscountedLineItemPortionDraft deepCopy+(@Nullable + DiscountedLineItemPortionDraft template) factory method to create a deep copy of DiscountedLineItemPortionDraft+-
+
- Parameters: +
template
- instance to be copied
+- Returns: +
- copy instance +
+ -
+
+ +builder
+ +builder factory method for DiscountedLineItemPortionDraft+-
+
- Returns: +
- builder +
+ -
+
+ +builder
+ +create builder for DiscountedLineItemPortionDraft instance+-
+
- Parameters: +
template
- instance with prefilled values for the builder
+- Returns: +
- builder +
+ -
+
+ +withDiscountedLineItemPortionDraft
+ +accessor map function+-
+
- Type Parameters: +
T
- mapped type
+- Parameters: +
helper
- function to map the object
+- Returns: +
- mapped value +
+ -
+
+ +typeReference
+static com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPortionDraft> typeReference()+gives a TypeReference for usage with Jackson DataBind+-
+
- Returns: +
- TypeReference +
+
+ -
+