This page provides the list of events and associated payload for the Cart microservice.
List of Events
SL.# | NAME | DESCRIPTION | PUBLISH LOCATION | ROUTING KEY | DURABILITY | PAYLOAD TYPE |
---|---|---|---|---|---|---|
1 | Create Cart | This event is triggered when a cart is created. | Topic: ecomm | cart.created | true | cartPayload |
2 | Update Cart | This event is triggered when a cart is updated. | Topic: ecomm | cart.updated | true | cartPayload |
3 | Delete Cart | This event is triggered when a cart is deleted. | Topic: ecomm | cart.deleted | true | cartPayload |
4 | Create Cart Item | This event is triggered when a cart item is created. | Topic: ecomm | cartitem.created | true | cartPayload |
5 | Update Cart Item | This event is triggered when a cart item is updated. | Topic: ecomm | cartitem.updated | true | cartPayload |
6 | Delete Cart Item | This event is triggered when a cart item is deleted. | Topic: ecomm | cartitem.deleted | true | cartPayload |
7 | Create Cart Payment | This event is triggered when a cart payment is created. | Topic: ecomm | cartpayment.created | true | cartPayload |
8 | Update Cart Payment | This event is triggered when a cart payment is updated. | Topic: ecomm | cartpayment.updated | true | cartPayload |
9 | Delete Cart Payment | This event is triggered when a cart payment is deleted. | Topic: ecomm | cartpayment.deleted | true | cartPayload |
10 | Create Cart Promotion | This event is triggered when a cart promotion is created. | Topic: ecomm | cartpromotion.created | true | cartPayload |
11 | Delete Cart Promotion | This event is triggered when a cart promotion is deleted. | Topic: ecomm | cartpromotion.deleted | true | cartPayload |
Payload Models
cartPayload
PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
---|---|---|---|
userId | long | Specifies the identifier of the user, who accesses the cart. | 123 |
cartId | long | Indicates the identifier of the cart, which is created, updated, or deleted. | 123 |
cartItemId | long | Indicates the identifier of the cartitem, which is created, updated, or deleted. | 123 |
paymentId | long | Indicates the identifier of the payment, which is created, updated, or deleted along with the cart. | 123 |
paymentType | string | Indicates the type of payment made for the cart. | credit card |
promotionId | string | Specifies the identifier of the promotion, which is created, updated, or deleted along with the cart. | promo123 |
skuIds[] | List [string] | Indicates the list of SKU IDs in the cartitem. | sku1 |
cartType | string | Specifies the type of the cart, which is associated with the user. | USER |
Revision History
2019-06-08 | PLK – Minor copyedits.
2019-05-20 | AM – Updated to a new table tool.
2019-04-06 | AN – Content updated for April 2019 release.
2019-01-21 | PLK – Content uploaded.