All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.svix.kotlin.models.MessageIn.kt Maven / Gradle / Ivy

/**
* Svix API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.1
* 
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.svix.kotlin.models

import com.svix.kotlin.models.ApplicationIn

import com.squareup.moshi.Json

/**
 * 
 * @param eventType The event type's name
 * @param payload JSON payload to send as the request body of the webhook.  We also support sending non-JSON payloads. Please contact us for more information.
 * @param application 
 * @param channels List of free-form identifiers that endpoints can filter by
 * @param eventId Optional unique identifier for the message
 * @param payloadRetentionHours Optional number of hours to retain the message payload. Note that this is mutually exclusive with `payloadRetentionPeriod`.
 * @param payloadRetentionPeriod Optional number of days to retain the message payload. Defaults to 90. Note that this is mutually exclusive with `payloadRetentionHours`.
 * @param tags List of free-form tags that can be filtered by when listing messages
 * @param transformationsParams Extra parameters to pass to Transformations (for future use)
 */

data class MessageIn (
    /* The event type's name */
    @Json(name = "eventType")
    val eventType: kotlin.String,
    /* JSON payload to send as the request body of the webhook.  We also support sending non-JSON payloads. Please contact us for more information. */
    @Json(name = "payload")
    val payload: kotlin.Any,
    @Json(name = "application")
    val application: ApplicationIn? = null,
    /* List of free-form identifiers that endpoints can filter by */
    @Json(name = "channels")
    val channels: kotlin.collections.Set? = null,
    /* Optional unique identifier for the message */
    @Json(name = "eventId")
    val eventId: kotlin.String? = null,
    /* Optional number of hours to retain the message payload. Note that this is mutually exclusive with `payloadRetentionPeriod`. */
    @Json(name = "payloadRetentionHours")
    val payloadRetentionHours: kotlin.Long? = null,
    /* Optional number of days to retain the message payload. Defaults to 90. Note that this is mutually exclusive with `payloadRetentionHours`. */
    @Json(name = "payloadRetentionPeriod")
    val payloadRetentionPeriod: kotlin.Long? = null,
    /* List of free-form tags that can be filtered by when listing messages */
    @Json(name = "tags")
    val tags: kotlin.collections.Set? = null,
    /* Extra parameters to pass to Transformations (for future use) */
    @Json(name = "transformationsParams")
    val transformationsParams: kotlin.Any? = null
)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy