Class AdjustLineItemReq.Builder
- java.lang.Object
-
- com.chrt.api.resources.billing.lineitemgroups.requests.AdjustLineItemReq.Builder
-
- All Implemented Interfaces:
AdjustLineItemReq._FinalStage,AdjustLineItemReq.AdjustmentStage,AdjustLineItemReq.LineItemUuidStrStage
- Enclosing class:
- AdjustLineItemReq
public static final class AdjustLineItemReq.Builder extends java.lang.Object implements AdjustLineItemReq.LineItemUuidStrStage, AdjustLineItemReq.AdjustmentStage, AdjustLineItemReq._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdjustLineItemReq._FinalStageadjustment(double adjustment)Adjustment amount (can be positive or negative, can exceed item.amount negatively for credits)AdjustLineItemReq._FinalStageadjustmentComments(Nullable<java.lang.String> adjustmentComments)Comments explaining the adjustmentAdjustLineItemReq._FinalStageadjustmentComments(java.lang.String adjustmentComments)Comments explaining the adjustmentAdjustLineItemReq._FinalStageadjustmentComments(java.util.Optional<java.lang.String> adjustmentComments)Comments explaining the adjustmentAdjustLineItemReqbuild()AdjustLineItemReq.Builderfrom(AdjustLineItemReq other)AdjustLineItemReq.AdjustmentStagelineItemUuidStr(java.lang.String lineItemUuidStr)UUID of the line item to adjust
-
-
-
Method Detail
-
from
public AdjustLineItemReq.Builder from(AdjustLineItemReq other)
- Specified by:
fromin interfaceAdjustLineItemReq.LineItemUuidStrStage
-
lineItemUuidStr
public AdjustLineItemReq.AdjustmentStage lineItemUuidStr(@NotNull java.lang.String lineItemUuidStr)
UUID of the line item to adjust
UUID of the line item to adjust
- Specified by:
lineItemUuidStrin interfaceAdjustLineItemReq.LineItemUuidStrStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adjustment
public AdjustLineItemReq._FinalStage adjustment(double adjustment)
Adjustment amount (can be positive or negative, can exceed item.amount negatively for credits)
Adjustment amount (can be positive or negative, can exceed item.amount negatively for credits)
- Specified by:
adjustmentin interfaceAdjustLineItemReq.AdjustmentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adjustmentComments
public AdjustLineItemReq._FinalStage adjustmentComments(Nullable<java.lang.String> adjustmentComments)
Comments explaining the adjustment
- Specified by:
adjustmentCommentsin interfaceAdjustLineItemReq._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adjustmentComments
public AdjustLineItemReq._FinalStage adjustmentComments(java.lang.String adjustmentComments)
Comments explaining the adjustment
- Specified by:
adjustmentCommentsin interfaceAdjustLineItemReq._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adjustmentComments
public AdjustLineItemReq._FinalStage adjustmentComments(java.util.Optional<java.lang.String> adjustmentComments)
Comments explaining the adjustment
- Specified by:
adjustmentCommentsin interfaceAdjustLineItemReq._FinalStage
-
build
public AdjustLineItemReq build()
- Specified by:
buildin interfaceAdjustLineItemReq._FinalStage
-
-