class

OpenAI::WebhookBatchCompleted

Inherits JSON::Serializable < Reference < Object

Sent when a batch API request has been completed.

Constructors

new(created_at : Int64 = 0, id : String = "", data : WebhookBatchCompletedData = WebhookBatchCompletedData.new, object : WebhookBatchCompletedObject | Nil = nil, type_value : WebhookBatchCompletedType = WebhookBatchCompletedType::BatchCompleted)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

The Unix timestamp (in seconds) of when the batch API request was completed.

Source
created_at=(created_at : Int64)

The Unix timestamp (in seconds) of when the batch API request was completed.

Source
data

Event data payload.

Source
data=(data : WebhookBatchCompletedData)

Event data payload.

Source
id

The unique ID of the event.

Source
id=(id : String)

The unique ID of the event.

Source
object

The object of the event. Always event.

Source
object=(object : WebhookBatchCompletedObject | Nil)

The object of the event. Always event.

Source
type_value

The type of the event. Always batch.completed.

Source
type_value=(type_value : WebhookBatchCompletedType)

The type of the event. Always batch.completed.

Source