@deliverart/sdk-js-order 2.40.3-dev.1 → 2.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/dist/index.cjs +927 -880
- package/dist/index.d.cts +6069 -1750
- package/dist/index.d.ts +6069 -1750
- package/dist/index.js +927 -884
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -66,19 +66,11 @@ type OrderPlanningMode = 'PLANNED' | 'FORCED'
|
|
|
66
66
|
`CreateOrderInput` and `CalculateOrderFeesInput` are also discriminated by `type`.
|
|
67
67
|
|
|
68
68
|
- `delivery` accepts fields such as `address`, `customerAddress`, `locationData`, `referenceBundle`, `deliveryTime`
|
|
69
|
-
- `collection` accepts `collectionTime`
|
|
69
|
+
- `collection` accepts `collectionTime`
|
|
70
70
|
- the legacy alias `take_away` is still accepted on write for backward compatibility
|
|
71
71
|
- `kitchen` does not accept delivery or collection scheduling fields
|
|
72
72
|
- all writable order inputs also accept `forceScheduling?: boolean` for internal operator-only retries that bypass slot/capacity validation
|
|
73
73
|
|
|
74
|
-
For a new collection order whose availability result requires an overlap, pass the
|
|
75
|
-
selected compatible bundle as `referenceBundle` (a `/bundles/{id}` IRI or SDK IRI
|
|
76
|
-
object). The API still validates that the bundle belongs to the same point of sale,
|
|
77
|
-
is non-deliverable, and can accept the collection at the requested time. Omitting
|
|
78
|
-
this optional field or sending `null` remains valid for ordinary collection
|
|
79
|
-
creation; the schema does not infer compatibility or select a bundle automatically.
|
|
80
|
-
The legacy `take_away` and `kitchen` write contracts do not gain this field.
|
|
81
|
-
|
|
82
74
|
`UpdateOrderInput` keeps common editable fields and enforces mutually exclusive delivery / collection scheduling fields.
|
|
83
75
|
|
|
84
76
|
## Order Requests
|