INPUT_OBJECT

CostPolicyInput

link GraphQL Schema definition

1input CostPolicyInput {
2
3# If there were some previous shipments and they included costs,
4# the new cost will be full cost (from order) minus used costs.
5# Only true or null.
6allRemaining: Boolean
7
8# Set specific value.
9# It cannot exceed the whole order cost, but it can exceed the remaining cost for WH and cannot for DTC.
10# Examples:
11# DTC. Order value: 100, remaining value: 70. Valid new costs: 0, 20, 30. Invalid ones: 31, 100, 101
12# WH. Order value: 100, remaining value: 70. Valid new costs: 0, 20, 30, 31, 100. Invalid ones: 101
13# However, for discount value it behaves differently: it's not possible to exceed for WH as well.
14value: MonetaryValueInput
15
16# Set no shipping cost for this shipment. The same as value = 0.
17# Only true or null.
18none: Boolean
19}