12 July 2024
OrdersGraphQL
We've added the
active field to ShippingMethod. With this addition, you can now activate or deactivate individual Shipping Methods, as needed. This change helps you to manage Shipping Methods more efficiently by allowing you to temporarily deactivate them when not in use. Previously, you had to remove the Shipping Methods and create them again.For all existing Shipping Methods, the
active field has been set to true. Now, when you create or update a Cart or Order, you can only use an active Shipping Method.Changes:
- [API] Added the Change Active update action to Shipping Methods.
- [API] Added
activefield to ShippingMethod and ShippingMethodDraft types. - [GraphQL API] Added
ChangeShippingMethodActivetype to the GraphQL schema. - [GraphQL API] Added
changeActiveinput field to theShippingMethodUpdateActiontype. - [GraphQL API] Added
activefield to theShippingMethodtype. - [GraphQL API] Added
activeinput field to theShippingMethodDrafttype.
The following changes were introduced in terms of GraphQL SDL:
extend type ShippingMethod {
active: Boolean!
}
extend input ShippingMethodDraft {
active: Boolean
}
extend input ShippingMethodUpdateAction {
changeActive: ChangeShippingMethodActive
}
input ChangeShippingMethodActive {
active: Boolean!
}