Class Line

    • Field Detail

      • JSON_PROPERTY_TYPE

        public static final java.lang.String JSON_PROPERTY_TYPE
        See Also:
        Constant Field Values
      • type

        protected java.lang.String type
      • JSON_PROPERTY_CHANNEL_ID

        public static final java.lang.String JSON_PROPERTY_CHANNEL_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_CHANNEL_SECRET

        public static final java.lang.String JSON_PROPERTY_CHANNEL_SECRET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_CHANNEL_ACCESS_TOKEN

        public static final java.lang.String JSON_PROPERTY_CHANNEL_ACCESS_TOKEN
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SERVICE_CODE

        public static final java.lang.String JSON_PROPERTY_SERVICE_CODE
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SWITCHER_SECRET

        public static final java.lang.String JSON_PROPERTY_SWITCHER_SECRET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_QR_CODE_URL

        public static final java.lang.String JSON_PROPERTY_QR_CODE_URL
        See Also:
        Constant Field Values
      • JSON_PROPERTY_LINE_ID

        public static final java.lang.String JSON_PROPERTY_LINE_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_DEFAULT_RESPONDER_ID

        public static final java.lang.String JSON_PROPERTY_DEFAULT_RESPONDER_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_DEFAULT_RESPONDER

        public static final java.lang.String JSON_PROPERTY_DEFAULT_RESPONDER
        See Also:
        Constant Field Values
    • Constructor Detail

      • Line

        public Line()
    • Method Detail

      • getType

        @Nullable
        public java.lang.String getType()
        For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers. You must instruct your customers how to configure this manually on their LINE bot page. Once you’ve acquired all the required information, call the Create Integration endpoint. Then, using the returned integration _id, your customer must set the Callback URL field in their LINE Business Center page. The URL should look like the following: `https://app.smooch.io:443/api/line/webhooks/{appId}/{integrationId}`.
        Overrides:
        getType in class Integration
        Returns:
        type
      • setType

        public void setType​(java.lang.String type)
        Overrides:
        setType in class Integration
      • channelId

        public Line channelId​(java.lang.String channelId)
      • getChannelId

        @Nullable
        public java.lang.String getChannelId()
        LINE Channel ID. Can be omitted along with `channelSecret` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.
        Returns:
        channelId
      • setChannelId

        public void setChannelId​(java.lang.String channelId)
      • channelSecret

        public Line channelSecret​(java.lang.String channelSecret)
      • getChannelSecret

        @Nullable
        public java.lang.String getChannelSecret()
        LINE Channel Secret. Can be omitted along with `channelId` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.
        Returns:
        channelSecret
      • setChannelSecret

        public void setChannelSecret​(java.lang.String channelSecret)
      • channelAccessToken

        public Line channelAccessToken​(java.lang.String channelAccessToken)
      • getChannelAccessToken

        @Nullable
        public java.lang.String getChannelAccessToken()
        LINE Channel Access Token.
        Returns:
        channelAccessToken
      • setChannelAccessToken

        public void setChannelAccessToken​(java.lang.String channelAccessToken)
      • serviceCode

        public Line serviceCode​(java.lang.String serviceCode)
      • getServiceCode

        @Nullable
        public java.lang.String getServiceCode()
        LINE Service Code.
        Returns:
        serviceCode
      • setServiceCode

        public void setServiceCode​(java.lang.String serviceCode)
      • switcherSecret

        public Line switcherSecret​(java.lang.String switcherSecret)
      • getSwitcherSecret

        @Nullable
        public java.lang.String getSwitcherSecret()
        LINE Switcher Secret.
        Returns:
        switcherSecret
      • setSwitcherSecret

        public void setSwitcherSecret​(java.lang.String switcherSecret)
      • qrCodeUrl

        public Line qrCodeUrl​(java.lang.String qrCodeUrl)
      • getQrCodeUrl

        @Nullable
        public java.lang.String getQrCodeUrl()
        URL provided by LINE in the [Developer Console](https://developers.line.biz/console/).
        Returns:
        qrCodeUrl
      • setQrCodeUrl

        public void setQrCodeUrl​(java.lang.String qrCodeUrl)
      • getLineId

        @Nullable
        public java.lang.String getLineId()
        LINE Basic ID. Is automatically set when qrCodeUrl is updated.
        Returns:
        lineId
      • defaultResponderId

        public Line defaultResponderId​(java.lang.String defaultResponderId)
      • getDefaultResponderId

        @Nullable
        public java.lang.String getDefaultResponderId()
        The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to <a href=\"https://docs.smooch.io/guide/switchboard/#per-channel-default-responder\">Per-channel default responder</a> guide.
        Returns:
        defaultResponderId
      • getDefaultResponderId_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getDefaultResponderId_JsonNullable()
      • setDefaultResponderId_JsonNullable

        public void setDefaultResponderId_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> defaultResponderId)
      • setDefaultResponderId

        public void setDefaultResponderId​(java.lang.String defaultResponderId)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Integration