注文イベント
注文イベントインタラクションは、新規注文、進行中の注文、または完了した注文を管理するために顧客が実行したアクションを取得する E コマースイベントです。
購入注文の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1PurchaseOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.purchase(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文の事前注文の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1PreOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.preorder(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文のキャンセルの例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1CancelOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.cancel(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文の発送の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1ShipOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.ship(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文の配送の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1DeliverOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.deliver(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文の返品の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1ReturnOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.returnOrder(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)注文の交換の例
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| order | 注文属性 | 必須。1 つの注文属性値。 |
1ExchangeOrderEvent(
2 order: Order(
3 id: "order-1",
4 totalValue: 9.99,
5 currency: "USD",
6 attributes: [
7 "PROMO_CODE": "HELLO"
8 ],
9 lineItems: [
10 LineItem(
11 catalogObjectType: "Product",
12 catalogObjectId: "product-11",
13 quantity: 1,
14 price: 20,
15 currency: "USD",
16 attributes: [
17 "gift_wrap": true
18 ]
19 )
20 ]
21 )
22)1OrderEvent.exchange(
2 order = Order(
3 id = "order-1",
4 totalValue = 9.99,
5 currency = "USD",
6 attributes = mapOf(
7 "PROMO_CODE" to "HELLO"
8 ),
9 lineItems = listOf(
10 LineItem(
11 catalogObjectId = "product-1",
12 catalogObjectType = "Product",
13 quantity = 1,
14 price = 20.0,
15 currency = "USD",
16 attributes = mapOf(
17 "gift_wrap" to true
18 )
19 )
20 )
21 )
22)