Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/line/bot/v2/messaging_api/model/limit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@ class Limit
# @!attribute [rw] up_to_remaining_quota
# @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.
attr_accessor :up_to_remaining_quota
# @!attribute [rw] forbid_partial_delivery
# @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.
attr_accessor :forbid_partial_delivery

# @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.
# @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.
# @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.
def initialize(
max: nil,
up_to_remaining_quota: false,
forbid_partial_delivery: false,
**dynamic_attributes
)

@max = max
@up_to_remaining_quota = up_to_remaining_quota
@forbid_partial_delivery = forbid_partial_delivery

dynamic_attributes.each do |key, value|
self.class.attr_accessor key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NarrowcastProgressResponse
# @return [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
attr_accessor :failed_description
# @!attribute [rw] error_code
# @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.
# @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.
attr_accessor :error_code
# @!attribute [rw] accepted_time
# @return [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
Expand All @@ -43,7 +43,7 @@ class NarrowcastProgressResponse
# @param failure_count [Integer,nil] The number of users who failed to send the message.
# @param target_count [Integer,nil] The number of intended recipients of the message.
# @param failed_description [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
# @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.
# @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.
# @param accepted_time [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
# @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
def initialize(
Expand Down
2 changes: 1 addition & 1 deletion line-openapi
Submodule line-openapi updated 1 files
+10 −0 messaging-api.yml
3 changes: 3 additions & 0 deletions sig/line/bot/v2/messaging_api/model/limit.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ module Line
class Limit
attr_accessor max: Integer?
attr_accessor up_to_remaining_quota: bool?
attr_accessor forbid_partial_delivery: bool?


# @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.
# @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.
# @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.
def initialize: (
?max: Integer?,
?up_to_remaining_quota: bool?,
?forbid_partial_delivery: bool?,
**untyped dynamic_attributes
) -> void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Line
# @param failure_count [Integer,nil] The number of users who failed to send the message.
# @param target_count [Integer,nil] The number of intended recipients of the message.
# @param failed_description [String,nil] The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.
# @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.
# @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.
# @param accepted_time [String] Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC
# @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
def initialize: (
Expand Down