-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPD-34676 Commerce site init data-sets JSONs
- Loading branch information
1 parent
6d0a45f
commit 12c8e9f
Showing
4 changed files
with
483 additions
and
0 deletions.
There are no files selected for viewing
132 changes: 132 additions & 0 deletions
132
...itializer/src/main/resources/site-initializer/data-sets/pending-order-items/data-set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"dataSet": { | ||
"externalReferenceCode": "commerce-pending-order-items-data-set", | ||
"label": "Pending Order Items", | ||
"restApplication": "/headless-commerce-delivery-cart/v1.0", | ||
"restEndpoint": "/v1.0/carts/{cartId}/cart-items", | ||
"restSchema": "CartItem" | ||
}, | ||
"views": [ | ||
{ | ||
"actions": [ | ||
{ | ||
"confirmationMessage_i18n": { | ||
}, | ||
"icon": "view", | ||
"label_i18n": { | ||
"en_US": "View" | ||
}, | ||
"method": "", | ||
"modalSize": "", | ||
"permissionKey": "", | ||
"title_i18n": { | ||
}, | ||
"type": "link", | ||
"url": "{productURLs.en_US}" | ||
}, | ||
{ | ||
"confirmationMessage_i18n": { | ||
}, | ||
"icon": "trash", | ||
"label_i18n": { | ||
"en_US": "Remove" | ||
}, | ||
"method": "DELETE", | ||
"modalSize": "", | ||
"permissionKey": "", | ||
"title_i18n": { | ||
}, | ||
"type": "async", | ||
"url": "/o/headless-commerce-delivery-cart/v1.0/cart-items/{id}" | ||
} | ||
], | ||
"externalReferenceCode": "commerce-pending-order-items-data-set-view", | ||
"label": "Pending Order Items View", | ||
"visualizationModes": { | ||
"table": [ | ||
{ | ||
"label_i18n": { | ||
"en_US": "" | ||
}, | ||
"name": "thumbnail", | ||
"renderer": "image", | ||
"sortable": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "SKU" | ||
}, | ||
"name": "sku", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Name" | ||
}, | ||
"name": "name", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "List Price" | ||
}, | ||
"name": "price.priceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Promotion Price" | ||
}, | ||
"name": "price.promoPriceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Discount" | ||
}, | ||
"name": "price.discountFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Quantity" | ||
}, | ||
"name": "quantity", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "integer" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "UOM" | ||
}, | ||
"name": "skuUnitOfMeasure.name", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Total" | ||
}, | ||
"name": "price.finalPriceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
117 changes: 117 additions & 0 deletions
117
...te-initializer/src/main/resources/site-initializer/data-sets/pending-orders/data-set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"dataSet": { | ||
"externalReferenceCode": "commerce-pending-orders-data-set", | ||
"label": "Pending Orders", | ||
"restApplication": "/headless-commerce-delivery-cart/v1.0", | ||
"restEndpoint": "/v1.0/channels/{channelId}/carts", | ||
"restSchema": "Cart" | ||
}, | ||
"views": [ | ||
{ | ||
"actions": [ | ||
{ | ||
"confirmationMessage_i18n": { | ||
}, | ||
"icon": "view", | ||
"label_i18n": { | ||
"en_US": "View" | ||
}, | ||
"method": "", | ||
"modalSize": "", | ||
"permissionKey": "", | ||
"title_i18n": { | ||
}, | ||
"type": "link", | ||
"url": "cart/{id}" | ||
} | ||
], | ||
"externalReferenceCode": "commerce-pending-orders-data-set-view", | ||
"label": "Pending Orders View", | ||
"visualizationModes": { | ||
"table": [ | ||
{ | ||
"label_i18n": { | ||
"en_US": "Order ID" | ||
}, | ||
"name": "id", | ||
"renderer": "actionLink", | ||
"sortable": true, | ||
"type": "integer" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Order Name" | ||
}, | ||
"name": "name", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Order Date" | ||
}, | ||
"name": "createDate", | ||
"renderer": "Date", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "ERC" | ||
}, | ||
"name": "externalReferenceCode", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Purchase Order Number" | ||
}, | ||
"name": "purchaseOrderNumber", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Account" | ||
}, | ||
"name": "account", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Amount" | ||
}, | ||
"name": "summary.totalFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Created by" | ||
}, | ||
"name": "author", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Status" | ||
}, | ||
"name": "workflowStatusInfo.label_i18n", | ||
"renderer": "label", | ||
"sortable": true, | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
117 changes: 117 additions & 0 deletions
117
...nitializer/src/main/resources/site-initializer/data-sets/placed-order-items/data-set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"dataSet": { | ||
"externalReferenceCode": "commerce-placed-order-items-data-set", | ||
"label": "Placed Order Items", | ||
"restApplication": "/headless-commerce-delivery-order/v1.0", | ||
"restEndpoint": "/v1.0/channels/{placedOrderId}/placed-order-items", | ||
"restSchema": "PlacedOrderItem" | ||
}, | ||
"views": [ | ||
{ | ||
"actions": [ | ||
{ | ||
"confirmationMessage_i18n": { | ||
}, | ||
"icon": "view", | ||
"label_i18n": { | ||
"en_US": "View" | ||
}, | ||
"method": "", | ||
"modalSize": "", | ||
"permissionKey": "", | ||
"title_i18n": { | ||
}, | ||
"type": "link", | ||
"url": "../p/{productURLs.en_US}" | ||
} | ||
], | ||
"externalReferenceCode": "commerce-placed-order-items-data-set-view", | ||
"label": "Placed Order Items View", | ||
"visualizationModes": { | ||
"table": [ | ||
{ | ||
"label_i18n": { | ||
"en_US": "" | ||
}, | ||
"name": "thumbnail", | ||
"renderer": "image", | ||
"sortable": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "SKU" | ||
}, | ||
"name": "sku", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Name" | ||
}, | ||
"name": "name", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "List Price" | ||
}, | ||
"name": "price.priceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Promotion Price" | ||
}, | ||
"name": "price.promoPriceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Discount" | ||
}, | ||
"name": "price.discountFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Quantity" | ||
}, | ||
"name": "quantity", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "integer" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "UOM" | ||
}, | ||
"name": "skuUnitOfMeasure.name", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"label_i18n": { | ||
"en_US": "Total" | ||
}, | ||
"name": "price.finalPriceFormatted", | ||
"renderer": "default", | ||
"sortable": true, | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.