All Release Notes
Added Messages for changes on Custom Fields and Types on Embedded Prices
2 July 2024
Composable Commerce
HTTP API
Enhancement
Pricing and DiscountsMessages/SubscriptionsGraphQL
You can now subscribe to Messages for changes to Custom Fields and Types on Embedded Prices.
Changes:
- [API] Added the following Messages: ProductPriceCustomFieldAdded, ProductPriceCustomFieldChanged, ProductPriceCustomFieldRemoved, ProductPriceCustomFieldsSet, and ProductPriceCustomFieldsRemoved.
- [GraphQL API] Added the following types to the GraphQL schema:
ProductPriceCustomFieldAdded
,ProductPriceCustomFieldChanged
,ProductPriceCustomFieldRemoved
,ProductPriceCustomFieldsSet
, andProductPriceCustomFieldsRemoved
.
The following changes were introduced in terms of GraphQL SDL:
type ProductPriceCustomFieldAdded implements MessagePayload {priceId: String!variantId: Int!staged: Boolean!name: String!value: Json!type: String!}type ProductPriceCustomFieldChanged implements MessagePayload {priceId: String!variantId: Int!staged: Boolean!name: String!value: Json!type: String!}type ProductPriceCustomFieldRemoved implements MessagePayload {priceId: String!variantId: Int!staged: Boolean!name: String!type: String!}type ProductPriceCustomFieldsSet implements MessagePayload {priceId: String!variantId: Int!staged: Boolean!customField: CustomFieldsType!oldTypeId: Stringtype: String!}type ProductPriceCustomFieldsRemoved implements MessagePayload {priceId: String!variantId: Int!staged: Boolean!type: String!}