Class: Pinnacle::Types::SendFormParams

Inherits:
Internal::Types::Model show all
Extended by:
Internal::Types::Union
Defined in:
lib/pinnacle/types/send_form_params.rb

Overview

Send a form to a recipient over SMS or RCS in one call, or mint a standalone submission URL when ‘to` is omitted. Picks the SMS or RCS branch based on the shape of `from` (agent_* → RCS, E.164 → SMS).

When ‘to` is provided, Pinnacle dispatches the message immediately and the recipient is recorded on the response (`submission.to` is set to the same E.164 number, and `message_id` is the id of the outbound SMS/RCS).

When ‘to` is omitted, no message is sent — `submission.to` and `message_id` are both `null` and only the submission URL is returned.

Method Summary

Methods included from Internal::Types::Union

coerce, discriminant, load, member, members, type_member?

Methods included from Internal::Types::Type

#coerce, #strict!, #strict?

Methods included from Internal::JSON::Serializable

#dump, #load

Methods inherited from Internal::Types::Model

#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h

Constructor Details

This class inherits a constructor from Pinnacle::Internal::Types::Model