Class: Arafa::Contracts::WhatsappContract
- Inherits:
-
Dry::Validation::Contract
- Object
- Dry::Validation::Contract
- Arafa::Contracts::WhatsappContract
- Defined in:
- lib/arafa/whatsapp/africas_talking.rb
Overview
Structural + business rules for an outgoing WhatsApp send (ยง1.13).
body's own shape is already validated by Whatsapp::MessageBody
(a Dry::Struct raises on construction), so this only covers the
envelope fields shared by every message kind.