Bundle types
This list contains all query and inputs types for the bundle endpoints.
PriceBundle
Fields
- Name
id
- Type
- ID!
- Description
Unique identifier for the price bundle.
- Name
updated_at
- Label
TimeStamp!
- Description
Timestamp of when the price bundle was updated.
- Name
created_at
- Label
TimeStamp!
- Description
Timestamp of when the price bundle was created.
- Name
label
- Type
- String!
- Description
The price bundle label.
- Name
items
- Label
[PriceBundleItem!]!
- Description
The price bundle items.
- Name
products
- Label
[Product!]!
- Description
The price bundle products.
Request
query BundlesQuery($first: Int, $after: String, $query: String!){
priceBundles(query: "order_by:id order_dir:desc", after: "WzVE4OTA5LDEe/4OTA5XQ==", first: 10){
edges{
node{
id
label
created_at
items {
id
discount_value
quantity
...
}
...
}
}
}
}
InputPriceBundle
Fields
- Name
label
- Type
- String!
- Description
The price bundle label.
- Name
items
- Label
[InputPriceBundleItem!]!
- Description
The price bundle items.
Request
mutation mutationName($node: InputPriceBundle!) {
createPriceBundle(node: $node){
# PriceBundle fields
}
}
InputUpdatePriceBundle
Fields
- Name
label
- Type
- String!
- Description
The price bundle label.
- Name
items
- Label
[InputPriceBundleItem!]!
- Description
The price bundle items.
Request
mutation updateBundleMutation($node: InputUpdatePriceBundle!, $id: ID!){
updatePriceBundle(node: $node, id: $id){
# PriceBundle fields
}
}
PriceBundleItem
Fields
- Name
id
- Type
- ID!
- Description
Unique identifier for the price bundle item.
- Name
label
- Type
- String!
- Description
The price bundle label.
- Name
sticker_text
- Type
- String
- Description
The price bundle sticker text.
- Name
offer_text
- Type
- String
- Description
The price bundle offer text.
- Name
quantity
- Type
- Int!
- Description
The price bundle quantity.
- Name
discount_value
- Type
- Float!
- Description
The price bundle label.
- Name
discount_type
- Type
- AllDiscountType!
- Description
The price bundle label.
enum AllDiscountType {
percentage
fixed
item
}
InputPriceBundleItem
Fields
- Name
id
- Type
- ID!
- Description
Unique identifier for the price bundle item.
- Name
label
- Type
- String!
- Description
The price bundle label.
- Name
quantity
- Type
- Int!
- Description
The price bundle quantity.
- Name
discount_value
- Type
- Float!
- Description
The price bundle label.
- Name
discount_type
- Type
- AllDiscountType!
- Description
The price bundle label.
enum AllDiscountType {
percentage
fixed
item
}
PriceBundleConnection
Fields
- Name
pageInfo
- Type
- PageInfo!
- Description
Price bundle connection page info.
type PageInfo { hasNextPage: Boolean! hasPreviousPage: Boolean! startCursor: String endCursor: String }
- Name
edges
- Type
- [PriceBundleEdge]
- Description
The price bundle connection edges.
type PriceBundleEdge { node: PriceBundle cursor: String! }
PriceBundleSnapshot
Fields
- Name
id
- Type
- ID!
- Description
Unique identifier for the priceBundle snapshot.
- Name
value
- Type
- Float!
- Description
The priceBundle snapshot value.
- Name
discount_result
- Type
- Float!
- Description
The priceBundle snapshot result.
- Name
label
- Type
- String!
- Description
The priceBundle snapshot label
- Name
type
- Type
- AllDiscountType
- Description
The priceBundle snapshot type.
enum AllDiscountType { percentage fixed item }
- Name
updated_at
- Label
TimeStamp!
- Description
Timestamp of when the priceBundle snapshot was updated.
- Name
created_at
- Label
TimeStamp!
- Description
Timestamp of when the priceBundle snapshot was created.