line-bot-api 2.0.0 → 2.1.1
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 +49 -1
- data/README.md +37 -17
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +269 -0
- data/lib/line/bot/v2/messaging_api/core.rb +39 -0
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb +78 -0
- data/lib/line/bot/v2/{webhook/model/link_things_content.rb → messaging_api/model/cash_back_fixed_price_info_request.rb} +15 -15
- data/lib/line/bot/v2/{webhook/model/scenario_result_things_content.rb → messaging_api/model/cash_back_fixed_price_info_response.rb} +21 -21
- data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rb +72 -0
- data/lib/line/bot/v2/{webhook/model/unlink_things_content.rb → messaging_api/model/cash_back_percentage_price_info_response.rb} +15 -15
- data/lib/line/bot/v2/{webhook/model/things_content.rb → messaging_api/model/cash_back_price_info_request.rb} +10 -11
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_create_request.rb +139 -0
- data/lib/line/bot/v2/{webhook/model/action_result.rb → messaging_api/model/coupon_create_response.rb} +13 -18
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_response.rb +169 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/message.rb +1 -0
- data/lib/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rb +66 -0
- data/lib/line/bot/v2/webhook/core.rb +0 -7
- data/lib/line/bot/v2/webhook/model/event.rb +0 -1
- data/lib/line/bot/version.rb +1 -1
- data/line-bot-api.gemspec +1 -1
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +156 -0
- data/sig/line/bot/v2/messaging_api/model/acquisition_condition_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/acquisition_condition_response.rbs +43 -0
- data/sig/line/bot/v2/{webhook/model/action_result.rbs → messaging_api/model/cash_back_fixed_price_info_request.rbs} +11 -13
- data/sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rbs +40 -0
- data/sig/line/bot/v2/{webhook/model/things_content.rbs → messaging_api/model/cash_back_price_info_request.rbs} +8 -8
- data/sig/line/bot/v2/messaging_api/model/cash_back_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_create_request.rbs +76 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_create_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rbs +40 -0
- data/sig/line/bot/v2/{webhook/model/link_things_content.rbs → messaging_api/model/coupon_free_reward_request.rbs} +7 -10
- data/sig/line/bot/v2/{webhook/model/unlink_things_content.rbs → messaging_api/model/coupon_free_reward_response.rbs} +7 -10
- data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_list_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_response.rbs +91 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_reward_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_reward_response.rbs +43 -0
- data/sig/line/bot/v2/{webhook/model/scenario_result_things_content.rbs → messaging_api/model/discount_explicit_price_info_request.rbs} +13 -13
- data/sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_price_info_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rbs +37 -0
- metadata +81 -17
- data/lib/line/bot/v2/webhook/model/scenario_result.rb +0 -115
- data/lib/line/bot/v2/webhook/model/things_event.rb +0 -109
- data/sig/line/bot/v2/webhook/model/scenario_result.rbs +0 -61
- data/sig/line/bot/v2/webhook/model/things_event.rbs +0 -59
@@ -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
|
+
class DiscountPriceInfoResponse
|
15
|
+
attr_accessor type: String
|
16
|
+
|
17
|
+
|
18
|
+
# @param type [String]
|
19
|
+
def initialize: (
|
20
|
+
type: String,
|
21
|
+
**untyped dynamic_attributes
|
22
|
+
) -> void
|
23
|
+
|
24
|
+
# Create an instance of the class from a hash
|
25
|
+
# @param args [Hash] Hash containing all the required attributes
|
26
|
+
# @return [Line::Bot::V2::MessagingApi::DiscountPriceInfoResponse] Instance of the class
|
27
|
+
def self.create: (Hash[Symbol, untyped]) -> DiscountPriceInfoResponse
|
28
|
+
|
29
|
+
# @param other [Object] Object to compare
|
30
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
31
|
+
def ==: (untyped other) -> bool
|
32
|
+
|
33
|
+
# @return [Integer] Hash code of the object
|
34
|
+
def hash: () -> Integer
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def self.detect_class: (type: String) -> Class?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -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
|
+
class LotteryAcquisitionConditionRequest < AcquisitionConditionRequest
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor lottery_probability: Integer
|
17
|
+
attr_accessor max_acquire_count: Integer
|
18
|
+
|
19
|
+
|
20
|
+
# @param lottery_probability [Integer] Probability (1-99) of winning the coupon in lottery-type campaigns.
|
21
|
+
# @param max_acquire_count [Integer] Maximum number of coupons that can be issued in total. Use -1 to indicate no limit
|
22
|
+
def initialize: (
|
23
|
+
lottery_probability: Integer,
|
24
|
+
max_acquire_count: Integer,
|
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::LotteryAcquisitionConditionRequest] Instance of the class
|
31
|
+
def self.create: (Hash[Symbol, untyped]) -> LotteryAcquisitionConditionRequest
|
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,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
|
+
class LotteryAcquisitionConditionResponse < AcquisitionConditionResponse
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor lottery_probability: Integer?
|
17
|
+
attr_accessor max_acquire_count: Integer?
|
18
|
+
|
19
|
+
|
20
|
+
# @param lottery_probability [Integer,nil]
|
21
|
+
# @param max_acquire_count [Integer,nil]
|
22
|
+
def initialize: (
|
23
|
+
?lottery_probability: Integer?,
|
24
|
+
?max_acquire_count: Integer?,
|
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::LotteryAcquisitionConditionResponse] Instance of the class
|
31
|
+
def self.create: (Hash[Symbol, untyped]) -> LotteryAcquisitionConditionResponse
|
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,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
|
+
# Paginated response object containing a list of coupons.
|
15
|
+
class MessagingApiPagerCouponListResponse
|
16
|
+
attr_accessor items: Array[CouponListResponse]
|
17
|
+
attr_accessor _next: String?
|
18
|
+
|
19
|
+
|
20
|
+
# @param items [Array[CouponListResponse, Hash[Symbol, untyped]]] List of coupon summary objects.
|
21
|
+
# @param _next [String,nil] Token for fetching the next page of results.
|
22
|
+
def initialize: (
|
23
|
+
items: Array[CouponListResponse| Hash[Symbol, untyped]],
|
24
|
+
?_next: 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::MessagingApiPagerCouponListResponse] Instance of the class
|
31
|
+
def self.create: (Hash[Symbol, untyped]) -> MessagingApiPagerCouponListResponse
|
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,37 @@
|
|
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
|
+
class NormalAcquisitionConditionRequest < AcquisitionConditionRequest
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::NormalAcquisitionConditionRequest] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> NormalAcquisitionConditionRequest
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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
|
+
class NormalAcquisitionConditionResponse < AcquisitionConditionResponse
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::NormalAcquisitionConditionResponse] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> NormalAcquisitionConditionResponse
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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
|
+
class ReferralAcquisitionConditionResponse < AcquisitionConditionResponse
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::ReferralAcquisitionConditionResponse] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> ReferralAcquisitionConditionResponse
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LINE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|
@@ -123,6 +123,8 @@ files:
|
|
123
123
|
- lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb
|
124
124
|
- lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
|
125
125
|
- lib/line/bot/v2/messaging_api/core.rb
|
126
|
+
- lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb
|
127
|
+
- lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb
|
126
128
|
- lib/line/bot/v2/messaging_api/model/action.rb
|
127
129
|
- lib/line/bot/v2/messaging_api/model/age_demographic.rb
|
128
130
|
- lib/line/bot/v2/messaging_api/model/age_demographic_filter.rb
|
@@ -141,13 +143,44 @@ files:
|
|
141
143
|
- lib/line/bot/v2/messaging_api/model/camera_roll_action.rb
|
142
144
|
- lib/line/bot/v2/messaging_api/model/carousel_column.rb
|
143
145
|
- lib/line/bot/v2/messaging_api/model/carousel_template.rb
|
146
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rb
|
147
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rb
|
148
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rb
|
149
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rb
|
150
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_price_info_request.rb
|
151
|
+
- lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb
|
144
152
|
- lib/line/bot/v2/messaging_api/model/chat_reference.rb
|
145
153
|
- lib/line/bot/v2/messaging_api/model/clipboard_action.rb
|
146
154
|
- lib/line/bot/v2/messaging_api/model/clipboard_imagemap_action.rb
|
147
155
|
- lib/line/bot/v2/messaging_api/model/confirm_template.rb
|
156
|
+
- lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rb
|
157
|
+
- lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rb
|
158
|
+
- lib/line/bot/v2/messaging_api/model/coupon_create_request.rb
|
159
|
+
- lib/line/bot/v2/messaging_api/model/coupon_create_response.rb
|
160
|
+
- lib/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rb
|
161
|
+
- lib/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rb
|
162
|
+
- lib/line/bot/v2/messaging_api/model/coupon_free_reward_request.rb
|
163
|
+
- lib/line/bot/v2/messaging_api/model/coupon_free_reward_response.rb
|
164
|
+
- lib/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rb
|
165
|
+
- lib/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rb
|
166
|
+
- lib/line/bot/v2/messaging_api/model/coupon_list_response.rb
|
167
|
+
- lib/line/bot/v2/messaging_api/model/coupon_message.rb
|
168
|
+
- lib/line/bot/v2/messaging_api/model/coupon_others_reward_request.rb
|
169
|
+
- lib/line/bot/v2/messaging_api/model/coupon_others_reward_response.rb
|
170
|
+
- lib/line/bot/v2/messaging_api/model/coupon_response.rb
|
171
|
+
- lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb
|
172
|
+
- lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb
|
148
173
|
- lib/line/bot/v2/messaging_api/model/create_rich_menu_alias_request.rb
|
149
174
|
- lib/line/bot/v2/messaging_api/model/datetime_picker_action.rb
|
150
175
|
- lib/line/bot/v2/messaging_api/model/demographic_filter.rb
|
176
|
+
- lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rb
|
177
|
+
- lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rb
|
178
|
+
- lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rb
|
179
|
+
- lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rb
|
180
|
+
- lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rb
|
181
|
+
- lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rb
|
182
|
+
- lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb
|
183
|
+
- lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb
|
151
184
|
- lib/line/bot/v2/messaging_api/model/emoji.rb
|
152
185
|
- lib/line/bot/v2/messaging_api/model/emoji_substitution_object.rb
|
153
186
|
- lib/line/bot/v2/messaging_api/model/error_detail.rb
|
@@ -206,6 +239,8 @@ files:
|
|
206
239
|
- lib/line/bot/v2/messaging_api/model/limit.rb
|
207
240
|
- lib/line/bot/v2/messaging_api/model/location_action.rb
|
208
241
|
- lib/line/bot/v2/messaging_api/model/location_message.rb
|
242
|
+
- lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb
|
243
|
+
- lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb
|
209
244
|
- lib/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rb
|
210
245
|
- lib/line/bot/v2/messaging_api/model/members_ids_response.rb
|
211
246
|
- lib/line/bot/v2/messaging_api/model/membership.rb
|
@@ -216,9 +251,12 @@ files:
|
|
216
251
|
- lib/line/bot/v2/messaging_api/model/message_action.rb
|
217
252
|
- lib/line/bot/v2/messaging_api/model/message_imagemap_action.rb
|
218
253
|
- lib/line/bot/v2/messaging_api/model/message_quota_response.rb
|
254
|
+
- lib/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rb
|
219
255
|
- lib/line/bot/v2/messaging_api/model/multicast_request.rb
|
220
256
|
- lib/line/bot/v2/messaging_api/model/narrowcast_progress_response.rb
|
221
257
|
- lib/line/bot/v2/messaging_api/model/narrowcast_request.rb
|
258
|
+
- lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rb
|
259
|
+
- lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rb
|
222
260
|
- lib/line/bot/v2/messaging_api/model/number_of_messages_response.rb
|
223
261
|
- lib/line/bot/v2/messaging_api/model/operator_demographic_filter.rb
|
224
262
|
- lib/line/bot/v2/messaging_api/model/operator_recipient.rb
|
@@ -232,6 +270,7 @@ files:
|
|
232
270
|
- lib/line/bot/v2/messaging_api/model/quota_type.rb
|
233
271
|
- lib/line/bot/v2/messaging_api/model/recipient.rb
|
234
272
|
- lib/line/bot/v2/messaging_api/model/redelivery_recipient.rb
|
273
|
+
- lib/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rb
|
235
274
|
- lib/line/bot/v2/messaging_api/model/reply_message_request.rb
|
236
275
|
- lib/line/bot/v2/messaging_api/model/reply_message_response.rb
|
237
276
|
- lib/line/bot/v2/messaging_api/model/rich_menu_alias_list_response.rb
|
@@ -298,7 +337,6 @@ files:
|
|
298
337
|
- lib/line/bot/v2/utils.rb
|
299
338
|
- lib/line/bot/v2/webhook/core.rb
|
300
339
|
- lib/line/bot/v2/webhook/model/account_link_event.rb
|
301
|
-
- lib/line/bot/v2/webhook/model/action_result.rb
|
302
340
|
- lib/line/bot/v2/webhook/model/activated_event.rb
|
303
341
|
- lib/line/bot/v2/webhook/model/all_mentionee.rb
|
304
342
|
- lib/line/bot/v2/webhook/model/attached_module_content.rb
|
@@ -329,7 +367,6 @@ files:
|
|
329
367
|
- lib/line/bot/v2/webhook/model/left_members.rb
|
330
368
|
- lib/line/bot/v2/webhook/model/left_membership_content.rb
|
331
369
|
- lib/line/bot/v2/webhook/model/link_content.rb
|
332
|
-
- lib/line/bot/v2/webhook/model/link_things_content.rb
|
333
370
|
- lib/line/bot/v2/webhook/model/location_message_content.rb
|
334
371
|
- lib/line/bot/v2/webhook/model/member_joined_event.rb
|
335
372
|
- lib/line/bot/v2/webhook/model/member_left_event.rb
|
@@ -347,15 +384,10 @@ files:
|
|
347
384
|
- lib/line/bot/v2/webhook/model/postback_event.rb
|
348
385
|
- lib/line/bot/v2/webhook/model/renewed_membership_content.rb
|
349
386
|
- lib/line/bot/v2/webhook/model/room_source.rb
|
350
|
-
- lib/line/bot/v2/webhook/model/scenario_result.rb
|
351
|
-
- lib/line/bot/v2/webhook/model/scenario_result_things_content.rb
|
352
387
|
- lib/line/bot/v2/webhook/model/source.rb
|
353
388
|
- lib/line/bot/v2/webhook/model/sticker_message_content.rb
|
354
389
|
- lib/line/bot/v2/webhook/model/text_message_content.rb
|
355
|
-
- lib/line/bot/v2/webhook/model/things_content.rb
|
356
|
-
- lib/line/bot/v2/webhook/model/things_event.rb
|
357
390
|
- lib/line/bot/v2/webhook/model/unfollow_event.rb
|
358
|
-
- lib/line/bot/v2/webhook/model/unlink_things_content.rb
|
359
391
|
- lib/line/bot/v2/webhook/model/unsend_detail.rb
|
360
392
|
- lib/line/bot/v2/webhook/model/unsend_event.rb
|
361
393
|
- lib/line/bot/v2/webhook/model/user_mentionee.rb
|
@@ -435,6 +467,8 @@ files:
|
|
435
467
|
- sig/line/bot/v2/manage_audience/model/update_audience_group_description_request.rbs
|
436
468
|
- sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs
|
437
469
|
- sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs
|
470
|
+
- sig/line/bot/v2/messaging_api/model/acquisition_condition_request.rbs
|
471
|
+
- sig/line/bot/v2/messaging_api/model/acquisition_condition_response.rbs
|
438
472
|
- sig/line/bot/v2/messaging_api/model/action.rbs
|
439
473
|
- sig/line/bot/v2/messaging_api/model/age_demographic.rbs
|
440
474
|
- sig/line/bot/v2/messaging_api/model/age_demographic_filter.rbs
|
@@ -453,13 +487,44 @@ files:
|
|
453
487
|
- sig/line/bot/v2/messaging_api/model/camera_roll_action.rbs
|
454
488
|
- sig/line/bot/v2/messaging_api/model/carousel_column.rbs
|
455
489
|
- sig/line/bot/v2/messaging_api/model/carousel_template.rbs
|
490
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rbs
|
491
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rbs
|
492
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rbs
|
493
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rbs
|
494
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_price_info_request.rbs
|
495
|
+
- sig/line/bot/v2/messaging_api/model/cash_back_price_info_response.rbs
|
456
496
|
- sig/line/bot/v2/messaging_api/model/chat_reference.rbs
|
457
497
|
- sig/line/bot/v2/messaging_api/model/clipboard_action.rbs
|
458
498
|
- sig/line/bot/v2/messaging_api/model/clipboard_imagemap_action.rbs
|
459
499
|
- sig/line/bot/v2/messaging_api/model/confirm_template.rbs
|
500
|
+
- sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rbs
|
501
|
+
- sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rbs
|
502
|
+
- sig/line/bot/v2/messaging_api/model/coupon_create_request.rbs
|
503
|
+
- sig/line/bot/v2/messaging_api/model/coupon_create_response.rbs
|
504
|
+
- sig/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rbs
|
505
|
+
- sig/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rbs
|
506
|
+
- sig/line/bot/v2/messaging_api/model/coupon_free_reward_request.rbs
|
507
|
+
- sig/line/bot/v2/messaging_api/model/coupon_free_reward_response.rbs
|
508
|
+
- sig/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rbs
|
509
|
+
- sig/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rbs
|
510
|
+
- sig/line/bot/v2/messaging_api/model/coupon_list_response.rbs
|
511
|
+
- sig/line/bot/v2/messaging_api/model/coupon_message.rbs
|
512
|
+
- sig/line/bot/v2/messaging_api/model/coupon_others_reward_request.rbs
|
513
|
+
- sig/line/bot/v2/messaging_api/model/coupon_others_reward_response.rbs
|
514
|
+
- sig/line/bot/v2/messaging_api/model/coupon_response.rbs
|
515
|
+
- sig/line/bot/v2/messaging_api/model/coupon_reward_request.rbs
|
516
|
+
- sig/line/bot/v2/messaging_api/model/coupon_reward_response.rbs
|
460
517
|
- sig/line/bot/v2/messaging_api/model/create_rich_menu_alias_request.rbs
|
461
518
|
- sig/line/bot/v2/messaging_api/model/datetime_picker_action.rbs
|
462
519
|
- sig/line/bot/v2/messaging_api/model/demographic_filter.rbs
|
520
|
+
- sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rbs
|
521
|
+
- sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rbs
|
522
|
+
- sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rbs
|
523
|
+
- sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rbs
|
524
|
+
- sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rbs
|
525
|
+
- sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rbs
|
526
|
+
- sig/line/bot/v2/messaging_api/model/discount_price_info_request.rbs
|
527
|
+
- sig/line/bot/v2/messaging_api/model/discount_price_info_response.rbs
|
463
528
|
- sig/line/bot/v2/messaging_api/model/emoji.rbs
|
464
529
|
- sig/line/bot/v2/messaging_api/model/emoji_substitution_object.rbs
|
465
530
|
- sig/line/bot/v2/messaging_api/model/error_detail.rbs
|
@@ -518,6 +583,8 @@ files:
|
|
518
583
|
- sig/line/bot/v2/messaging_api/model/limit.rbs
|
519
584
|
- sig/line/bot/v2/messaging_api/model/location_action.rbs
|
520
585
|
- sig/line/bot/v2/messaging_api/model/location_message.rbs
|
586
|
+
- sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rbs
|
587
|
+
- sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rbs
|
521
588
|
- sig/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rbs
|
522
589
|
- sig/line/bot/v2/messaging_api/model/members_ids_response.rbs
|
523
590
|
- sig/line/bot/v2/messaging_api/model/membership.rbs
|
@@ -528,9 +595,12 @@ files:
|
|
528
595
|
- sig/line/bot/v2/messaging_api/model/message_action.rbs
|
529
596
|
- sig/line/bot/v2/messaging_api/model/message_imagemap_action.rbs
|
530
597
|
- sig/line/bot/v2/messaging_api/model/message_quota_response.rbs
|
598
|
+
- sig/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rbs
|
531
599
|
- sig/line/bot/v2/messaging_api/model/multicast_request.rbs
|
532
600
|
- sig/line/bot/v2/messaging_api/model/narrowcast_progress_response.rbs
|
533
601
|
- sig/line/bot/v2/messaging_api/model/narrowcast_request.rbs
|
602
|
+
- sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rbs
|
603
|
+
- sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rbs
|
534
604
|
- sig/line/bot/v2/messaging_api/model/number_of_messages_response.rbs
|
535
605
|
- sig/line/bot/v2/messaging_api/model/operator_demographic_filter.rbs
|
536
606
|
- sig/line/bot/v2/messaging_api/model/operator_recipient.rbs
|
@@ -544,6 +614,7 @@ files:
|
|
544
614
|
- sig/line/bot/v2/messaging_api/model/quota_type.rbs
|
545
615
|
- sig/line/bot/v2/messaging_api/model/recipient.rbs
|
546
616
|
- sig/line/bot/v2/messaging_api/model/redelivery_recipient.rbs
|
617
|
+
- sig/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rbs
|
547
618
|
- sig/line/bot/v2/messaging_api/model/reply_message_request.rbs
|
548
619
|
- sig/line/bot/v2/messaging_api/model/reply_message_response.rbs
|
549
620
|
- sig/line/bot/v2/messaging_api/model/rich_menu_alias_list_response.rbs
|
@@ -606,7 +677,6 @@ files:
|
|
606
677
|
- sig/line/bot/v2/shop/model/mission_sticker_request.rbs
|
607
678
|
- sig/line/bot/v2/utils.rbs
|
608
679
|
- sig/line/bot/v2/webhook/model/account_link_event.rbs
|
609
|
-
- sig/line/bot/v2/webhook/model/action_result.rbs
|
610
680
|
- sig/line/bot/v2/webhook/model/activated_event.rbs
|
611
681
|
- sig/line/bot/v2/webhook/model/all_mentionee.rbs
|
612
682
|
- sig/line/bot/v2/webhook/model/attached_module_content.rbs
|
@@ -637,7 +707,6 @@ files:
|
|
637
707
|
- sig/line/bot/v2/webhook/model/left_members.rbs
|
638
708
|
- sig/line/bot/v2/webhook/model/left_membership_content.rbs
|
639
709
|
- sig/line/bot/v2/webhook/model/link_content.rbs
|
640
|
-
- sig/line/bot/v2/webhook/model/link_things_content.rbs
|
641
710
|
- sig/line/bot/v2/webhook/model/location_message_content.rbs
|
642
711
|
- sig/line/bot/v2/webhook/model/member_joined_event.rbs
|
643
712
|
- sig/line/bot/v2/webhook/model/member_left_event.rbs
|
@@ -655,15 +724,10 @@ files:
|
|
655
724
|
- sig/line/bot/v2/webhook/model/postback_event.rbs
|
656
725
|
- sig/line/bot/v2/webhook/model/renewed_membership_content.rbs
|
657
726
|
- sig/line/bot/v2/webhook/model/room_source.rbs
|
658
|
-
- sig/line/bot/v2/webhook/model/scenario_result.rbs
|
659
|
-
- sig/line/bot/v2/webhook/model/scenario_result_things_content.rbs
|
660
727
|
- sig/line/bot/v2/webhook/model/source.rbs
|
661
728
|
- sig/line/bot/v2/webhook/model/sticker_message_content.rbs
|
662
729
|
- sig/line/bot/v2/webhook/model/text_message_content.rbs
|
663
|
-
- sig/line/bot/v2/webhook/model/things_content.rbs
|
664
|
-
- sig/line/bot/v2/webhook/model/things_event.rbs
|
665
730
|
- sig/line/bot/v2/webhook/model/unfollow_event.rbs
|
666
|
-
- sig/line/bot/v2/webhook/model/unlink_things_content.rbs
|
667
731
|
- sig/line/bot/v2/webhook/model/unsend_detail.rbs
|
668
732
|
- sig/line/bot/v2/webhook/model/unsend_event.rbs
|
669
733
|
- sig/line/bot/v2/webhook/model/user_mentionee.rbs
|
@@ -679,7 +743,7 @@ licenses:
|
|
679
743
|
metadata:
|
680
744
|
bug_tracker_uri: https://github.com/line/line-bot-sdk-ruby/issues
|
681
745
|
changelog_uri: https://github.com/line/line-bot-sdk-ruby/releases
|
682
|
-
documentation_uri: https://
|
746
|
+
documentation_uri: https://line.github.io/line-bot-sdk-ruby/
|
683
747
|
homepage_uri: https://github.com/line/line-bot-sdk-ruby
|
684
748
|
source_code_uri: https://github.com/line/line-bot-sdk-ruby
|
685
749
|
post_install_message:
|
@@ -1,115 +0,0 @@
|
|
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
|
-
# @see https://developers.line.biz/en/reference/messaging-api/#scenario-result-event
|
15
|
-
class ScenarioResult
|
16
|
-
# @!attribute [rw] scenario_id
|
17
|
-
# @return [String,nil] Scenario ID executed
|
18
|
-
attr_accessor :scenario_id
|
19
|
-
# @!attribute [rw] revision
|
20
|
-
# @return [Integer,nil] Revision number of the scenario set containing the executed scenario
|
21
|
-
attr_accessor :revision
|
22
|
-
# @!attribute [rw] start_time
|
23
|
-
# @return [Integer] Timestamp for when execution of scenario action started (milliseconds, LINE app time)
|
24
|
-
attr_accessor :start_time
|
25
|
-
# @!attribute [rw] end_time
|
26
|
-
# @return [Integer] Timestamp for when execution of scenario was completed (milliseconds, LINE app time)
|
27
|
-
attr_accessor :end_time
|
28
|
-
# @!attribute [rw] result_code
|
29
|
-
# @return [String] Scenario execution completion status
|
30
|
-
attr_accessor :result_code
|
31
|
-
# @!attribute [rw] action_results
|
32
|
-
# @return [Array[ActionResult],nil] Execution result of individual operations specified in action. Only included when things.result.resultCode is success.
|
33
|
-
attr_accessor :action_results
|
34
|
-
# @!attribute [rw] ble_notification_payload
|
35
|
-
# @return [String,nil] Data contained in notification.
|
36
|
-
attr_accessor :ble_notification_payload
|
37
|
-
# @!attribute [rw] error_reason
|
38
|
-
# @return [String,nil] Error reason.
|
39
|
-
attr_accessor :error_reason
|
40
|
-
|
41
|
-
# @param scenario_id [String,nil] Scenario ID executed
|
42
|
-
# @param revision [Integer,nil] Revision number of the scenario set containing the executed scenario
|
43
|
-
# @param start_time [Integer] Timestamp for when execution of scenario action started (milliseconds, LINE app time)
|
44
|
-
# @param end_time [Integer] Timestamp for when execution of scenario was completed (milliseconds, LINE app time)
|
45
|
-
# @param result_code [String] Scenario execution completion status
|
46
|
-
# @param action_results [Array[ActionResult, Hash[Symbol, untyped]],nil] Execution result of individual operations specified in action. Only included when things.result.resultCode is success.
|
47
|
-
# @param ble_notification_payload [String,nil] Data contained in notification.
|
48
|
-
# @param error_reason [String,nil] Error reason.
|
49
|
-
def initialize(
|
50
|
-
scenario_id: nil,
|
51
|
-
revision: nil,
|
52
|
-
start_time:,
|
53
|
-
end_time:,
|
54
|
-
result_code:,
|
55
|
-
action_results: nil,
|
56
|
-
ble_notification_payload: nil,
|
57
|
-
error_reason: nil,
|
58
|
-
**dynamic_attributes
|
59
|
-
)
|
60
|
-
|
61
|
-
@scenario_id = scenario_id
|
62
|
-
@revision = revision
|
63
|
-
@start_time = start_time
|
64
|
-
@end_time = end_time
|
65
|
-
@result_code = result_code
|
66
|
-
@action_results = action_results&.map do |item|
|
67
|
-
if item.is_a?(Hash)
|
68
|
-
Line::Bot::V2::Webhook::ActionResult.create(**item) # steep:ignore InsufficientKeywordArguments
|
69
|
-
else
|
70
|
-
item
|
71
|
-
end
|
72
|
-
end
|
73
|
-
@ble_notification_payload = ble_notification_payload
|
74
|
-
@error_reason = error_reason
|
75
|
-
|
76
|
-
dynamic_attributes.each do |key, value|
|
77
|
-
self.class.attr_accessor key
|
78
|
-
|
79
|
-
if value.is_a?(Hash)
|
80
|
-
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
81
|
-
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
82
|
-
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
83
|
-
else
|
84
|
-
instance_variable_set("@#{key}", value)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
# Create an instance of the class from a hash
|
90
|
-
# @param args [Hash] Hash containing all the required attributes
|
91
|
-
# @return [Line::Bot::V2::Webhook::ScenarioResult] Instance of the class
|
92
|
-
def self.create(args) # steep:ignore
|
93
|
-
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
94
|
-
return new(**symbolized_args) # steep:ignore
|
95
|
-
end
|
96
|
-
|
97
|
-
# @param other [Object] Object to compare
|
98
|
-
# @return [Boolean] true if the objects are equal, false otherwise
|
99
|
-
def ==(other)
|
100
|
-
return false unless self.class == other.class
|
101
|
-
|
102
|
-
instance_variables.all? do |var|
|
103
|
-
instance_variable_get(var) == other.instance_variable_get(var)
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# @return [Integer] Hash code of the object
|
108
|
-
def hash
|
109
|
-
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|