{"$id":"https://buyerprotection.com.au/schemas/commerce-source-event/v1","$schema":"https://json-schema.org/draft/2020-12/schema","title":"BuyerProtection Commerce Source Event","type":"object","required":["recordType","eventId","deliveryId","merchantId","provider","sourceType","occurredAt","identityStored","addressStored","cardDataStored","rawPayloadStored","rawDigest"],"properties":{"recordType":{"const":"commerce_source_event"},"eventId":{"type":"string","pattern":"^bpcs_[a-f0-9]{24}$"},"deliveryId":{"type":"string"},"merchantId":{"type":"string"},"provider":{"const":"shopify"},"sourceType":{"enum":["order_paid","fulfillment","refund","app_uninstalled","customers_data_request","customers_redact"]},"sourceAuthenticity":{"enum":["authenticated_shopify_admin_graphql"]},"occurredAt":{"type":"string","format":"date-time"},"identityStored":{"const":false},"addressStored":{"const":false},"cardDataStored":{"const":false},"lineItemsStored":{"const":false},"rawPayloadStored":{"const":false},"rawDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}}}