Hey. Could you advise how I can create an order with a shipping fee using java sdk
For example I try to create order with this code
final var order = new Builder(LOCATION).
customerId(customer).
discounts(lineItemDiscounts).
lineItems(lineItems).
fulfillments(
List.of(new OrderFulfillment.Builder().
type("SHIPMENT").
state("PROPOSED").
shipmentDetails(new OrderFulfillmentShipmentDetails.Builder().
trackingNumber(now + "").
carrier("UPS").
shippingType("Ground Home Delivery").
recipient(
new OrderFulfillmentRecipient.Builder().
customerId(customer).
build()
).
// is it from shipper side or from buyer? assuming that this notes is from shipper
shippingNote("Shipping note #" + now).
build()
).
build()
)
).
build();
I can’t find a field for the Fulfillment amount. In the end I want to have order with the Shipping amount. like on a picture