Class CustomLineItemReturnItemBuilder
- All Implemented Interfaces:
Builder<CustomLineItemReturnItem>
Example to create an instance using the builder pattern
CustomLineItemReturnItem customLineItemReturnItem = CustomLineItemReturnItem.builder()
.id("{id}")
.quantity(0.3)
.shipmentState(ReturnShipmentState.ADVISED)
.paymentState(ReturnPaymentState.NON_REFUNDABLE)
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.customLineItemId("{customLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomLineItemReturnItem with checking for non-null required valuesbuilds CustomLineItemReturnItem without checking for non-null required valuesUser-defined description for the return.createdAt
(ZonedDateTime createdAt) Date and time (UTC) the Return Item was intitially created.custom
(CustomFields custom) Custom Fields of the Return Item.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields of the Return Item.customLineItemId
(String customLineItemId) id
of the returned CustomLineItem.User-defined description for the return.Date and time (UTC) the Return Item was intitially created.Custom Fields of the Return Item.id
of the returned CustomLineItem.getId()
Unique identifier of the Return Item.getKey()
User-defined unique identifier of the CustomLineItemReturnItem.Date and time (UTC) the Return Item was last updated.Payment status of the Return Item:Number of Custom Line Items returned.Shipment status of the Return Item.Unique identifier of the Return Item.User-defined unique identifier of the CustomLineItemReturnItem.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Return Item was last updated.of()
factory method for an instance of CustomLineItemReturnItemBuilderof
(CustomLineItemReturnItem template) create builder for CustomLineItemReturnItem instancepaymentState
(ReturnPaymentState paymentState) Payment status of the Return Item:Number of Custom Line Items returned.shipmentState
(ReturnShipmentState shipmentState) Shipment status of the Return Item.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Return Item.
-
Constructor Details
-
CustomLineItemReturnItemBuilder
public CustomLineItemReturnItemBuilder()
-
-
Method Details
-
id
Unique identifier of the Return Item.
- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the CustomLineItemReturnItem.
- Parameters:
key
- value to be set- Returns:
- Builder
-
quantity
Number of Custom Line Items returned.
- Parameters:
quantity
- value to be set- Returns:
- Builder
-
comment
User-defined description for the return.
- Parameters:
comment
- value to be set- Returns:
- Builder
-
shipmentState
Shipment status of the Return Item.
- Parameters:
shipmentState
- value to be set- Returns:
- Builder
-
paymentState
Payment status of the Return Item:
NonRefundable
, for items in theAdvised
ReturnShipmentStateInitial
, for items in theReturned
ReturnShipmentState
- Parameters:
paymentState
- value to be set- Returns:
- Builder
-
custom
public CustomLineItemReturnItemBuilder custom(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields of the Return Item.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public CustomLineItemReturnItemBuilder withCustom(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Return Item.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields of the Return Item.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the Return Item was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Return Item was intitially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
customLineItemId
id
of the returned CustomLineItem.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Return Item.
- Returns:
- id
-
getKey
User-defined unique identifier of the CustomLineItemReturnItem.
- Returns:
- key
-
getQuantity
Number of Custom Line Items returned.
- Returns:
- quantity
-
getComment
User-defined description for the return.
- Returns:
- comment
-
getShipmentState
Shipment status of the Return Item.
- Returns:
- shipmentState
-
getPaymentState
Payment status of the Return Item:
NonRefundable
, for items in theAdvised
ReturnShipmentStateInitial
, for items in theReturned
ReturnShipmentState
- Returns:
- paymentState
-
getCustom
Custom Fields of the Return Item.
- Returns:
- custom
-
getLastModifiedAt
Date and time (UTC) the Return Item was last updated.
- Returns:
- lastModifiedAt
-
getCreatedAt
Date and time (UTC) the Return Item was intitially created.
- Returns:
- createdAt
-
getCustomLineItemId
id
of the returned CustomLineItem.- Returns:
- customLineItemId
-
build
builds CustomLineItemReturnItem with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomLineItemReturnItem>
- Returns:
- CustomLineItemReturnItem
-
buildUnchecked
builds CustomLineItemReturnItem without checking for non-null required values- Returns:
- CustomLineItemReturnItem
-
of
factory method for an instance of CustomLineItemReturnItemBuilder- Returns:
- builder
-
of
create builder for CustomLineItemReturnItem instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-