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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@
{% if model.model.parent != null %}
require_relative './{{ model.model.parent | underscore }}'
{% endif -%}
{% if model.model.description != null %}
# {{ model.model.description }}{% endif %}{% if model.model.externalDocumentation.description != null %}
# {{ model.model.externalDocumentation.description }}{% endif %}{% if model.model.externalDocumentation.url != null %}
# @see {{ model.model.externalDocumentation.url }}{% endif %}
{{ "" | raw }}{# To break line #}
module Line
module Bot
module V2
module {{ packageName | camelize }}
{% if model.model.description != null -%}
# {{ model.model.description }}
{% endif -%}
{% if model.model.externalDocumentation.description != null -%}
# {{ model.model.externalDocumentation.description }}
{% endif -%}
{% if model.model.externalDocumentation.url != null -%}
# @see {{ model.model.externalDocumentation.url }}
{% endif -%}
class {{ model.model.classname }}{% if model.model.parent != null %} < {{ model.model.parent }}{% endif %}
{%- for property in model.model.vars %}
{% if model.model.vendorExtensions.get("x-selector").propertyName != property.name %}attr_accessor{% else %}attr_reader{% endif %} :{{ property.name }}{% if property.description != null %} # {{ property.description }}{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
{# @pebvariable name="packageName" type="String" #}
{%- for model in models -%}
{% include "./license.pebble" %}
{% if model.model.description != null -%}
# {{ model.model.description }}
{% endif -%}
{% if model.model.externalDocumentation.description != null -%}
# {{ model.model.externalDocumentation.description }}
{% endif -%}
{% if model.model.externalDocumentation.url != null -%}
# @see {{ model.model.externalDocumentation.url }}
{% endif -%}
module Line
module Bot
module V2
module {{ packageName | camelize }}
{% if model.model.description != null -%}
# {{ model.model.description }}
{% endif -%}
{% if model.model.externalDocumentation.description != null -%}
# {{ model.model.externalDocumentation.description }}
{% endif -%}
{% if model.model.externalDocumentation.url != null -%}
# @see {{ model.model.externalDocumentation.url }}
{% endif -%}
class {{ model.model.classname }}{% if model.model.parent != null %} < {{ model.model.parent }}{% endif %}
{% if not model.model.isEnum -%}
{% for variable in model.model.vars -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Channel access token key IDs
# @see https://developers.line.biz/en/reference/messaging-api/#get-all-valid-channel-access-token-key-ids-v2-1
module Line
module Bot
module V2
module ChannelAccessToken
# Channel access token key IDs
# @see https://developers.line.biz/en/reference/messaging-api/#get-all-valid-channel-access-token-key-ids-v2-1
class ChannelAccessTokenKeyIdsResponse
attr_accessor :kids # Array of channel access token key IDs.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Error response of the Channel access token
module Line
module Bot
module V2
module ChannelAccessToken
# Error response of the Channel access token
class ErrorResponse
attr_accessor :error # Error summary
attr_accessor :error_description # Details of the error. Not returned in certain situations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Issued channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1
module Line
module Bot
module V2
module ChannelAccessToken
# Issued channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1
class IssueChannelAccessTokenResponse
attr_accessor :access_token # Channel access token.
attr_accessor :expires_in # Amount of time in seconds from issue to expiration of the channel access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Issued short-lived channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token
module Line
module Bot
module V2
module ChannelAccessToken
# Issued short-lived channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token
class IssueShortLivedChannelAccessTokenResponse
attr_accessor :access_token # A short-lived channel access token. Valid for 30 days. Note: Channel access tokens cannot be refreshed.
attr_accessor :expires_in # Time until channel access token expires in seconds from time the token is issued.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Issued stateless channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
module Line
module Bot
module V2
module ChannelAccessToken
# Issued stateless channel access token
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
class IssueStatelessChannelAccessTokenResponse
attr_accessor :access_token # A stateless channel access token. The token is an opaque string which means its format is an implementation detail and the consumer of this token should never try to use the data parsed from the token.
attr_accessor :expires_in # Duration in seconds after which the issued access token expires
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Verification result
module Line
module Bot
module V2
module ChannelAccessToken
# Verification result
class VerifyChannelAccessTokenResponse
attr_accessor :client_id # The channel ID for which the channel access token was issued.
attr_accessor :expires_in # Number of seconds before the channel access token expires.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/insight/model/error_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/messaging-api/#error-responses
module Line
module Bot
module V2
module Insight
# @see https://developers.line.biz/en/reference/messaging-api/#error-responses
class ErrorResponse
attr_accessor :message # Message containing information about the error.
attr_accessor :details # An array of error details. If the array is empty, this property will not be included in the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Get friend demographics
# @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
module Line
module Bot
module V2
module Insight
# Get friend demographics
# @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
class GetFriendsDemographicsResponse
attr_accessor :available # true if friend demographic information is available.
attr_accessor :genders # Percentage per gender.
Expand Down
4 changes: 2 additions & 2 deletions lib/line/bot/v2/insight/model/get_message_event_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account.
# @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
module Line
module Bot
module V2
module Insight
# Statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account.
# @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
class GetMessageEventResponse
attr_accessor :overview
attr_accessor :messages # Array of information about individual message bubbles.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Summary of message statistics.
module Line
module Bot
module V2
module Insight
# Summary of message statistics.
class GetMessageEventResponseOverview
attr_accessor :request_id # Request ID.
attr_accessor :timestamp # UNIX timestamp for message delivery time in seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Get number of followers
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-followers
module Line
module Bot
module V2
module Insight
# Get number of followers
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-followers
class GetNumberOfFollowersResponse
attr_accessor :status # Calculation status.
attr_accessor :followers # The number of times, as of the specified date, that a user added this LINE Official Account as a friend for the first time. The number doesn't decrease even if a user later blocks the account or when they delete their LINE account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Get number of message deliveries
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-delivery-messages
module Line
module Bot
module V2
module Insight
# Get number of message deliveries
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-delivery-messages
class GetNumberOfMessageDeliveriesResponse
attr_accessor :status # Status of the counting process.
attr_accessor :broadcast # Number of messages sent to all of this LINE Official Account's friends (broadcast messages).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Response object for `get statistics per unit`
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
module Line
module Bot
module V2
module Insight
# Response object for `get statistics per unit`
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
class GetStatisticsPerUnitResponse
attr_accessor :overview
attr_accessor :messages # Array of information about individual message bubbles.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
module Line
module Bot
module V2
module Insight
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
class GetStatisticsPerUnitResponseClick
attr_accessor :seq # The URL's serial number.
attr_accessor :url # URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
module Line
module Bot
module V2
module Insight
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
class GetStatisticsPerUnitResponseMessage
attr_accessor :seq # Bubble's serial number.
attr_accessor :impression # Number of times the bubble was displayed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Statistics related to messages.
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
module Line
module Bot
module V2
module Insight
# Statistics related to messages.
# @see https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit-response
class GetStatisticsPerUnitResponseOverview
attr_accessor :unique_impression # Number of users who opened the message, meaning they displayed at least 1 bubble.
attr_accessor :unique_click # Number of users who opened any URL in the message.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/add_liff_app_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
module Line
module Bot
module V2
module Liff
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
class AddLiffAppRequest
attr_accessor :view
attr_accessor :description # Name of the LIFF app. The LIFF app name can't include \"LINE\" or similar strings, or inappropriate strings.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/liff_bot_prompt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Specify the setting for bot link feature with one of the following values: `normal`: Display the option to add the LINE Official Account as a friend in the channel consent screen. `aggressive`: Display a screen with the option to add the LINE Official Account as a friend after the channel consent screen. `none`: Don't display the option to add the LINE Official Account as a friend. The default value is none.
module Line
module Bot
module V2
module Liff
# Specify the setting for bot link feature with one of the following values: `normal`: Display the option to add the LINE Official Account as a friend in the channel consent screen. `aggressive`: Display a screen with the option to add the LINE Official Account as a friend after the channel consent screen. `none`: Don't display the option to add the LINE Official Account as a friend. The default value is none.
class LiffBotPrompt

def initialize(
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/liff_scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Array of scopes required for some LIFF SDK methods to function. The default value is `[\"profile\", \"chat_message.write\"]`.
module Line
module Bot
module V2
module Liff
# Array of scopes required for some LIFF SDK methods to function. The default value is `[\"profile\", \"chat_message.write\"]`.
class LiffScope

def initialize(
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/liff_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
module Line
module Bot
module V2
module Liff
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
class LiffView
attr_accessor :type # Size of the LIFF app view. Specify one of these values: - compact - tall - full
attr_accessor :url # Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g. https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme must be https. URL fragments (#URL-fragment) can't be specified.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/update_liff_app_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
module Line
module Bot
module V2
module Liff
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
class UpdateLiffAppRequest
attr_accessor :view
attr_accessor :description # Name of the LIFF app. The LIFF app name can't include \"LINE\" or similar strings, or inappropriate strings.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/liff/model/update_liff_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# @see https://developers.line.biz/en/reference/liff-server/#update-liff-app
module Line
module Bot
module V2
module Liff
# @see https://developers.line.biz/en/reference/liff-server/#update-liff-app
class UpdateLiffView
attr_accessor :type # Size of the LIFF app view. Specify one of these values: - compact - tall - full
attr_accessor :url # Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g. https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme must be https. URL fragments (#URL-fragment) can't be specified.
Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/manage_audience/model/adaccount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Adaccount
module Line
module Bot
module V2
module ManageAudience
# Adaccount
class Adaccount
attr_accessor :name # Ad account name.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# https://openapi-generator.tech
# Do not edit the class manually.

# Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
module Line
module Bot
module V2
module ManageAudience
# Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
class AddAudienceToAudienceGroupRequest
attr_accessor :audience_group_id # The audience ID.
attr_accessor :upload_description # The audience's name.
Expand Down
Loading