line-bot-api 2.3.0 → 2.4.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/model/limit.rb +6 -0
- data/lib/line/bot/v2/messaging_api/model/narrowcast_progress_response.rb +2 -2
- data/lib/line/bot/version.rb +1 -1
- data/sig/line/bot/v2/messaging_api/model/limit.rbs +3 -0
- data/sig/line/bot/v2/messaging_api/model/narrowcast_progress_response.rbs +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be6eb3e791b7dcee332f13b1e1e4c42940b15b6518de39a5f7357fbdf74d4283
|
|
4
|
+
data.tar.gz: 2a320c486f1a21761aa04c7e80948fb95c3f8e19c283f8ca93249b1f649f2cf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 441bc6461be06d17727b6451a3ae298a8995533397fad4d6b3eabe1e56035454b4288fcc0d4777f2749a1a157c01719a567c3fc4fe0216ecd695f46e7b396296
|
|
7
|
+
data.tar.gz: ed25dc17d4624daaf62deb3894584f66a224c4ce5d1df609cf0dd7f3c189a31fc03592955db9617765359876cbd81587990baf0977880f286995719332203af1
|
|
@@ -20,17 +20,23 @@ module Line
|
|
|
20
20
|
# @!attribute [rw] up_to_remaining_quota
|
|
21
21
|
# @return [Boolean,nil] If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random.
|
|
22
22
|
attr_accessor :up_to_remaining_quota
|
|
23
|
+
# @!attribute [rw] forbid_partial_delivery
|
|
24
|
+
# @return [Boolean,nil] This option prevents messages from being delivered to only a subset of the target audience. If true, the narrowcast request success but fails asynchronously. You can check whether message delivery was canceled by retrieving the narrowcast message progress. This property can be set to true only if upToRemainingQuota is set to true.
|
|
25
|
+
attr_accessor :forbid_partial_delivery
|
|
23
26
|
|
|
24
27
|
# @param max [Integer,nil] The maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random.
|
|
25
28
|
# @param up_to_remaining_quota [Boolean,nil] If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random.
|
|
29
|
+
# @param forbid_partial_delivery [Boolean,nil] This option prevents messages from being delivered to only a subset of the target audience. If true, the narrowcast request success but fails asynchronously. You can check whether message delivery was canceled by retrieving the narrowcast message progress. This property can be set to true only if upToRemainingQuota is set to true.
|
|
26
30
|
def initialize(
|
|
27
31
|
max: nil,
|
|
28
32
|
up_to_remaining_quota: false,
|
|
33
|
+
forbid_partial_delivery: false,
|
|
29
34
|
**dynamic_attributes
|
|
30
35
|
)
|
|
31
36
|
|
|
32
37
|
@max = max
|
|
33
38
|
@up_to_remaining_quota = up_to_remaining_quota
|
|
39
|
+
@forbid_partial_delivery = forbid_partial_delivery
|
|
34
40
|
|
|
35
41
|
dynamic_attributes.each do |key, value|
|
|
36
42
|
self.class.attr_accessor key
|
|
@@ -29,7 +29,7 @@ module Line
|
|
|
29
29
|
# @return [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
|
|
30
30
|
attr_accessor :failed_description
|
|
31
31
|
# @!attribute [rw] error_code
|
|
32
|
-
# @return [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending.
|
|
32
|
+
# @return [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. `5`: Message delivery has been canceled to prevent messages from being delivered only to a subset of the target audience.
|
|
33
33
|
attr_accessor :error_code
|
|
34
34
|
# @!attribute [rw] accepted_time
|
|
35
35
|
# @return [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
|
|
@@ -43,7 +43,7 @@ module Line
|
|
|
43
43
|
# @param failure_count [Integer,nil] The number of users who failed to send the message.
|
|
44
44
|
# @param target_count [Integer,nil] The number of intended recipients of the message.
|
|
45
45
|
# @param failed_description [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
|
|
46
|
-
# @param error_code [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending.
|
|
46
|
+
# @param error_code [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. `5`: Message delivery has been canceled to prevent messages from being delivered only to a subset of the target audience.
|
|
47
47
|
# @param accepted_time [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
|
|
48
48
|
# @param completed_time [String,nil] Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
|
|
49
49
|
def initialize(
|
data/lib/line/bot/version.rb
CHANGED
|
@@ -16,13 +16,16 @@ module Line
|
|
|
16
16
|
class Limit
|
|
17
17
|
attr_accessor max: Integer?
|
|
18
18
|
attr_accessor up_to_remaining_quota: bool?
|
|
19
|
+
attr_accessor forbid_partial_delivery: bool?
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
# @param max [Integer,nil] The maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random.
|
|
22
23
|
# @param up_to_remaining_quota [bool,nil] If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random.
|
|
24
|
+
# @param forbid_partial_delivery [bool,nil] This option prevents messages from being delivered to only a subset of the target audience. If true, the narrowcast request success but fails asynchronously. You can check whether message delivery was canceled by retrieving the narrowcast message progress. This property can be set to true only if upToRemainingQuota is set to true.
|
|
23
25
|
def initialize: (
|
|
24
26
|
?max: Integer?,
|
|
25
27
|
?up_to_remaining_quota: bool?,
|
|
28
|
+
?forbid_partial_delivery: bool?,
|
|
26
29
|
**untyped dynamic_attributes
|
|
27
30
|
) -> void
|
|
28
31
|
|
|
@@ -28,7 +28,7 @@ module Line
|
|
|
28
28
|
# @param failure_count [Integer,nil] The number of users who failed to send the message.
|
|
29
29
|
# @param target_count [Integer,nil] The number of intended recipients of the message.
|
|
30
30
|
# @param failed_description [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
|
|
31
|
-
# @param error_code [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending.
|
|
31
|
+
# @param error_code [Integer,nil] Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. `5`: Message delivery has been canceled to prevent messages from being delivered only to a subset of the target audience.
|
|
32
32
|
# @param accepted_time [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
|
|
33
33
|
# @param completed_time [String,nil] Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
|
|
34
34
|
def initialize: (
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LINE Corporation
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: multipart-post
|
|
@@ -39,7 +38,6 @@ dependencies:
|
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '0.2'
|
|
41
40
|
description: SDK of the LINE Messaging API for Ruby
|
|
42
|
-
email:
|
|
43
41
|
executables: []
|
|
44
42
|
extensions: []
|
|
45
43
|
extra_rdoc_files: []
|
|
@@ -746,7 +744,6 @@ metadata:
|
|
|
746
744
|
documentation_uri: https://line.github.io/line-bot-sdk-ruby/
|
|
747
745
|
homepage_uri: https://github.com/line/line-bot-sdk-ruby
|
|
748
746
|
source_code_uri: https://github.com/line/line-bot-sdk-ruby
|
|
749
|
-
post_install_message:
|
|
750
747
|
rdoc_options: []
|
|
751
748
|
require_paths:
|
|
752
749
|
- lib
|
|
@@ -761,8 +758,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
761
758
|
- !ruby/object:Gem::Version
|
|
762
759
|
version: '0'
|
|
763
760
|
requirements: []
|
|
764
|
-
rubygems_version: 3.
|
|
765
|
-
signing_key:
|
|
761
|
+
rubygems_version: 3.6.9
|
|
766
762
|
specification_version: 4
|
|
767
763
|
summary: SDK of the LINE Messaging API for Ruby
|
|
768
764
|
test_files: []
|