Module protocol

Module protocol 

Source
Expand description

Protocol types for Versa communication including customer registration, webhooks, and misuse reporting. Core protocol types for Versa communication.

This module contains the fundamental types used in the Versa Protocol for communication between senders (merchants) and receivers (inbox providers).

§Key Types

  • [VersaMode]: Environment mode (prod/test) for Versa operations
  • [TransactionHandles]: Identifiers for routing receipts to the correct receivers
  • [ReceiptRegistrationRequest]/[ReceiptRegistrationResponse]: Receipt registration flow
  • [Receiver]/[ReceiverInstruction]: Receiver endpoint information
  • [Sender]: Merchant/sender information with branding details
  • [Checkout]: Receipt checkout information for receivers

§Submodules

  • [customer_registration]: Customer email verification and registration
  • [webhook]: Webhook delivery payloads and events
  • [misuse]: Misuse reporting functionality

Modules§

customer_registration
event
misuse
webhook

Structs§

Address
AssetRegistrationResponse
CheckRegistryResponseDeprecated
DEPRECATED: This struct is deprecated and will be removed in a future version.
Checkout
CheckoutRequest
ClientMetadata
EncryptionKey
Envelope
EventRegistrationRequest
Request to register a receipt with the Versa registry.
EventRegistrationResponse
Response from the Versa registry after registering a receipt.
EventRegistrationSummary
Handling
Information about how a receiver handles transactions
InitialEventRegistrationRequest
Org
PublicOrg
Public organization information
ReceiptRegistrationResponse
Response from the Versa registry after registering a receipt.
ReceiptRegistrationSummary
Receiver
Information about a receipt receiver.
ReceiverInfoDeprecated
ReceiverInstruction
ReceiverPayload
ReceiverQueryRequest
Request body for querying receivers
ReceiverQueryResponse
Response from receiver query
ReceiverQueryResult
Result of a receiver query
Sender
Information about the sender (merchant) of a receipt.
TransactionHandles
Identifiers for routing receipts to the correct receivers.
TransactionHandlesIter
UpdateEventRegistrationRequest

Enums§

CustomerRefManagedBy
ReceiverCategory
Receiver category classification
ReceiverFilter
Filter for querying receivers
VersaMode
Environment mode for Versa operations.

Type Aliases§

ReceiptRegistrationRequest
VersaEnv