line-bot-api 2.10.0 → 2.12.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/CONTRIBUTING.md +0 -1
- data/lib/line/bot/v2/http_client.rb +7 -1
- 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_create_request.rb +16 -4
- data/lib/line/bot/v2/messaging_api/model/coupon_response.rb +14 -2
- 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/model/event.rb +1 -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/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/http_client.rbs +7 -0
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +68 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_create_request.rbs +10 -4
- data/sig/line/bot/v2/messaging_api/model/coupon_response.rbs +7 -1
- 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
- metadata +12 -2
|
@@ -0,0 +1,43 @@
|
|
|
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-items
|
|
15
|
+
class PnpTemplatedItem
|
|
16
|
+
attr_accessor item_key: String
|
|
17
|
+
attr_accessor content: String
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# @param item_key [String] Specify the key of the item you want to include. For available keys, see https://developers.line.biz/en/docs/partner-docs/line-notification-messages/template/#items
|
|
21
|
+
# @param content [String] String to be displayed as the value of the item.
|
|
22
|
+
def initialize: (
|
|
23
|
+
item_key: String,
|
|
24
|
+
content: String,
|
|
25
|
+
**untyped dynamic_attributes
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
# Create an instance of the class from a hash
|
|
29
|
+
# @param args [Hash] Hash containing all the required attributes
|
|
30
|
+
# @return [Line::Bot::V2::MessagingApi::PnpTemplatedItem] Instance of the class
|
|
31
|
+
def self.create: (Hash[Symbol, untyped]) -> PnpTemplatedItem
|
|
32
|
+
|
|
33
|
+
# @param other [Object] Object to compare
|
|
34
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
|
35
|
+
def ==: (untyped other) -> bool
|
|
36
|
+
|
|
37
|
+
# @return [Integer] Hash code of the object
|
|
38
|
+
def hash: () -> Integer
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -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
|
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.12.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
|
|
@@ -626,6 +631,11 @@ files:
|
|
|
626
631
|
- sig/line/bot/v2/messaging_api/model/operator_demographic_filter.rbs
|
|
627
632
|
- sig/line/bot/v2/messaging_api/model/operator_recipient.rbs
|
|
628
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
|
|
629
639
|
- sig/line/bot/v2/messaging_api/model/postback_action.rbs
|
|
630
640
|
- sig/line/bot/v2/messaging_api/model/push_message_request.rbs
|
|
631
641
|
- sig/line/bot/v2/messaging_api/model/push_message_response.rbs
|
|
@@ -782,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
782
792
|
- !ruby/object:Gem::Version
|
|
783
793
|
version: '0'
|
|
784
794
|
requirements: []
|
|
785
|
-
rubygems_version: 4.0.
|
|
795
|
+
rubygems_version: 4.0.20
|
|
786
796
|
specification_version: 4
|
|
787
797
|
summary: SDK of the LINE Messaging API for Ruby
|
|
788
798
|
test_files: []
|