-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathembed_session_generated_webhook_event.rb
More file actions
83 lines (71 loc) · 3.16 KB
/
Copy pathembed_session_generated_webhook_event.rb
File metadata and controls
83 lines (71 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# frozen_string_literal: true
module Lithic
module Models
class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel
# @!attribute account_token
# The token of the account associated with the card
#
# @return [String]
required :account_token, String
# @!attribute card_token
# The token of the card associated with the embed session
#
# @return [String]
required :card_token, String
# @!attribute device_details
# Details about the request that generated the embed session
#
# @return [Lithic::Models::EmbedSessionGeneratedWebhookEvent::DeviceDetails]
required :device_details, -> { Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails }
# @!attribute event_type
# The type of event
#
# @return [Symbol, :"embed.session_generated"]
required :event_type, const: :"embed.session_generated"
# @!attribute session_id
# The identifier shared by webhook events for the same embed session.
#
# @return [String]
required :session_id, String
# @!attribute session_type
# The type of embed session that was generated
#
# @return [Symbol, Lithic::Models::EmbedSessionGeneratedWebhookEvent::SessionType]
required :session_type, enum: -> { Lithic::EmbedSessionGeneratedWebhookEvent::SessionType }
# @!method initialize(account_token:, card_token:, device_details:, session_id:, session_type:, event_type: :"embed.session_generated")
# @param account_token [String] The token of the account associated with the card
#
# @param card_token [String] The token of the card associated with the embed session
#
# @param device_details [Lithic::Models::EmbedSessionGeneratedWebhookEvent::DeviceDetails] Details about the request that generated the embed session
#
# @param session_id [String] The identifier shared by webhook events for the same embed session.
#
# @param session_type [Symbol, Lithic::Models::EmbedSessionGeneratedWebhookEvent::SessionType] The type of embed session that was generated
#
# @param event_type [Symbol, :"embed.session_generated"] The type of event
# @see Lithic::Models::EmbedSessionGeneratedWebhookEvent#device_details
class DeviceDetails < Lithic::Internal::Type::BaseModel
# @!attribute ip_address
# The IP address recorded for the request that generated the event
#
# @return [String]
required :ip_address, String
# @!method initialize(ip_address:)
# Details about the request that generated the embed session
#
# @param ip_address [String] The IP address recorded for the request that generated the event
end
# The type of embed session that was generated
#
# @see Lithic::Models::EmbedSessionGeneratedWebhookEvent#session_type
module SessionType
extend Lithic::Internal::Type::Enum
CARD_EMBED = :CARD_EMBED
PIN_SETTING_EMBED = :PIN_SETTING_EMBED
# @!method self.values
# @return [Array<Symbol>]
end
end
end
end