asyncapi: 3.0.0 info: title: customer-payments Domain Events version: 1.0.0 contact: name: customer-payments maintainers url: https://github.com/IQVO/customer-payments email: customer-payments@iqvo.example.com license: name: UNLICENSED tags: - name: customer-payments description: The customer-payments bounded context (storefront domain, Generic subdomain). - name: consumed description: Events produced by sibling contexts that this service consumes. description: |- Event catalog for the **customer-payments** bounded context of the storefront domain: it authorizes a checkout session's payment at the provider, captures or releases each shipment group's allocation as fulfilment facts arrive, and refunds lost or returned packages. The service stores PSP tokens only, never a card number. **Published.** Eight events on `retailnetwork.customer-payments.events` through a **transactional outbox** (state and already-encoded events are written in ONE database transaction; an always-on relay drains them to Kafka, at-least-once, the CloudEvents `id` is stored with the outbox row). Every published event is analytics-only by design for its consumers (no sibling reacts to them). **Consumed.** CheckoutCompleted from checkout, FulfillmentShipped, FulfillmentCancelled and FulfillmentUnsourceable from order-sourcing, PackageLost and PackageReturned from shipping-and-tracking. Facts for an order that is not yet bound are parked and applied when CheckoutCompleted binds the order; facts still unknown after 24 hours are dead-lettered with an alert. Messages list only the fields this service relies on; unknown fields are ignored. Each consumer group name comes from a mandatory environment variable (`CHECKOUT_CONSUMER_GROUP`, `ORDER_SOURCING_CONSUMER_GROUP`, `SHIPPING_AND_TRACKING_CONSUMER_GROUP`). A handled event whose payload can never be applied is dead-lettered at once to `.dlq`; a transient failure is retried with backoff and then dead-lettered the same way; a message that is not a CloudEvent, or of an unknown type, is skipped. Parked facts that stay unbound for 24 hours are also written, as a plain JSON object keyed by order id (not a CloudEvent), to `retailnetwork.customer-payments.unbound-facts.dlq`. **Envelope (mandatory).** CloudEvents 1.0, structured content mode, Kafka header `content-type: application/cloudevents+json; charset=UTF-8`. `specversion`, `id`, `source` (`/retailnetwork/customer-payments`), `type`, `subject` (authorizationId, or refundId for refund events), `time`, `datacontenttype` (`application/json`) and `dataschema` (`urn:retailnetwork:customer-payments:events::v1`) are all required. Kafka key = the subject. Type = `com.retailnetwork.storefront.customer-payments..`. A breaking payload change is a new `.v2` type, never a mutation. Dispatch on the full `type`, ignore unknown types, dedupe on `id`. **Conventions.** `data` is camelCase; instants are RFC 3339 UTC; amounts are integer minor units; enums are UPPER_SNAKE; optional fields are omitted when absent (never null). servers: production: host: '{brokers}' protocol: kafka description: Retail-network Kafka broker (host supplied by the deployment environment via KAFKA_BROKERS). variables: brokers: default: kafka.retail-network.internal:9092 defaultContentType: application/cloudevents+json channels: customerPaymentsEvents: address: retailnetwork.customer-payments.events title: customer-payments integration topic description: This service's integration topic. Written by the outbox relay; key = subject. Every message carries the CloudEvents content-type header. messages: PaymentAuthorized: $ref: '#/components/messages/PaymentAuthorized' PaymentCaptured: $ref: '#/components/messages/PaymentCaptured' PaymentReleased: $ref: '#/components/messages/PaymentReleased' PaymentAuthorizationExpired: $ref: '#/components/messages/PaymentAuthorizationExpired' PaymentDeclined: $ref: '#/components/messages/PaymentDeclined' PaymentReauthorized: $ref: '#/components/messages/PaymentReauthorized' RefundIssued: $ref: '#/components/messages/RefundIssued' RefundFailed: $ref: '#/components/messages/RefundFailed' checkoutEvents: address: retailnetwork.checkout.events title: checkout integration topic (consumed) description: Produced by checkout; consumed with its own consumer group. Idempotent on the CloudEvents id (inbox), dispatch on the full type, dead-letter on poison messages. messages: CheckoutCompleted: $ref: '#/components/messages/ConsumedCheckoutCompleted' orderSourcingEvents: address: retailnetwork.order-sourcing.events title: order-sourcing integration topic (consumed) description: Produced by order-sourcing; consumed with its own consumer group. Facts for an unbound order are parked, then applied on bind. messages: FulfillmentShipped: $ref: '#/components/messages/ConsumedFulfillmentShipped' FulfillmentCancelled: $ref: '#/components/messages/ConsumedFulfillmentCancelled' FulfillmentUnsourceable: $ref: '#/components/messages/ConsumedFulfillmentUnsourceable' shippingAndTrackingEvents: address: retailnetwork.shipping-and-tracking.events title: shipping-and-tracking integration topic (consumed) description: Produced by shipping-and-tracking; consumed with its own consumer group. Refund by tracking number. messages: PackageLost: $ref: '#/components/messages/ConsumedPackageLost' PackageReturned: $ref: '#/components/messages/ConsumedPackageReturned' operations: publishCustomerPaymentsEvents: action: send title: Publish customer-payments events summary: Publish the eight payment and refund events through the transactional outbox. description: The service sends the events of the PaymentAuthorization and Refund aggregates to `retailnetwork.customer-payments.events`. Consumers route on the full `type`. tags: - name: customer-payments channel: $ref: '#/channels/customerPaymentsEvents' messages: - $ref: '#/channels/customerPaymentsEvents/messages/PaymentAuthorized' - $ref: '#/channels/customerPaymentsEvents/messages/PaymentCaptured' - $ref: '#/channels/customerPaymentsEvents/messages/PaymentReleased' - $ref: '#/channels/customerPaymentsEvents/messages/PaymentAuthorizationExpired' - $ref: '#/channels/customerPaymentsEvents/messages/PaymentDeclined' - $ref: '#/channels/customerPaymentsEvents/messages/PaymentReauthorized' - $ref: '#/channels/customerPaymentsEvents/messages/RefundIssued' - $ref: '#/channels/customerPaymentsEvents/messages/RefundFailed' receiveCheckoutEvents: action: receive title: Receive checkout events summary: Consume CheckoutCompleted from checkout. description: CheckoutCompleted binds the order id to the session's authorization and applies any parked fulfilment facts. tags: - name: consumed channel: $ref: '#/channels/checkoutEvents' messages: - $ref: '#/channels/checkoutEvents/messages/CheckoutCompleted' receiveOrderSourcingEvents: action: receive title: Receive order-sourcing events summary: Consume FulfillmentShipped, FulfillmentCancelled, FulfillmentUnsourceable from order-sourcing. description: Shipped captures the group's allocation and records the tracking number; Cancelled and Unsourceable release it. Facts for an unbound order are parked. tags: - name: consumed channel: $ref: '#/channels/orderSourcingEvents' messages: - $ref: '#/channels/orderSourcingEvents/messages/FulfillmentShipped' - $ref: '#/channels/orderSourcingEvents/messages/FulfillmentCancelled' - $ref: '#/channels/orderSourcingEvents/messages/FulfillmentUnsourceable' receiveShippingAndTrackingEvents: action: receive title: Receive shipping-and-tracking events summary: Consume PackageLost and PackageReturned from shipping-and-tracking. description: Each event refunds the captured allocation identified by the tracking number (reason LOST or RETURNED_TO_SENDER). tags: - name: consumed channel: $ref: '#/channels/shippingAndTrackingEvents' messages: - $ref: '#/channels/shippingAndTrackingEvents/messages/PackageLost' - $ref: '#/channels/shippingAndTrackingEvents/messages/PackageReturned' components: messages: PaymentAuthorized: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentAuthorized title: PaymentAuthorized summary: PaymentAuthorized event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorized`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentAuthorizedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorized subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentAuthorized:v1 data: authorizationId: pay-1 checkoutSessionId: cs-1 currency: BRL totalMinor: 10000 expiresAt: '2026-10-31T09:00:00Z' allocations: - groupNo: 1 amountMinor: 7000 - groupNo: 2 amountMinor: 3000 PaymentCaptured: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentCaptured title: PaymentCaptured summary: PaymentCaptured event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentCaptured`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentCapturedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentCaptured subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentCaptured:v1 data: authorizationId: pay-1 orderId: ord-1 groupNo: 1 amountMinor: 7000 PaymentReleased: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentReleased title: PaymentReleased summary: PaymentReleased event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReleased`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentReleasedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReleased subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentReleased:v1 data: authorizationId: pay-1 orderId: ord-1 groupNo: 2 amountMinor: 3000 reason: CANCELLED PaymentAuthorizationExpired: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentAuthorizationExpired title: PaymentAuthorizationExpired summary: PaymentAuthorizationExpired event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorizationExpired`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentAuthorizationExpiredEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorizationExpired subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentAuthorizationExpired:v1 data: authorizationId: pay-1 orderId: ord-1 expiredAt: '2026-10-24T09:00:00Z' PaymentDeclined: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentDeclined title: PaymentDeclined summary: PaymentDeclined event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentDeclined`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentDeclinedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentDeclined subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentDeclined:v1 data: authorizationId: pay-1 checkoutSessionId: cs-1 reason: CARD_DECLINED at: '2026-10-24T09:00:00Z' PaymentReauthorized: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: PaymentReauthorized title: PaymentReauthorized summary: PaymentReauthorized event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReauthorized`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/PaymentReauthorizedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReauthorized subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:PaymentReauthorized:v1 data: authorizationId: pay-1 orderId: ord-1 expiresAt: '2026-11-07T09:00:00Z' providerAuthorizationId: hold-2 RefundIssued: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: RefundIssued title: RefundIssued summary: RefundIssued event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.refund.RefundIssued`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/RefundIssuedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.refund.RefundIssued subject: ref-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:RefundIssued:v1 data: refundId: ref-1 orderId: ord-1 authorizationId: pay-1 groupNo: 1 amountMinor: 7000 reason: LOST RefundFailed: x-no-consumer-reason: "analytics-only by design (ADR 0003, model gap H9): published on retailnetwork.customer-payments.events, but no sibling context reacts to it" name: RefundFailed title: RefundFailed summary: RefundFailed event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.customer-payments.refund.RefundFailed`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/RefundFailedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/customer-payments type: com.retailnetwork.storefront.customer-payments.refund.RefundFailed subject: ref-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:customer-payments:events:RefundFailed:v1 data: refundId: ref-1 orderId: ord-1 authorizationId: pay-1 groupNo: 1 code: ACCOUNT_CLOSED attempts: 5 final: true ConsumedCheckoutCompleted: name: CheckoutCompleted title: Consumed CheckoutCompleted summary: ConsumedCheckoutCompleted event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.storefront.checkout.checkoutsession.CheckoutCompleted`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedCheckoutCompletedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/checkout type: com.retailnetwork.storefront.checkout.checkoutsession.CheckoutCompleted subject: pay-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:checkout:events:CheckoutCompleted:v1 data: sessionId: cs-1 orderId: ord-1 authorizationId: pay-1 ConsumedFulfillmentShipped: name: FulfillmentShipped title: Consumed FulfillmentShipped summary: ConsumedFulfillmentShipped event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentShipped`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedFulfillmentShippedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/order-sourcing type: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentShipped subject: ord-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:order-sourcing:events:FulfillmentShipped:v1 data: orderId: ord-1 groupNo: 1 trackingNumbers: - TRK-1 shippedAt: '2026-10-24T09:00:00Z' ConsumedFulfillmentCancelled: name: FulfillmentCancelled title: Consumed FulfillmentCancelled summary: ConsumedFulfillmentCancelled event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedFulfillmentCancelledEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/order-sourcing type: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled subject: ord-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:order-sourcing:events:FulfillmentCancelled:v1 data: orderId: ord-1 groupNo: 2 ConsumedFulfillmentUnsourceable: name: FulfillmentUnsourceable title: Consumed FulfillmentUnsourceable summary: ConsumedFulfillmentUnsourceable event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentUnsourceable`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedFulfillmentUnsourceableEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/order-sourcing type: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentUnsourceable subject: ord-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:order-sourcing:events:FulfillmentUnsourceable:v1 data: orderId: ord-1 groupNo: 2 ConsumedPackageLost: name: PackageLost title: Consumed PackageLost summary: ConsumedPackageLost event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.logistics.shipping-and-tracking.journey.PackageLost`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedPackageLostEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/shipping-and-tracking type: com.retailnetwork.logistics.shipping-and-tracking.journey.PackageLost subject: ord-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:shipping-and-tracking:events:PackageLost:v1 data: orderId: ord-1 trackingNumber: TRK-1 ConsumedPackageReturned: name: PackageReturned title: Consumed PackageReturned summary: ConsumedPackageReturned event. description: CloudEvents 1.0 structured event of type `com.retailnetwork.logistics.shipping-and-tracking.journey.PackageReturned`. contentType: application/cloudevents+json payload: $ref: '#/components/schemas/ConsumedPackageReturnedEvent' examples: - name: example payload: specversion: '1.0' id: 9f7c2a1e-4b3d-4c5a-8e6f-1a2b3c4d5e6f source: /retailnetwork/shipping-and-tracking type: com.retailnetwork.logistics.shipping-and-tracking.journey.PackageReturned subject: ord-1 time: '2026-10-26T12:00:00Z' datacontenttype: application/json dataschema: urn:retailnetwork:shipping-and-tracking:events:PackageReturned:v1 data: orderId: ord-1 trackingNumber: TRK-1 schemas: PaymentAuthorizedData: type: object required: - authorizationId - checkoutSessionId - currency - totalMinor - allocations - expiresAt properties: authorizationId: type: string checkoutSessionId: type: string currency: type: string totalMinor: type: integer minimum: 0 expiresAt: type: string format: date-time allocations: type: array items: type: object required: - groupNo - amountMinor properties: groupNo: type: integer minimum: 1 amountMinor: type: integer minimum: 0 description: Wire payload (CloudEvents `data`, camelCase). PaymentAuthorizedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorized subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentAuthorized:v1 data: $ref: '#/components/schemas/PaymentAuthorizedData' PaymentCapturedData: type: object required: - authorizationId - groupNo - amountMinor properties: authorizationId: type: string orderId: type: string groupNo: type: integer minimum: 1 amountMinor: type: integer minimum: 0 description: Wire payload (CloudEvents `data`, camelCase). PaymentCapturedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentCaptured subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentCaptured:v1 data: $ref: '#/components/schemas/PaymentCapturedData' PaymentReleasedData: type: object required: - authorizationId - groupNo - amountMinor - reason properties: authorizationId: type: string orderId: type: string groupNo: type: integer minimum: 1 amountMinor: type: integer minimum: 0 reason: type: string enum: - CANCELLED - UNSOURCEABLE - VOIDED - EXPIRED description: Wire payload (CloudEvents `data`, camelCase). PaymentReleasedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReleased subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentReleased:v1 data: $ref: '#/components/schemas/PaymentReleasedData' PaymentAuthorizationExpiredData: type: object required: - authorizationId - expiredAt properties: authorizationId: type: string orderId: type: string expiredAt: type: string format: date-time description: Wire payload (CloudEvents `data`, camelCase). PaymentAuthorizationExpiredEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorizationExpired subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentAuthorizationExpired:v1 data: $ref: '#/components/schemas/PaymentAuthorizationExpiredData' PaymentDeclinedData: type: object required: - authorizationId - checkoutSessionId - reason - at properties: authorizationId: type: string checkoutSessionId: type: string reason: type: string at: type: string format: date-time description: Wire payload (CloudEvents `data`, camelCase). PaymentDeclinedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentDeclined subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentDeclined:v1 data: $ref: '#/components/schemas/PaymentDeclinedData' PaymentReauthorizedData: type: object required: - authorizationId - expiresAt - providerAuthorizationId properties: authorizationId: type: string orderId: type: string expiresAt: type: string format: date-time providerAuthorizationId: type: string description: Wire payload (CloudEvents `data`, camelCase). PaymentReauthorizedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReauthorized subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:PaymentReauthorized:v1 data: $ref: '#/components/schemas/PaymentReauthorizedData' RefundIssuedData: type: object required: - refundId - orderId - authorizationId - amountMinor - reason properties: refundId: type: string orderId: type: string authorizationId: type: string groupNo: type: integer minimum: 1 description: Omitted for an order-level refund. amountMinor: type: integer minimum: 1 reason: type: string enum: - LOST - RETURNED_TO_SENDER - MANUAL description: Wire payload (CloudEvents `data`, camelCase). RefundIssuedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.refund.RefundIssued subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:RefundIssued:v1 data: $ref: '#/components/schemas/RefundIssuedData' RefundFailedData: type: object required: - refundId - orderId - authorizationId - code - attempts - final properties: refundId: type: string orderId: type: string authorizationId: type: string groupNo: type: integer minimum: 1 description: Omitted for an order-level refund. code: type: string attempts: type: integer minimum: 1 maximum: 5 final: type: boolean description: true when the 5 attempts are used (operator action needed). description: Wire payload (CloudEvents `data`, camelCase). RefundFailedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/customer-payments type: type: string const: com.retailnetwork.storefront.customer-payments.refund.RefundFailed subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:customer-payments:events:RefundFailed:v1 data: $ref: '#/components/schemas/RefundFailedData' CheckoutCompletedData: type: object required: - orderId - authorizationId properties: sessionId: type: string orderId: type: string authorizationId: type: string description: The fields this service reads (the producer's payload carries more). ConsumedCheckoutCompletedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/checkout type: type: string const: com.retailnetwork.storefront.checkout.checkoutsession.CheckoutCompleted subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:checkout:events:CheckoutCompleted:v1 data: $ref: '#/components/schemas/CheckoutCompletedData' FulfillmentShippedData: type: object required: - orderId - groupNo properties: orderId: type: string groupNo: type: integer minimum: 1 trackingNumbers: type: array items: type: string shippedAt: type: string format: date-time description: The fields this service reads (the producer's payload carries more). ConsumedFulfillmentShippedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/order-sourcing type: type: string const: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentShipped subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:order-sourcing:events:FulfillmentShipped:v1 data: $ref: '#/components/schemas/FulfillmentShippedData' FulfillmentCancelledData: type: object required: - orderId - groupNo properties: orderId: type: string groupNo: type: integer minimum: 1 description: The fields this service reads (the producer's payload carries more). ConsumedFulfillmentCancelledEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/order-sourcing type: type: string const: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:order-sourcing:events:FulfillmentCancelled:v1 data: $ref: '#/components/schemas/FulfillmentCancelledData' FulfillmentUnsourceableData: type: object required: - orderId - groupNo properties: orderId: type: string groupNo: type: integer minimum: 1 description: The fields this service reads (the producer's payload carries more). ConsumedFulfillmentUnsourceableEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/order-sourcing type: type: string const: com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentUnsourceable subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:order-sourcing:events:FulfillmentUnsourceable:v1 data: $ref: '#/components/schemas/FulfillmentUnsourceableData' PackageLostData: type: object required: - orderId - trackingNumber properties: orderId: type: string trackingNumber: type: string minLength: 1 description: The fields this service reads (the producer's payload carries more). ConsumedPackageLostEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/shipping-and-tracking type: type: string const: com.retailnetwork.logistics.shipping-and-tracking.journey.PackageLost subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:shipping-and-tracking:events:PackageLost:v1 data: $ref: '#/components/schemas/PackageLostData' PackageReturnedData: type: object required: - orderId - trackingNumber properties: orderId: type: string trackingNumber: type: string minLength: 1 description: The fields this service reads (the producer's payload carries more). ConsumedPackageReturnedEvent: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: CloudEvents id (UUID); stable across relay retries. Consumers dedupe on it. source: type: string const: /retailnetwork/shipping-and-tracking type: type: string const: com.retailnetwork.logistics.shipping-and-tracking.journey.PackageReturned subject: type: string description: Also the Kafka message key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string const: urn:retailnetwork:shipping-and-tracking:events:PackageReturned:v1 data: $ref: '#/components/schemas/PackageReturnedData'