@deliverart/sdk-js-order 2.37.0-dev.0 → 2.38.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 CHANGED
@@ -1060,3 +1060,22 @@ to show a correction and its replacement capture as one operator event, before
1060
1060
  paginating history. Legacy full reversals expose zero without a replacement.
1061
1061
 
1062
1062
  API-generated preview fixtures preserve the public response shape and timestamps; their signed preview tokens use an all-zero signature so they cannot authorize a command.
1063
+
1064
+ ### Amendment resource references
1065
+
1066
+ Amendment and settlement commands accept canonical API resource IRIs. For example,
1067
+ use `changes: { customer: '/customers/<uuid>' }`,
1068
+ `changes: { customerAddress: '/customers/address/<uuid>' }`, or
1069
+ `changes: { customerBusinessProfile: '/customers/business_profiles/<uuid>' }`.
1070
+ Product trees accept `menuItem`, `variant`, `salesMode` and `menuItemModifier`;
1071
+ the optional planning reference is `referenceBundle`. Receipt commands accept
1072
+ `payment` and `paymentConfig`; settlement execution accepts `sourcePayment` and
1073
+ `paymentConfig`. Destination choices accept `order` and `integration`.
1074
+
1075
+ Existing UUID aliases remain supported for compatibility, but callers must not
1076
+ supply two non-null forms of the same reference. Historical response identifiers,
1077
+ request ids and instruction ids remain UUIDs. The new
1078
+ `orderAmendmentDestinationChoiceInputSchema` describes writable IRI choices;
1079
+ `orderAmendmentDestinationChoiceSchema` continues to describe frozen UUID evidence.
1080
+ Canonical IRIs are validated by the shared SDK IRI parser and sent as strings.
1081
+ The API rechecks resource type, POS ownership and customer/catalog relationships.