EntityViewサンプル – 注文プレビュー

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Ordersプラグインによって提供されたプロパティが追加されました:

OrderConfirmationId<=order.OrderConfirmationId OrderPlacedDate<=order.OrderPlacedDate Status<=order.Status PaymentStatus<=order.PaymentStatus ShopName<=order.ShopName CustomerEmail<=order.GetComponent().Email OrderTotal<=order.Totals.GrandTotal

EntityViewを取得するためのサンプル呼び出し:

http://{{ServiceHost}}/{{ShopsApi}}/GetEntityView()

本文:

{ "entityId":"{006fa25e-d3ca-4e05-97fb-55afd8568e2e}", "viewName":"Preview", "forAction":"" }

電話会議のサンプル結果:

{ "@odata.context": "http://localhost:5000/Api/$metadata#Sitecore.Commerce.EntityViews.EntityView", "@odata.type": "#Sitecore.Commerce.EntityViews.EntityView", "Name": "Preview", "Policies": , "DisplayName": "Preview", "EntityId": "{006fa25e-d3ca-4e05-97fb-55afd8568e2e}", "Action": "", "ItemId": "", "Properties": { "Name": "OrderConfirmationId", "Policies": , "DisplayName": "Order Confirmation Id", "Value": "{006fa25e-d3ca-4e05-97fb-55afd8568e2e}", "IsHidden": false, "OriginalType": "String", "IsReadOnly": false, "UiType": "" }, { "Name": "OrderPlacedDate", "Policies": , "DisplayName": "Placed Date", "Value": "8/19/2016 `9

`
PM", "IsHidden": false, "OriginalType": "DateTime", "IsReadOnly": false, "UiType": "" }, { "Name": "Status", "Policies": , "DisplayName": "Status", "Value": "Completed", "IsHidden": false, "OriginalType": "String", "IsReadOnly": false, "UiType": "" }, { "Name": "PaymentStatus", "Policies": , "DisplayName": "Payment Status", "Value": "Paid", "IsHidden": false, "OriginalType": "String", "IsReadOnly": false, "UiType": "" }, { "Name": "ShopName", "Policies": , "DisplayName": "Shop Name", "Value": "Storefront", "IsHidden": false, "OriginalType": "String", "IsReadOnly": false, "UiType": "" }, { "Name": "OrderTotal", "Policies": , "DisplayName": "Order Total", "Value": "USD1,034.00", "IsHidden": false, "OriginalType": "Money", "IsReadOnly": false, "UiType": "" }, { "Name": "CustomerEmail", "Policies": , "DisplayName": "Customer Email", "Value": "[email protected]", "IsHidden": false, "OriginalType": "String", "IsReadOnly": false, "UiType": "" } , "ChildViews": , "DisplayRank": 500, "UiHint": "Flat" }

この記事を改善するための提案がある場合は、 お知らせください!