line-bot-api 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +114 -0
- data/lib/line/bot/v2/messaging_api/core.rb +5 -0
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/action.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_request.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/demographic_filter.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/flex_box_background.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/flex_component.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/flex_container.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/imagemap_action.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/mention_target.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/message.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/pnp_messages_request.rb +6 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_templated_button.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_templated_emphasized_item.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_templated_item.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_templated_message_body.rb +92 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_templated_message_request.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/recipient.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_operation.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/substitution_object.rb +1 -1
- data/lib/line/bot/v2/messaging_api/model/template.rb +1 -1
- data/lib/line/bot/v2/webhook/core.rb +1 -0
- data/lib/line/bot/v2/webhook/model/event.rb +2 -1
- data/lib/line/bot/v2/webhook/model/membership_content.rb +1 -1
- data/lib/line/bot/v2/webhook/model/mentionee.rb +1 -1
- data/lib/line/bot/v2/webhook/model/message_content.rb +1 -1
- data/lib/line/bot/v2/webhook/model/message_edited_event.rb +110 -0
- data/lib/line/bot/v2/webhook/model/module_content.rb +1 -1
- data/lib/line/bot/v2/webhook/model/source.rb +1 -1
- data/lib/line/bot/version.rb +1 -1
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +68 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_messages_request.rbs +3 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_templated_button.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_templated_emphasized_item.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_templated_item.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_templated_message_body.rbs +47 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_templated_message_request.rbs +49 -0
- data/sig/line/bot/v2/webhook/model/message_edited_event.rbs +60 -0
- metadata +14 -2
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# LINE Messaging API
|
|
2
|
+
# This document describes LINE Messaging API.
|
|
3
|
+
#
|
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
|
5
|
+
#
|
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
# https://openapi-generator.tech
|
|
8
|
+
# Do not edit the class manually.
|
|
9
|
+
|
|
10
|
+
module Line
|
|
11
|
+
module Bot
|
|
12
|
+
module V2
|
|
13
|
+
module MessagingApi
|
|
14
|
+
# The body object of the template you want to send. You can't specify the same item more than once in a single message.
|
|
15
|
+
# @see https://developers.line.biz/en/reference/line-notification-messages/#send-line-notification-message-template
|
|
16
|
+
class PnpTemplatedMessageBody
|
|
17
|
+
attr_accessor emphasized_item: PnpTemplatedEmphasizedItem?
|
|
18
|
+
attr_accessor items: Array[PnpTemplatedItem]?
|
|
19
|
+
attr_accessor buttons: Array[PnpTemplatedButton]?
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# @param emphasized_item [PnpTemplatedEmphasizedItem, Hash[Symbol, untyped], nil]
|
|
23
|
+
# @param items [Array[PnpTemplatedItem, Hash[Symbol, untyped]],nil] Array of items to include in the message. The `itemKey` must be unique across `emphasizedItem` and `items`.
|
|
24
|
+
# @param buttons [Array[PnpTemplatedButton, Hash[Symbol, untyped]],nil] Array of buttons to include in the message. The `buttonKey` must be unique.
|
|
25
|
+
def initialize: (
|
|
26
|
+
?emphasized_item: PnpTemplatedEmphasizedItem?| Hash[Symbol, untyped]?,
|
|
27
|
+
?items: Array[PnpTemplatedItem| Hash[Symbol, untyped]]?,
|
|
28
|
+
?buttons: Array[PnpTemplatedButton| Hash[Symbol, untyped]]?,
|
|
29
|
+
**untyped dynamic_attributes
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
# Create an instance of the class from a hash
|
|
33
|
+
# @param args [Hash] Hash containing all the required attributes
|
|
34
|
+
# @return [Line::Bot::V2::MessagingApi::PnpTemplatedMessageBody] Instance of the class
|
|
35
|
+
def self.create: (Hash[Symbol, untyped]) -> PnpTemplatedMessageBody
|
|
36
|
+
|
|
37
|
+
# @param other [Object] Object to compare
|
|
38
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
|
39
|
+
def ==: (untyped other) -> bool
|
|
40
|
+
|
|
41
|
+
# @return [Integer] Hash code of the object
|
|
42
|
+
def hash: () -> Integer
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# LINE Messaging API
|
|
2
|
+
# This document describes LINE Messaging API.
|
|
3
|
+
#
|
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
|
5
|
+
#
|
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
# https://openapi-generator.tech
|
|
8
|
+
# Do not edit the class manually.
|
|
9
|
+
|
|
10
|
+
module Line
|
|
11
|
+
module Bot
|
|
12
|
+
module V2
|
|
13
|
+
module MessagingApi
|
|
14
|
+
# @see https://developers.line.biz/en/reference/line-notification-messages/#send-line-notification-message-template
|
|
15
|
+
class PnpTemplatedMessageRequest
|
|
16
|
+
attr_accessor to: String
|
|
17
|
+
attr_accessor template_key: String
|
|
18
|
+
attr_accessor body: PnpTemplatedMessageBody?
|
|
19
|
+
attr_accessor custom_aggregation_units: Array[String]?
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# @param to [String] Message destination. Specify a phone number that has been normalized to E.164 format and hashed with SHA256.
|
|
23
|
+
# @param template_key [String] Specify the key of the template you want to send. For available keys, see https://developers.line.biz/en/docs/partner-docs/line-notification-messages/template/#templates
|
|
24
|
+
# @param body [PnpTemplatedMessageBody, Hash[Symbol, untyped], nil]
|
|
25
|
+
# @param custom_aggregation_units [Array[String],nil] Name of aggregation unit. Case-sensitive. For more information about assigning a unit name, see https://developers.line.biz/en/docs/messaging-api/unit-based-statistics-aggregation/#assign-names-to-units-when-sending-messages
|
|
26
|
+
def initialize: (
|
|
27
|
+
to: String,
|
|
28
|
+
template_key: String,
|
|
29
|
+
?body: PnpTemplatedMessageBody?| Hash[Symbol, untyped]?,
|
|
30
|
+
?custom_aggregation_units: Array[String]?,
|
|
31
|
+
**untyped dynamic_attributes
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
# Create an instance of the class from a hash
|
|
35
|
+
# @param args [Hash] Hash containing all the required attributes
|
|
36
|
+
# @return [Line::Bot::V2::MessagingApi::PnpTemplatedMessageRequest] Instance of the class
|
|
37
|
+
def self.create: (Hash[Symbol, untyped]) -> PnpTemplatedMessageRequest
|
|
38
|
+
|
|
39
|
+
# @param other [Object] Object to compare
|
|
40
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
|
41
|
+
def ==: (untyped other) -> bool
|
|
42
|
+
|
|
43
|
+
# @return [Integer] Hash code of the object
|
|
44
|
+
def hash: () -> Integer
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Webhook Type Definition
|
|
2
|
+
# Webhook event definition of the LINE Messaging API
|
|
3
|
+
#
|
|
4
|
+
# The version of the OpenAPI document: 1.0.0
|
|
5
|
+
#
|
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
# https://openapi-generator.tech
|
|
8
|
+
# Do not edit the class manually.
|
|
9
|
+
|
|
10
|
+
module Line
|
|
11
|
+
module Bot
|
|
12
|
+
module V2
|
|
13
|
+
module Webhook
|
|
14
|
+
# Webhook event object which contains the edited message. This event is triggered when a user edits a text message. Currently, message editing is not available in one-on-one chats with LINE Official Accounts, so this event is only triggered in group chats. Multiple messageEdited webhook events may arrive out of order. The event with the largest timestamp represents the latest edit state.
|
|
15
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#edit-event
|
|
16
|
+
class MessageEditedEvent < Event
|
|
17
|
+
attr_reader type: String
|
|
18
|
+
attr_accessor source: Source?
|
|
19
|
+
attr_accessor timestamp: Integer
|
|
20
|
+
attr_accessor mode: 'active'|'standby'
|
|
21
|
+
attr_accessor webhook_event_id: String
|
|
22
|
+
attr_accessor delivery_context: DeliveryContext
|
|
23
|
+
attr_accessor reply_token: String?
|
|
24
|
+
attr_accessor message: MessageContent
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# @param source [Source, Hash[Symbol, untyped], nil]
|
|
28
|
+
# @param timestamp [Integer] Time of the event in milliseconds.
|
|
29
|
+
# @param mode [String] ('active'|'standby')
|
|
30
|
+
# @param webhook_event_id [String] Webhook Event ID. An ID that uniquely identifies a webhook event. This is a string in ULID format.
|
|
31
|
+
# @param delivery_context [DeliveryContext, Hash[Symbol, untyped]]
|
|
32
|
+
# @param reply_token [String,nil]
|
|
33
|
+
# @param message [MessageContent, Hash[Symbol, untyped]]
|
|
34
|
+
def initialize: (
|
|
35
|
+
?source: Source?| Hash[Symbol, untyped]?,
|
|
36
|
+
timestamp: Integer,
|
|
37
|
+
mode: 'active'|'standby',
|
|
38
|
+
webhook_event_id: String,
|
|
39
|
+
delivery_context: DeliveryContext| Hash[Symbol, untyped],
|
|
40
|
+
?reply_token: String?,
|
|
41
|
+
message: MessageContent| Hash[Symbol, untyped],
|
|
42
|
+
**untyped dynamic_attributes
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
# Create an instance of the class from a hash
|
|
46
|
+
# @param args [Hash] Hash containing all the required attributes
|
|
47
|
+
# @return [Line::Bot::V2::Webhook::MessageEditedEvent] Instance of the class
|
|
48
|
+
def self.create: (Hash[Symbol, untyped]) -> MessageEditedEvent
|
|
49
|
+
|
|
50
|
+
# @param other [Object] Object to compare
|
|
51
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
|
52
|
+
def ==: (untyped other) -> bool
|
|
53
|
+
|
|
54
|
+
# @return [Integer] Hash code of the object
|
|
55
|
+
def hash: () -> Integer
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: line-bot-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LINE Corporation
|
|
@@ -270,6 +270,11 @@ files:
|
|
|
270
270
|
- lib/line/bot/v2/messaging_api/model/operator_demographic_filter.rb
|
|
271
271
|
- lib/line/bot/v2/messaging_api/model/operator_recipient.rb
|
|
272
272
|
- lib/line/bot/v2/messaging_api/model/pnp_messages_request.rb
|
|
273
|
+
- lib/line/bot/v2/messaging_api/model/pnp_templated_button.rb
|
|
274
|
+
- lib/line/bot/v2/messaging_api/model/pnp_templated_emphasized_item.rb
|
|
275
|
+
- lib/line/bot/v2/messaging_api/model/pnp_templated_item.rb
|
|
276
|
+
- lib/line/bot/v2/messaging_api/model/pnp_templated_message_body.rb
|
|
277
|
+
- lib/line/bot/v2/messaging_api/model/pnp_templated_message_request.rb
|
|
273
278
|
- lib/line/bot/v2/messaging_api/model/postback_action.rb
|
|
274
279
|
- lib/line/bot/v2/messaging_api/model/push_message_request.rb
|
|
275
280
|
- lib/line/bot/v2/messaging_api/model/push_message_response.rb
|
|
@@ -384,6 +389,7 @@ files:
|
|
|
384
389
|
- lib/line/bot/v2/webhook/model/mention.rb
|
|
385
390
|
- lib/line/bot/v2/webhook/model/mentionee.rb
|
|
386
391
|
- lib/line/bot/v2/webhook/model/message_content.rb
|
|
392
|
+
- lib/line/bot/v2/webhook/model/message_edited_event.rb
|
|
387
393
|
- lib/line/bot/v2/webhook/model/message_event.rb
|
|
388
394
|
- lib/line/bot/v2/webhook/model/module_content.rb
|
|
389
395
|
- lib/line/bot/v2/webhook/model/module_event.rb
|
|
@@ -625,6 +631,11 @@ files:
|
|
|
625
631
|
- sig/line/bot/v2/messaging_api/model/operator_demographic_filter.rbs
|
|
626
632
|
- sig/line/bot/v2/messaging_api/model/operator_recipient.rbs
|
|
627
633
|
- sig/line/bot/v2/messaging_api/model/pnp_messages_request.rbs
|
|
634
|
+
- sig/line/bot/v2/messaging_api/model/pnp_templated_button.rbs
|
|
635
|
+
- sig/line/bot/v2/messaging_api/model/pnp_templated_emphasized_item.rbs
|
|
636
|
+
- sig/line/bot/v2/messaging_api/model/pnp_templated_item.rbs
|
|
637
|
+
- sig/line/bot/v2/messaging_api/model/pnp_templated_message_body.rbs
|
|
638
|
+
- sig/line/bot/v2/messaging_api/model/pnp_templated_message_request.rbs
|
|
628
639
|
- sig/line/bot/v2/messaging_api/model/postback_action.rbs
|
|
629
640
|
- sig/line/bot/v2/messaging_api/model/push_message_request.rbs
|
|
630
641
|
- sig/line/bot/v2/messaging_api/model/push_message_response.rbs
|
|
@@ -735,6 +746,7 @@ files:
|
|
|
735
746
|
- sig/line/bot/v2/webhook/model/mention.rbs
|
|
736
747
|
- sig/line/bot/v2/webhook/model/mentionee.rbs
|
|
737
748
|
- sig/line/bot/v2/webhook/model/message_content.rbs
|
|
749
|
+
- sig/line/bot/v2/webhook/model/message_edited_event.rbs
|
|
738
750
|
- sig/line/bot/v2/webhook/model/message_event.rbs
|
|
739
751
|
- sig/line/bot/v2/webhook/model/module_content.rbs
|
|
740
752
|
- sig/line/bot/v2/webhook/model/module_event.rbs
|
|
@@ -780,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
780
792
|
- !ruby/object:Gem::Version
|
|
781
793
|
version: '0'
|
|
782
794
|
requirements: []
|
|
783
|
-
rubygems_version: 4.0.
|
|
795
|
+
rubygems_version: 4.0.20
|
|
784
796
|
specification_version: 4
|
|
785
797
|
summary: SDK of the LINE Messaging API for Ruby
|
|
786
798
|
test_files: []
|