diff --git a/docs/classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html b/docs/classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html index 711d35e5a..e76a6f472 100644 --- a/docs/classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html +++ b/docs/classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html @@ -156,7 +156,7 @@

@@ -636,6 +636,18 @@

Create http client option
+
+ handleResponseWithDataType() + +  : array<string|int, mixed> +
+ +
+ responseWithinRangeCode() + +  : bool +
+ @@ -657,7 +669,7 @@

@@ -708,7 +720,7 @@

@@ -746,7 +758,7 @@

@@ -784,7 +796,7 @@

@@ -822,7 +834,7 @@

@@ -867,7 +879,7 @@

@@ -934,7 +946,7 @@

@@ -972,7 +984,7 @@

@@ -1015,7 +1027,7 @@

ChannelAccessTokenApi.php : - 172 + 175 @@ -1109,7 +1121,7 @@

ChannelAccessTokenApi.php : - 312 + 275 @@ -1193,7 +1205,7 @@

ChannelAccessTokenApi.php : - 332 + 295 @@ -1277,7 +1289,7 @@

ChannelAccessTokenApi.php : - 383 + 346 @@ -1361,7 +1373,7 @@

ChannelAccessTokenApi.php : - 189 + 192 @@ -1459,7 +1471,7 @@

@@ -1562,7 +1574,7 @@

@@ -1655,7 +1667,7 @@

ChannelAccessTokenApi.php : - 693 + 595 @@ -1748,7 +1760,7 @@

@@ -1851,7 +1863,7 @@

@@ -1944,7 +1956,7 @@

ChannelAccessTokenApi.php : - 1021 + 882 @@ -2037,7 +2049,7 @@

ChannelAccessTokenApi.php : - 1073 + 934 @@ -2130,7 +2142,7 @@

ChannelAccessTokenApi.php : - 876 + 777 @@ -2237,7 +2249,7 @@

@@ -2330,7 +2342,7 @@

ChannelAccessTokenApi.php : - 513 + 476 @@ -2437,7 +2449,7 @@

@@ -2565,7 +2577,7 @@

ChannelAccessTokenApi.php : - 1340 + 1160 @@ -2683,7 +2695,7 @@

ChannelAccessTokenApi.php : - 1365 + 1185 @@ -2801,7 +2813,7 @@

ChannelAccessTokenApi.php : - 2600 + 2395 @@ -2895,7 +2907,7 @@

ChannelAccessTokenApi.php : - 2680 + 2475 @@ -2979,7 +2991,7 @@

ChannelAccessTokenApi.php : - 2719 + 2514 @@ -3063,7 +3075,7 @@

ChannelAccessTokenApi.php : - 2641 + 2436 @@ -3161,7 +3173,7 @@

ChannelAccessTokenApi.php : - 2579 + 2374 @@ -3246,7 +3258,7 @@

ChannelAccessTokenApi.php : - 2660 + 2455 @@ -3321,7 +3333,7 @@

ChannelAccessTokenApi.php : - 2699 + 2494 @@ -3396,7 +3408,7 @@

ChannelAccessTokenApi.php : - 2620 + 2415 @@ -3485,7 +3497,7 @@

ChannelAccessTokenApi.php : - 1419 + 1239 @@ -3596,7 +3608,7 @@

ChannelAccessTokenApi.php : - 1212 + 1072 @@ -3728,7 +3740,7 @@

@@ -3749,7 +3761,7 @@

Parameters
: string
-

Channel access token (required)

+

A short-lived or long-lived channel access token. (required)

@@ -3809,7 +3821,7 @@

@@ -3830,7 +3842,7 @@

Parameters
: string
-

Channel access token (required)

+

A short-lived or long-lived channel access token. (required)

@@ -3884,7 +3896,7 @@

ChannelAccessTokenApi.php : - 1601 + 1415 @@ -3905,7 +3917,7 @@

Parameters
: string
-

Channel access token (required)

+

A short-lived or long-lived channel access token. (required)

@@ -3959,7 +3971,7 @@

@@ -4058,7 +4070,7 @@

ChannelAccessTokenApi.php : - 1793 + 1613 @@ -4151,7 +4163,7 @@

ChannelAccessTokenApi.php : - 1814 + 1634 @@ -4244,7 +4256,7 @@

ChannelAccessTokenApi.php : - 1853 + 1673 @@ -4337,7 +4349,7 @@

ChannelAccessTokenApi.php : - 1746 + 1565 @@ -4444,7 +4456,7 @@

@@ -4465,7 +4477,7 @@

Parameters
: string
-

Channel access token (required)

+

A short-lived or long-lived channel access token. (required)

@@ -4519,7 +4531,7 @@

ChannelAccessTokenApi.php : - 1537 + 1350 @@ -4540,7 +4552,7 @@

Parameters
: string
-

Channel access token (required)

+

A short-lived or long-lived channel access token. (required)

@@ -4608,7 +4620,7 @@

@@ -4655,7 +4667,7 @@

@@ -4740,7 +4752,7 @@

@@ -4815,7 +4827,7 @@

ChannelAccessTokenApi.php : - 2121 + 1900 @@ -4890,7 +4902,7 @@

@@ -4975,7 +4987,7 @@

ChannelAccessTokenApi.php : - 2398 + 2142 @@ -5050,7 +5062,7 @@

ChannelAccessTokenApi.php : - 2417 + 2161 @@ -5125,7 +5137,7 @@

ChannelAccessTokenApi.php : - 2467 + 2211 @@ -5200,7 +5212,7 @@

ChannelAccessTokenApi.php : - 2276 + 2060 @@ -5289,7 +5301,7 @@

@@ -5364,7 +5376,7 @@

ChannelAccessTokenApi.php : - 1980 + 1799 @@ -5453,7 +5465,7 @@

@@ -5498,6 +5510,123 @@

Return values
+ +
+

+ handleResponseWithDataType() + + +

+ + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
+
+ + +
Parameters
+
+
+ $dataType + : string +
+
+ +
+
+ $request + : RequestInterface +
+
+ +
+
+ $response + : ResponseInterface +
+
+ +
+
+ + + + + +
+
Return values
+ array<string|int, mixed> +
+ +
+
+

+ responseWithinRangeCode() + + +

+ + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
+
+ + +
Parameters
+
+
+ $rangeCode + : string +
+
+ +
+
+ $statusCode + : int +
+
+ +
+
+ + + + + +
+
Return values
+ bool +
+
@@ -5684,6 +5813,8 @@
Return values
  • verifyChannelTokenRequest()
  • verifyChannelTokenWithHttpInfo()
  • createHttpClientOption()
  • +
  • handleResponseWithDataType()
  • +
  • responseWithinRangeCode()
  • diff --git a/docs/classes/LINE-Clients-ChannelAccessToken-Configuration.html b/docs/classes/LINE-Clients-ChannelAccessToken-Configuration.html index 8a7d8e1f7..c04a85365 100644 --- a/docs/classes/LINE-Clients-ChannelAccessToken-Configuration.html +++ b/docs/classes/LINE-Clients-ChannelAccessToken-Configuration.html @@ -160,7 +160,7 @@

    Configuration Class Doc Comment -PHP version 7.4

    +PHP version 8.1

    @@ -269,6 +269,13 @@

    Boolean format for query string
    +
    + $certFile + +  : string +
    +
    Path to a certificate file, for mTLS
    +
    $debug @@ -290,6 +297,13 @@

    The host
    +
    + $keyFile + +  : string +
    +
    Path to a key file, for mTLS
    +
    $password @@ -374,6 +388,13 @@

    Gets boolean format for query string.
    +
    + getCertFile() + +  : string +
    +
    Gets the certificate file path, for mTLS
    +
    getDebug() @@ -423,6 +444,13 @@

    Returns URL based on host settings, index and variables
    +
    + getKeyFile() + +  : string +
    +
    Gets the certificate key path, for mTLS
    +
    getPassword() @@ -479,6 +507,13 @@

    Sets boolean format for query string.
    +
    + setCertFile() + +  : $this +
    +
    Sets the certificate file path, for mTLS
    +
    setDebug() @@ -507,6 +542,13 @@

    Sets the host
    +
    + setKeyFile() + +  : $this +
    +
    Sets the certificate key path, for mTLS
    +
    setPassword() @@ -779,6 +821,45 @@

    +

    + $certFile + + + + +

    + + +

    Path to a certificate file, for mTLS

    + + + + protected + string + $certFile + + + + + + + + + +
    +
    +
    +

    + $keyFile + + + + +

    + + +

    Path to a key file, for mTLS

    + + + + protected + string + $keyFile + + + + + + + + + +
    +
    +

    + getCertFile() + + +

    + + +

    Gets the certificate file path, for mTLS

    + + + public + getCertFile() : string + +
    +
    + + + + + + + +
    +
    Return values
    + string + — +

    Certificate file path

    +
    + +
    +
    +
    +

    + getKeyFile() + + +

    + + +

    Gets the certificate key path, for mTLS

    + + + public + getKeyFile() : string + +
    +
    + + + + + + + +
    +
    Return values
    + string + — +

    Certificate key path

    +
    + +
    +
    +
    +

    + setCertFile() + + +

    + + +

    Sets the certificate file path, for mTLS

    + + + public + setCertFile(mixed $certFile) : $this + +
    +
    + + +
    Parameters
    +
    +
    + $certFile + : mixed +
    +
    + +
    +
    + + + + +
    Return values
    $this @@ -2129,7 +2384,7 @@

    @@ -2180,7 +2435,7 @@

    @@ -2231,7 +2486,7 @@

    @@ -2278,7 +2533,7 @@

    @@ -2309,6 +2564,55 @@

    Parameters
    +
    +
    Return values
    + $this +
    + +
    +
    +

    + setKeyFile() + + +

    + + +

    Sets the certificate key path, for mTLS

    + + + public + setKeyFile(mixed $keyFile) : $this + +
    +
    + + +
    Parameters
    +
    +
    + $keyFile + : mixed +
    +
    + +
    +
    + + + + +
    Return values
    $this @@ -2329,7 +2633,7 @@

    @@ -2380,7 +2684,7 @@

    @@ -2431,7 +2735,7 @@

    @@ -2497,7 +2801,7 @@

    @@ -2548,7 +2852,7 @@

    @@ -2704,9 +3008,11 @@

    Return values
  • $apiKeyPrefixes
  • $apiKeys
  • $booleanFormatForQueryString
  • +
  • $certFile
  • $debug
  • $debugFile
  • $host
  • +
  • $keyFile
  • $password
  • $tempFolderPath
  • $userAgent
  • @@ -2724,6 +3030,7 @@
    Return values
  • getApiKeyPrefix()
  • getApiKeyWithPrefix()
  • getBooleanFormatForQueryString()
  • +
  • getCertFile()
  • getDebug()
  • getDebugFile()
  • getDefaultConfiguration()
  • @@ -2731,6 +3038,7 @@
    Return values
  • getHostFromSettings()
  • getHostSettings()
  • getHostString()
  • +
  • getKeyFile()
  • getPassword()
  • getTempFolderPath()
  • getUserAgent()
  • @@ -2739,10 +3047,12 @@
    Return values
  • setApiKey()
  • setApiKeyPrefix()
  • setBooleanFormatForQueryString()
  • +
  • setCertFile()
  • setDebug()
  • setDebugFile()
  • setDefaultConfiguration()
  • setHost()
  • +
  • setKeyFile()
  • setPassword()
  • setTempFolderPath()
  • setUserAgent()
  • diff --git a/docs/classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html b/docs/classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html new file mode 100644 index 000000000..e6f83786e --- /dev/null +++ b/docs/classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html @@ -0,0 +1,817 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
    +

    LINE Messaging API SDK for PHP

    + + + + + +
    + +
    +
    + + + + +
    +
    + + +
    +

    + FormDataProcessor + + +
    + in package + +
    + + +

    + +
    + + +
    + + + +

    FormDataProcessor Class Doc Comment

    + + + + +
    + Tags + + +
    +
    +
    + category +
    +
    + +

    Class

    +
    + +
    +
    + author +
    +
    + +

    OpenAPI Generator team

    +
    + +
    +
    + link +
    +
    + https://openapi-generator.tech + +
    +
    + + + + + +

    + Table of Contents + + +

    + + + + + + + + + +

    + Properties + + +

    +
    +
    + $has_file + +  : bool +
    +
    Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
    + +
    + +

    + Methods + + +

    +
    +
    + flatten() + +  : array<string|int, mixed> +
    +
    Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
    + +
    + prepare() + +  : array<string|int, mixed> +
    +
    Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
    + +
    + makeFormSafe() + +  : mixed +
    +
    formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
    + +
    + processFiles() + +  : array<string|int, mixed> +
    +
    Handle file data
    + +
    + processModel() + +  : array<string|int, mixed> +
    +
    We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
    + +
    + tryFopen() + +  : mixed +
    + +
    + + + + + + +
    +

    + Properties + + +

    +
    +

    + $has_file + + + + +

    + + +

    Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

    + + + + public + bool + $has_file + = false + + + + + + + + + +
    +
    + +
    +

    + Methods + + +

    +
    +

    + flatten() + + +

    + + +

    Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

    + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
    +
    + +

    credit: https://github.com/FranBar1966/FlatPHP

    +
    + +
    Parameters
    +
    +
    + $source + : array<string|int, mixed> +
    +
    + +
    +
    + $start + : string + = ''
    +
    + +
    +
    + + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + prepare() + + +

    + + +

    Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

    + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
    +
    + + +
    Parameters
    +
    +
    + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
    +
    +

    the value of the form parameter

    +
    + +
    +
    + + + + + +
    +
    Return values
    + array<string|int, mixed> + — +

    [key => value] of formdata

    +
    + +
    + +
    +
    +

    + makeFormSafe() + + +

    + + +

    formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

    + + + protected + makeFormSafe(mixed $value) : mixed + +
    +
    + + +
    Parameters
    +
    +
    + $value + : mixed +
    +
    + +
    +
    + + + + + + +
    +
    +

    + processFiles() + + +

    + + +

    Handle file data

    + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
    +
    + + +
    Parameters
    +
    +
    + $files + : array<string|int, mixed> +
    +
    + +
    +
    + + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + processModel() + + +

    + + +

    We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

    + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
    +
    + + +
    Parameters
    +
    +
    + $model + : ModelInterface +
    +
    + +
    +
    + + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + tryFopen() + + +

    + + + + + private + tryFopen(SplFileObject $file) : mixed + +
    +
    + + +
    Parameters
    +
    +
    + $file + : SplFileObject +
    +
    + +
    +
    + + + + + + +
    +
    + +
    +
    +
    +
    +
    
    +        
    + +
    +
    + + + +
    +
    +
    + +
    + On this page + + +
    + +
    +
    +
    +
    +
    +

    Search results

    + +
    +
    +
      +
      +
      +
      +
      + + +
      + + + + + + + + diff --git a/docs/classes/LINE-Clients-ChannelAccessToken-ObjectSerializer.html b/docs/classes/LINE-Clients-ChannelAccessToken-ObjectSerializer.html index 70c7e9d71..83ea7fa99 100644 --- a/docs/classes/LINE-Clients-ChannelAccessToken-ObjectSerializer.html +++ b/docs/classes/LINE-Clients-ChannelAccessToken-ObjectSerializer.html @@ -155,7 +155,7 @@

      @@ -378,7 +378,7 @@

      @@ -421,7 +421,7 @@

      @@ -489,7 +489,7 @@

      ObjectSerializer.php : - 313 + 312 @@ -544,7 +544,7 @@

      @@ -617,7 +617,7 @@

      @@ -674,7 +674,7 @@

      @@ -747,7 +747,7 @@

      @@ -802,7 +802,7 @@

      @@ -872,7 +872,7 @@

      @@ -919,7 +919,7 @@

      @@ -976,7 +976,7 @@

      @@ -1033,7 +1033,7 @@

      @@ -1089,7 +1089,7 @@

      @@ -1186,7 +1186,7 @@

      @@ -1244,7 +1244,7 @@

      @@ -1304,7 +1304,7 @@

      diff --git a/docs/classes/LINE-Clients-Insight-Api-InsightApi.html b/docs/classes/LINE-Clients-Insight-Api-InsightApi.html index a52f7de6a..2a6d3249a 100644 --- a/docs/classes/LINE-Clients-Insight-Api-InsightApi.html +++ b/docs/classes/LINE-Clients-Insight-Api-InsightApi.html @@ -156,7 +156,7 @@

      @@ -475,6 +475,18 @@

      Create http client option
      +
      + handleResponseWithDataType() + +  : array<string|int, mixed> +
      + +
      + responseWithinRangeCode() + +  : bool +
      + @@ -496,7 +508,7 @@

      @@ -547,7 +559,7 @@

      @@ -585,7 +597,7 @@

      @@ -623,7 +635,7 @@

      @@ -661,7 +673,7 @@

      @@ -706,7 +718,7 @@

      @@ -773,7 +785,7 @@

      @@ -811,7 +823,7 @@

      @@ -887,7 +899,7 @@

      @@ -953,7 +965,7 @@

      InsightApi.php : - 315 + 278 @@ -1019,7 +1031,7 @@

      InsightApi.php : - 364 + 327 @@ -1085,7 +1097,7 @@

      InsightApi.php : - 176 + 179 @@ -1165,7 +1177,7 @@

      @@ -1208,7 +1220,7 @@

      @@ -1295,7 +1307,7 @@

      @@ -1372,7 +1384,7 @@

      InsightApi.php : - 611 + 534 @@ -1449,7 +1461,7 @@

      @@ -1524,7 +1536,7 @@

      @@ -1615,7 +1627,7 @@

      @@ -1702,7 +1714,7 @@

      @@ -1779,7 +1791,7 @@

      InsightApi.php : - 927 + 810 @@ -1856,7 +1868,7 @@

      @@ -1931,7 +1943,7 @@

      InsightApi.php : - 782 + 705 @@ -2022,7 +2034,7 @@

      InsightApi.php : - 1080 + 963 @@ -2109,7 +2121,7 @@

      InsightApi.php : - 1222 + 1065 @@ -2186,7 +2198,7 @@

      InsightApi.php : - 1243 + 1086 @@ -2263,7 +2275,7 @@

      InsightApi.php : - 1293 + 1136 @@ -2338,7 +2350,7 @@

      InsightApi.php : - 1098 + 981 @@ -2429,7 +2441,7 @@

      @@ -2532,7 +2544,7 @@

      @@ -2625,7 +2637,7 @@

      InsightApi.php : - 1565 + 1368 @@ -2718,7 +2730,7 @@

      @@ -2811,7 +2823,7 @@

      InsightApi.php : - 1420 + 1263 @@ -2918,7 +2930,7 @@

      @@ -2965,7 +2977,7 @@

      @@ -3010,6 +3022,123 @@

      Return values
      + +
      +

      + handleResponseWithDataType() + + +

      + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
      +
      + + +
      Parameters
      +
      +
      + $dataType + : string +
      +
      + +
      +
      + $request + : RequestInterface +
      +
      + +
      +
      + $response + : ResponseInterface +
      +
      + +
      +
      + + + + + +
      +
      Return values
      + array<string|int, mixed> +
      + +
      +
      +

      + responseWithinRangeCode() + + +

      + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
      +
      + + +
      Parameters
      +
      +
      + $rangeCode + : string +
      +
      + +
      +
      + $statusCode + : int +
      +
      + +
      +
      + + + + + +
      +
      Return values
      + bool +
      +
      @@ -3173,6 +3302,8 @@
      Return values
    • getStatisticsPerUnitWithHttpInfo()
    • setHostIndex()
    • createHttpClientOption()
    • +
    • handleResponseWithDataType()
    • +
    • responseWithinRangeCode()
    • diff --git a/docs/classes/LINE-Clients-Insight-Configuration.html b/docs/classes/LINE-Clients-Insight-Configuration.html index c62d6a160..f3357e0e8 100644 --- a/docs/classes/LINE-Clients-Insight-Configuration.html +++ b/docs/classes/LINE-Clients-Insight-Configuration.html @@ -160,7 +160,7 @@

      Configuration Class Doc Comment -PHP version 7.4

      +PHP version 8.1

      @@ -269,6 +269,13 @@

      Boolean format for query string
      +
      + $certFile + +  : string +
      +
      Path to a certificate file, for mTLS
      +
      $debug @@ -290,6 +297,13 @@

      The host
      +
      + $keyFile + +  : string +
      +
      Path to a key file, for mTLS
      +
      $password @@ -374,6 +388,13 @@

      Gets boolean format for query string.
      +
      + getCertFile() + +  : string +
      +
      Gets the certificate file path, for mTLS
      +
      getDebug() @@ -423,6 +444,13 @@

      Returns URL based on host settings, index and variables
      +
      + getKeyFile() + +  : string +
      +
      Gets the certificate key path, for mTLS
      +
      getPassword() @@ -479,6 +507,13 @@

      Sets boolean format for query string.
      +
      + setCertFile() + +  : $this +
      +
      Sets the certificate file path, for mTLS
      +
      setDebug() @@ -507,6 +542,13 @@

      Sets the host
      +
      + setKeyFile() + +  : $this +
      +
      Sets the certificate key path, for mTLS
      +
      setPassword() @@ -779,6 +821,45 @@

      +

      + $certFile + + + + +

      + + +

      Path to a certificate file, for mTLS

      + + + + protected + string + $certFile + + + + + + + + + +
      +
      +
      +

      + $keyFile + + + + +

      + + +

      Path to a key file, for mTLS

      + + + + protected + string + $keyFile + + + + + + + + + +
      +
      +

      + getCertFile() + + +

      + + +

      Gets the certificate file path, for mTLS

      + + + public + getCertFile() : string + +
      +
      + + + + + + + +
      +
      Return values
      + string + — +

      Certificate file path

      +
      + +
      +
      +
      +

      + getKeyFile() + + +

      + + +

      Gets the certificate key path, for mTLS

      + + + public + getKeyFile() : string + +
      +
      + + + + + + + +
      +
      Return values
      + string + — +

      Certificate key path

      +
      + +
      +
      +
      +

      + setCertFile() + + +

      + + +

      Sets the certificate file path, for mTLS

      + + + public + setCertFile(mixed $certFile) : $this + +
      +
      + + +
      Parameters
      +
      +
      + $certFile + : mixed +
      +
      + +
      +
      + + + + +
      Return values
      $this @@ -2129,7 +2384,7 @@

      @@ -2180,7 +2435,7 @@

      @@ -2231,7 +2486,7 @@

      @@ -2278,7 +2533,7 @@

      @@ -2309,6 +2564,55 @@

      Parameters
      +
      +
      Return values
      + $this +
      + +
      +
      +

      + setKeyFile() + + +

      + + +

      Sets the certificate key path, for mTLS

      + + + public + setKeyFile(mixed $keyFile) : $this + +
      +
      + + +
      Parameters
      +
      +
      + $keyFile + : mixed +
      +
      + +
      +
      + + + + +
      Return values
      $this @@ -2329,7 +2633,7 @@

      @@ -2380,7 +2684,7 @@

      @@ -2431,7 +2735,7 @@

      @@ -2497,7 +2801,7 @@

      @@ -2548,7 +2852,7 @@

      @@ -2704,9 +3008,11 @@

      Return values
    • $apiKeyPrefixes
    • $apiKeys
    • $booleanFormatForQueryString
    • +
    • $certFile
    • $debug
    • $debugFile
    • $host
    • +
    • $keyFile
    • $password
    • $tempFolderPath
    • $userAgent
    • @@ -2724,6 +3030,7 @@
      Return values
    • getApiKeyPrefix()
    • getApiKeyWithPrefix()
    • getBooleanFormatForQueryString()
    • +
    • getCertFile()
    • getDebug()
    • getDebugFile()
    • getDefaultConfiguration()
    • @@ -2731,6 +3038,7 @@
      Return values
    • getHostFromSettings()
    • getHostSettings()
    • getHostString()
    • +
    • getKeyFile()
    • getPassword()
    • getTempFolderPath()
    • getUserAgent()
    • @@ -2739,10 +3047,12 @@
      Return values
    • setApiKey()
    • setApiKeyPrefix()
    • setBooleanFormatForQueryString()
    • +
    • setCertFile()
    • setDebug()
    • setDebugFile()
    • setDefaultConfiguration()
    • setHost()
    • +
    • setKeyFile()
    • setPassword()
    • setTempFolderPath()
    • setUserAgent()
    • diff --git a/docs/classes/LINE-Clients-Insight-FormDataProcessor.html b/docs/classes/LINE-Clients-Insight-FormDataProcessor.html new file mode 100644 index 000000000..43fbf9f78 --- /dev/null +++ b/docs/classes/LINE-Clients-Insight-FormDataProcessor.html @@ -0,0 +1,817 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
      +

      LINE Messaging API SDK for PHP

      + + + + + +
      + +
      +
      + + + + +
      +
      + + +
      +

      + FormDataProcessor + + +
      + in package + +
      + + +

      + +
      + + +
      + + + +

      FormDataProcessor Class Doc Comment

      + + + + +
      + Tags + + +
      +
      +
      + category +
      +
      + +

      Class

      +
      + +
      +
      + author +
      +
      + +

      OpenAPI Generator team

      +
      + +
      +
      + link +
      +
      + https://openapi-generator.tech + +
      +
      + + + + + +

      + Table of Contents + + +

      + + + + + + + + + +

      + Properties + + +

      +
      +
      + $has_file + +  : bool +
      +
      Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
      + +
      + +

      + Methods + + +

      +
      +
      + flatten() + +  : array<string|int, mixed> +
      +
      Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
      + +
      + prepare() + +  : array<string|int, mixed> +
      +
      Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
      + +
      + makeFormSafe() + +  : mixed +
      +
      formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
      + +
      + processFiles() + +  : array<string|int, mixed> +
      +
      Handle file data
      + +
      + processModel() + +  : array<string|int, mixed> +
      +
      We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
      + +
      + tryFopen() + +  : mixed +
      + +
      + + + + + + +
      +

      + Properties + + +

      +
      +

      + $has_file + + + + +

      + + +

      Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

      + + + + public + bool + $has_file + = false + + + + + + + + + +
      +
      + +
      +

      + Methods + + +

      +
      +

      + flatten() + + +

      + + +

      Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

      + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
      +
      + +

      credit: https://github.com/FranBar1966/FlatPHP

      +
      + +
      Parameters
      +
      +
      + $source + : array<string|int, mixed> +
      +
      + +
      +
      + $start + : string + = ''
      +
      + +
      +
      + + + + + +
      +
      Return values
      + array<string|int, mixed> +
      + +
      +
      +

      + prepare() + + +

      + + +

      Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

      + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
      +
      + + +
      Parameters
      +
      +
      + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
      +
      +

      the value of the form parameter

      +
      + +
      +
      + + + + + +
      +
      Return values
      + array<string|int, mixed> + — +

      [key => value] of formdata

      +
      + +
      + +
      +
      +

      + makeFormSafe() + + +

      + + +

      formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

      + + + protected + makeFormSafe(mixed $value) : mixed + +
      +
      + + +
      Parameters
      +
      +
      + $value + : mixed +
      +
      + +
      +
      + + + + + + +
      +
      +

      + processFiles() + + +

      + + +

      Handle file data

      + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
      +
      + + +
      Parameters
      +
      +
      + $files + : array<string|int, mixed> +
      +
      + +
      +
      + + + + + +
      +
      Return values
      + array<string|int, mixed> +
      + +
      +
      +

      + processModel() + + +

      + + +

      We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

      + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
      +
      + + +
      Parameters
      +
      +
      + $model + : ModelInterface +
      +
      + +
      +
      + + + + + +
      +
      Return values
      + array<string|int, mixed> +
      + +
      +
      +

      + tryFopen() + + +

      + + + + + private + tryFopen(SplFileObject $file) : mixed + +
      +
      + + +
      Parameters
      +
      +
      + $file + : SplFileObject +
      +
      + +
      +
      + + + + + + +
      +
      + +
      +
      +
      +
      +
      
      +        
      + +
      +
      + + + +
      +
      +
      + +
      + On this page + + +
      + +
      +
      +
      +
      +
      +

      Search results

      + +
      +
      +
        +
        +
        +
        +
        + + +
        + + + + + + + + diff --git a/docs/classes/LINE-Clients-Insight-ObjectSerializer.html b/docs/classes/LINE-Clients-Insight-ObjectSerializer.html index 7227b07e0..af77ae423 100644 --- a/docs/classes/LINE-Clients-Insight-ObjectSerializer.html +++ b/docs/classes/LINE-Clients-Insight-ObjectSerializer.html @@ -155,7 +155,7 @@

        @@ -378,7 +378,7 @@

        @@ -421,7 +421,7 @@

        @@ -489,7 +489,7 @@

        ObjectSerializer.php : - 313 + 312 @@ -544,7 +544,7 @@

        @@ -617,7 +617,7 @@

        @@ -674,7 +674,7 @@

        @@ -747,7 +747,7 @@

        @@ -802,7 +802,7 @@

        @@ -872,7 +872,7 @@

        @@ -919,7 +919,7 @@

        @@ -976,7 +976,7 @@

        @@ -1033,7 +1033,7 @@

        @@ -1089,7 +1089,7 @@

        @@ -1186,7 +1186,7 @@

        @@ -1244,7 +1244,7 @@

        @@ -1304,7 +1304,7 @@

        diff --git a/docs/classes/LINE-Clients-Liff-Api-LiffApi.html b/docs/classes/LINE-Clients-Liff-Api-LiffApi.html index e92c47eef..9427ee060 100644 --- a/docs/classes/LINE-Clients-Liff-Api-LiffApi.html +++ b/docs/classes/LINE-Clients-Liff-Api-LiffApi.html @@ -156,7 +156,7 @@

        @@ -440,6 +440,18 @@

        Create http client option
        +
        + handleResponseWithDataType() + +  : array<string|int, mixed> +
        + +
        + responseWithinRangeCode() + +  : bool +
        + @@ -461,7 +473,7 @@

        @@ -512,7 +524,7 @@

        @@ -550,7 +562,7 @@

        @@ -588,7 +600,7 @@

        @@ -626,7 +638,7 @@

        @@ -671,7 +683,7 @@

        @@ -738,7 +750,7 @@

        @@ -825,7 +837,7 @@

        @@ -902,7 +914,7 @@

        @@ -979,7 +991,7 @@

        @@ -1054,7 +1066,7 @@

        @@ -1145,7 +1157,7 @@

        @@ -1228,7 +1240,7 @@

        @@ -1305,7 +1317,7 @@

        LiffApi.php : - 557 + 521 @@ -1382,7 +1394,7 @@

        @@ -1457,7 +1469,7 @@

        @@ -1548,7 +1560,7 @@

        @@ -1626,7 +1638,7 @@

        @@ -1694,7 +1706,7 @@

        LiffApi.php : - 852 + 776 @@ -1762,7 +1774,7 @@

        @@ -1828,7 +1840,7 @@

        @@ -1910,7 +1922,7 @@

        @@ -1948,7 +1960,7 @@

        @@ -1991,7 +2003,7 @@

        @@ -2038,7 +2050,7 @@

        @@ -2130,7 +2142,7 @@

        @@ -2216,7 +2228,7 @@

        LiffApi.php : - 1074 + 999 @@ -2302,7 +2314,7 @@

        @@ -2386,7 +2398,7 @@

        @@ -2486,7 +2498,7 @@

        @@ -2531,6 +2543,123 @@

        Return values
        + +
        +

        + handleResponseWithDataType() + + +

        + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
        +
        + + +
        Parameters
        +
        +
        + $dataType + : string +
        +
        + +
        +
        + $request + : RequestInterface +
        +
        + +
        +
        + $response + : ResponseInterface +
        +
        + +
        +
        + + + + + +
        +
        Return values
        + array<string|int, mixed> +
        + +
        +
        +

        + responseWithinRangeCode() + + +

        + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
        +
        + + +
        Parameters
        +
        +
        + $rangeCode + : string +
        +
        + +
        +
        + $statusCode + : int +
        +
        + +
        +
        + + + + + +
        +
        Return values
        + bool +
        +
        @@ -2689,6 +2818,8 @@
        Return values
      • updateLIFFAppRequest()
      • updateLIFFAppWithHttpInfo()
      • createHttpClientOption()
      • +
      • handleResponseWithDataType()
      • +
      • responseWithinRangeCode()
      • diff --git a/docs/classes/LINE-Clients-Liff-Configuration.html b/docs/classes/LINE-Clients-Liff-Configuration.html index cbc9fc533..034f8a540 100644 --- a/docs/classes/LINE-Clients-Liff-Configuration.html +++ b/docs/classes/LINE-Clients-Liff-Configuration.html @@ -160,7 +160,7 @@

        Configuration Class Doc Comment -PHP version 7.4

        +PHP version 8.1

        @@ -269,6 +269,13 @@

        Boolean format for query string
        +
        + $certFile + +  : string +
        +
        Path to a certificate file, for mTLS
        +
        $debug @@ -290,6 +297,13 @@

        The host
        +
        + $keyFile + +  : string +
        +
        Path to a key file, for mTLS
        +
        $password @@ -374,6 +388,13 @@

        Gets boolean format for query string.
        +
        + getCertFile() + +  : string +
        +
        Gets the certificate file path, for mTLS
        +
        getDebug() @@ -423,6 +444,13 @@

        Returns URL based on host settings, index and variables
        +
        + getKeyFile() + +  : string +
        +
        Gets the certificate key path, for mTLS
        +
        getPassword() @@ -479,6 +507,13 @@

        Sets boolean format for query string.
        +
        + setCertFile() + +  : $this +
        +
        Sets the certificate file path, for mTLS
        +
        setDebug() @@ -507,6 +542,13 @@

        Sets the host
        +
        + setKeyFile() + +  : $this +
        +
        Sets the certificate key path, for mTLS
        +
        setPassword() @@ -779,6 +821,45 @@

        +

        + $certFile + + + + +

        + + +

        Path to a certificate file, for mTLS

        + + + + protected + string + $certFile + + + + + + + + + +
        +
        +
        +

        + $keyFile + + + + +

        + + +

        Path to a key file, for mTLS

        + + + + protected + string + $keyFile + + + + + + + + + +
        +
        +

        + getCertFile() + + +

        + + +

        Gets the certificate file path, for mTLS

        + + + public + getCertFile() : string + +
        +
        + + + + + + + +
        +
        Return values
        + string + — +

        Certificate file path

        +
        + +
        +
        +
        +

        + getKeyFile() + + +

        + + +

        Gets the certificate key path, for mTLS

        + + + public + getKeyFile() : string + +
        +
        + + + + + + + +
        +
        Return values
        + string + — +

        Certificate key path

        +
        + +
        +
        +
        +

        + setCertFile() + + +

        + + +

        Sets the certificate file path, for mTLS

        + + + public + setCertFile(mixed $certFile) : $this + +
        +
        + + +
        Parameters
        +
        +
        + $certFile + : mixed +
        +
        + +
        +
        + + + + +
        Return values
        $this @@ -2129,7 +2384,7 @@

        @@ -2180,7 +2435,7 @@

        @@ -2231,7 +2486,7 @@

        @@ -2278,7 +2533,7 @@

        @@ -2309,6 +2564,55 @@

        Parameters
        +
        +
        Return values
        + $this +
        + +
        +
        +

        + setKeyFile() + + +

        + + +

        Sets the certificate key path, for mTLS

        + + + public + setKeyFile(mixed $keyFile) : $this + +
        +
        + + +
        Parameters
        +
        +
        + $keyFile + : mixed +
        +
        + +
        +
        + + + + +
        Return values
        $this @@ -2329,7 +2633,7 @@

        @@ -2380,7 +2684,7 @@

        @@ -2431,7 +2735,7 @@

        @@ -2497,7 +2801,7 @@

        @@ -2548,7 +2852,7 @@

        @@ -2704,9 +3008,11 @@

        Return values
      • $apiKeyPrefixes
      • $apiKeys
      • $booleanFormatForQueryString
      • +
      • $certFile
      • $debug
      • $debugFile
      • $host
      • +
      • $keyFile
      • $password
      • $tempFolderPath
      • $userAgent
      • @@ -2724,6 +3030,7 @@
        Return values
      • getApiKeyPrefix()
      • getApiKeyWithPrefix()
      • getBooleanFormatForQueryString()
      • +
      • getCertFile()
      • getDebug()
      • getDebugFile()
      • getDefaultConfiguration()
      • @@ -2731,6 +3038,7 @@
        Return values
      • getHostFromSettings()
      • getHostSettings()
      • getHostString()
      • +
      • getKeyFile()
      • getPassword()
      • getTempFolderPath()
      • getUserAgent()
      • @@ -2739,10 +3047,12 @@
        Return values
      • setApiKey()
      • setApiKeyPrefix()
      • setBooleanFormatForQueryString()
      • +
      • setCertFile()
      • setDebug()
      • setDebugFile()
      • setDefaultConfiguration()
      • setHost()
      • +
      • setKeyFile()
      • setPassword()
      • setTempFolderPath()
      • setUserAgent()
      • diff --git a/docs/classes/LINE-Clients-Liff-FormDataProcessor.html b/docs/classes/LINE-Clients-Liff-FormDataProcessor.html new file mode 100644 index 000000000..15eb8ffe1 --- /dev/null +++ b/docs/classes/LINE-Clients-Liff-FormDataProcessor.html @@ -0,0 +1,817 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
        +

        LINE Messaging API SDK for PHP

        + + + + + +
        + +
        +
        + + + + +
        +
        + + +
        +

        + FormDataProcessor + + +
        + in package + +
        + + +

        + +
        + + +
        + + + +

        FormDataProcessor Class Doc Comment

        + + + + +
        + Tags + + +
        +
        +
        + category +
        +
        + +

        Class

        +
        + +
        +
        + author +
        +
        + +

        OpenAPI Generator team

        +
        + +
        +
        + link +
        +
        + https://openapi-generator.tech + +
        +
        + + + + + +

        + Table of Contents + + +

        + + + + + + + + + +

        + Properties + + +

        +
        +
        + $has_file + +  : bool +
        +
        Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
        + +
        + +

        + Methods + + +

        +
        +
        + flatten() + +  : array<string|int, mixed> +
        +
        Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
        + +
        + prepare() + +  : array<string|int, mixed> +
        +
        Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
        + +
        + makeFormSafe() + +  : mixed +
        +
        formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
        + +
        + processFiles() + +  : array<string|int, mixed> +
        +
        Handle file data
        + +
        + processModel() + +  : array<string|int, mixed> +
        +
        We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
        + +
        + tryFopen() + +  : mixed +
        + +
        + + + + + + +
        +

        + Properties + + +

        +
        +

        + $has_file + + + + +

        + + +

        Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

        + + + + public + bool + $has_file + = false + + + + + + + + + +
        +
        + +
        +

        + Methods + + +

        +
        +

        + flatten() + + +

        + + +

        Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

        + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
        +
        + +

        credit: https://github.com/FranBar1966/FlatPHP

        +
        + +
        Parameters
        +
        +
        + $source + : array<string|int, mixed> +
        +
        + +
        +
        + $start + : string + = ''
        +
        + +
        +
        + + + + + +
        +
        Return values
        + array<string|int, mixed> +
        + +
        +
        +

        + prepare() + + +

        + + +

        Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

        + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
        +
        + + +
        Parameters
        +
        +
        + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
        +
        +

        the value of the form parameter

        +
        + +
        +
        + + + + + +
        +
        Return values
        + array<string|int, mixed> + — +

        [key => value] of formdata

        +
        + +
        + +
        +
        +

        + makeFormSafe() + + +

        + + +

        formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

        + + + protected + makeFormSafe(mixed $value) : mixed + +
        +
        + + +
        Parameters
        +
        +
        + $value + : mixed +
        +
        + +
        +
        + + + + + + +
        +
        +

        + processFiles() + + +

        + + +

        Handle file data

        + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
        +
        + + +
        Parameters
        +
        +
        + $files + : array<string|int, mixed> +
        +
        + +
        +
        + + + + + +
        +
        Return values
        + array<string|int, mixed> +
        + +
        +
        +

        + processModel() + + +

        + + +

        We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

        + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
        +
        + + +
        Parameters
        +
        +
        + $model + : ModelInterface +
        +
        + +
        +
        + + + + + +
        +
        Return values
        + array<string|int, mixed> +
        + +
        +
        +

        + tryFopen() + + +

        + + + + + private + tryFopen(SplFileObject $file) : mixed + +
        +
        + + +
        Parameters
        +
        +
        + $file + : SplFileObject +
        +
        + +
        +
        + + + + + + +
        +
        + +
        +
        +
        +
        +
        
        +        
        + +
        +
        + + + +
        +
        +
        + +
        + On this page + + +
        + +
        +
        +
        +
        +
        +

        Search results

        + +
        +
        +
          +
          +
          +
          +
          + + +
          + + + + + + + + diff --git a/docs/classes/LINE-Clients-Liff-ObjectSerializer.html b/docs/classes/LINE-Clients-Liff-ObjectSerializer.html index 46666dfab..afe4ac463 100644 --- a/docs/classes/LINE-Clients-Liff-ObjectSerializer.html +++ b/docs/classes/LINE-Clients-Liff-ObjectSerializer.html @@ -155,7 +155,7 @@

          @@ -378,7 +378,7 @@

          @@ -421,7 +421,7 @@

          @@ -489,7 +489,7 @@

          ObjectSerializer.php : - 313 + 312 @@ -544,7 +544,7 @@

          @@ -617,7 +617,7 @@

          @@ -674,7 +674,7 @@

          @@ -747,7 +747,7 @@

          @@ -802,7 +802,7 @@

          @@ -872,7 +872,7 @@

          @@ -919,7 +919,7 @@

          @@ -976,7 +976,7 @@

          @@ -1033,7 +1033,7 @@

          @@ -1089,7 +1089,7 @@

          @@ -1186,7 +1186,7 @@

          @@ -1244,7 +1244,7 @@

          @@ -1304,7 +1304,7 @@

          diff --git a/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html b/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html index d51a9b1ce..ad1dd46fb 100644 --- a/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html +++ b/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html @@ -156,7 +156,7 @@

          @@ -650,6 +650,18 @@

          Create http client option
          +
          + handleResponseWithDataType() + +  : array<string|int, mixed> +
          + +
          + responseWithinRangeCode() + +  : bool +
          + @@ -671,7 +683,7 @@

          @@ -722,7 +734,7 @@

          @@ -760,7 +772,7 @@

          @@ -798,7 +810,7 @@

          @@ -836,7 +848,7 @@

          @@ -881,7 +893,7 @@

          @@ -948,7 +960,7 @@

          @@ -1029,7 +1041,7 @@

          ManageAudienceApi.php : - 237 + 241 @@ -1104,7 +1116,7 @@

          ManageAudienceApi.php : - 256 + 260 @@ -1179,7 +1191,7 @@

          ManageAudienceApi.php : - 293 + 297 @@ -1254,7 +1266,7 @@

          ManageAudienceApi.php : - 192 + 195 @@ -1343,7 +1355,7 @@

          @@ -1428,7 +1440,7 @@

          @@ -1503,7 +1515,7 @@

          ManageAudienceApi.php : - 546 + 510 @@ -1578,7 +1590,7 @@

          @@ -1653,7 +1665,7 @@

          ManageAudienceApi.php : - 405 + 409 @@ -1742,7 +1754,7 @@

          ManageAudienceApi.php : - 692 + 656 @@ -1827,7 +1839,7 @@

          ManageAudienceApi.php : - 830 + 754 @@ -1902,7 +1914,7 @@

          ManageAudienceApi.php : - 849 + 773 @@ -1977,7 +1989,7 @@

          ManageAudienceApi.php : - 899 + 823 @@ -2052,7 +2064,7 @@

          ManageAudienceApi.php : - 708 + 672 @@ -2141,7 +2153,7 @@

          @@ -2226,7 +2238,7 @@

          ManageAudienceApi.php : - 1133 + 1017 @@ -2301,7 +2313,7 @@

          ManageAudienceApi.php : - 1152 + 1036 @@ -2376,7 +2388,7 @@

          ManageAudienceApi.php : - 1202 + 1086 @@ -2451,7 +2463,7 @@

          ManageAudienceApi.php : - 1011 + 935 @@ -2540,7 +2552,7 @@

          @@ -2621,7 +2633,7 @@

          @@ -2696,7 +2708,7 @@

          ManageAudienceApi.php : - 1377 + 1262 @@ -2771,7 +2783,7 @@

          @@ -2846,7 +2858,7 @@

          ManageAudienceApi.php : - 1313 + 1197 @@ -2935,7 +2947,7 @@

          @@ -3020,7 +3032,7 @@

          @@ -3095,7 +3107,7 @@

          ManageAudienceApi.php : - 1703 + 1527 @@ -3170,7 +3182,7 @@

          @@ -3245,7 +3257,7 @@

          @@ -3334,7 +3346,7 @@

          @@ -3464,7 +3476,7 @@

          @@ -3584,7 +3596,7 @@

          ManageAudienceApi.php : - 2027 + 1811 @@ -3704,7 +3716,7 @@

          @@ -3824,7 +3836,7 @@

          ManageAudienceApi.php : - 1876 + 1700 @@ -3958,7 +3970,7 @@

          @@ -3996,7 +4008,7 @@

          @@ -4039,7 +4051,7 @@

          @@ -4124,7 +4136,7 @@

          @@ -4199,7 +4211,7 @@

          ManageAudienceApi.php : - 2428 + 2151 @@ -4274,7 +4286,7 @@

          ManageAudienceApi.php : - 2478 + 2201 @@ -4349,7 +4361,7 @@

          ManageAudienceApi.php : - 2252 + 2036 @@ -4438,7 +4450,7 @@

          @@ -4568,7 +4580,7 @@

          ManageAudienceApi.php : - 2728 + 2411 @@ -4688,7 +4700,7 @@

          ManageAudienceApi.php : - 2752 + 2435 @@ -4808,7 +4820,7 @@

          ManageAudienceApi.php : - 2807 + 2490 @@ -4928,7 +4940,7 @@

          ManageAudienceApi.php : - 2601 + 2324 @@ -5062,7 +5074,7 @@

          @@ -5109,7 +5121,7 @@

          ManageAudienceApi.php : - 2962 + 2645 @@ -5199,7 +5211,7 @@

          ManageAudienceApi.php : - 3024 + 2708 @@ -5283,7 +5295,7 @@

          ManageAudienceApi.php : - 3044 + 2728 @@ -5367,7 +5379,7 @@

          ManageAudienceApi.php : - 3082 + 2766 @@ -5451,7 +5463,7 @@

          ManageAudienceApi.php : - 2978 + 2661 @@ -5549,7 +5561,7 @@

          @@ -5594,6 +5606,123 @@

          Return values
          + +
          +

          + handleResponseWithDataType() + + +

          + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
          +
          + + +
          Parameters
          +
          +
          + $dataType + : string +
          +
          + +
          +
          + $request + : RequestInterface +
          +
          + +
          +
          + $response + : ResponseInterface +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> +
          + +
          +
          +

          + responseWithinRangeCode() + + +

          + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
          +
          + + +
          Parameters
          +
          +
          + $rangeCode + : string +
          +
          + +
          +
          + $statusCode + : int +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + bool +
          +
          @@ -5782,6 +5911,8 @@
          Return values
        • updateAudienceGroupDescriptionRequest()
        • updateAudienceGroupDescriptionWithHttpInfo()
        • createHttpClientOption()
        • +
        • handleResponseWithDataType()
        • +
        • responseWithinRangeCode()
        • diff --git a/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html b/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html index b152446bf..cbe5b1d31 100644 --- a/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html +++ b/docs/classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html @@ -156,7 +156,7 @@

          @@ -384,6 +384,18 @@

          Returns an array of host settings for Operation createAudienceForUploadingUserIds
          +
          + handleResponseWithDataType() + +  : array<string|int, mixed> +
          + +
          + responseWithinRangeCode() + +  : bool +
          + @@ -405,7 +417,7 @@

          @@ -456,7 +468,7 @@

          @@ -494,7 +506,7 @@

          @@ -532,7 +544,7 @@

          @@ -570,7 +582,7 @@

          @@ -615,7 +627,7 @@

          @@ -682,7 +694,7 @@

          @@ -803,7 +815,7 @@

          @@ -918,7 +930,7 @@

          ManageAudienceBlobApi.php : - 264 + 268 @@ -1033,7 +1045,7 @@

          @@ -1148,7 +1160,7 @@

          ManageAudienceBlobApi.php : - 184 + 187 @@ -1277,7 +1289,7 @@

          ManageAudienceBlobApi.php : - 455 + 450 @@ -1411,7 +1423,7 @@

          ManageAudienceBlobApi.php : - 611 + 566 @@ -1535,7 +1547,7 @@

          ManageAudienceBlobApi.php : - 639 + 594 @@ -1659,7 +1671,7 @@

          ManageAudienceBlobApi.php : - 698 + 653 @@ -1783,7 +1795,7 @@

          ManageAudienceBlobApi.php : - 480 + 475 @@ -1921,7 +1933,7 @@

          @@ -1959,7 +1971,7 @@

          @@ -2002,7 +2014,7 @@

          @@ -2049,7 +2061,7 @@

          @@ -2109,7 +2121,7 @@

          ManageAudienceBlobApi.php : - 426 + 421 @@ -2152,7 +2164,7 @@

          ManageAudienceBlobApi.php : - 823 + 766 @@ -2180,6 +2192,123 @@

          Return values
          + +
          +

          + handleResponseWithDataType() + + +

          + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
          +
          + + +
          Parameters
          +
          +
          + $dataType + : string +
          +
          + +
          +
          + $request + : RequestInterface +
          +
          + +
          +
          + $response + : ResponseInterface +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> +
          + +
          +
          +

          + responseWithinRangeCode() + + +

          + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
          +
          + + +
          Parameters
          +
          +
          + $rangeCode + : string +
          +
          + +
          +
          + $statusCode + : int +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + bool +
          +
          @@ -2330,6 +2459,8 @@
          Return values
        • createHttpClientOption()
        • getHostSettingsForaddUserIdsToAudience()
        • getHostSettingsForcreateAudienceForUploadingUserIds()
        • +
        • handleResponseWithDataType()
        • +
        • responseWithinRangeCode()
        • diff --git a/docs/classes/LINE-Clients-ManageAudience-Configuration.html b/docs/classes/LINE-Clients-ManageAudience-Configuration.html index d36475fbf..47e63a26a 100644 --- a/docs/classes/LINE-Clients-ManageAudience-Configuration.html +++ b/docs/classes/LINE-Clients-ManageAudience-Configuration.html @@ -160,7 +160,7 @@

          Configuration Class Doc Comment -PHP version 7.4

          +PHP version 8.1

          @@ -269,6 +269,13 @@

          Boolean format for query string
          +
          + $certFile + +  : string +
          +
          Path to a certificate file, for mTLS
          +
          $debug @@ -290,6 +297,13 @@

          The host
          +
          + $keyFile + +  : string +
          +
          Path to a key file, for mTLS
          +
          $password @@ -374,6 +388,13 @@

          Gets boolean format for query string.
          +
          + getCertFile() + +  : string +
          +
          Gets the certificate file path, for mTLS
          +
          getDebug() @@ -423,6 +444,13 @@

          Returns URL based on host settings, index and variables
          +
          + getKeyFile() + +  : string +
          +
          Gets the certificate key path, for mTLS
          +
          getPassword() @@ -479,6 +507,13 @@

          Sets boolean format for query string.
          +
          + setCertFile() + +  : $this +
          +
          Sets the certificate file path, for mTLS
          +
          setDebug() @@ -507,6 +542,13 @@

          Sets the host
          +
          + setKeyFile() + +  : $this +
          +
          Sets the certificate key path, for mTLS
          +
          setPassword() @@ -779,6 +821,45 @@

          +

          + $certFile + + + + +

          + + +

          Path to a certificate file, for mTLS

          + + + + protected + string + $certFile + + + + + + + + + +
          +
          +
          +

          + $keyFile + + + + +

          + + +

          Path to a key file, for mTLS

          + + + + protected + string + $keyFile + + + + + + + + + +
          +
          +

          + getCertFile() + + +

          + + +

          Gets the certificate file path, for mTLS

          + + + public + getCertFile() : string + +
          +
          + + + + + + + +
          +
          Return values
          + string + — +

          Certificate file path

          +
          + +
          +
          +
          +

          + getKeyFile() + + +

          + + +

          Gets the certificate key path, for mTLS

          + + + public + getKeyFile() : string + +
          +
          + + + + + + + +
          +
          Return values
          + string + — +

          Certificate key path

          +
          + +
          +
          +
          +

          + setCertFile() + + +

          + + +

          Sets the certificate file path, for mTLS

          + + + public + setCertFile(mixed $certFile) : $this + +
          +
          + + +
          Parameters
          +
          +
          + $certFile + : mixed +
          +
          + +
          +
          + + + + +
          Return values
          $this @@ -2129,7 +2384,7 @@

          @@ -2180,7 +2435,7 @@

          @@ -2231,7 +2486,7 @@

          @@ -2278,7 +2533,7 @@

          @@ -2309,6 +2564,55 @@

          Parameters
          +
          +
          Return values
          + $this +
          + +
          +
          +

          + setKeyFile() + + +

          + + +

          Sets the certificate key path, for mTLS

          + + + public + setKeyFile(mixed $keyFile) : $this + +
          +
          + + +
          Parameters
          +
          +
          + $keyFile + : mixed +
          +
          + +
          +
          + + + + +
          Return values
          $this @@ -2329,7 +2633,7 @@

          @@ -2380,7 +2684,7 @@

          @@ -2431,7 +2735,7 @@

          @@ -2497,7 +2801,7 @@

          @@ -2548,7 +2852,7 @@

          @@ -2704,9 +3008,11 @@

          Return values
        • $apiKeyPrefixes
        • $apiKeys
        • $booleanFormatForQueryString
        • +
        • $certFile
        • $debug
        • $debugFile
        • $host
        • +
        • $keyFile
        • $password
        • $tempFolderPath
        • $userAgent
        • @@ -2724,6 +3030,7 @@
          Return values
        • getApiKeyPrefix()
        • getApiKeyWithPrefix()
        • getBooleanFormatForQueryString()
        • +
        • getCertFile()
        • getDebug()
        • getDebugFile()
        • getDefaultConfiguration()
        • @@ -2731,6 +3038,7 @@
          Return values
        • getHostFromSettings()
        • getHostSettings()
        • getHostString()
        • +
        • getKeyFile()
        • getPassword()
        • getTempFolderPath()
        • getUserAgent()
        • @@ -2739,10 +3047,12 @@
          Return values
        • setApiKey()
        • setApiKeyPrefix()
        • setBooleanFormatForQueryString()
        • +
        • setCertFile()
        • setDebug()
        • setDebugFile()
        • setDefaultConfiguration()
        • setHost()
        • +
        • setKeyFile()
        • setPassword()
        • setTempFolderPath()
        • setUserAgent()
        • diff --git a/docs/classes/LINE-Clients-ManageAudience-FormDataProcessor.html b/docs/classes/LINE-Clients-ManageAudience-FormDataProcessor.html new file mode 100644 index 000000000..935611401 --- /dev/null +++ b/docs/classes/LINE-Clients-ManageAudience-FormDataProcessor.html @@ -0,0 +1,817 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
          +

          LINE Messaging API SDK for PHP

          + + + + + +
          + +
          +
          + + + + +
          +
          + + +
          +

          + FormDataProcessor + + +
          + in package + +
          + + +

          + +
          + + +
          + + + +

          FormDataProcessor Class Doc Comment

          + + + + +
          + Tags + + +
          +
          +
          + category +
          +
          + +

          Class

          +
          + +
          +
          + author +
          +
          + +

          OpenAPI Generator team

          +
          + +
          +
          + link +
          +
          + https://openapi-generator.tech + +
          +
          + + + + + +

          + Table of Contents + + +

          + + + + + + + + + +

          + Properties + + +

          +
          +
          + $has_file + +  : bool +
          +
          Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
          + +
          + +

          + Methods + + +

          +
          +
          + flatten() + +  : array<string|int, mixed> +
          +
          Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
          + +
          + prepare() + +  : array<string|int, mixed> +
          +
          Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
          + +
          + makeFormSafe() + +  : mixed +
          +
          formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
          + +
          + processFiles() + +  : array<string|int, mixed> +
          +
          Handle file data
          + +
          + processModel() + +  : array<string|int, mixed> +
          +
          We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
          + +
          + tryFopen() + +  : mixed +
          + +
          + + + + + + +
          +

          + Properties + + +

          +
          +

          + $has_file + + + + +

          + + +

          Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

          + + + + public + bool + $has_file + = false + + + + + + + + + +
          +
          + +
          +

          + Methods + + +

          +
          +

          + flatten() + + +

          + + +

          Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

          + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
          +
          + +

          credit: https://github.com/FranBar1966/FlatPHP

          +
          + +
          Parameters
          +
          +
          + $source + : array<string|int, mixed> +
          +
          + +
          +
          + $start + : string + = ''
          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> +
          + +
          +
          +

          + prepare() + + +

          + + +

          Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

          + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
          +
          + + +
          Parameters
          +
          +
          + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
          +
          +

          the value of the form parameter

          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> + — +

          [key => value] of formdata

          +
          + +
          + +
          +
          +

          + makeFormSafe() + + +

          + + +

          formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

          + + + protected + makeFormSafe(mixed $value) : mixed + +
          +
          + + +
          Parameters
          +
          +
          + $value + : mixed +
          +
          + +
          +
          + + + + + + +
          +
          +

          + processFiles() + + +

          + + +

          Handle file data

          + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
          +
          + + +
          Parameters
          +
          +
          + $files + : array<string|int, mixed> +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> +
          + +
          +
          +

          + processModel() + + +

          + + +

          We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

          + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
          +
          + + +
          Parameters
          +
          +
          + $model + : ModelInterface +
          +
          + +
          +
          + + + + + +
          +
          Return values
          + array<string|int, mixed> +
          + +
          +
          +

          + tryFopen() + + +

          + + + + + private + tryFopen(SplFileObject $file) : mixed + +
          +
          + + +
          Parameters
          +
          +
          + $file + : SplFileObject +
          +
          + +
          +
          + + + + + + +
          +
          + +
          +
          +
          +
          +
          
          +        
          + +
          +
          + + + +
          +
          +
          + +
          + On this page + + +
          + +
          +
          +
          +
          +
          +

          Search results

          + +
          +
          +
            +
            +
            +
            +
            + + +
            + + + + + + + + diff --git a/docs/classes/LINE-Clients-ManageAudience-ObjectSerializer.html b/docs/classes/LINE-Clients-ManageAudience-ObjectSerializer.html index 5e1ca0516..03bd828b5 100644 --- a/docs/classes/LINE-Clients-ManageAudience-ObjectSerializer.html +++ b/docs/classes/LINE-Clients-ManageAudience-ObjectSerializer.html @@ -155,7 +155,7 @@

            @@ -378,7 +378,7 @@

            @@ -421,7 +421,7 @@

            @@ -489,7 +489,7 @@

            ObjectSerializer.php : - 313 + 312 @@ -544,7 +544,7 @@

            @@ -617,7 +617,7 @@

            @@ -674,7 +674,7 @@

            @@ -747,7 +747,7 @@

            @@ -802,7 +802,7 @@

            @@ -872,7 +872,7 @@

            @@ -919,7 +919,7 @@

            @@ -976,7 +976,7 @@

            @@ -1033,7 +1033,7 @@

            @@ -1089,7 +1089,7 @@

            @@ -1186,7 +1186,7 @@

            @@ -1244,7 +1244,7 @@

            @@ -1304,7 +1304,7 @@

            diff --git a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html index 7dc2ac391..84feaaca4 100644 --- a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html +++ b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html @@ -156,7 +156,7 @@

            @@ -2680,6 +2680,18 @@

            Create http client option
            +
            + handleResponseWithDataType() + +  : array<string|int, mixed> +
            + +
            + responseWithinRangeCode() + +  : bool +
            + @@ -2701,7 +2713,7 @@

            @@ -2752,7 +2764,7 @@

            @@ -2790,7 +2802,7 @@

            @@ -2828,7 +2840,7 @@

            @@ -2866,7 +2878,7 @@

            @@ -2911,7 +2923,7 @@

            @@ -2978,7 +2990,7 @@

            @@ -3072,7 +3084,7 @@

            @@ -3156,7 +3168,7 @@

            @@ -3240,7 +3252,7 @@

            @@ -3324,7 +3336,7 @@

            @@ -3422,7 +3434,7 @@

            @@ -3494,7 +3506,7 @@

            @@ -3560,7 +3572,7 @@

            MessagingApiApi.php : - 879 + 759 @@ -3626,7 +3638,7 @@

            MessagingApiApi.php : - 915 + 795 @@ -3692,7 +3704,7 @@

            MessagingApiApi.php : - 817 + 696 @@ -3772,7 +3784,7 @@

            @@ -3853,7 +3865,7 @@

            @@ -3928,7 +3940,7 @@

            MessagingApiApi.php : - 1100 + 981 @@ -4003,7 +4015,7 @@

            @@ -4078,7 +4090,7 @@

            @@ -4167,7 +4179,7 @@

            @@ -4252,7 +4264,7 @@

            @@ -4327,7 +4339,7 @@

            MessagingApiApi.php : - 1426 + 1246 @@ -4402,7 +4414,7 @@

            @@ -4477,7 +4489,7 @@

            @@ -4566,7 +4578,7 @@

            @@ -4651,7 +4663,7 @@

            @@ -4732,7 +4744,7 @@

            @@ -4807,7 +4819,7 @@

            MessagingApiApi.php : - 1956 + 1737 @@ -4882,7 +4894,7 @@

            @@ -4957,7 +4969,7 @@

            MessagingApiApi.php : - 1884 + 1664 @@ -5046,7 +5058,7 @@

            @@ -5121,7 +5133,7 @@

            MessagingApiApi.php : - 1723 + 1503 @@ -5196,7 +5208,7 @@

            @@ -5271,7 +5283,7 @@

            @@ -5360,7 +5372,7 @@

            @@ -5441,7 +5453,7 @@

            @@ -5522,7 +5534,7 @@

            @@ -5597,7 +5609,7 @@

            MessagingApiApi.php : - 2389 + 2172 @@ -5672,7 +5684,7 @@

            @@ -5747,7 +5759,7 @@

            MessagingApiApi.php : - 2317 + 2099 @@ -5836,7 +5848,7 @@

            @@ -5911,7 +5923,7 @@

            MessagingApiApi.php : - 2168 + 1950 @@ -5986,7 +5998,7 @@

            @@ -6061,7 +6073,7 @@

            @@ -6150,7 +6162,7 @@

            @@ -6244,7 +6256,7 @@

            MessagingApiApi.php : - 2664 + 2407 @@ -6328,7 +6340,7 @@

            MessagingApiApi.php : - 2684 + 2427 @@ -6412,7 +6424,7 @@

            MessagingApiApi.php : - 2735 + 2478 @@ -6496,7 +6508,7 @@

            MessagingApiApi.php : - 2541 + 2324 @@ -6594,7 +6606,7 @@

            @@ -6670,7 +6682,7 @@

            MessagingApiApi.php : - 2972 + 2675 @@ -6736,7 +6748,7 @@

            MessagingApiApi.php : - 2990 + 2693 @@ -6802,7 +6814,7 @@

            MessagingApiApi.php : - 3039 + 2742 @@ -6868,7 +6880,7 @@

            MessagingApiApi.php : - 2851 + 2594 @@ -6948,7 +6960,7 @@

            @@ -7024,7 +7036,7 @@

            @@ -7090,7 +7102,7 @@

            @@ -7156,7 +7168,7 @@

            @@ -7222,7 +7234,7 @@

            @@ -7302,7 +7314,7 @@

            @@ -7340,7 +7352,7 @@

            @@ -7425,7 +7437,7 @@

            @@ -7500,7 +7512,7 @@

            MessagingApiApi.php : - 3632 + 3213 @@ -7575,7 +7587,7 @@

            @@ -7650,7 +7662,7 @@

            @@ -7739,7 +7751,7 @@

            @@ -7815,7 +7827,7 @@

            @@ -7881,7 +7893,7 @@

            MessagingApiApi.php : - 3932 + 3473 @@ -7947,7 +7959,7 @@

            @@ -8013,7 +8025,7 @@

            MessagingApiApi.php : - 3793 + 3374 @@ -8093,7 +8105,7 @@

            @@ -8187,7 +8199,7 @@

            @@ -8271,7 +8283,7 @@

            MessagingApiApi.php : - 4224 + 3725 @@ -8355,7 +8367,7 @@

            @@ -8439,7 +8451,7 @@

            @@ -8537,7 +8549,7 @@

            @@ -8622,7 +8634,7 @@

            @@ -8697,7 +8709,7 @@

            MessagingApiApi.php : - 4537 + 3998 @@ -8772,7 +8784,7 @@

            @@ -8847,7 +8859,7 @@

            MessagingApiApi.php : - 4396 + 3897 @@ -8936,7 +8948,7 @@

            @@ -9030,7 +9042,7 @@

            @@ -9114,7 +9126,7 @@

            MessagingApiApi.php : - 4845 + 4266 @@ -9198,7 +9210,7 @@

            MessagingApiApi.php : - 4896 + 4317 @@ -9282,7 +9294,7 @@

            MessagingApiApi.php : - 4702 + 4163 @@ -9380,7 +9392,7 @@

            @@ -9474,7 +9486,7 @@

            @@ -9558,7 +9570,7 @@

            MessagingApiApi.php : - 5169 + 4550 @@ -9642,7 +9654,7 @@

            @@ -9726,7 +9738,7 @@

            MessagingApiApi.php : - 5026 + 4447 @@ -9824,7 +9836,7 @@

            @@ -9909,7 +9921,7 @@

            @@ -9984,7 +9996,7 @@

            MessagingApiApi.php : - 5484 + 4825 @@ -10059,7 +10071,7 @@

            @@ -10134,7 +10146,7 @@

            @@ -10223,7 +10235,7 @@

            @@ -10266,7 +10278,7 @@

            @@ -10369,7 +10381,7 @@

            MessagingApiApi.php : - 5845 + 5104 @@ -10462,7 +10474,7 @@

            MessagingApiApi.php : - 5866 + 5125 @@ -10555,7 +10567,7 @@

            MessagingApiApi.php : - 5918 + 5177 @@ -10648,7 +10660,7 @@

            MessagingApiApi.php : - 5651 + 4992 @@ -10755,7 +10767,7 @@

            @@ -10831,7 +10843,7 @@

            @@ -10897,7 +10909,7 @@

            MessagingApiApi.php : - 6229 + 5427 @@ -10963,7 +10975,7 @@

            @@ -11029,7 +11041,7 @@

            MessagingApiApi.php : - 6055 + 5314 @@ -11109,7 +11121,7 @@

            @@ -11194,7 +11206,7 @@

            MessagingApiApi.php : - 6568 + 5684 @@ -11269,7 +11281,7 @@

            MessagingApiApi.php : - 6587 + 5703 @@ -11344,7 +11356,7 @@

            MessagingApiApi.php : - 6637 + 5753 @@ -11419,7 +11431,7 @@

            MessagingApiApi.php : - 6376 + 5574 @@ -11508,7 +11520,7 @@

            @@ -11584,7 +11596,7 @@

            @@ -11650,7 +11662,7 @@

            MessagingApiApi.php : - 6887 + 5963 @@ -11716,7 +11728,7 @@

            @@ -11792,7 +11804,7 @@

            MessagingApiApi.php : - 7153 + 6189 @@ -11858,7 +11870,7 @@

            MessagingApiApi.php : - 7171 + 6207 @@ -11924,7 +11936,7 @@

            MessagingApiApi.php : - 7220 + 6256 @@ -11990,7 +12002,7 @@

            MessagingApiApi.php : - 7032 + 6108 @@ -12070,7 +12082,7 @@

            @@ -12136,7 +12148,7 @@

            @@ -12216,7 +12228,7 @@

            @@ -12301,7 +12313,7 @@

            @@ -12376,7 +12388,7 @@

            MessagingApiApi.php : - 7459 + 6455 @@ -12451,7 +12463,7 @@

            MessagingApiApi.php : - 7509 + 6505 @@ -12526,7 +12538,7 @@

            MessagingApiApi.php : - 7318 + 6354 @@ -12615,7 +12627,7 @@

            MessagingApiApi.php : - 7607 + 6603 @@ -12700,7 +12712,7 @@

            MessagingApiApi.php : - 7745 + 6701 @@ -12775,7 +12787,7 @@

            MessagingApiApi.php : - 7764 + 6720 @@ -12850,7 +12862,7 @@

            MessagingApiApi.php : - 7814 + 6770 @@ -12925,7 +12937,7 @@

            MessagingApiApi.php : - 7623 + 6619 @@ -13014,7 +13026,7 @@

            MessagingApiApi.php : - 7912 + 6868 @@ -13099,7 +13111,7 @@

            MessagingApiApi.php : - 8050 + 6966 @@ -13174,7 +13186,7 @@

            MessagingApiApi.php : - 8069 + 6985 @@ -13249,7 +13261,7 @@

            MessagingApiApi.php : - 8119 + 7035 @@ -13324,7 +13336,7 @@

            MessagingApiApi.php : - 7928 + 6884 @@ -13413,7 +13425,7 @@

            @@ -13498,7 +13510,7 @@

            MessagingApiApi.php : - 8355 + 7231 @@ -13573,7 +13585,7 @@

            MessagingApiApi.php : - 8374 + 7250 @@ -13648,7 +13660,7 @@

            MessagingApiApi.php : - 8424 + 7300 @@ -13723,7 +13735,7 @@

            MessagingApiApi.php : - 8233 + 7149 @@ -13812,7 +13824,7 @@

            MessagingApiApi.php : - 8522 + 7398 @@ -13897,7 +13909,7 @@

            MessagingApiApi.php : - 8660 + 7496 @@ -13972,7 +13984,7 @@

            MessagingApiApi.php : - 8679 + 7515 @@ -14047,7 +14059,7 @@

            MessagingApiApi.php : - 8729 + 7565 @@ -14122,7 +14134,7 @@

            MessagingApiApi.php : - 8538 + 7414 @@ -14211,7 +14223,7 @@

            @@ -14296,7 +14308,7 @@

            MessagingApiApi.php : - 8965 + 7761 @@ -14371,7 +14383,7 @@

            MessagingApiApi.php : - 8984 + 7780 @@ -14446,7 +14458,7 @@

            MessagingApiApi.php : - 9034 + 7830 @@ -14521,7 +14533,7 @@

            MessagingApiApi.php : - 8843 + 7679 @@ -14610,7 +14622,7 @@

            @@ -14695,7 +14707,7 @@

            @@ -14770,7 +14782,7 @@

            @@ -14845,7 +14857,7 @@

            @@ -14920,7 +14932,7 @@

            @@ -15009,7 +15021,7 @@

            @@ -15094,7 +15106,7 @@

            @@ -15179,7 +15191,7 @@

            @@ -15254,7 +15266,7 @@

            MessagingApiApi.php : - 9900 + 8576 @@ -15329,7 +15341,7 @@

            @@ -15405,7 +15417,7 @@

            @@ -15471,7 +15483,7 @@

            MessagingApiApi.php : - 10200 + 8836 @@ -15537,7 +15549,7 @@

            @@ -15603,7 +15615,7 @@

            MessagingApiApi.php : - 10061 + 8737 @@ -15683,7 +15695,7 @@

            @@ -15758,7 +15770,7 @@

            MessagingApiApi.php : - 9759 + 8475 @@ -15847,7 +15859,7 @@

            @@ -15922,7 +15934,7 @@

            MessagingApiApi.php : - 9596 + 8312 @@ -15997,7 +16009,7 @@

            @@ -16082,7 +16094,7 @@

            MessagingApiApi.php : - 10469 + 9065 @@ -16157,7 +16169,7 @@

            MessagingApiApi.php : - 10488 + 9084 @@ -16232,7 +16244,7 @@

            MessagingApiApi.php : - 10538 + 9134 @@ -16307,7 +16319,7 @@

            MessagingApiApi.php : - 10347 + 8983 @@ -16396,7 +16408,7 @@

            @@ -16481,7 +16493,7 @@

            @@ -16556,7 +16568,7 @@

            MessagingApiApi.php : - 10793 + 9349 @@ -16631,7 +16643,7 @@

            @@ -16706,7 +16718,7 @@

            MessagingApiApi.php : - 10652 + 9248 @@ -16795,7 +16807,7 @@

            @@ -16871,7 +16883,7 @@

            @@ -16937,7 +16949,7 @@

            MessagingApiApi.php : - 11093 + 9609 @@ -17003,7 +17015,7 @@

            @@ -17069,7 +17081,7 @@

            @@ -17149,7 +17161,7 @@

            @@ -17224,7 +17236,7 @@

            @@ -17313,7 +17325,7 @@

            @@ -17398,7 +17410,7 @@

            @@ -17473,7 +17485,7 @@

            MessagingApiApi.php : - 11381 + 9857 @@ -17548,7 +17560,7 @@

            @@ -17623,7 +17635,7 @@

            MessagingApiApi.php : - 11240 + 9756 @@ -17712,7 +17724,7 @@

            @@ -17806,7 +17818,7 @@

            @@ -17890,7 +17902,7 @@

            MessagingApiApi.php : - 11689 + 10125 @@ -17974,7 +17986,7 @@

            @@ -18058,7 +18070,7 @@

            MessagingApiApi.php : - 11546 + 10022 @@ -18156,7 +18168,7 @@

            @@ -18250,7 +18262,7 @@

            @@ -18334,7 +18346,7 @@

            MessagingApiApi.php : - 12013 + 10409 @@ -18418,7 +18430,7 @@

            @@ -18502,7 +18514,7 @@

            MessagingApiApi.php : - 11870 + 10306 @@ -18600,7 +18612,7 @@

            @@ -18676,7 +18688,7 @@

            @@ -18742,7 +18754,7 @@

            MessagingApiApi.php : - 12324 + 10680 @@ -18808,7 +18820,7 @@

            @@ -18874,7 +18886,7 @@

            MessagingApiApi.php : - 12185 + 10581 @@ -18954,7 +18966,7 @@

            @@ -19039,7 +19051,7 @@

            @@ -19114,7 +19126,7 @@

            MessagingApiApi.php : - 12612 + 10928 @@ -19189,7 +19201,7 @@

            @@ -19264,7 +19276,7 @@

            @@ -19353,7 +19365,7 @@

            @@ -19434,7 +19446,7 @@

            @@ -19509,7 +19521,7 @@

            @@ -19584,7 +19596,7 @@

            @@ -19659,7 +19671,7 @@

            @@ -19748,7 +19760,7 @@

            @@ -19829,7 +19841,7 @@

            @@ -19904,7 +19916,7 @@

            @@ -19979,7 +19991,7 @@

            @@ -20054,7 +20066,7 @@

            @@ -20143,7 +20155,7 @@

            @@ -20233,7 +20245,7 @@

            @@ -20317,7 +20329,7 @@

            MessagingApiApi.php : - 13284 + 11603 @@ -20401,7 +20413,7 @@

            @@ -20485,7 +20497,7 @@

            @@ -20566,7 +20578,7 @@

            @@ -20641,7 +20653,7 @@

            MessagingApiApi.php : - 13513 + 11833 @@ -20716,7 +20728,7 @@

            MessagingApiApi.php : - 13550 + 11870 @@ -20791,7 +20803,7 @@

            MessagingApiApi.php : - 13449 + 11768 @@ -20880,7 +20892,7 @@

            MessagingApiApi.php : - 13218 + 11536 @@ -20978,7 +20990,7 @@

            @@ -21081,7 +21093,7 @@

            @@ -21174,7 +21186,7 @@

            @@ -21267,7 +21279,7 @@

            @@ -21360,7 +21372,7 @@

            @@ -21467,7 +21479,7 @@

            @@ -21548,7 +21560,7 @@

            @@ -21623,7 +21635,7 @@

            MessagingApiApi.php : - 14095 + 12355 @@ -21698,7 +21710,7 @@

            @@ -21779,7 +21791,7 @@

            MessagingApiApi.php : - 14296 + 12557 @@ -21854,7 +21866,7 @@

            MessagingApiApi.php : - 14315 + 12576 @@ -21929,7 +21941,7 @@

            MessagingApiApi.php : - 14352 + 12613 @@ -22004,7 +22016,7 @@

            MessagingApiApi.php : - 14243 + 12503 @@ -22093,7 +22105,7 @@

            @@ -22168,7 +22180,7 @@

            MessagingApiApi.php : - 14031 + 12290 @@ -22257,7 +22269,7 @@

            @@ -22351,7 +22363,7 @@

            @@ -22435,7 +22447,7 @@

            @@ -22519,7 +22531,7 @@

            @@ -22603,7 +22615,7 @@

            @@ -22701,7 +22713,7 @@

            @@ -22795,7 +22807,7 @@

            @@ -22879,7 +22891,7 @@

            @@ -22963,7 +22975,7 @@

            @@ -23047,7 +23059,7 @@

            @@ -23145,7 +23157,7 @@

            @@ -23239,7 +23251,7 @@

            @@ -23323,7 +23335,7 @@

            MessagingApiApi.php : - 15655 + 13544 @@ -23407,7 +23419,7 @@

            @@ -23491,7 +23503,7 @@

            @@ -23581,7 +23593,7 @@

            @@ -23665,7 +23677,7 @@

            MessagingApiApi.php : - 15898 + 13788 @@ -23749,7 +23761,7 @@

            @@ -23833,7 +23845,7 @@

            MessagingApiApi.php : - 15824 + 13713 @@ -23931,7 +23943,7 @@

            @@ -24029,7 +24041,7 @@

            @@ -24114,7 +24126,7 @@

            @@ -24189,7 +24201,7 @@

            MessagingApiApi.php : - 16270 + 14078 @@ -24264,7 +24276,7 @@

            @@ -24339,7 +24351,7 @@

            @@ -24428,7 +24440,7 @@

            @@ -24509,7 +24521,7 @@

            @@ -24584,7 +24596,7 @@

            MessagingApiApi.php : - 16495 + 14304 @@ -24659,7 +24671,7 @@

            @@ -24734,7 +24746,7 @@

            @@ -24823,7 +24835,7 @@

            @@ -24904,7 +24916,7 @@

            @@ -24979,7 +24991,7 @@

            MessagingApiApi.php : - 16707 + 14517 @@ -25054,7 +25066,7 @@

            @@ -25129,7 +25141,7 @@

            MessagingApiApi.php : - 16643 + 14452 @@ -25218,7 +25230,7 @@

            @@ -25265,7 +25277,7 @@

            @@ -25346,7 +25358,7 @@

            @@ -25421,7 +25433,7 @@

            MessagingApiApi.php : - 16920 + 14731 @@ -25496,7 +25508,7 @@

            @@ -25571,7 +25583,7 @@

            MessagingApiApi.php : - 16856 + 14666 @@ -25660,7 +25672,7 @@

            @@ -25745,7 +25757,7 @@

            @@ -25820,7 +25832,7 @@

            MessagingApiApi.php : - 17245 + 14995 @@ -25895,7 +25907,7 @@

            @@ -25970,7 +25982,7 @@

            MessagingApiApi.php : - 17069 + 14880 @@ -26059,7 +26071,7 @@

            @@ -26144,7 +26156,7 @@

            @@ -26219,7 +26231,7 @@

            MessagingApiApi.php : - 17548 + 15258 @@ -26294,7 +26306,7 @@

            @@ -26369,7 +26381,7 @@

            MessagingApiApi.php : - 17407 + 15157 @@ -26458,7 +26470,7 @@

            @@ -26539,7 +26551,7 @@

            MessagingApiApi.php : - 17748 + 15459 @@ -26614,7 +26626,7 @@

            MessagingApiApi.php : - 17767 + 15478 @@ -26689,7 +26701,7 @@

            MessagingApiApi.php : - 17804 + 15515 @@ -26764,7 +26776,7 @@

            @@ -26845,7 +26857,7 @@

            MessagingApiApi.php : - 17961 + 15673 @@ -26920,7 +26932,7 @@

            MessagingApiApi.php : - 17980 + 15692 @@ -26995,7 +27007,7 @@

            MessagingApiApi.php : - 18017 + 15729 @@ -27070,7 +27082,7 @@

            MessagingApiApi.php : - 17916 + 15627 @@ -27159,7 +27171,7 @@

            MessagingApiApi.php : - 17703 + 15413 @@ -27248,7 +27260,7 @@

            @@ -27338,7 +27350,7 @@

            @@ -27422,7 +27434,7 @@

            MessagingApiApi.php : - 18204 + 15917 @@ -27506,7 +27518,7 @@

            @@ -27590,7 +27602,7 @@

            MessagingApiApi.php : - 18130 + 15842 @@ -27688,7 +27700,7 @@

            @@ -27769,7 +27781,7 @@

            @@ -27844,7 +27856,7 @@

            MessagingApiApi.php : - 18432 + 16146 @@ -27919,7 +27931,7 @@

            @@ -27994,7 +28006,7 @@

            MessagingApiApi.php : - 18368 + 16081 @@ -28083,7 +28095,7 @@

            @@ -28164,7 +28176,7 @@

            @@ -28239,7 +28251,7 @@

            MessagingApiApi.php : - 18644 + 16359 @@ -28314,7 +28326,7 @@

            @@ -28389,7 +28401,7 @@

            MessagingApiApi.php : - 18580 + 16294 @@ -28478,7 +28490,7 @@

            @@ -28559,7 +28571,7 @@

            @@ -28634,7 +28646,7 @@

            MessagingApiApi.php : - 18856 + 16572 @@ -28709,7 +28721,7 @@

            @@ -28784,7 +28796,7 @@

            MessagingApiApi.php : - 18792 + 16507 @@ -28873,7 +28885,7 @@

            @@ -28954,7 +28966,7 @@

            @@ -29029,7 +29041,7 @@

            MessagingApiApi.php : - 19068 + 16785 @@ -29104,7 +29116,7 @@

            @@ -29179,7 +29191,7 @@

            @@ -29268,7 +29280,7 @@

            @@ -29349,7 +29361,7 @@

            @@ -29424,7 +29436,7 @@

            MessagingApiApi.php : - 19280 + 16998 @@ -29499,7 +29511,7 @@

            @@ -29574,7 +29586,7 @@

            @@ -29663,7 +29675,7 @@

            MessagingApiApi.php : - 19413 + 17131 @@ -29744,7 +29756,7 @@

            MessagingApiApi.php : - 19473 + 17192 @@ -29819,7 +29831,7 @@

            MessagingApiApi.php : - 19492 + 17211 @@ -29894,7 +29906,7 @@

            MessagingApiApi.php : - 19529 + 17248 @@ -29969,7 +29981,7 @@

            MessagingApiApi.php : - 19428 + 17146 @@ -30058,7 +30070,7 @@

            @@ -30139,7 +30151,7 @@

            @@ -30214,7 +30226,7 @@

            MessagingApiApi.php : - 19704 + 17424 @@ -30289,7 +30301,7 @@

            MessagingApiApi.php : - 19741 + 17461 @@ -30364,7 +30376,7 @@

            MessagingApiApi.php : - 19640 + 17359 @@ -30453,7 +30465,7 @@

            @@ -30498,6 +30510,123 @@

            Return values
            + +
            +

            + handleResponseWithDataType() + + +

            + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
            +
            + + +
            Parameters
            +
            +
            + $dataType + : string +
            +
            + +
            +
            + $request + : RequestInterface +
            +
            + +
            +
            + $response + : ResponseInterface +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> +
            + +
            +
            +

            + responseWithinRangeCode() + + +

            + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
            +
            + + +
            Parameters
            +
            +
            + $rangeCode + : string +
            +
            + +
            +
            + $statusCode + : int +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + bool +
            +
            @@ -30976,6 +31105,8 @@
            Return values
          • validateRichMenuObjectRequest()
          • validateRichMenuObjectWithHttpInfo()
          • createHttpClientOption()
          • +
          • handleResponseWithDataType()
          • +
          • responseWithinRangeCode()
          • diff --git a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html index ac953d925..0e11bce49 100644 --- a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html +++ b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html @@ -156,7 +156,7 @@

            @@ -510,6 +510,18 @@

            Returns an array of host settings for Operation setRichMenuImage
            +
            + handleResponseWithDataType() + +  : array<string|int, mixed> +
            + +
            + responseWithinRangeCode() + +  : bool +
            + @@ -531,7 +543,7 @@

            @@ -582,7 +594,7 @@

            @@ -620,7 +632,7 @@

            @@ -658,7 +670,7 @@

            @@ -696,7 +708,7 @@

            @@ -741,7 +753,7 @@

            @@ -808,7 +820,7 @@

            @@ -846,7 +858,7 @@

            @@ -889,7 +901,7 @@

            @@ -996,7 +1008,7 @@

            @@ -1093,7 +1105,7 @@

            MessagingApiBlobApi.php : - 343 + 306 @@ -1190,7 +1202,7 @@

            @@ -1297,7 +1309,7 @@

            MessagingApiBlobApi.php : - 677 + 600 @@ -1394,7 +1406,7 @@

            MessagingApiBlobApi.php : - 702 + 625 @@ -1491,7 +1503,7 @@

            MessagingApiBlobApi.php : - 758 + 681 @@ -1588,7 +1600,7 @@

            MessagingApiBlobApi.php : - 549 + 512 @@ -1699,7 +1711,7 @@

            @@ -1796,7 +1808,7 @@

            MessagingApiBlobApi.php : - 886 + 809 @@ -1903,7 +1915,7 @@

            MessagingApiBlobApi.php : - 1036 + 919 @@ -2000,7 +2012,7 @@

            MessagingApiBlobApi.php : - 1061 + 944 @@ -2097,7 +2109,7 @@

            MessagingApiBlobApi.php : - 1117 + 1000 @@ -2194,7 +2206,7 @@

            MessagingApiBlobApi.php : - 908 + 831 @@ -2305,7 +2317,7 @@

            MessagingApiBlobApi.php : - 190 + 193 @@ -2416,7 +2428,7 @@

            @@ -2523,7 +2535,7 @@

            @@ -2620,7 +2632,7 @@

            MessagingApiBlobApi.php : - 1420 + 1263 @@ -2717,7 +2729,7 @@

            @@ -2814,7 +2826,7 @@

            MessagingApiBlobApi.php : - 1267 + 1150 @@ -2925,7 +2937,7 @@

            @@ -2972,7 +2984,7 @@

            @@ -3084,7 +3096,7 @@

            @@ -3190,7 +3202,7 @@

            MessagingApiBlobApi.php : - 1705 + 1549 @@ -3296,7 +3308,7 @@

            @@ -3402,7 +3414,7 @@

            MessagingApiBlobApi.php : - 1627 + 1470 @@ -3522,7 +3534,7 @@

            @@ -3582,7 +3594,7 @@

            MessagingApiBlobApi.php : - 501 + 464 @@ -3625,7 +3637,7 @@

            MessagingApiBlobApi.php : - 860 + 783 @@ -3668,7 +3680,7 @@

            MessagingApiBlobApi.php : - 1219 + 1102 @@ -3711,7 +3723,7 @@

            MessagingApiBlobApi.php : - 1578 + 1421 @@ -3754,7 +3766,7 @@

            MessagingApiBlobApi.php : - 1865 + 1709 @@ -3782,6 +3794,123 @@

            Return values
            + +
            +

            + handleResponseWithDataType() + + +

            + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
            +
            + + +
            Parameters
            +
            +
            + $dataType + : string +
            +
            + +
            +
            + $request + : RequestInterface +
            +
            + +
            +
            + $response + : ResponseInterface +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> +
            + +
            +
            +

            + responseWithinRangeCode() + + +

            + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
            +
            + + +
            Parameters
            +
            +
            + $rangeCode + : string +
            +
            + +
            +
            + $statusCode + : int +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + bool +
            +
            @@ -3950,6 +4079,8 @@
            Return values
          • getHostSettingsForgetMessageContentTranscodingByMessageId()
          • getHostSettingsForgetRichMenuImage()
          • getHostSettingsForsetRichMenuImage()
          • +
          • handleResponseWithDataType()
          • +
          • responseWithinRangeCode()
          • diff --git a/docs/classes/LINE-Clients-MessagingApi-Configuration.html b/docs/classes/LINE-Clients-MessagingApi-Configuration.html index 08f6a7b01..9744214ab 100644 --- a/docs/classes/LINE-Clients-MessagingApi-Configuration.html +++ b/docs/classes/LINE-Clients-MessagingApi-Configuration.html @@ -160,7 +160,7 @@

            Configuration Class Doc Comment -PHP version 7.4

            +PHP version 8.1

            @@ -269,6 +269,13 @@

            Boolean format for query string
            +
            + $certFile + +  : string +
            +
            Path to a certificate file, for mTLS
            +
            $debug @@ -290,6 +297,13 @@

            The host
            +
            + $keyFile + +  : string +
            +
            Path to a key file, for mTLS
            +
            $password @@ -374,6 +388,13 @@

            Gets boolean format for query string.
            +
            + getCertFile() + +  : string +
            +
            Gets the certificate file path, for mTLS
            +
            getDebug() @@ -423,6 +444,13 @@

            Returns URL based on host settings, index and variables
            +
            + getKeyFile() + +  : string +
            +
            Gets the certificate key path, for mTLS
            +
            getPassword() @@ -479,6 +507,13 @@

            Sets boolean format for query string.
            +
            + setCertFile() + +  : $this +
            +
            Sets the certificate file path, for mTLS
            +
            setDebug() @@ -507,6 +542,13 @@

            Sets the host
            +
            + setKeyFile() + +  : $this +
            +
            Sets the certificate key path, for mTLS
            +
            setPassword() @@ -779,6 +821,45 @@

            +

            + $certFile + + + + +

            + + +

            Path to a certificate file, for mTLS

            + + + + protected + string + $certFile + + + + + + + + + +
            +
            +
            +

            + $keyFile + + + + +

            + + +

            Path to a key file, for mTLS

            + + + + protected + string + $keyFile + + + + + + + + + +
            +
            +

            + getCertFile() + + +

            + + +

            Gets the certificate file path, for mTLS

            + + + public + getCertFile() : string + +
            +
            + + + + + + + +
            +
            Return values
            + string + — +

            Certificate file path

            +
            + +
            +
            +
            +

            + getKeyFile() + + +

            + + +

            Gets the certificate key path, for mTLS

            + + + public + getKeyFile() : string + +
            +
            + + + + + + + +
            +
            Return values
            + string + — +

            Certificate key path

            +
            + +
            +
            +
            +

            + setCertFile() + + +

            + + +

            Sets the certificate file path, for mTLS

            + + + public + setCertFile(mixed $certFile) : $this + +
            +
            + + +
            Parameters
            +
            +
            + $certFile + : mixed +
            +
            + +
            +
            + + + + +
            Return values
            $this @@ -2129,7 +2384,7 @@

            @@ -2180,7 +2435,7 @@

            @@ -2231,7 +2486,7 @@

            @@ -2278,7 +2533,7 @@

            @@ -2309,6 +2564,55 @@

            Parameters
            +
            +
            Return values
            + $this +
            + +
            +
            +

            + setKeyFile() + + +

            + + +

            Sets the certificate key path, for mTLS

            + + + public + setKeyFile(mixed $keyFile) : $this + +
            +
            + + +
            Parameters
            +
            +
            + $keyFile + : mixed +
            +
            + +
            +
            + + + + +
            Return values
            $this @@ -2329,7 +2633,7 @@

            @@ -2380,7 +2684,7 @@

            @@ -2431,7 +2735,7 @@

            @@ -2497,7 +2801,7 @@

            @@ -2548,7 +2852,7 @@

            @@ -2704,9 +3008,11 @@

            Return values
          • $apiKeyPrefixes
          • $apiKeys
          • $booleanFormatForQueryString
          • +
          • $certFile
          • $debug
          • $debugFile
          • $host
          • +
          • $keyFile
          • $password
          • $tempFolderPath
          • $userAgent
          • @@ -2724,6 +3030,7 @@
            Return values
          • getApiKeyPrefix()
          • getApiKeyWithPrefix()
          • getBooleanFormatForQueryString()
          • +
          • getCertFile()
          • getDebug()
          • getDebugFile()
          • getDefaultConfiguration()
          • @@ -2731,6 +3038,7 @@
            Return values
          • getHostFromSettings()
          • getHostSettings()
          • getHostString()
          • +
          • getKeyFile()
          • getPassword()
          • getTempFolderPath()
          • getUserAgent()
          • @@ -2739,10 +3047,12 @@
            Return values
          • setApiKey()
          • setApiKeyPrefix()
          • setBooleanFormatForQueryString()
          • +
          • setCertFile()
          • setDebug()
          • setDebugFile()
          • setDefaultConfiguration()
          • setHost()
          • +
          • setKeyFile()
          • setPassword()
          • setTempFolderPath()
          • setUserAgent()
          • diff --git a/docs/classes/LINE-Clients-MessagingApi-FormDataProcessor.html b/docs/classes/LINE-Clients-MessagingApi-FormDataProcessor.html new file mode 100644 index 000000000..aceea9ff8 --- /dev/null +++ b/docs/classes/LINE-Clients-MessagingApi-FormDataProcessor.html @@ -0,0 +1,817 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
            +

            LINE Messaging API SDK for PHP

            + + + + + +
            + +
            +
            + + + + +
            +
            + + +
            +

            + FormDataProcessor + + +
            + in package + +
            + + +

            + +
            + + +
            + + + +

            FormDataProcessor Class Doc Comment

            + + + + +
            + Tags + + +
            +
            +
            + category +
            +
            + +

            Class

            +
            + +
            +
            + author +
            +
            + +

            OpenAPI Generator team

            +
            + +
            +
            + link +
            +
            + https://openapi-generator.tech + +
            +
            + + + + + +

            + Table of Contents + + +

            + + + + + + + + + +

            + Properties + + +

            +
            +
            + $has_file + +  : bool +
            +
            Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
            + +
            + +

            + Methods + + +

            +
            +
            + flatten() + +  : array<string|int, mixed> +
            +
            Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
            + +
            + prepare() + +  : array<string|int, mixed> +
            +
            Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
            + +
            + makeFormSafe() + +  : mixed +
            +
            formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
            + +
            + processFiles() + +  : array<string|int, mixed> +
            +
            Handle file data
            + +
            + processModel() + +  : array<string|int, mixed> +
            +
            We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
            + +
            + tryFopen() + +  : mixed +
            + +
            + + + + + + +
            +

            + Properties + + +

            +
            +

            + $has_file + + + + +

            + + +

            Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

            + + + + public + bool + $has_file + = false + + + + + + + + + +
            +
            + +
            +

            + Methods + + +

            +
            +

            + flatten() + + +

            + + +

            Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

            + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
            +
            + +

            credit: https://github.com/FranBar1966/FlatPHP

            +
            + +
            Parameters
            +
            +
            + $source + : array<string|int, mixed> +
            +
            + +
            +
            + $start + : string + = ''
            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> +
            + +
            +
            +

            + prepare() + + +

            + + +

            Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

            + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
            +
            + + +
            Parameters
            +
            +
            + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
            +
            +

            the value of the form parameter

            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> + — +

            [key => value] of formdata

            +
            + +
            + +
            +
            +

            + makeFormSafe() + + +

            + + +

            formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

            + + + protected + makeFormSafe(mixed $value) : mixed + +
            +
            + + +
            Parameters
            +
            +
            + $value + : mixed +
            +
            + +
            +
            + + + + + + +
            +
            +

            + processFiles() + + +

            + + +

            Handle file data

            + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
            +
            + + +
            Parameters
            +
            +
            + $files + : array<string|int, mixed> +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> +
            + +
            +
            +

            + processModel() + + +

            + + +

            We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

            + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
            +
            + + +
            Parameters
            +
            +
            + $model + : ModelInterface +
            +
            + +
            +
            + + + + + +
            +
            Return values
            + array<string|int, mixed> +
            + +
            +
            +

            + tryFopen() + + +

            + + + + + private + tryFopen(SplFileObject $file) : mixed + +
            +
            + + +
            Parameters
            +
            +
            + $file + : SplFileObject +
            +
            + +
            +
            + + + + + + +
            +
            + +
            +
            +
            +
            +
            
            +        
            + +
            +
            + + + +
            +
            +
            + +
            + On this page + + +
            + +
            +
            +
            +
            +
            +

            Search results

            + +
            +
            +
              +
              +
              +
              +
              + + +
              + + + + + + + + diff --git a/docs/classes/LINE-Clients-MessagingApi-ObjectSerializer.html b/docs/classes/LINE-Clients-MessagingApi-ObjectSerializer.html index 92f4d8625..f1821a04d 100644 --- a/docs/classes/LINE-Clients-MessagingApi-ObjectSerializer.html +++ b/docs/classes/LINE-Clients-MessagingApi-ObjectSerializer.html @@ -155,7 +155,7 @@

              @@ -378,7 +378,7 @@

              @@ -421,7 +421,7 @@

              @@ -489,7 +489,7 @@

              ObjectSerializer.php : - 313 + 312 @@ -544,7 +544,7 @@

              @@ -617,7 +617,7 @@

              @@ -674,7 +674,7 @@

              @@ -747,7 +747,7 @@

              @@ -802,7 +802,7 @@

              @@ -872,7 +872,7 @@

              @@ -919,7 +919,7 @@

              @@ -976,7 +976,7 @@

              @@ -1033,7 +1033,7 @@

              @@ -1089,7 +1089,7 @@

              @@ -1186,7 +1186,7 @@

              @@ -1244,7 +1244,7 @@

              @@ -1304,7 +1304,7 @@

              diff --git a/docs/classes/LINE-Webhook-Api-DummyApi.html b/docs/classes/LINE-Webhook-Api-DummyApi.html index dd3ca6ffa..de5f51389 100644 --- a/docs/classes/LINE-Webhook-Api-DummyApi.html +++ b/docs/classes/LINE-Webhook-Api-DummyApi.html @@ -154,7 +154,7 @@

              @@ -333,6 +333,18 @@

              Create http client option
              +
              + handleResponseWithDataType() + +  : array<string|int, mixed> +
              + +
              + responseWithinRangeCode() + +  : bool +
              + @@ -354,7 +366,7 @@

              @@ -405,7 +417,7 @@

              @@ -443,7 +455,7 @@

              @@ -481,7 +493,7 @@

              @@ -519,7 +531,7 @@

              @@ -564,7 +576,7 @@

              @@ -631,7 +643,7 @@

              @@ -716,7 +728,7 @@

              @@ -791,7 +803,7 @@

              @@ -866,7 +878,7 @@

              @@ -941,7 +953,7 @@

              @@ -1030,7 +1042,7 @@

              @@ -1068,7 +1080,7 @@

              @@ -1111,7 +1123,7 @@

              @@ -1158,7 +1170,7 @@

              @@ -1203,6 +1215,123 @@

              Return values
              + +
              +

              + handleResponseWithDataType() + + +

              + + + + + private + handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed> + +
              +
              + + +
              Parameters
              +
              +
              + $dataType + : string +
              +
              + +
              +
              + $request + : RequestInterface +
              +
              + +
              +
              + $response + : ResponseInterface +
              +
              + +
              +
              + + + + + +
              +
              Return values
              + array<string|int, mixed> +
              + +
              +
              +

              + responseWithinRangeCode() + + +

              + + + + + private + responseWithinRangeCode(string $rangeCode, int $statusCode) : bool + +
              +
              + + +
              Parameters
              +
              +
              + $rangeCode + : string +
              +
              + +
              +
              + $statusCode + : int +
              +
              + +
              +
              + + + + + +
              +
              Return values
              + bool +
              +
              @@ -1346,6 +1475,8 @@
              Return values
            • getHostIndex()
            • setHostIndex()
            • createHttpClientOption()
            • +
            • handleResponseWithDataType()
            • +
            • responseWithinRangeCode()
            • diff --git a/docs/classes/LINE-Webhook-Configuration.html b/docs/classes/LINE-Webhook-Configuration.html index af561672d..86b1d66c1 100644 --- a/docs/classes/LINE-Webhook-Configuration.html +++ b/docs/classes/LINE-Webhook-Configuration.html @@ -158,7 +158,7 @@

              Configuration Class Doc Comment -PHP version 7.4

              +PHP version 8.1

              @@ -267,6 +267,13 @@

              Boolean format for query string
              +
              + $certFile + +  : string +
              +
              Path to a certificate file, for mTLS
              +
              $debug @@ -288,6 +295,13 @@

              The host
              +
              + $keyFile + +  : string +
              +
              Path to a key file, for mTLS
              +
              $password @@ -372,6 +386,13 @@

              Gets boolean format for query string.
              +
              + getCertFile() + +  : string +
              +
              Gets the certificate file path, for mTLS
              +
              getDebug() @@ -421,6 +442,13 @@

              Returns URL based on host settings, index and variables
              +
              + getKeyFile() + +  : string +
              +
              Gets the certificate key path, for mTLS
              +
              getPassword() @@ -477,6 +505,13 @@

              Sets boolean format for query string.
              +
              + setCertFile() + +  : $this +
              +
              Sets the certificate file path, for mTLS
              +
              setDebug() @@ -505,6 +540,13 @@

              Sets the host
              +
              + setKeyFile() + +  : $this +
              +
              Sets the certificate key path, for mTLS
              +
              setPassword() @@ -777,6 +819,45 @@

              +

              + $certFile + + + + +

              + + +

              Path to a certificate file, for mTLS

              + + + + protected + string + $certFile + + + + + + + + + +
              +
              +
              +

              + $keyFile + + + + +

              + + +

              Path to a key file, for mTLS

              + + + + protected + string + $keyFile + + + + + + + + + +
              +
              +

              + getCertFile() + + +

              + + +

              Gets the certificate file path, for mTLS

              + + + public + getCertFile() : string + +
              +
              + + + + + + + +
              +
              Return values
              + string + — +

              Certificate file path

              +
              + +
              +
              +
              +

              + getKeyFile() + + +

              + + +

              Gets the certificate key path, for mTLS

              + + + public + getKeyFile() : string + +
              +
              + + + + + + + +
              +
              Return values
              + string + — +

              Certificate key path

              +
              + +
              +
              +
              +

              + setCertFile() + + +

              + + +

              Sets the certificate file path, for mTLS

              + + + public + setCertFile(mixed $certFile) : $this + +
              +
              + + +
              Parameters
              +
              +
              + $certFile + : mixed +
              +
              + +
              +
              + + + + +
              Return values
              $this @@ -2127,7 +2382,7 @@

              @@ -2178,7 +2433,7 @@

              @@ -2229,7 +2484,7 @@

              @@ -2276,7 +2531,7 @@

              @@ -2307,6 +2562,55 @@

              Parameters
              +
              +
              Return values
              + $this +
              + +
              +
              +

              + setKeyFile() + + +

              + + +

              Sets the certificate key path, for mTLS

              + + + public + setKeyFile(mixed $keyFile) : $this + +
              +
              + + +
              Parameters
              +
              +
              + $keyFile + : mixed +
              +
              + +
              +
              + + + + +
              Return values
              $this @@ -2327,7 +2631,7 @@

              @@ -2378,7 +2682,7 @@

              @@ -2429,7 +2733,7 @@

              @@ -2495,7 +2799,7 @@

              @@ -2546,7 +2850,7 @@

              @@ -2702,9 +3006,11 @@

              Return values
            • $apiKeyPrefixes
            • $apiKeys
            • $booleanFormatForQueryString
            • +
            • $certFile
            • $debug
            • $debugFile
            • $host
            • +
            • $keyFile
            • $password
            • $tempFolderPath
            • $userAgent
            • @@ -2722,6 +3028,7 @@
              Return values
            • getApiKeyPrefix()
            • getApiKeyWithPrefix()
            • getBooleanFormatForQueryString()
            • +
            • getCertFile()
            • getDebug()
            • getDebugFile()
            • getDefaultConfiguration()
            • @@ -2729,6 +3036,7 @@
              Return values
            • getHostFromSettings()
            • getHostSettings()
            • getHostString()
            • +
            • getKeyFile()
            • getPassword()
            • getTempFolderPath()
            • getUserAgent()
            • @@ -2737,10 +3045,12 @@
              Return values
            • setApiKey()
            • setApiKeyPrefix()
            • setBooleanFormatForQueryString()
            • +
            • setCertFile()
            • setDebug()
            • setDebugFile()
            • setDefaultConfiguration()
            • setHost()
            • +
            • setKeyFile()
            • setPassword()
            • setTempFolderPath()
            • setUserAgent()
            • diff --git a/docs/classes/LINE-Webhook-FormDataProcessor.html b/docs/classes/LINE-Webhook-FormDataProcessor.html new file mode 100644 index 000000000..d2e5c9387 --- /dev/null +++ b/docs/classes/LINE-Webhook-FormDataProcessor.html @@ -0,0 +1,815 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
              +

              LINE Messaging API SDK for PHP

              + + + + + +
              + +
              +
              + + + + +
              +
              + + +
              +

              + FormDataProcessor + + +
              + in package + +
              + + +

              + +
              + + +
              + + + +

              FormDataProcessor Class Doc Comment

              + + + + +
              + Tags + + +
              +
              +
              + category +
              +
              + +

              Class

              +
              + +
              +
              + author +
              +
              + +

              OpenAPI Generator team

              +
              + +
              +
              + link +
              +
              + https://openapi-generator.tech + +
              +
              + + + + + +

              + Table of Contents + + +

              + + + + + + + + + +

              + Properties + + +

              +
              +
              + $has_file + +  : bool +
              +
              Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.
              + +
              + +

              + Methods + + +

              +
              +
              + flatten() + +  : array<string|int, mixed> +
              +
              Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.
              + +
              + prepare() + +  : array<string|int, mixed> +
              +
              Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601
              + +
              + makeFormSafe() + +  : mixed +
              +
              formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario
              + +
              + processFiles() + +  : array<string|int, mixed> +
              +
              Handle file data
              + +
              + processModel() + +  : array<string|int, mixed> +
              +
              We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string
              + +
              + tryFopen() + +  : mixed +
              + +
              + + + + + + +
              +

              + Properties + + +

              +
              +

              + $has_file + + + + +

              + + +

              Tags whether payload passed to ::prepare() contains one or more +SplFileObject or stream values.

              + + + + public + bool + $has_file + = false + + + + + + + + + +
              +
              + +
              +

              + Methods + + +

              +
              +

              + flatten() + + +

              + + +

              Flattens a multi-level array of data and generates a single-level array +compatible with formdata - a single-level array where the keys use bracket +notation to signify nested data.

              + + + public + static flatten(array<string|int, mixed> $source[, string $start = '' ]) : array<string|int, mixed> + +
              +
              + +

              credit: https://github.com/FranBar1966/FlatPHP

              +
              + +
              Parameters
              +
              +
              + $source + : array<string|int, mixed> +
              +
              + +
              +
              + $start + : string + = ''
              +
              + +
              +
              + + + + + +
              +
              Return values
              + array<string|int, mixed> +
              + +
              +
              +

              + prepare() + + +

              + + +

              Take value and turn it into an array suitable for inclusion in +the http body (form parameter). If it's a string, pass through unchanged +If it's a datetime object, format it in ISO8601

              + + + public + prepare(array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject$values) : array<string|int, mixed> + +
              +
              + + +
              Parameters
              +
              +
              + $values + : array<string|int, string|bool|array<string|int, mixed>|DateTime|ArrayAccess|SplFileObject> +
              +
              +

              the value of the form parameter

              +
              + +
              +
              + + + + + +
              +
              Return values
              + array<string|int, mixed> + — +

              [key => value] of formdata

              +
              + +
              + +
              +
              +

              + makeFormSafe() + + +

              + + +

              formdata must be limited to scalars or arrays of scalar values, +or a resource for a file upload. Here we iterate through all available +data and identify how to handle each scenario

              + + + protected + makeFormSafe(mixed $value) : mixed + +
              +
              + + +
              Parameters
              +
              +
              + $value + : mixed +
              +
              + +
              +
              + + + + + + +
              +
              +

              + processFiles() + + +

              + + +

              Handle file data

              + + + protected + processFiles(array<string|int, mixed> $files) : array<string|int, mixed> + +
              +
              + + +
              Parameters
              +
              +
              + $files + : array<string|int, mixed> +
              +
              + +
              +
              + + + + + +
              +
              Return values
              + array<string|int, mixed> +
              + +
              +
              +

              + processModel() + + +

              + + +

              We are able to handle nested ModelInterface. We do not simply call +json_decode(json_encode()) because any given model may have binary data +or other data that cannot be serialized to a JSON string

              + + + protected + processModel(ModelInterface $model) : array<string|int, mixed> + +
              +
              + + +
              Parameters
              +
              +
              + $model + : ModelInterface +
              +
              + +
              +
              + + + + + +
              +
              Return values
              + array<string|int, mixed> +
              + +
              +
              +

              + tryFopen() + + +

              + + + + + private + tryFopen(SplFileObject $file) : mixed + +
              +
              + + +
              Parameters
              +
              +
              + $file + : SplFileObject +
              +
              + +
              +
              + + + + + + +
              +
              + +
              +
              +
              +
              +
              
              +        
              + +
              +
              + + + +
              +
              +
              + +
              + On this page + + +
              + +
              +
              +
              +
              +
              +

              Search results

              + +
              +
              +
                +
                +
                +
                +
                + + +
                + + + + + + + + diff --git a/docs/classes/LINE-Webhook-ObjectSerializer.html b/docs/classes/LINE-Webhook-ObjectSerializer.html index 2dbb8c4f4..d6334e1b9 100644 --- a/docs/classes/LINE-Webhook-ObjectSerializer.html +++ b/docs/classes/LINE-Webhook-ObjectSerializer.html @@ -153,7 +153,7 @@

                @@ -376,7 +376,7 @@

                @@ -419,7 +419,7 @@

                @@ -487,7 +487,7 @@

                ObjectSerializer.php : - 313 + 312 @@ -542,7 +542,7 @@

                @@ -615,7 +615,7 @@

                @@ -672,7 +672,7 @@

                @@ -745,7 +745,7 @@

                @@ -800,7 +800,7 @@

                @@ -870,7 +870,7 @@

                @@ -917,7 +917,7 @@

                @@ -974,7 +974,7 @@

                @@ -1031,7 +1031,7 @@

                @@ -1087,7 +1087,7 @@

                @@ -1184,7 +1184,7 @@

                @@ -1242,7 +1242,7 @@

                @@ -1302,7 +1302,7 @@

                diff --git a/docs/files/src-clients-channel-access-token-lib-configuration.html b/docs/files/src-clients-channel-access-token-lib-configuration.html index 9d9f1b213..80d0fccf0 100644 --- a/docs/files/src-clients-channel-access-token-lib-configuration.html +++ b/docs/files/src-clients-channel-access-token-lib-configuration.html @@ -164,7 +164,7 @@

                Configuration
                Configuration Class Doc Comment -PHP version 7.4
                +PHP version 8.1 diff --git a/docs/files/src-clients-channel-access-token-lib-formdataprocessor.html b/docs/files/src-clients-channel-access-token-lib-formdataprocessor.html new file mode 100644 index 000000000..bc6d98172 --- /dev/null +++ b/docs/files/src-clients-channel-access-token-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                +

                LINE Messaging API SDK for PHP

                + + + + + +
                + +
                +
                + + + + +
                +
                +
                  +
                + +
                +

                FormDataProcessor.php

                + +

                Copyright 2026 LINE Corporation

                + + +

                LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                +

                https://www.apache.org/licenses/LICENSE-2.0

                +

                Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                +
                + + + + + +

                + Table of Contents + + +

                + + + + +

                + Classes + + +

                +
                +
                FormDataProcessor
                FormDataProcessor Class Doc Comment
                + + + + + + + + + + + + +
                +
                +
                +
                +
                
                +        
                + +
                +
                + + + +
                +
                +
                + +
                + On this page + +
                  +
                • Table Of Contents
                • +
                • + +
                • + + +
                +
                + +
                +
                +
                +
                +
                +

                Search results

                + +
                +
                +
                  +
                  +
                  +
                  +
                  + + +
                  + + + + + + + + diff --git a/docs/files/src-clients-insight-lib-configuration.html b/docs/files/src-clients-insight-lib-configuration.html index 09cf65d79..d3324fc06 100644 --- a/docs/files/src-clients-insight-lib-configuration.html +++ b/docs/files/src-clients-insight-lib-configuration.html @@ -164,7 +164,7 @@

                  Configuration
                  Configuration Class Doc Comment -PHP version 7.4
                  +PHP version 8.1 diff --git a/docs/files/src-clients-insight-lib-formdataprocessor.html b/docs/files/src-clients-insight-lib-formdataprocessor.html new file mode 100644 index 000000000..9838bc656 --- /dev/null +++ b/docs/files/src-clients-insight-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                  +

                  LINE Messaging API SDK for PHP

                  + + + + + +
                  + +
                  +
                  + + + + +
                  +
                  +
                    +
                  + +
                  +

                  FormDataProcessor.php

                  + +

                  Copyright 2026 LINE Corporation

                  + + +

                  LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                  +

                  https://www.apache.org/licenses/LICENSE-2.0

                  +

                  Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                  +
                  + + + + + +

                  + Table of Contents + + +

                  + + + + +

                  + Classes + + +

                  +
                  +
                  FormDataProcessor
                  FormDataProcessor Class Doc Comment
                  + + + + + + + + + + + + +
                  +
                  +
                  +
                  +
                  
                  +        
                  + +
                  +
                  + + + +
                  +
                  +
                  + +
                  + On this page + +
                    +
                  • Table Of Contents
                  • +
                  • + +
                  • + + +
                  +
                  + +
                  +
                  +
                  +
                  +
                  +

                  Search results

                  + +
                  +
                  +
                    +
                    +
                    +
                    +
                    + + +
                    + + + + + + + + diff --git a/docs/files/src-clients-liff-lib-configuration.html b/docs/files/src-clients-liff-lib-configuration.html index c07cf1551..82ccdb8cf 100644 --- a/docs/files/src-clients-liff-lib-configuration.html +++ b/docs/files/src-clients-liff-lib-configuration.html @@ -164,7 +164,7 @@

                    Configuration
                    Configuration Class Doc Comment -PHP version 7.4
                    +PHP version 8.1 diff --git a/docs/files/src-clients-liff-lib-formdataprocessor.html b/docs/files/src-clients-liff-lib-formdataprocessor.html new file mode 100644 index 000000000..225da22e1 --- /dev/null +++ b/docs/files/src-clients-liff-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                    +

                    LINE Messaging API SDK for PHP

                    + + + + + +
                    + +
                    +
                    + + + + +
                    +
                    +
                      +
                    + +
                    +

                    FormDataProcessor.php

                    + +

                    Copyright 2026 LINE Corporation

                    + + +

                    LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                    +

                    https://www.apache.org/licenses/LICENSE-2.0

                    +

                    Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                    +
                    + + + + + +

                    + Table of Contents + + +

                    + + + + +

                    + Classes + + +

                    +
                    +
                    FormDataProcessor
                    FormDataProcessor Class Doc Comment
                    + + + + + + + + + + + + +
                    +
                    +
                    +
                    +
                    
                    +        
                    + +
                    +
                    + + + +
                    +
                    +
                    + +
                    + On this page + +
                      +
                    • Table Of Contents
                    • +
                    • + +
                    • + + +
                    +
                    + +
                    +
                    +
                    +
                    +
                    +

                    Search results

                    + +
                    +
                    +
                      +
                      +
                      +
                      +
                      + + +
                      + + + + + + + + diff --git a/docs/files/src-clients-manage-audience-lib-configuration.html b/docs/files/src-clients-manage-audience-lib-configuration.html index 7ade298a3..159adc6b2 100644 --- a/docs/files/src-clients-manage-audience-lib-configuration.html +++ b/docs/files/src-clients-manage-audience-lib-configuration.html @@ -164,7 +164,7 @@

                      Configuration
                      Configuration Class Doc Comment -PHP version 7.4
                      +PHP version 8.1 diff --git a/docs/files/src-clients-manage-audience-lib-formdataprocessor.html b/docs/files/src-clients-manage-audience-lib-formdataprocessor.html new file mode 100644 index 000000000..a5f04b309 --- /dev/null +++ b/docs/files/src-clients-manage-audience-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                      +

                      LINE Messaging API SDK for PHP

                      + + + + + +
                      + +
                      +
                      + + + + +
                      +
                      +
                        +
                      + +
                      +

                      FormDataProcessor.php

                      + +

                      Copyright 2026 LINE Corporation

                      + + +

                      LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                      +

                      https://www.apache.org/licenses/LICENSE-2.0

                      +

                      Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                      +
                      + + + + + +

                      + Table of Contents + + +

                      + + + + +

                      + Classes + + +

                      +
                      +
                      FormDataProcessor
                      FormDataProcessor Class Doc Comment
                      + + + + + + + + + + + + +
                      +
                      +
                      +
                      +
                      
                      +        
                      + +
                      +
                      + + + +
                      +
                      +
                      + +
                      + On this page + +
                        +
                      • Table Of Contents
                      • +
                      • + +
                      • + + +
                      +
                      + +
                      +
                      +
                      +
                      +
                      +

                      Search results

                      + +
                      +
                      +
                        +
                        +
                        +
                        +
                        + + +
                        + + + + + + + + diff --git a/docs/files/src-clients-messaging-api-lib-configuration.html b/docs/files/src-clients-messaging-api-lib-configuration.html index 6fafd5881..1a08a1696 100644 --- a/docs/files/src-clients-messaging-api-lib-configuration.html +++ b/docs/files/src-clients-messaging-api-lib-configuration.html @@ -164,7 +164,7 @@

                        Configuration
                        Configuration Class Doc Comment -PHP version 7.4
                        +PHP version 8.1 diff --git a/docs/files/src-clients-messaging-api-lib-formdataprocessor.html b/docs/files/src-clients-messaging-api-lib-formdataprocessor.html new file mode 100644 index 000000000..bd87b203e --- /dev/null +++ b/docs/files/src-clients-messaging-api-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                        +

                        LINE Messaging API SDK for PHP

                        + + + + + +
                        + +
                        +
                        + + + + +
                        +
                        +
                          +
                        + +
                        +

                        FormDataProcessor.php

                        + +

                        Copyright 2026 LINE Corporation

                        + + +

                        LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                        +

                        https://www.apache.org/licenses/LICENSE-2.0

                        +

                        Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                        +
                        + + + + + +

                        + Table of Contents + + +

                        + + + + +

                        + Classes + + +

                        +
                        +
                        FormDataProcessor
                        FormDataProcessor Class Doc Comment
                        + + + + + + + + + + + + +
                        +
                        +
                        +
                        +
                        
                        +        
                        + +
                        +
                        + + + +
                        +
                        +
                        + +
                        + On this page + +
                          +
                        • Table Of Contents
                        • +
                        • + +
                        • + + +
                        +
                        + +
                        +
                        +
                        +
                        +
                        +

                        Search results

                        + +
                        +
                        +
                          +
                          +
                          +
                          +
                          + + +
                          + + + + + + + + diff --git a/docs/files/src-webhook-lib-configuration.html b/docs/files/src-webhook-lib-configuration.html index ca3c3a35b..cbce2d786 100644 --- a/docs/files/src-webhook-lib-configuration.html +++ b/docs/files/src-webhook-lib-configuration.html @@ -164,7 +164,7 @@

                          Configuration
                          Configuration Class Doc Comment -PHP version 7.4
                          +PHP version 8.1 diff --git a/docs/files/src-webhook-lib-formdataprocessor.html b/docs/files/src-webhook-lib-formdataprocessor.html new file mode 100644 index 000000000..a31cb7096 --- /dev/null +++ b/docs/files/src-webhook-lib-formdataprocessor.html @@ -0,0 +1,318 @@ + + + + + LINE Messaging API SDK for PHP + + + + + + + + + + + + + + + + + + + + + +
                          +

                          LINE Messaging API SDK for PHP

                          + + + + + +
                          + +
                          +
                          + + + + +
                          +
                          +
                            +
                          + +
                          +

                          FormDataProcessor.php

                          + +

                          Copyright 2026 LINE Corporation

                          + + +

                          LINE Corporation licenses this file to you under the Apache License, +version 2.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at:

                          +

                          https://www.apache.org/licenses/LICENSE-2.0

                          +

                          Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License.

                          +
                          + + + + + +

                          + Table of Contents + + +

                          + + + + +

                          + Classes + + +

                          +
                          +
                          FormDataProcessor
                          FormDataProcessor Class Doc Comment
                          + + + + + + + + + + + + +
                          +
                          +
                          +
                          +
                          
                          +        
                          + +
                          +
                          + + + +
                          +
                          +
                          + +
                          + On this page + +
                            +
                          • Table Of Contents
                          • +
                          • + +
                          • + + +
                          +
                          + +
                          +
                          +
                          +
                          +
                          +

                          Search results

                          + +
                          +
                          +
                            +
                            +
                            +
                            +
                            + + +
                            + + + + + + + + diff --git a/docs/indices/files.html b/docs/indices/files.html index cd4e65e3a..a70f5486c 100644 --- a/docs/indices/files.html +++ b/docs/indices/files.html @@ -355,6 +355,12 @@

                            F

                          • FollowDetailTest.php
                          • FollowEvent.php
                          • FollowEventTest.php
                          • +
                          • FormDataProcessor.php
                          • +
                          • FormDataProcessor.php
                          • +
                          • FormDataProcessor.php
                          • +
                          • FormDataProcessor.php
                          • +
                          • FormDataProcessor.php
                          • +
                          • FormDataProcessor.php
                          • G

                              diff --git a/docs/js/searchIndex.js b/docs/js/searchIndex.js index 76f6a07f8..72385cf5b 100644 --- a/docs/js/searchIndex.js +++ b/docs/js/searchIndex.js @@ -230,6 +230,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Api\\ChannelAccessTokenApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Api\\ChannelAccessTokenApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-ChannelAccessToken-Api-ChannelAccessTokenApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Api\\ChannelAccessTokenApi\u003A\u003AissueStatelessChannelTokenByJWTAssertion\u0028\u0029", "name": "issueStatelessChannelTokenByJWTAssertion", @@ -343,7 +353,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html" }, { "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -460,6 +470,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -565,6 +595,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ChannelAccessToken-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Clients-ChannelAccessToken-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Clients\\ChannelAccessToken\\HeaderSelector", "name": "HeaderSelector", @@ -1880,6 +1960,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-Insight-Api-InsightApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Api\\InsightApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-Insight-Api-InsightApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Api\\InsightApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-Insight-Api-InsightApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\Insight\\Api\\InsightApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -1953,7 +2043,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Clients\\Insight\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Clients-Insight-Configuration.html" }, { "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -2070,6 +2160,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Clients-Insight-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -2175,6 +2285,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Clients-Insight-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Insight-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Clients\\Insight\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Clients-Insight-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Clients\\Insight\\HeaderSelector", "name": "HeaderSelector", @@ -5995,6 +6155,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-Liff-Api-LiffApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Api\\LiffApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-Liff-Api-LiffApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Api\\LiffApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-Liff-Api-LiffApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\Liff\\Api\\LiffApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -6068,7 +6238,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Clients\\Liff\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Clients-Liff-Configuration.html" }, { "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -6185,6 +6355,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Clients-Liff-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -6290,6 +6480,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Clients-Liff-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-Liff-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Clients\\Liff\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Clients-Liff-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Clients\\Liff\\HeaderSelector", "name": "HeaderSelector", @@ -8225,6 +8465,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -8340,6 +8590,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceBlobApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceBlobApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-ManageAudience-Api-ManageAudienceBlobApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\Api\\ManageAudienceBlobApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -8413,7 +8673,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Clients-ManageAudience-Configuration.html" }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -8530,6 +8790,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Clients-ManageAudience-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -8635,6 +8915,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Clients-ManageAudience-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-ManageAudience-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Clients\\ManageAudience\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Clients-ManageAudience-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Clients\\ManageAudience\\HeaderSelector", "name": "HeaderSelector", @@ -14255,6 +14585,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -14460,6 +14800,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiBlobApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiBlobApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\Api\\MessagingApiBlobApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -14533,7 +14883,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Clients-MessagingApi-Configuration.html" }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -14650,6 +15000,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Clients-MessagingApi-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -14755,6 +15125,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Clients-MessagingApi-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Clients-MessagingApi-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Clients\\MessagingApi\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Clients-MessagingApi-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Clients\\MessagingApi\\HeaderSelector", "name": "HeaderSelector", @@ -47280,6 +47700,16 @@ Search.appendIndex( "name": "createHttpClientOption", "summary": "Create\u0020http\u0020client\u0020option", "url": "classes/LINE-Webhook-Api-DummyApi.html#method_createHttpClientOption" + }, { + "fqsen": "\\LINE\\Webhook\\Api\\DummyApi\u003A\u003AhandleResponseWithDataType\u0028\u0029", + "name": "handleResponseWithDataType", + "summary": "", + "url": "classes/LINE-Webhook-Api-DummyApi.html#method_handleResponseWithDataType" + }, { + "fqsen": "\\LINE\\Webhook\\Api\\DummyApi\u003A\u003AresponseWithinRangeCode\u0028\u0029", + "name": "responseWithinRangeCode", + "summary": "", + "url": "classes/LINE-Webhook-Api-DummyApi.html#method_responseWithinRangeCode" }, { "fqsen": "\\LINE\\Webhook\\Api\\DummyApi\u003A\u003AcontentTypes", "name": "contentTypes", @@ -47353,7 +47783,7 @@ Search.appendIndex( }, { "fqsen": "\\LINE\\Webhook\\Configuration", "name": "Configuration", - "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00207.4", + "summary": "Configuration\u0020Class\u0020Doc\u0020Comment\nPHP\u0020version\u00208.1", "url": "classes/LINE-Webhook-Configuration.html" }, { "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003A__construct\u0028\u0029", @@ -47470,6 +47900,26 @@ Search.appendIndex( "name": "getTempFolderPath", "summary": "Gets\u0020the\u0020temp\u0020folder\u0020path", "url": "classes/LINE-Webhook-Configuration.html#method_getTempFolderPath" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003AsetCertFile\u0028\u0029", + "name": "setCertFile", + "summary": "Sets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#method_setCertFile" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003AgetCertFile\u0028\u0029", + "name": "getCertFile", + "summary": "Gets\u0020the\u0020certificate\u0020file\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#method_getCertFile" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003AsetKeyFile\u0028\u0029", + "name": "setKeyFile", + "summary": "Sets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#method_setKeyFile" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003AgetKeyFile\u0028\u0029", + "name": "getKeyFile", + "summary": "Gets\u0020the\u0020certificate\u0020key\u0020path,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#method_getKeyFile" }, { "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003AgetDefaultConfiguration\u0028\u0029", "name": "getDefaultConfiguration", @@ -47575,6 +48025,56 @@ Search.appendIndex( "name": "tempFolderPath", "summary": "Debug\u0020file\u0020location\u0020\u0028log\u0020to\u0020STDOUT\u0020by\u0020default\u0029", "url": "classes/LINE-Webhook-Configuration.html#property_tempFolderPath" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003A\u0024certFile", + "name": "certFile", + "summary": "Path\u0020to\u0020a\u0020certificate\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#property_certFile" + }, { + "fqsen": "\\LINE\\Webhook\\Configuration\u003A\u003A\u0024keyFile", + "name": "keyFile", + "summary": "Path\u0020to\u0020a\u0020key\u0020file,\u0020for\u0020mTLS", + "url": "classes/LINE-Webhook-Configuration.html#property_keyFile" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor", + "name": "FormDataProcessor", + "summary": "FormDataProcessor\u0020Class\u0020Doc\u0020Comment", + "url": "classes/LINE-Webhook-FormDataProcessor.html" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003Aprepare\u0028\u0029", + "name": "prepare", + "summary": "Take\u0020value\u0020and\u0020turn\u0020it\u0020into\u0020an\u0020array\u0020suitable\u0020for\u0020inclusion\u0020in\nthe\u0020http\u0020body\u0020\u0028form\u0020parameter\u0029.\u0020If\u0020it\u0027s\u0020a\u0020string,\u0020pass\u0020through\u0020unchanged\nIf\u0020it\u0027s\u0020a\u0020datetime\u0020object,\u0020format\u0020it\u0020in\u0020ISO8601", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_prepare" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003Aflatten\u0028\u0029", + "name": "flatten", + "summary": "Flattens\u0020a\u0020multi\u002Dlevel\u0020array\u0020of\u0020data\u0020and\u0020generates\u0020a\u0020single\u002Dlevel\u0020array\ncompatible\u0020with\u0020formdata\u0020\u002D\u0020a\u0020single\u002Dlevel\u0020array\u0020where\u0020the\u0020keys\u0020use\u0020bracket\nnotation\u0020to\u0020signify\u0020nested\u0020data.", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_flatten" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003AmakeFormSafe\u0028\u0029", + "name": "makeFormSafe", + "summary": "formdata\u0020must\u0020be\u0020limited\u0020to\u0020scalars\u0020or\u0020arrays\u0020of\u0020scalar\u0020values,\nor\u0020a\u0020resource\u0020for\u0020a\u0020file\u0020upload.\u0020Here\u0020we\u0020iterate\u0020through\u0020all\u0020available\ndata\u0020and\u0020identify\u0020how\u0020to\u0020handle\u0020each\u0020scenario", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_makeFormSafe" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003AprocessModel\u0028\u0029", + "name": "processModel", + "summary": "We\u0020are\u0020able\u0020to\u0020handle\u0020nested\u0020ModelInterface.\u0020We\u0020do\u0020not\u0020simply\u0020call\njson_decode\u0028json_encode\u0028\u0029\u0029\u0020because\u0020any\u0020given\u0020model\u0020may\u0020have\u0020binary\u0020data\nor\u0020other\u0020data\u0020that\u0020cannot\u0020be\u0020serialized\u0020to\u0020a\u0020JSON\u0020string", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_processModel" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003AprocessFiles\u0028\u0029", + "name": "processFiles", + "summary": "Handle\u0020file\u0020data", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_processFiles" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003AtryFopen\u0028\u0029", + "name": "tryFopen", + "summary": "", + "url": "classes/LINE-Webhook-FormDataProcessor.html#method_tryFopen" + }, { + "fqsen": "\\LINE\\Webhook\\FormDataProcessor\u003A\u003A\u0024has_file", + "name": "has_file", + "summary": "Tags\u0020whether\u0020payload\u0020passed\u0020to\u0020\u003A\u003Aprepare\u0028\u0029\u0020contains\u0020one\u0020or\u0020more\nSplFileObject\u0020or\u0020stream\u0020values.", + "url": "classes/LINE-Webhook-FormDataProcessor.html#property_has_file" }, { "fqsen": "\\LINE\\Webhook\\HeaderSelector", "name": "HeaderSelector", diff --git a/docs/namespaces/line-clients-channelaccesstoken.html b/docs/namespaces/line-clients-channelaccesstoken.html index 11ab2e503..5b49675b8 100644 --- a/docs/namespaces/line-clients-channelaccesstoken.html +++ b/docs/namespaces/line-clients-channelaccesstoken.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/namespaces/line-clients-insight.html b/docs/namespaces/line-clients-insight.html index bbd86bfc0..699007a77 100644 --- a/docs/namespaces/line-clients-insight.html +++ b/docs/namespaces/line-clients-insight.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/namespaces/line-clients-liff.html b/docs/namespaces/line-clients-liff.html index e91bb8afa..b08f7b09d 100644 --- a/docs/namespaces/line-clients-liff.html +++ b/docs/namespaces/line-clients-liff.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/namespaces/line-clients-manageaudience.html b/docs/namespaces/line-clients-manageaudience.html index ac498601a..b00bcd088 100644 --- a/docs/namespaces/line-clients-manageaudience.html +++ b/docs/namespaces/line-clients-manageaudience.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/namespaces/line-clients-messagingapi.html b/docs/namespaces/line-clients-messagingapi.html index 14141419c..23e33b30b 100644 --- a/docs/namespaces/line-clients-messagingapi.html +++ b/docs/namespaces/line-clients-messagingapi.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/namespaces/line-webhook.html b/docs/namespaces/line-webhook.html index 6eb28e472..fd4d4c0cf 100644 --- a/docs/namespaces/line-webhook.html +++ b/docs/namespaces/line-webhook.html @@ -158,7 +158,7 @@

                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Clients-ChannelAccessToken.html b/docs/packages/LINE-Clients-ChannelAccessToken.html index acff296b9..8cdfe4e26 100644 --- a/docs/packages/LINE-Clients-ChannelAccessToken.html +++ b/docs/packages/LINE-Clients-ChannelAccessToken.html @@ -157,7 +157,7 @@

                              ChannelAccessTokenApi
                              ChannelAccessTokenApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ChannelAccessTokenKeyIdsResponse
                              ChannelAccessTokenKeyIdsResponse Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              IssueChannelAccessTokenResponse
                              IssueChannelAccessTokenResponse Class Doc Comment
                              IssueShortLivedChannelAccessTokenResponse
                              IssueShortLivedChannelAccessTokenResponse Class Doc Comment
                              IssueStatelessChannelAccessTokenResponse
                              IssueStatelessChannelAccessTokenResponse Class Doc Comment
                              VerifyChannelAccessTokenResponse
                              VerifyChannelAccessTokenResponse Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              ChannelAccessTokenKeyIdsResponse
                              ChannelAccessTokenKeyIdsResponse Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              IssueChannelAccessTokenResponse
                              IssueChannelAccessTokenResponse Class Doc Comment
                              IssueShortLivedChannelAccessTokenResponse
                              IssueShortLivedChannelAccessTokenResponse Class Doc Comment
                              IssueStatelessChannelAccessTokenResponse
                              IssueStatelessChannelAccessTokenResponse Class Doc Comment
                              VerifyChannelAccessTokenResponse
                              VerifyChannelAccessTokenResponse Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Clients-Insight.html b/docs/packages/LINE-Clients-Insight.html index 36796ec5d..80bb432cd 100644 --- a/docs/packages/LINE-Clients-Insight.html +++ b/docs/packages/LINE-Clients-Insight.html @@ -157,7 +157,7 @@

                              InsightApi
                              InsightApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AgeTile
                              AgeTile Class Doc Comment
                              AppTypeTile
                              AppTypeTile Class Doc Comment
                              AreaTile
                              AreaTile Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              GenderTile
                              GenderTile Class Doc Comment
                              GetFriendsDemographicsResponse
                              GetFriendsDemographicsResponse Class Doc Comment
                              GetMessageEventResponse
                              GetMessageEventResponse Class Doc Comment
                              GetMessageEventResponseClick
                              GetMessageEventResponseClick Class Doc Comment
                              GetMessageEventResponseMessage
                              GetMessageEventResponseMessage Class Doc Comment
                              GetMessageEventResponseOverview
                              GetMessageEventResponseOverview Class Doc Comment
                              GetNumberOfFollowersResponse
                              GetNumberOfFollowersResponse Class Doc Comment
                              GetNumberOfMessageDeliveriesResponse
                              GetNumberOfMessageDeliveriesResponse Class Doc Comment
                              GetStatisticsPerUnitResponse
                              GetStatisticsPerUnitResponse Class Doc Comment
                              GetStatisticsPerUnitResponseClick
                              GetStatisticsPerUnitResponseClick Class Doc Comment
                              GetStatisticsPerUnitResponseMessage
                              GetStatisticsPerUnitResponseMessage Class Doc Comment
                              GetStatisticsPerUnitResponseOverview
                              GetStatisticsPerUnitResponseOverview Class Doc Comment
                              SubscriptionPeriodTile
                              SubscriptionPeriodTile Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AgeTile
                              AgeTile Class Doc Comment
                              AppTypeTile
                              AppTypeTile Class Doc Comment
                              AreaTile
                              AreaTile Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              GenderTile
                              GenderTile Class Doc Comment
                              GetFriendsDemographicsResponse
                              GetFriendsDemographicsResponse Class Doc Comment
                              GetMessageEventResponse
                              GetMessageEventResponse Class Doc Comment
                              GetMessageEventResponseClick
                              GetMessageEventResponseClick Class Doc Comment
                              GetMessageEventResponseMessage
                              GetMessageEventResponseMessage Class Doc Comment
                              GetMessageEventResponseOverview
                              GetMessageEventResponseOverview Class Doc Comment
                              GetNumberOfFollowersResponse
                              GetNumberOfFollowersResponse Class Doc Comment
                              GetNumberOfMessageDeliveriesResponse
                              GetNumberOfMessageDeliveriesResponse Class Doc Comment
                              GetStatisticsPerUnitResponse
                              GetStatisticsPerUnitResponse Class Doc Comment
                              GetStatisticsPerUnitResponseClick
                              GetStatisticsPerUnitResponseClick Class Doc Comment
                              GetStatisticsPerUnitResponseMessage
                              GetStatisticsPerUnitResponseMessage Class Doc Comment
                              GetStatisticsPerUnitResponseOverview
                              GetStatisticsPerUnitResponseOverview Class Doc Comment
                              SubscriptionPeriodTile
                              SubscriptionPeriodTile Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Clients-Liff.html b/docs/packages/LINE-Clients-Liff.html index 881de2d3d..cc060150e 100644 --- a/docs/packages/LINE-Clients-Liff.html +++ b/docs/packages/LINE-Clients-Liff.html @@ -157,7 +157,7 @@

                              LiffApi
                              LiffApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AddLiffAppRequest
                              AddLiffAppRequest Class Doc Comment
                              AddLiffAppResponse
                              AddLiffAppResponse Class Doc Comment
                              GetAllLiffAppsResponse
                              GetAllLiffAppsResponse Class Doc Comment
                              LiffApp
                              LiffApp Class Doc Comment
                              LiffBotPrompt
                              LiffBotPrompt Class Doc Comment
                              LiffFeatures
                              LiffFeatures Class Doc Comment
                              LiffScope
                              LiffScope Class Doc Comment
                              LiffView
                              LiffView Class Doc Comment
                              UpdateLiffAppRequest
                              UpdateLiffAppRequest Class Doc Comment
                              UpdateLiffView
                              UpdateLiffView Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AddLiffAppRequest
                              AddLiffAppRequest Class Doc Comment
                              AddLiffAppResponse
                              AddLiffAppResponse Class Doc Comment
                              GetAllLiffAppsResponse
                              GetAllLiffAppsResponse Class Doc Comment
                              LiffApp
                              LiffApp Class Doc Comment
                              LiffBotPrompt
                              LiffBotPrompt Class Doc Comment
                              LiffFeatures
                              LiffFeatures Class Doc Comment
                              LiffScope
                              LiffScope Class Doc Comment
                              LiffView
                              LiffView Class Doc Comment
                              UpdateLiffAppRequest
                              UpdateLiffAppRequest Class Doc Comment
                              UpdateLiffView
                              UpdateLiffView Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Clients-ManageAudience.html b/docs/packages/LINE-Clients-ManageAudience.html index 869cbabca..de2935186 100644 --- a/docs/packages/LINE-Clients-ManageAudience.html +++ b/docs/packages/LINE-Clients-ManageAudience.html @@ -157,7 +157,7 @@

                              ManageAudienceApi
                              ManageAudienceApi Class Doc Comment
                              ManageAudienceBlobApi
                              ManageAudienceBlobApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              Adaccount
                              Adaccount Class Doc Comment
                              AddAudienceToAudienceGroupRequest
                              AddAudienceToAudienceGroupRequest Class Doc Comment
                              Audience
                              Audience Class Doc Comment
                              AudienceGroup
                              AudienceGroup Class Doc Comment
                              AudienceGroupCreateRoute
                              AudienceGroupCreateRoute Class Doc Comment
                              AudienceGroupFailedType
                              AudienceGroupFailedType Class Doc Comment
                              AudienceGroupJob
                              AudienceGroupJob Class Doc Comment
                              AudienceGroupJobFailedType
                              AudienceGroupJobFailedType Class Doc Comment
                              AudienceGroupJobStatus
                              AudienceGroupJobStatus Class Doc Comment
                              AudienceGroupJobType
                              AudienceGroupJobType Class Doc Comment
                              AudienceGroupPermission
                              AudienceGroupPermission Class Doc Comment
                              AudienceGroupStatus
                              AudienceGroupStatus Class Doc Comment
                              AudienceGroupType
                              AudienceGroupType Class Doc Comment
                              CreateAudienceGroupRequest
                              CreateAudienceGroupRequest Class Doc Comment
                              CreateAudienceGroupResponse
                              CreateAudienceGroupResponse Class Doc Comment
                              CreateClickBasedAudienceGroupRequest
                              CreateClickBasedAudienceGroupRequest Class Doc Comment
                              CreateClickBasedAudienceGroupResponse
                              CreateClickBasedAudienceGroupResponse Class Doc Comment
                              CreateImpBasedAudienceGroupRequest
                              CreateImpBasedAudienceGroupRequest Class Doc Comment
                              CreateImpBasedAudienceGroupResponse
                              CreateImpBasedAudienceGroupResponse Class Doc Comment
                              DetailedOwner
                              DetailedOwner Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              GetAudienceDataResponse
                              GetAudienceDataResponse Class Doc Comment
                              GetAudienceGroupsResponse
                              GetAudienceGroupsResponse Class Doc Comment
                              GetSharedAudienceDataResponse
                              GetSharedAudienceDataResponse Class Doc Comment
                              GetSharedAudienceGroupsResponse
                              GetSharedAudienceGroupsResponse Class Doc Comment
                              UpdateAudienceGroupDescriptionRequest
                              UpdateAudienceGroupDescriptionRequest Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              Adaccount
                              Adaccount Class Doc Comment
                              AddAudienceToAudienceGroupRequest
                              AddAudienceToAudienceGroupRequest Class Doc Comment
                              Audience
                              Audience Class Doc Comment
                              AudienceGroup
                              AudienceGroup Class Doc Comment
                              AudienceGroupCreateRoute
                              AudienceGroupCreateRoute Class Doc Comment
                              AudienceGroupFailedType
                              AudienceGroupFailedType Class Doc Comment
                              AudienceGroupJob
                              AudienceGroupJob Class Doc Comment
                              AudienceGroupJobFailedType
                              AudienceGroupJobFailedType Class Doc Comment
                              AudienceGroupJobStatus
                              AudienceGroupJobStatus Class Doc Comment
                              AudienceGroupJobType
                              AudienceGroupJobType Class Doc Comment
                              AudienceGroupPermission
                              AudienceGroupPermission Class Doc Comment
                              AudienceGroupStatus
                              AudienceGroupStatus Class Doc Comment
                              AudienceGroupType
                              AudienceGroupType Class Doc Comment
                              CreateAudienceGroupRequest
                              CreateAudienceGroupRequest Class Doc Comment
                              CreateAudienceGroupResponse
                              CreateAudienceGroupResponse Class Doc Comment
                              CreateClickBasedAudienceGroupRequest
                              CreateClickBasedAudienceGroupRequest Class Doc Comment
                              CreateClickBasedAudienceGroupResponse
                              CreateClickBasedAudienceGroupResponse Class Doc Comment
                              CreateImpBasedAudienceGroupRequest
                              CreateImpBasedAudienceGroupRequest Class Doc Comment
                              CreateImpBasedAudienceGroupResponse
                              CreateImpBasedAudienceGroupResponse Class Doc Comment
                              DetailedOwner
                              DetailedOwner Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              GetAudienceDataResponse
                              GetAudienceDataResponse Class Doc Comment
                              GetAudienceGroupsResponse
                              GetAudienceGroupsResponse Class Doc Comment
                              GetSharedAudienceDataResponse
                              GetSharedAudienceDataResponse Class Doc Comment
                              GetSharedAudienceGroupsResponse
                              GetSharedAudienceGroupsResponse Class Doc Comment
                              UpdateAudienceGroupDescriptionRequest
                              UpdateAudienceGroupDescriptionRequest Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Clients-MessagingApi.html b/docs/packages/LINE-Clients-MessagingApi.html index ad20cdf3a..cddc426f3 100644 --- a/docs/packages/LINE-Clients-MessagingApi.html +++ b/docs/packages/LINE-Clients-MessagingApi.html @@ -157,7 +157,7 @@

                              MessagingApiApi
                              MessagingApiApi Class Doc Comment
                              MessagingApiBlobApi
                              MessagingApiBlobApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AcquisitionConditionRequest
                              AcquisitionConditionRequest Class Doc Comment
                              AcquisitionConditionResponse
                              AcquisitionConditionResponse Class Doc Comment
                              Action
                              Action Class Doc Comment
                              AgeDemographic
                              AgeDemographic Class Doc Comment
                              AgeDemographicFilter
                              AgeDemographicFilter Class Doc Comment
                              AllMentionTarget
                              AllMentionTarget Class Doc Comment
                              AltUri
                              AltUri Class Doc Comment
                              AppTypeDemographic
                              AppTypeDemographic Class Doc Comment
                              AppTypeDemographicFilter
                              AppTypeDemographicFilter Class Doc Comment
                              AreaDemographic
                              AreaDemographic Class Doc Comment
                              AreaDemographicFilter
                              AreaDemographicFilter Class Doc Comment
                              AudienceRecipient
                              AudienceRecipient Class Doc Comment
                              AudioMessage
                              AudioMessage Class Doc Comment
                              BotInfoResponse
                              BotInfoResponse Class Doc Comment
                              BroadcastRequest
                              BroadcastRequest Class Doc Comment
                              ButtonsTemplate
                              ButtonsTemplate Class Doc Comment
                              CameraAction
                              CameraAction Class Doc Comment
                              CameraRollAction
                              CameraRollAction Class Doc Comment
                              CarouselColumn
                              CarouselColumn Class Doc Comment
                              CarouselTemplate
                              CarouselTemplate Class Doc Comment
                              CashBackFixedPriceInfoRequest
                              CashBackFixedPriceInfoRequest Class Doc Comment
                              CashBackFixedPriceInfoResponse
                              CashBackFixedPriceInfoResponse Class Doc Comment
                              CashBackPercentagePriceInfoRequest
                              CashBackPercentagePriceInfoRequest Class Doc Comment
                              CashBackPercentagePriceInfoResponse
                              CashBackPercentagePriceInfoResponse Class Doc Comment
                              CashBackPriceInfoRequest
                              CashBackPriceInfoRequest Class Doc Comment
                              CashBackPriceInfoResponse
                              CashBackPriceInfoResponse Class Doc Comment
                              ChatReference
                              ChatReference Class Doc Comment
                              ClipboardAction
                              ClipboardAction Class Doc Comment
                              ClipboardImagemapAction
                              ClipboardImagemapAction Class Doc Comment
                              ConfirmTemplate
                              ConfirmTemplate Class Doc Comment
                              CouponCashBackRewardRequest
                              CouponCashBackRewardRequest Class Doc Comment
                              CouponCashBackRewardResponse
                              CouponCashBackRewardResponse Class Doc Comment
                              CouponCreateRequest
                              CouponCreateRequest Class Doc Comment
                              CouponCreateResponse
                              CouponCreateResponse Class Doc Comment
                              CouponDiscountRewardRequest
                              CouponDiscountRewardRequest Class Doc Comment
                              CouponDiscountRewardResponse
                              CouponDiscountRewardResponse Class Doc Comment
                              CouponFreeRewardRequest
                              CouponFreeRewardRequest Class Doc Comment
                              CouponFreeRewardResponse
                              CouponFreeRewardResponse Class Doc Comment
                              CouponGiftRewardRequest
                              CouponGiftRewardRequest Class Doc Comment
                              CouponGiftRewardResponse
                              CouponGiftRewardResponse Class Doc Comment
                              CouponListResponse
                              CouponListResponse Class Doc Comment
                              CouponMessage
                              CouponMessage Class Doc Comment
                              CouponOthersRewardRequest
                              CouponOthersRewardRequest Class Doc Comment
                              CouponOthersRewardResponse
                              CouponOthersRewardResponse Class Doc Comment
                              CouponResponse
                              CouponResponse Class Doc Comment
                              CouponRewardRequest
                              CouponRewardRequest Class Doc Comment
                              CouponRewardResponse
                              CouponRewardResponse Class Doc Comment
                              CreateRichMenuAliasRequest
                              CreateRichMenuAliasRequest Class Doc Comment
                              DatetimePickerAction
                              DatetimePickerAction Class Doc Comment
                              DemographicFilter
                              DemographicFilter Class Doc Comment
                              DiscountExplicitPriceInfoRequest
                              DiscountExplicitPriceInfoRequest Class Doc Comment
                              DiscountExplicitPriceInfoResponse
                              DiscountExplicitPriceInfoResponse Class Doc Comment
                              DiscountFixedPriceInfoRequest
                              DiscountFixedPriceInfoRequest Class Doc Comment
                              DiscountFixedPriceInfoResponse
                              DiscountFixedPriceInfoResponse Class Doc Comment
                              DiscountPercentagePriceInfoRequest
                              DiscountPercentagePriceInfoRequest Class Doc Comment
                              DiscountPercentagePriceInfoResponse
                              DiscountPercentagePriceInfoResponse Class Doc Comment
                              DiscountPriceInfoRequest
                              DiscountPriceInfoRequest Class Doc Comment
                              DiscountPriceInfoResponse
                              DiscountPriceInfoResponse Class Doc Comment
                              Emoji
                              Emoji Class Doc Comment
                              EmojiSubstitutionObject
                              EmojiSubstitutionObject Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              Filter
                              Filter Class Doc Comment
                              FlexBlockStyle
                              FlexBlockStyle Class Doc Comment
                              FlexBox
                              FlexBox Class Doc Comment
                              FlexBoxBackground
                              FlexBoxBackground Class Doc Comment
                              FlexBoxBorderWidth
                              FlexBoxBorderWidth Class Doc Comment
                              FlexBoxCornerRadius
                              FlexBoxCornerRadius Class Doc Comment
                              FlexBoxLinearGradient
                              FlexBoxLinearGradient Class Doc Comment
                              FlexBoxPadding
                              FlexBoxPadding Class Doc Comment
                              FlexBoxSpacing
                              FlexBoxSpacing Class Doc Comment
                              FlexBubble
                              FlexBubble Class Doc Comment
                              FlexBubbleStyles
                              FlexBubbleStyles Class Doc Comment
                              FlexButton
                              FlexButton Class Doc Comment
                              FlexCarousel
                              FlexCarousel Class Doc Comment
                              FlexComponent
                              FlexComponent Class Doc Comment
                              FlexContainer
                              FlexContainer Class Doc Comment
                              FlexFiller
                              FlexFiller Class Doc Comment
                              FlexIcon
                              FlexIcon Class Doc Comment
                              FlexIconSize
                              FlexIconSize Class Doc Comment
                              FlexImage
                              FlexImage Class Doc Comment
                              FlexImageSize
                              FlexImageSize Class Doc Comment
                              FlexMargin
                              FlexMargin Class Doc Comment
                              FlexMessage
                              FlexMessage Class Doc Comment
                              FlexOffset
                              FlexOffset Class Doc Comment
                              FlexSeparator
                              FlexSeparator Class Doc Comment
                              FlexSpan
                              FlexSpan Class Doc Comment
                              FlexSpanSize
                              FlexSpanSize Class Doc Comment
                              FlexText
                              FlexText Class Doc Comment
                              FlexTextFontSize
                              FlexTextFontSize Class Doc Comment
                              FlexVideo
                              FlexVideo Class Doc Comment
                              GenderDemographic
                              GenderDemographic Class Doc Comment
                              GenderDemographicFilter
                              GenderDemographicFilter Class Doc Comment
                              GetAggregationUnitNameListResponse
                              GetAggregationUnitNameListResponse Class Doc Comment
                              GetAggregationUnitUsageResponse
                              GetAggregationUnitUsageResponse Class Doc Comment
                              GetFollowersResponse
                              GetFollowersResponse Class Doc Comment
                              GetJoinedMembershipUsersResponse
                              GetJoinedMembershipUsersResponse Class Doc Comment
                              GetMembershipSubscriptionResponse
                              GetMembershipSubscriptionResponse Class Doc Comment
                              GetMessageContentTranscodingResponse
                              GetMessageContentTranscodingResponse Class Doc Comment
                              GetWebhookEndpointResponse
                              GetWebhookEndpointResponse Class Doc Comment
                              GroupMemberCountResponse
                              GroupMemberCountResponse Class Doc Comment
                              GroupSummaryResponse
                              GroupSummaryResponse Class Doc Comment
                              GroupUserProfileResponse
                              GroupUserProfileResponse Class Doc Comment
                              ImageCarouselColumn
                              ImageCarouselColumn Class Doc Comment
                              ImageCarouselTemplate
                              ImageCarouselTemplate Class Doc Comment
                              ImagemapAction
                              ImagemapAction Class Doc Comment
                              ImagemapArea
                              ImagemapArea Class Doc Comment
                              ImagemapBaseSize
                              ImagemapBaseSize Class Doc Comment
                              ImagemapExternalLink
                              ImagemapExternalLink Class Doc Comment
                              ImagemapMessage
                              ImagemapMessage Class Doc Comment
                              ImagemapVideo
                              ImagemapVideo Class Doc Comment
                              ImageMessage
                              ImageMessage Class Doc Comment
                              IssueLinkTokenResponse
                              IssueLinkTokenResponse Class Doc Comment
                              Limit
                              Limit Class Doc Comment
                              LocationAction
                              LocationAction Class Doc Comment
                              LocationMessage
                              LocationMessage Class Doc Comment
                              LotteryAcquisitionConditionRequest
                              LotteryAcquisitionConditionRequest Class Doc Comment
                              LotteryAcquisitionConditionResponse
                              LotteryAcquisitionConditionResponse Class Doc Comment
                              MarkMessagesAsReadByTokenRequest
                              MarkMessagesAsReadByTokenRequest Class Doc Comment
                              MarkMessagesAsReadRequest
                              MarkMessagesAsReadRequest Class Doc Comment
                              Membership
                              Membership Class Doc Comment
                              MembershipListResponse
                              MembershipListResponse Class Doc Comment
                              MembersIdsResponse
                              MembersIdsResponse Class Doc Comment
                              MentionSubstitutionObject
                              MentionSubstitutionObject Class Doc Comment
                              MentionTarget
                              MentionTarget Class Doc Comment
                              Message
                              Message Class Doc Comment
                              MessageAction
                              MessageAction Class Doc Comment
                              MessageImagemapAction
                              MessageImagemapAction Class Doc Comment
                              MessageQuotaResponse
                              MessageQuotaResponse Class Doc Comment
                              MessagingApiPagerCouponListResponse
                              MessagingApiPagerCouponListResponse Class Doc Comment
                              MulticastRequest
                              MulticastRequest Class Doc Comment
                              NarrowcastProgressResponse
                              NarrowcastProgressResponse Class Doc Comment
                              NarrowcastRequest
                              NarrowcastRequest Class Doc Comment
                              NormalAcquisitionConditionRequest
                              NormalAcquisitionConditionRequest Class Doc Comment
                              NormalAcquisitionConditionResponse
                              NormalAcquisitionConditionResponse Class Doc Comment
                              NumberOfMessagesResponse
                              NumberOfMessagesResponse Class Doc Comment
                              OperatorDemographicFilter
                              OperatorDemographicFilter Class Doc Comment
                              OperatorRecipient
                              OperatorRecipient Class Doc Comment
                              PnpMessagesRequest
                              PnpMessagesRequest Class Doc Comment
                              PostbackAction
                              PostbackAction Class Doc Comment
                              PushMessageRequest
                              PushMessageRequest Class Doc Comment
                              PushMessageResponse
                              PushMessageResponse Class Doc Comment
                              QuickReply
                              QuickReply Class Doc Comment
                              QuickReplyItem
                              QuickReplyItem Class Doc Comment
                              QuotaConsumptionResponse
                              QuotaConsumptionResponse Class Doc Comment
                              QuotaType
                              QuotaType Class Doc Comment
                              Recipient
                              Recipient Class Doc Comment
                              RedeliveryRecipient
                              RedeliveryRecipient Class Doc Comment
                              ReferralAcquisitionConditionResponse
                              ReferralAcquisitionConditionResponse Class Doc Comment
                              ReplyMessageRequest
                              ReplyMessageRequest Class Doc Comment
                              ReplyMessageResponse
                              ReplyMessageResponse Class Doc Comment
                              RichMenuAliasListResponse
                              RichMenuAliasListResponse Class Doc Comment
                              RichMenuAliasResponse
                              RichMenuAliasResponse Class Doc Comment
                              RichMenuArea
                              RichMenuArea Class Doc Comment
                              RichMenuBatchLinkOperation
                              RichMenuBatchLinkOperation Class Doc Comment
                              RichMenuBatchOperation
                              RichMenuBatchOperation Class Doc Comment
                              RichMenuBatchProgressPhase
                              RichMenuBatchProgressPhase Class Doc Comment
                              RichMenuBatchProgressResponse
                              RichMenuBatchProgressResponse Class Doc Comment
                              RichMenuBatchRequest
                              RichMenuBatchRequest Class Doc Comment
                              RichMenuBatchUnlinkAllOperation
                              RichMenuBatchUnlinkAllOperation Class Doc Comment
                              RichMenuBatchUnlinkOperation
                              RichMenuBatchUnlinkOperation Class Doc Comment
                              RichMenuBounds
                              RichMenuBounds Class Doc Comment
                              RichMenuBulkLinkRequest
                              RichMenuBulkLinkRequest Class Doc Comment
                              RichMenuBulkUnlinkRequest
                              RichMenuBulkUnlinkRequest Class Doc Comment
                              RichMenuIdResponse
                              RichMenuIdResponse Class Doc Comment
                              RichMenuListResponse
                              RichMenuListResponse Class Doc Comment
                              RichMenuRequest
                              RichMenuRequest Class Doc Comment
                              RichMenuResponse
                              RichMenuResponse Class Doc Comment
                              RichMenuSize
                              RichMenuSize Class Doc Comment
                              RichMenuSwitchAction
                              RichMenuSwitchAction Class Doc Comment
                              RoomMemberCountResponse
                              RoomMemberCountResponse Class Doc Comment
                              RoomUserProfileResponse
                              RoomUserProfileResponse Class Doc Comment
                              Sender
                              Sender Class Doc Comment
                              SentMessage
                              SentMessage Class Doc Comment
                              SetWebhookEndpointRequest
                              SetWebhookEndpointRequest Class Doc Comment
                              ShowLoadingAnimationRequest
                              ShowLoadingAnimationRequest Class Doc Comment
                              StickerMessage
                              StickerMessage Class Doc Comment
                              SubscribedMembershipPlan
                              SubscribedMembershipPlan Class Doc Comment
                              SubscribedMembershipUser
                              SubscribedMembershipUser Class Doc Comment
                              Subscription
                              Subscription Class Doc Comment
                              SubscriptionPeriodDemographic
                              SubscriptionPeriodDemographic Class Doc Comment
                              SubscriptionPeriodDemographicFilter
                              SubscriptionPeriodDemographicFilter Class Doc Comment
                              SubstitutionObject
                              SubstitutionObject Class Doc Comment
                              Template
                              Template Class Doc Comment
                              TemplateImageAspectRatio
                              TemplateImageAspectRatio Class Doc Comment
                              TemplateImageSize
                              TemplateImageSize Class Doc Comment
                              TemplateMessage
                              TemplateMessage Class Doc Comment
                              TestWebhookEndpointRequest
                              TestWebhookEndpointRequest Class Doc Comment
                              TestWebhookEndpointResponse
                              TestWebhookEndpointResponse Class Doc Comment
                              TextMessage
                              TextMessage Class Doc Comment
                              TextMessageV2
                              TextMessageV2 Class Doc Comment
                              UpdateRichMenuAliasRequest
                              UpdateRichMenuAliasRequest Class Doc Comment
                              URIAction
                              URIAction Class Doc Comment
                              URIImagemapAction
                              URIImagemapAction Class Doc Comment
                              UserMentionTarget
                              UserMentionTarget Class Doc Comment
                              UserProfileResponse
                              UserProfileResponse Class Doc Comment
                              ValidateMessageRequest
                              ValidateMessageRequest Class Doc Comment
                              VideoMessage
                              VideoMessage Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AcquisitionConditionRequest
                              AcquisitionConditionRequest Class Doc Comment
                              AcquisitionConditionResponse
                              AcquisitionConditionResponse Class Doc Comment
                              Action
                              Action Class Doc Comment
                              AgeDemographic
                              AgeDemographic Class Doc Comment
                              AgeDemographicFilter
                              AgeDemographicFilter Class Doc Comment
                              AllMentionTarget
                              AllMentionTarget Class Doc Comment
                              AltUri
                              AltUri Class Doc Comment
                              AppTypeDemographic
                              AppTypeDemographic Class Doc Comment
                              AppTypeDemographicFilter
                              AppTypeDemographicFilter Class Doc Comment
                              AreaDemographic
                              AreaDemographic Class Doc Comment
                              AreaDemographicFilter
                              AreaDemographicFilter Class Doc Comment
                              AudienceRecipient
                              AudienceRecipient Class Doc Comment
                              AudioMessage
                              AudioMessage Class Doc Comment
                              BotInfoResponse
                              BotInfoResponse Class Doc Comment
                              BroadcastRequest
                              BroadcastRequest Class Doc Comment
                              ButtonsTemplate
                              ButtonsTemplate Class Doc Comment
                              CameraAction
                              CameraAction Class Doc Comment
                              CameraRollAction
                              CameraRollAction Class Doc Comment
                              CarouselColumn
                              CarouselColumn Class Doc Comment
                              CarouselTemplate
                              CarouselTemplate Class Doc Comment
                              CashBackFixedPriceInfoRequest
                              CashBackFixedPriceInfoRequest Class Doc Comment
                              CashBackFixedPriceInfoResponse
                              CashBackFixedPriceInfoResponse Class Doc Comment
                              CashBackPercentagePriceInfoRequest
                              CashBackPercentagePriceInfoRequest Class Doc Comment
                              CashBackPercentagePriceInfoResponse
                              CashBackPercentagePriceInfoResponse Class Doc Comment
                              CashBackPriceInfoRequest
                              CashBackPriceInfoRequest Class Doc Comment
                              CashBackPriceInfoResponse
                              CashBackPriceInfoResponse Class Doc Comment
                              ChatReference
                              ChatReference Class Doc Comment
                              ClipboardAction
                              ClipboardAction Class Doc Comment
                              ClipboardImagemapAction
                              ClipboardImagemapAction Class Doc Comment
                              ConfirmTemplate
                              ConfirmTemplate Class Doc Comment
                              CouponCashBackRewardRequest
                              CouponCashBackRewardRequest Class Doc Comment
                              CouponCashBackRewardResponse
                              CouponCashBackRewardResponse Class Doc Comment
                              CouponCreateRequest
                              CouponCreateRequest Class Doc Comment
                              CouponCreateResponse
                              CouponCreateResponse Class Doc Comment
                              CouponDiscountRewardRequest
                              CouponDiscountRewardRequest Class Doc Comment
                              CouponDiscountRewardResponse
                              CouponDiscountRewardResponse Class Doc Comment
                              CouponFreeRewardRequest
                              CouponFreeRewardRequest Class Doc Comment
                              CouponFreeRewardResponse
                              CouponFreeRewardResponse Class Doc Comment
                              CouponGiftRewardRequest
                              CouponGiftRewardRequest Class Doc Comment
                              CouponGiftRewardResponse
                              CouponGiftRewardResponse Class Doc Comment
                              CouponListResponse
                              CouponListResponse Class Doc Comment
                              CouponMessage
                              CouponMessage Class Doc Comment
                              CouponOthersRewardRequest
                              CouponOthersRewardRequest Class Doc Comment
                              CouponOthersRewardResponse
                              CouponOthersRewardResponse Class Doc Comment
                              CouponResponse
                              CouponResponse Class Doc Comment
                              CouponRewardRequest
                              CouponRewardRequest Class Doc Comment
                              CouponRewardResponse
                              CouponRewardResponse Class Doc Comment
                              CreateRichMenuAliasRequest
                              CreateRichMenuAliasRequest Class Doc Comment
                              DatetimePickerAction
                              DatetimePickerAction Class Doc Comment
                              DemographicFilter
                              DemographicFilter Class Doc Comment
                              DiscountExplicitPriceInfoRequest
                              DiscountExplicitPriceInfoRequest Class Doc Comment
                              DiscountExplicitPriceInfoResponse
                              DiscountExplicitPriceInfoResponse Class Doc Comment
                              DiscountFixedPriceInfoRequest
                              DiscountFixedPriceInfoRequest Class Doc Comment
                              DiscountFixedPriceInfoResponse
                              DiscountFixedPriceInfoResponse Class Doc Comment
                              DiscountPercentagePriceInfoRequest
                              DiscountPercentagePriceInfoRequest Class Doc Comment
                              DiscountPercentagePriceInfoResponse
                              DiscountPercentagePriceInfoResponse Class Doc Comment
                              DiscountPriceInfoRequest
                              DiscountPriceInfoRequest Class Doc Comment
                              DiscountPriceInfoResponse
                              DiscountPriceInfoResponse Class Doc Comment
                              Emoji
                              Emoji Class Doc Comment
                              EmojiSubstitutionObject
                              EmojiSubstitutionObject Class Doc Comment
                              ErrorDetail
                              ErrorDetail Class Doc Comment
                              ErrorResponse
                              ErrorResponse Class Doc Comment
                              Filter
                              Filter Class Doc Comment
                              FlexBlockStyle
                              FlexBlockStyle Class Doc Comment
                              FlexBox
                              FlexBox Class Doc Comment
                              FlexBoxBackground
                              FlexBoxBackground Class Doc Comment
                              FlexBoxBorderWidth
                              FlexBoxBorderWidth Class Doc Comment
                              FlexBoxCornerRadius
                              FlexBoxCornerRadius Class Doc Comment
                              FlexBoxLinearGradient
                              FlexBoxLinearGradient Class Doc Comment
                              FlexBoxPadding
                              FlexBoxPadding Class Doc Comment
                              FlexBoxSpacing
                              FlexBoxSpacing Class Doc Comment
                              FlexBubble
                              FlexBubble Class Doc Comment
                              FlexBubbleStyles
                              FlexBubbleStyles Class Doc Comment
                              FlexButton
                              FlexButton Class Doc Comment
                              FlexCarousel
                              FlexCarousel Class Doc Comment
                              FlexComponent
                              FlexComponent Class Doc Comment
                              FlexContainer
                              FlexContainer Class Doc Comment
                              FlexFiller
                              FlexFiller Class Doc Comment
                              FlexIcon
                              FlexIcon Class Doc Comment
                              FlexIconSize
                              FlexIconSize Class Doc Comment
                              FlexImage
                              FlexImage Class Doc Comment
                              FlexImageSize
                              FlexImageSize Class Doc Comment
                              FlexMargin
                              FlexMargin Class Doc Comment
                              FlexMessage
                              FlexMessage Class Doc Comment
                              FlexOffset
                              FlexOffset Class Doc Comment
                              FlexSeparator
                              FlexSeparator Class Doc Comment
                              FlexSpan
                              FlexSpan Class Doc Comment
                              FlexSpanSize
                              FlexSpanSize Class Doc Comment
                              FlexText
                              FlexText Class Doc Comment
                              FlexTextFontSize
                              FlexTextFontSize Class Doc Comment
                              FlexVideo
                              FlexVideo Class Doc Comment
                              GenderDemographic
                              GenderDemographic Class Doc Comment
                              GenderDemographicFilter
                              GenderDemographicFilter Class Doc Comment
                              GetAggregationUnitNameListResponse
                              GetAggregationUnitNameListResponse Class Doc Comment
                              GetAggregationUnitUsageResponse
                              GetAggregationUnitUsageResponse Class Doc Comment
                              GetFollowersResponse
                              GetFollowersResponse Class Doc Comment
                              GetJoinedMembershipUsersResponse
                              GetJoinedMembershipUsersResponse Class Doc Comment
                              GetMembershipSubscriptionResponse
                              GetMembershipSubscriptionResponse Class Doc Comment
                              GetMessageContentTranscodingResponse
                              GetMessageContentTranscodingResponse Class Doc Comment
                              GetWebhookEndpointResponse
                              GetWebhookEndpointResponse Class Doc Comment
                              GroupMemberCountResponse
                              GroupMemberCountResponse Class Doc Comment
                              GroupSummaryResponse
                              GroupSummaryResponse Class Doc Comment
                              GroupUserProfileResponse
                              GroupUserProfileResponse Class Doc Comment
                              ImageCarouselColumn
                              ImageCarouselColumn Class Doc Comment
                              ImageCarouselTemplate
                              ImageCarouselTemplate Class Doc Comment
                              ImagemapAction
                              ImagemapAction Class Doc Comment
                              ImagemapArea
                              ImagemapArea Class Doc Comment
                              ImagemapBaseSize
                              ImagemapBaseSize Class Doc Comment
                              ImagemapExternalLink
                              ImagemapExternalLink Class Doc Comment
                              ImagemapMessage
                              ImagemapMessage Class Doc Comment
                              ImagemapVideo
                              ImagemapVideo Class Doc Comment
                              ImageMessage
                              ImageMessage Class Doc Comment
                              IssueLinkTokenResponse
                              IssueLinkTokenResponse Class Doc Comment
                              Limit
                              Limit Class Doc Comment
                              LocationAction
                              LocationAction Class Doc Comment
                              LocationMessage
                              LocationMessage Class Doc Comment
                              LotteryAcquisitionConditionRequest
                              LotteryAcquisitionConditionRequest Class Doc Comment
                              LotteryAcquisitionConditionResponse
                              LotteryAcquisitionConditionResponse Class Doc Comment
                              MarkMessagesAsReadByTokenRequest
                              MarkMessagesAsReadByTokenRequest Class Doc Comment
                              MarkMessagesAsReadRequest
                              MarkMessagesAsReadRequest Class Doc Comment
                              Membership
                              Membership Class Doc Comment
                              MembershipListResponse
                              MembershipListResponse Class Doc Comment
                              MembersIdsResponse
                              MembersIdsResponse Class Doc Comment
                              MentionSubstitutionObject
                              MentionSubstitutionObject Class Doc Comment
                              MentionTarget
                              MentionTarget Class Doc Comment
                              Message
                              Message Class Doc Comment
                              MessageAction
                              MessageAction Class Doc Comment
                              MessageImagemapAction
                              MessageImagemapAction Class Doc Comment
                              MessageQuotaResponse
                              MessageQuotaResponse Class Doc Comment
                              MessagingApiPagerCouponListResponse
                              MessagingApiPagerCouponListResponse Class Doc Comment
                              MulticastRequest
                              MulticastRequest Class Doc Comment
                              NarrowcastProgressResponse
                              NarrowcastProgressResponse Class Doc Comment
                              NarrowcastRequest
                              NarrowcastRequest Class Doc Comment
                              NormalAcquisitionConditionRequest
                              NormalAcquisitionConditionRequest Class Doc Comment
                              NormalAcquisitionConditionResponse
                              NormalAcquisitionConditionResponse Class Doc Comment
                              NumberOfMessagesResponse
                              NumberOfMessagesResponse Class Doc Comment
                              OperatorDemographicFilter
                              OperatorDemographicFilter Class Doc Comment
                              OperatorRecipient
                              OperatorRecipient Class Doc Comment
                              PnpMessagesRequest
                              PnpMessagesRequest Class Doc Comment
                              PostbackAction
                              PostbackAction Class Doc Comment
                              PushMessageRequest
                              PushMessageRequest Class Doc Comment
                              PushMessageResponse
                              PushMessageResponse Class Doc Comment
                              QuickReply
                              QuickReply Class Doc Comment
                              QuickReplyItem
                              QuickReplyItem Class Doc Comment
                              QuotaConsumptionResponse
                              QuotaConsumptionResponse Class Doc Comment
                              QuotaType
                              QuotaType Class Doc Comment
                              Recipient
                              Recipient Class Doc Comment
                              RedeliveryRecipient
                              RedeliveryRecipient Class Doc Comment
                              ReferralAcquisitionConditionResponse
                              ReferralAcquisitionConditionResponse Class Doc Comment
                              ReplyMessageRequest
                              ReplyMessageRequest Class Doc Comment
                              ReplyMessageResponse
                              ReplyMessageResponse Class Doc Comment
                              RichMenuAliasListResponse
                              RichMenuAliasListResponse Class Doc Comment
                              RichMenuAliasResponse
                              RichMenuAliasResponse Class Doc Comment
                              RichMenuArea
                              RichMenuArea Class Doc Comment
                              RichMenuBatchLinkOperation
                              RichMenuBatchLinkOperation Class Doc Comment
                              RichMenuBatchOperation
                              RichMenuBatchOperation Class Doc Comment
                              RichMenuBatchProgressPhase
                              RichMenuBatchProgressPhase Class Doc Comment
                              RichMenuBatchProgressResponse
                              RichMenuBatchProgressResponse Class Doc Comment
                              RichMenuBatchRequest
                              RichMenuBatchRequest Class Doc Comment
                              RichMenuBatchUnlinkAllOperation
                              RichMenuBatchUnlinkAllOperation Class Doc Comment
                              RichMenuBatchUnlinkOperation
                              RichMenuBatchUnlinkOperation Class Doc Comment
                              RichMenuBounds
                              RichMenuBounds Class Doc Comment
                              RichMenuBulkLinkRequest
                              RichMenuBulkLinkRequest Class Doc Comment
                              RichMenuBulkUnlinkRequest
                              RichMenuBulkUnlinkRequest Class Doc Comment
                              RichMenuIdResponse
                              RichMenuIdResponse Class Doc Comment
                              RichMenuListResponse
                              RichMenuListResponse Class Doc Comment
                              RichMenuRequest
                              RichMenuRequest Class Doc Comment
                              RichMenuResponse
                              RichMenuResponse Class Doc Comment
                              RichMenuSize
                              RichMenuSize Class Doc Comment
                              RichMenuSwitchAction
                              RichMenuSwitchAction Class Doc Comment
                              RoomMemberCountResponse
                              RoomMemberCountResponse Class Doc Comment
                              RoomUserProfileResponse
                              RoomUserProfileResponse Class Doc Comment
                              Sender
                              Sender Class Doc Comment
                              SentMessage
                              SentMessage Class Doc Comment
                              SetWebhookEndpointRequest
                              SetWebhookEndpointRequest Class Doc Comment
                              ShowLoadingAnimationRequest
                              ShowLoadingAnimationRequest Class Doc Comment
                              StickerMessage
                              StickerMessage Class Doc Comment
                              SubscribedMembershipPlan
                              SubscribedMembershipPlan Class Doc Comment
                              SubscribedMembershipUser
                              SubscribedMembershipUser Class Doc Comment
                              Subscription
                              Subscription Class Doc Comment
                              SubscriptionPeriodDemographic
                              SubscriptionPeriodDemographic Class Doc Comment
                              SubscriptionPeriodDemographicFilter
                              SubscriptionPeriodDemographicFilter Class Doc Comment
                              SubstitutionObject
                              SubstitutionObject Class Doc Comment
                              Template
                              Template Class Doc Comment
                              TemplateImageAspectRatio
                              TemplateImageAspectRatio Class Doc Comment
                              TemplateImageSize
                              TemplateImageSize Class Doc Comment
                              TemplateMessage
                              TemplateMessage Class Doc Comment
                              TestWebhookEndpointRequest
                              TestWebhookEndpointRequest Class Doc Comment
                              TestWebhookEndpointResponse
                              TestWebhookEndpointResponse Class Doc Comment
                              TextMessage
                              TextMessage Class Doc Comment
                              TextMessageV2
                              TextMessageV2 Class Doc Comment
                              UpdateRichMenuAliasRequest
                              UpdateRichMenuAliasRequest Class Doc Comment
                              URIAction
                              URIAction Class Doc Comment
                              URIImagemapAction
                              URIImagemapAction Class Doc Comment
                              UserMentionTarget
                              UserMentionTarget Class Doc Comment
                              UserProfileResponse
                              UserProfileResponse Class Doc Comment
                              ValidateMessageRequest
                              ValidateMessageRequest Class Doc Comment
                              VideoMessage
                              VideoMessage Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              diff --git a/docs/packages/LINE-Webhook.html b/docs/packages/LINE-Webhook.html index 954ccef60..9314d855c 100644 --- a/docs/packages/LINE-Webhook.html +++ b/docs/packages/LINE-Webhook.html @@ -156,7 +156,7 @@

                              DummyApi
                              DummyApi Class Doc Comment
                              ApiException
                              ApiException Class Doc Comment
                              Configuration
                              Configuration Class Doc Comment -PHP version 7.4
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AccountLinkEvent
                              AccountLinkEvent Class Doc Comment
                              ActivatedEvent
                              ActivatedEvent Class Doc Comment
                              AllMentionee
                              AllMentionee Class Doc Comment
                              AttachedModuleContent
                              AttachedModuleContent Class Doc Comment
                              AudioMessageContent
                              AudioMessageContent Class Doc Comment
                              BeaconContent
                              BeaconContent Class Doc Comment
                              BeaconEvent
                              BeaconEvent Class Doc Comment
                              BotResumedEvent
                              BotResumedEvent Class Doc Comment
                              BotSuspendedEvent
                              BotSuspendedEvent Class Doc Comment
                              CallbackRequest
                              CallbackRequest Class Doc Comment
                              ChatControl
                              ChatControl Class Doc Comment
                              ContentProvider
                              ContentProvider Class Doc Comment
                              DeactivatedEvent
                              DeactivatedEvent Class Doc Comment
                              DeliveryContext
                              DeliveryContext Class Doc Comment
                              DetachedModuleContent
                              DetachedModuleContent Class Doc Comment
                              Emoji
                              Emoji Class Doc Comment
                              Event
                              Event Class Doc Comment
                              EventMode
                              EventMode Class Doc Comment
                              FileMessageContent
                              FileMessageContent Class Doc Comment
                              FollowDetail
                              FollowDetail Class Doc Comment
                              FollowEvent
                              FollowEvent Class Doc Comment
                              GroupSource
                              GroupSource Class Doc Comment
                              ImageMessageContent
                              ImageMessageContent Class Doc Comment
                              ImageSet
                              ImageSet Class Doc Comment
                              JoinedMembers
                              JoinedMembers Class Doc Comment
                              JoinedMembershipContent
                              JoinedMembershipContent Class Doc Comment
                              JoinEvent
                              JoinEvent Class Doc Comment
                              LeaveEvent
                              LeaveEvent Class Doc Comment
                              LeftMembers
                              LeftMembers Class Doc Comment
                              LeftMembershipContent
                              LeftMembershipContent Class Doc Comment
                              LinkContent
                              LinkContent Class Doc Comment
                              LocationMessageContent
                              LocationMessageContent Class Doc Comment
                              MemberJoinedEvent
                              MemberJoinedEvent Class Doc Comment
                              MemberLeftEvent
                              MemberLeftEvent Class Doc Comment
                              MembershipContent
                              MembershipContent Class Doc Comment
                              MembershipEvent
                              MembershipEvent Class Doc Comment
                              Mention
                              Mention Class Doc Comment
                              Mentionee
                              Mentionee Class Doc Comment
                              MessageContent
                              MessageContent Class Doc Comment
                              MessageEvent
                              MessageEvent Class Doc Comment
                              ModuleContent
                              ModuleContent Class Doc Comment
                              ModuleEvent
                              ModuleEvent Class Doc Comment
                              PnpDelivery
                              PnpDelivery Class Doc Comment
                              PnpDeliveryCompletionEvent
                              PnpDeliveryCompletionEvent Class Doc Comment
                              PostbackContent
                              PostbackContent Class Doc Comment
                              PostbackEvent
                              PostbackEvent Class Doc Comment
                              RenewedMembershipContent
                              RenewedMembershipContent Class Doc Comment
                              RoomSource
                              RoomSource Class Doc Comment
                              Source
                              Source Class Doc Comment
                              StickerMessageContent
                              StickerMessageContent Class Doc Comment
                              TextMessageContent
                              TextMessageContent Class Doc Comment
                              UnfollowEvent
                              UnfollowEvent Class Doc Comment
                              UnsendDetail
                              UnsendDetail Class Doc Comment
                              UnsendEvent
                              UnsendEvent Class Doc Comment
                              UserMentionee
                              UserMentionee Class Doc Comment
                              UserSource
                              UserSource Class Doc Comment
                              VideoMessageContent
                              VideoMessageContent Class Doc Comment
                              VideoPlayComplete
                              VideoPlayComplete Class Doc Comment
                              VideoPlayCompleteEvent
                              VideoPlayCompleteEvent Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              DummyApiTest
                              DummyApiTest Class Doc Comment
                              AccountLinkEventTest
                              AccountLinkEventTest Class Doc Comment
                              ActivatedEventTest
                              ActivatedEventTest Class Doc Comment
                              AllMentioneeTest
                              AllMentioneeTest Class Doc Comment
                              AttachedModuleContentTest
                              AttachedModuleContentTest Class Doc Comment
                              AudioMessageContentTest
                              AudioMessageContentTest Class Doc Comment
                              BeaconContentTest
                              BeaconContentTest Class Doc Comment
                              BeaconEventTest
                              BeaconEventTest Class Doc Comment
                              BotResumedEventTest
                              BotResumedEventTest Class Doc Comment
                              BotSuspendedEventTest
                              BotSuspendedEventTest Class Doc Comment
                              CallbackRequestTest
                              CallbackRequestTest Class Doc Comment
                              ChatControlTest
                              ChatControlTest Class Doc Comment
                              ContentProviderTest
                              ContentProviderTest Class Doc Comment
                              DeactivatedEventTest
                              DeactivatedEventTest Class Doc Comment
                              DeliveryContextTest
                              DeliveryContextTest Class Doc Comment
                              DetachedModuleContentTest
                              DetachedModuleContentTest Class Doc Comment
                              EmojiTest
                              EmojiTest Class Doc Comment
                              EventModeTest
                              EventModeTest Class Doc Comment
                              EventTest
                              EventTest Class Doc Comment
                              FileMessageContentTest
                              FileMessageContentTest Class Doc Comment
                              FollowDetailTest
                              FollowDetailTest Class Doc Comment
                              FollowEventTest
                              FollowEventTest Class Doc Comment
                              GroupSourceTest
                              GroupSourceTest Class Doc Comment
                              ImageMessageContentTest
                              ImageMessageContentTest Class Doc Comment
                              ImageSetTest
                              ImageSetTest Class Doc Comment
                              JoinedMembershipContentTest
                              JoinedMembershipContentTest Class Doc Comment
                              JoinedMembersTest
                              JoinedMembersTest Class Doc Comment
                              JoinEventTest
                              JoinEventTest Class Doc Comment
                              LeaveEventTest
                              LeaveEventTest Class Doc Comment
                              LeftMembershipContentTest
                              LeftMembershipContentTest Class Doc Comment
                              LeftMembersTest
                              LeftMembersTest Class Doc Comment
                              LinkContentTest
                              LinkContentTest Class Doc Comment
                              LocationMessageContentTest
                              LocationMessageContentTest Class Doc Comment
                              MemberJoinedEventTest
                              MemberJoinedEventTest Class Doc Comment
                              MemberLeftEventTest
                              MemberLeftEventTest Class Doc Comment
                              MembershipContentTest
                              MembershipContentTest Class Doc Comment
                              MembershipEventTest
                              MembershipEventTest Class Doc Comment
                              MentioneeTest
                              MentioneeTest Class Doc Comment
                              MentionTest
                              MentionTest Class Doc Comment
                              MessageContentTest
                              MessageContentTest Class Doc Comment
                              MessageEventTest
                              MessageEventTest Class Doc Comment
                              ModuleContentTest
                              ModuleContentTest Class Doc Comment
                              ModuleEventTest
                              ModuleEventTest Class Doc Comment
                              PnpDeliveryCompletionEventTest
                              PnpDeliveryCompletionEventTest Class Doc Comment
                              PnpDeliveryTest
                              PnpDeliveryTest Class Doc Comment
                              PostbackContentTest
                              PostbackContentTest Class Doc Comment
                              PostbackEventTest
                              PostbackEventTest Class Doc Comment
                              RenewedMembershipContentTest
                              RenewedMembershipContentTest Class Doc Comment
                              RoomSourceTest
                              RoomSourceTest Class Doc Comment
                              SourceTest
                              SourceTest Class Doc Comment
                              StickerMessageContentTest
                              StickerMessageContentTest Class Doc Comment
                              TextMessageContentTest
                              TextMessageContentTest Class Doc Comment
                              UnfollowEventTest
                              UnfollowEventTest Class Doc Comment
                              UnsendDetailTest
                              UnsendDetailTest Class Doc Comment
                              UnsendEventTest
                              UnsendEventTest Class Doc Comment
                              UserMentioneeTest
                              UserMentioneeTest Class Doc Comment
                              UserSourceTest
                              UserSourceTest Class Doc Comment
                              VideoMessageContentTest
                              VideoMessageContentTest Class Doc Comment
                              VideoPlayCompleteEventTest
                              VideoPlayCompleteEventTest Class Doc Comment
                              VideoPlayCompleteTest
                              VideoPlayCompleteTest Class Doc Comment
                              +PHP version 8.1
                              FormDataProcessor
                              FormDataProcessor Class Doc Comment
                              HeaderSelector
                              HeaderSelector Class Doc Comment
                              AccountLinkEvent
                              AccountLinkEvent Class Doc Comment
                              ActivatedEvent
                              ActivatedEvent Class Doc Comment
                              AllMentionee
                              AllMentionee Class Doc Comment
                              AttachedModuleContent
                              AttachedModuleContent Class Doc Comment
                              AudioMessageContent
                              AudioMessageContent Class Doc Comment
                              BeaconContent
                              BeaconContent Class Doc Comment
                              BeaconEvent
                              BeaconEvent Class Doc Comment
                              BotResumedEvent
                              BotResumedEvent Class Doc Comment
                              BotSuspendedEvent
                              BotSuspendedEvent Class Doc Comment
                              CallbackRequest
                              CallbackRequest Class Doc Comment
                              ChatControl
                              ChatControl Class Doc Comment
                              ContentProvider
                              ContentProvider Class Doc Comment
                              DeactivatedEvent
                              DeactivatedEvent Class Doc Comment
                              DeliveryContext
                              DeliveryContext Class Doc Comment
                              DetachedModuleContent
                              DetachedModuleContent Class Doc Comment
                              Emoji
                              Emoji Class Doc Comment
                              Event
                              Event Class Doc Comment
                              EventMode
                              EventMode Class Doc Comment
                              FileMessageContent
                              FileMessageContent Class Doc Comment
                              FollowDetail
                              FollowDetail Class Doc Comment
                              FollowEvent
                              FollowEvent Class Doc Comment
                              GroupSource
                              GroupSource Class Doc Comment
                              ImageMessageContent
                              ImageMessageContent Class Doc Comment
                              ImageSet
                              ImageSet Class Doc Comment
                              JoinedMembers
                              JoinedMembers Class Doc Comment
                              JoinedMembershipContent
                              JoinedMembershipContent Class Doc Comment
                              JoinEvent
                              JoinEvent Class Doc Comment
                              LeaveEvent
                              LeaveEvent Class Doc Comment
                              LeftMembers
                              LeftMembers Class Doc Comment
                              LeftMembershipContent
                              LeftMembershipContent Class Doc Comment
                              LinkContent
                              LinkContent Class Doc Comment
                              LocationMessageContent
                              LocationMessageContent Class Doc Comment
                              MemberJoinedEvent
                              MemberJoinedEvent Class Doc Comment
                              MemberLeftEvent
                              MemberLeftEvent Class Doc Comment
                              MembershipContent
                              MembershipContent Class Doc Comment
                              MembershipEvent
                              MembershipEvent Class Doc Comment
                              Mention
                              Mention Class Doc Comment
                              Mentionee
                              Mentionee Class Doc Comment
                              MessageContent
                              MessageContent Class Doc Comment
                              MessageEvent
                              MessageEvent Class Doc Comment
                              ModuleContent
                              ModuleContent Class Doc Comment
                              ModuleEvent
                              ModuleEvent Class Doc Comment
                              PnpDelivery
                              PnpDelivery Class Doc Comment
                              PnpDeliveryCompletionEvent
                              PnpDeliveryCompletionEvent Class Doc Comment
                              PostbackContent
                              PostbackContent Class Doc Comment
                              PostbackEvent
                              PostbackEvent Class Doc Comment
                              RenewedMembershipContent
                              RenewedMembershipContent Class Doc Comment
                              RoomSource
                              RoomSource Class Doc Comment
                              Source
                              Source Class Doc Comment
                              StickerMessageContent
                              StickerMessageContent Class Doc Comment
                              TextMessageContent
                              TextMessageContent Class Doc Comment
                              UnfollowEvent
                              UnfollowEvent Class Doc Comment
                              UnsendDetail
                              UnsendDetail Class Doc Comment
                              UnsendEvent
                              UnsendEvent Class Doc Comment
                              UserMentionee
                              UserMentionee Class Doc Comment
                              UserSource
                              UserSource Class Doc Comment
                              VideoMessageContent
                              VideoMessageContent Class Doc Comment
                              VideoPlayComplete
                              VideoPlayComplete Class Doc Comment
                              VideoPlayCompleteEvent
                              VideoPlayCompleteEvent Class Doc Comment
                              ObjectSerializer
                              ObjectSerializer Class Doc Comment
                              DummyApiTest
                              DummyApiTest Class Doc Comment
                              AccountLinkEventTest
                              AccountLinkEventTest Class Doc Comment
                              ActivatedEventTest
                              ActivatedEventTest Class Doc Comment
                              AllMentioneeTest
                              AllMentioneeTest Class Doc Comment
                              AttachedModuleContentTest
                              AttachedModuleContentTest Class Doc Comment
                              AudioMessageContentTest
                              AudioMessageContentTest Class Doc Comment
                              BeaconContentTest
                              BeaconContentTest Class Doc Comment
                              BeaconEventTest
                              BeaconEventTest Class Doc Comment
                              BotResumedEventTest
                              BotResumedEventTest Class Doc Comment
                              BotSuspendedEventTest
                              BotSuspendedEventTest Class Doc Comment
                              CallbackRequestTest
                              CallbackRequestTest Class Doc Comment
                              ChatControlTest
                              ChatControlTest Class Doc Comment
                              ContentProviderTest
                              ContentProviderTest Class Doc Comment
                              DeactivatedEventTest
                              DeactivatedEventTest Class Doc Comment
                              DeliveryContextTest
                              DeliveryContextTest Class Doc Comment
                              DetachedModuleContentTest
                              DetachedModuleContentTest Class Doc Comment
                              EmojiTest
                              EmojiTest Class Doc Comment
                              EventModeTest
                              EventModeTest Class Doc Comment
                              EventTest
                              EventTest Class Doc Comment
                              FileMessageContentTest
                              FileMessageContentTest Class Doc Comment
                              FollowDetailTest
                              FollowDetailTest Class Doc Comment
                              FollowEventTest
                              FollowEventTest Class Doc Comment
                              GroupSourceTest
                              GroupSourceTest Class Doc Comment
                              ImageMessageContentTest
                              ImageMessageContentTest Class Doc Comment
                              ImageSetTest
                              ImageSetTest Class Doc Comment
                              JoinedMembershipContentTest
                              JoinedMembershipContentTest Class Doc Comment
                              JoinedMembersTest
                              JoinedMembersTest Class Doc Comment
                              JoinEventTest
                              JoinEventTest Class Doc Comment
                              LeaveEventTest
                              LeaveEventTest Class Doc Comment
                              LeftMembershipContentTest
                              LeftMembershipContentTest Class Doc Comment
                              LeftMembersTest
                              LeftMembersTest Class Doc Comment
                              LinkContentTest
                              LinkContentTest Class Doc Comment
                              LocationMessageContentTest
                              LocationMessageContentTest Class Doc Comment
                              MemberJoinedEventTest
                              MemberJoinedEventTest Class Doc Comment
                              MemberLeftEventTest
                              MemberLeftEventTest Class Doc Comment
                              MembershipContentTest
                              MembershipContentTest Class Doc Comment
                              MembershipEventTest
                              MembershipEventTest Class Doc Comment
                              MentioneeTest
                              MentioneeTest Class Doc Comment
                              MentionTest
                              MentionTest Class Doc Comment
                              MessageContentTest
                              MessageContentTest Class Doc Comment
                              MessageEventTest
                              MessageEventTest Class Doc Comment
                              ModuleContentTest
                              ModuleContentTest Class Doc Comment
                              ModuleEventTest
                              ModuleEventTest Class Doc Comment
                              PnpDeliveryCompletionEventTest
                              PnpDeliveryCompletionEventTest Class Doc Comment
                              PnpDeliveryTest
                              PnpDeliveryTest Class Doc Comment
                              PostbackContentTest
                              PostbackContentTest Class Doc Comment
                              PostbackEventTest
                              PostbackEventTest Class Doc Comment
                              RenewedMembershipContentTest
                              RenewedMembershipContentTest Class Doc Comment
                              RoomSourceTest
                              RoomSourceTest Class Doc Comment
                              SourceTest
                              SourceTest Class Doc Comment
                              StickerMessageContentTest
                              StickerMessageContentTest Class Doc Comment
                              TextMessageContentTest
                              TextMessageContentTest Class Doc Comment
                              UnfollowEventTest
                              UnfollowEventTest Class Doc Comment
                              UnsendDetailTest
                              UnsendDetailTest Class Doc Comment
                              UnsendEventTest
                              UnsendEventTest Class Doc Comment
                              UserMentioneeTest
                              UserMentioneeTest Class Doc Comment
                              UserSourceTest
                              UserSourceTest Class Doc Comment
                              VideoMessageContentTest
                              VideoMessageContentTest Class Doc Comment
                              VideoPlayCompleteEventTest
                              VideoPlayCompleteEventTest Class Doc Comment
                              VideoPlayCompleteTest
                              VideoPlayCompleteTest Class Doc Comment
                              diff --git a/docs/reports/deprecated.html b/docs/reports/deprecated.html index 297480b11..0c2e215a8 100644 --- a/docs/reports/deprecated.html +++ b/docs/reports/deprecated.html @@ -151,25 +151,25 @@

                              Reason - 1190 + 1050 ChannelAccessTokenApi::issueStatelessChannelToken()

                              Use ChannelAccessTokenApi::issueStatelessChannelTokenByJWTAssertion() or ChannelAccessTokenApi::issueStatelessChannelTokenByClientSecret() instead.

                              - 1212 + 1072 ChannelAccessTokenApi::issueStatelessChannelTokenWithHttpInfo()

                              Use ChannelAccessTokenApi::issueStatelessChannelTokenByJWTAssertionWithHttpInfo() or ChannelAccessTokenApi::issueStatelessChannelTokenByClientSecretWithHttpInfo() instead.

                              - 1340 + 1160 ChannelAccessTokenApi::issueStatelessChannelTokenAsync()

                              Use ChannelAccessTokenApi::issueStatelessChannelTokenByJWTAssertionAsync() or ChannelAccessTokenApi::issueStatelessChannelTokenByClientSecretAsync() instead.

                              - 1365 + 1185 ChannelAccessTokenApi::issueStatelessChannelTokenAsyncWithHttpInfo()

                              Use ChannelAccessTokenApi::issueStatelessChannelTokenByJWTAssertionAsyncWithHttpInfo() or ChannelAccessTokenApi::issueStatelessChannelTokenByClientSecretAsyncWithHttpInfo() instead.

                              diff --git a/src/clients/channel-access-token/lib/Api/ChannelAccessTokenApi.php b/src/clients/channel-access-token/lib/Api/ChannelAccessTokenApi.php index 417a5bb53..b8d5f24ff 100644 --- a/src/clients/channel-access-token/lib/Api/ChannelAccessTokenApi.php +++ b/src/clients/channel-access-token/lib/Api/ChannelAccessTokenApi.php @@ -16,7 +16,7 @@ */ /** * ChannelAccessTokenApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\ChannelAccessToken\ApiException; use LINE\Clients\ChannelAccessToken\Configuration; +use LINE\Clients\ChannelAccessToken\FormDataProcessor; use LINE\Clients\ChannelAccessToken\HeaderSelector; use LINE\Clients\ChannelAccessToken\ObjectSerializer; @@ -215,34 +218,15 @@ public function getsAllValidChannelAccessTokenKeyIdsWithHttpInfo($clientAssertio switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -256,34 +240,11 @@ public function getsAllValidChannelAccessTokenKeyIdsWithHttpInfo($clientAssertio ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\ChannelAccessTokenKeyIdsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -293,8 +254,10 @@ public function getsAllValidChannelAccessTokenKeyIdsWithHttpInfo($clientAssertio $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -539,61 +502,21 @@ public function issueChannelTokenWithHttpInfo($grantType, $clientId, $clientSecr switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\ChannelAccessToken\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -607,34 +530,11 @@ public function issueChannelTokenWithHttpInfo($grantType, $clientId, $clientSecr ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueShortLivedChannelAccessTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -644,7 +544,7 @@ public function issueChannelTokenWithHttpInfo($grantType, $clientId, $clientSecr $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -652,8 +552,10 @@ public function issueChannelTokenWithHttpInfo($grantType, $clientId, $clientSecr $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -778,17 +680,16 @@ public function issueChannelTokenRequest($grantType, $clientId, $clientSecret, s // form params - if ($grantType !== null) { - $formParams['grant_type'] = ObjectSerializer::toFormValue($grantType); - } - // form params - if ($clientId !== null) { - $formParams['client_id'] = ObjectSerializer::toFormValue($clientId); - } - // form params - if ($clientSecret !== null) { - $formParams['client_secret'] = ObjectSerializer::toFormValue($clientSecret); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'grant_type' => $grantType, + 'client_id' => $clientId, + 'client_secret' => $clientSecret, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( ['application/json', ], @@ -902,34 +803,15 @@ public function issueChannelTokenByJWTWithHttpInfo($grantType, $clientAssertionT switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -943,34 +825,11 @@ public function issueChannelTokenByJWTWithHttpInfo($grantType, $clientAssertionT ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueChannelAccessTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -980,8 +839,10 @@ public function issueChannelTokenByJWTWithHttpInfo($grantType, $clientAssertionT $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1106,17 +967,16 @@ public function issueChannelTokenByJWTRequest($grantType, $clientAssertionType, // form params - if ($grantType !== null) { - $formParams['grant_type'] = ObjectSerializer::toFormValue($grantType); - } - // form params - if ($clientAssertionType !== null) { - $formParams['client_assertion_type'] = ObjectSerializer::toFormValue($clientAssertionType); - } - // form params - if ($clientAssertion !== null) { - $formParams['client_assertion'] = ObjectSerializer::toFormValue($clientAssertion); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'grant_type' => $grantType, + 'client_assertion_type' => $clientAssertionType, + 'client_assertion' => $clientAssertion, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( ['application/json', ], @@ -1238,34 +1098,15 @@ public function issueStatelessChannelTokenWithHttpInfo($grantType = null, $clien switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1279,34 +1120,11 @@ public function issueStatelessChannelTokenWithHttpInfo($grantType = null, $clien ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\IssueStatelessChannelAccessTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1316,8 +1134,10 @@ public function issueStatelessChannelTokenWithHttpInfo($grantType = null, $clien $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1436,25 +1256,18 @@ public function issueStatelessChannelTokenRequest($grantType = null, $clientAsse // form params - if ($grantType !== null) { - $formParams['grant_type'] = ObjectSerializer::toFormValue($grantType); - } - // form params - if ($clientAssertionType !== null) { - $formParams['client_assertion_type'] = ObjectSerializer::toFormValue($clientAssertionType); - } - // form params - if ($clientAssertion !== null) { - $formParams['client_assertion'] = ObjectSerializer::toFormValue($clientAssertion); - } - // form params - if ($clientId !== null) { - $formParams['client_id'] = ObjectSerializer::toFormValue($clientId); - } - // form params - if ($clientSecret !== null) { - $formParams['client_secret'] = ObjectSerializer::toFormValue($clientSecret); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'grant_type' => $grantType, + 'client_assertion_type' => $clientAssertionType, + 'client_assertion' => $clientAssertion, + 'client_id' => $clientId, + 'client_secret' => $clientSecret, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( ['application/json', ], @@ -1512,7 +1325,7 @@ public function issueStatelessChannelTokenRequest($grantType = null, $clientAsse /** * Operation revokeChannelToken * - * @param string $accessToken Channel access token (required) + * @param string $accessToken A short-lived or long-lived channel access token. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['revokeChannelToken'] to see the possible values for this operation * * @throws \LINE\Clients\ChannelAccessToken\ApiException on non-2xx response or if the response body is not in the expected format @@ -1527,7 +1340,7 @@ public function revokeChannelToken($accessToken, string $contentType = self::con /** * Operation revokeChannelTokenWithHttpInfo * - * @param string $accessToken Channel access token (required) + * @param string $accessToken A short-lived or long-lived channel access token. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['revokeChannelToken'] to see the possible values for this operation * * @throws \LINE\Clients\ChannelAccessToken\ApiException on non-2xx response or if the response body is not in the expected format @@ -1562,10 +1375,11 @@ public function revokeChannelTokenWithHttpInfo($accessToken, string $contentType return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1573,7 +1387,7 @@ public function revokeChannelTokenWithHttpInfo($accessToken, string $contentType /** * Operation revokeChannelTokenAsync * - * @param string $accessToken Channel access token (required) + * @param string $accessToken A short-lived or long-lived channel access token. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['revokeChannelToken'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1592,7 +1406,7 @@ function ($response) { /** * Operation revokeChannelTokenAsyncWithHttpInfo * - * @param string $accessToken Channel access token (required) + * @param string $accessToken A short-lived or long-lived channel access token. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['revokeChannelToken'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1629,7 +1443,7 @@ function ($exception) { /** * Create request for operation 'revokeChannelToken' * - * @param string $accessToken Channel access token (required) + * @param string $accessToken A short-lived or long-lived channel access token. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['revokeChannelToken'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1657,9 +1471,14 @@ public function revokeChannelTokenRequest($accessToken, string $contentType = se // form params - if ($accessToken !== null) { - $formParams['access_token'] = ObjectSerializer::toFormValue($accessToken); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'access_token' => $accessToken, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( [], @@ -1771,10 +1590,11 @@ public function revokeChannelTokenByJWTWithHttpInfo($clientId, $clientSecret, $a return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1886,17 +1706,16 @@ public function revokeChannelTokenByJWTRequest($clientId, $clientSecret, $access // form params - if ($clientId !== null) { - $formParams['client_id'] = ObjectSerializer::toFormValue($clientId); - } - // form params - if ($clientSecret !== null) { - $formParams['client_secret'] = ObjectSerializer::toFormValue($clientSecret); - } - // form params - if ($accessToken !== null) { - $formParams['access_token'] = ObjectSerializer::toFormValue($accessToken); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'client_id' => $clientId, + 'client_secret' => $clientSecret, + 'access_token' => $accessToken, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( [], @@ -2006,34 +1825,15 @@ public function verifyChannelTokenWithHttpInfo($accessToken, string $contentType switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2047,34 +1847,11 @@ public function verifyChannelTokenWithHttpInfo($accessToken, string $contentType ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2084,8 +1861,10 @@ public function verifyChannelTokenWithHttpInfo($accessToken, string $contentType $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2190,9 +1969,14 @@ public function verifyChannelTokenRequest($accessToken, string $contentType = se // form params - if ($accessToken !== null) { - $formParams['access_token'] = ObjectSerializer::toFormValue($accessToken); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'access_token' => $accessToken, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $headers = $this->headerSelector->selectHeaders( ['application/json', ], @@ -2302,34 +2086,15 @@ public function verifyChannelTokenByJWTWithHttpInfo($accessToken, string $conten switch($statusCode) { case 200: - if ('\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2343,34 +2108,11 @@ public function verifyChannelTokenByJWTWithHttpInfo($accessToken, string $conten ); } - $returnType = '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ChannelAccessToken\Model\VerifyChannelAccessTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2380,8 +2122,10 @@ public function verifyChannelTokenByJWTWithHttpInfo($accessToken, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2564,8 +2308,59 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } /** * Issue a stateless channel access token by JWT assertion. * diff --git a/src/clients/channel-access-token/lib/ApiException.php b/src/clients/channel-access-token/lib/ApiException.php index 28545f48c..280d2ac8d 100644 --- a/src/clients/channel-access-token/lib/ApiException.php +++ b/src/clients/channel-access-token/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Configuration.php b/src/clients/channel-access-token/lib/Configuration.php index 5542f9920..2c34cbeb0 100644 --- a/src/clients/channel-access-token/lib/Configuration.php +++ b/src/clients/channel-access-token/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/clients/channel-access-token/lib/FormDataProcessor.php b/src/clients/channel-access-token/lib/FormDataProcessor.php new file mode 100644 index 000000000..e98cda889 --- /dev/null +++ b/src/clients/channel-access-token/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/clients/channel-access-token/lib/HeaderSelector.php b/src/clients/channel-access-token/lib/HeaderSelector.php index 1e88c3598..a5969c4df 100644 --- a/src/clients/channel-access-token/lib/HeaderSelector.php +++ b/src/clients/channel-access-token/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/ChannelAccessTokenKeyIdsResponse.php b/src/clients/channel-access-token/lib/Model/ChannelAccessTokenKeyIdsResponse.php index 8ad6df59a..418d1fa3a 100644 --- a/src/clients/channel-access-token/lib/Model/ChannelAccessTokenKeyIdsResponse.php +++ b/src/clients/channel-access-token/lib/Model/ChannelAccessTokenKeyIdsResponse.php @@ -17,7 +17,7 @@ /** * ChannelAccessTokenKeyIdsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/ErrorResponse.php b/src/clients/channel-access-token/lib/Model/ErrorResponse.php index 702c10b04..8449d9c6e 100644 --- a/src/clients/channel-access-token/lib/Model/ErrorResponse.php +++ b/src/clients/channel-access-token/lib/Model/ErrorResponse.php @@ -17,7 +17,7 @@ /** * ErrorResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/IssueChannelAccessTokenResponse.php b/src/clients/channel-access-token/lib/Model/IssueChannelAccessTokenResponse.php index b3c50e72b..56b9a518f 100644 --- a/src/clients/channel-access-token/lib/Model/IssueChannelAccessTokenResponse.php +++ b/src/clients/channel-access-token/lib/Model/IssueChannelAccessTokenResponse.php @@ -17,7 +17,7 @@ /** * IssueChannelAccessTokenResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/IssueShortLivedChannelAccessTokenResponse.php b/src/clients/channel-access-token/lib/Model/IssueShortLivedChannelAccessTokenResponse.php index d41c2b0c1..12904d94c 100644 --- a/src/clients/channel-access-token/lib/Model/IssueShortLivedChannelAccessTokenResponse.php +++ b/src/clients/channel-access-token/lib/Model/IssueShortLivedChannelAccessTokenResponse.php @@ -17,7 +17,7 @@ /** * IssueShortLivedChannelAccessTokenResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/IssueStatelessChannelAccessTokenResponse.php b/src/clients/channel-access-token/lib/Model/IssueStatelessChannelAccessTokenResponse.php index cc28f39a0..b24f9ad22 100644 --- a/src/clients/channel-access-token/lib/Model/IssueStatelessChannelAccessTokenResponse.php +++ b/src/clients/channel-access-token/lib/Model/IssueStatelessChannelAccessTokenResponse.php @@ -17,7 +17,7 @@ /** * IssueStatelessChannelAccessTokenResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/ModelInterface.php b/src/clients/channel-access-token/lib/Model/ModelInterface.php index 2dd696e8f..935af21b2 100644 --- a/src/clients/channel-access-token/lib/Model/ModelInterface.php +++ b/src/clients/channel-access-token/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/Model/VerifyChannelAccessTokenResponse.php b/src/clients/channel-access-token/lib/Model/VerifyChannelAccessTokenResponse.php index f7a63e143..459b89019 100644 --- a/src/clients/channel-access-token/lib/Model/VerifyChannelAccessTokenResponse.php +++ b/src/clients/channel-access-token/lib/Model/VerifyChannelAccessTokenResponse.php @@ -17,7 +17,7 @@ /** * VerifyChannelAccessTokenResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ChannelAccessToken @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/channel-access-token/lib/ObjectSerializer.php b/src/clients/channel-access-token/lib/ObjectSerializer.php index c79cf3ab6..970726651 100644 --- a/src/clients/channel-access-token/lib/ObjectSerializer.php +++ b/src/clients/channel-access-token/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/clients/insight/lib/Api/InsightApi.php b/src/clients/insight/lib/Api/InsightApi.php index daaa8e707..61dbbca0b 100644 --- a/src/clients/insight/lib/Api/InsightApi.php +++ b/src/clients/insight/lib/Api/InsightApi.php @@ -16,7 +16,7 @@ */ /** * InsightApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\Insight\ApiException; use LINE\Clients\Insight\Configuration; +use LINE\Clients\Insight\FormDataProcessor; use LINE\Clients\Insight\HeaderSelector; use LINE\Clients\Insight\ObjectSerializer; @@ -202,34 +205,15 @@ public function getFriendsDemographicsWithHttpInfo(string $contentType = self::c switch($statusCode) { case 200: - if ('\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -243,34 +227,11 @@ public function getFriendsDemographicsWithHttpInfo(string $contentType = self::c ); } - $returnType = '\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetFriendsDemographicsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -280,8 +241,10 @@ public function getFriendsDemographicsWithHttpInfo(string $contentType = self::c $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -492,34 +455,15 @@ public function getMessageEventWithHttpInfo($requestId, string $contentType = se switch($statusCode) { case 200: - if ('\LINE\Clients\Insight\Model\GetMessageEventResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Insight\Model\GetMessageEventResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Insight\Model\GetMessageEventResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetMessageEventResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -533,34 +477,11 @@ public function getMessageEventWithHttpInfo($requestId, string $contentType = se ); } - $returnType = '\LINE\Clients\Insight\Model\GetMessageEventResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetMessageEventResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -570,8 +491,10 @@ public function getMessageEventWithHttpInfo($requestId, string $contentType = se $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -808,34 +731,15 @@ public function getNumberOfFollowersWithHttpInfo($date = null, string $contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -849,34 +753,11 @@ public function getNumberOfFollowersWithHttpInfo($date = null, string $contentTy ); } - $returnType = '\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetNumberOfFollowersResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -886,8 +767,10 @@ public function getNumberOfFollowersWithHttpInfo($date = null, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1124,34 +1007,15 @@ public function getNumberOfMessageDeliveriesWithHttpInfo($date, string $contentT switch($statusCode) { case 200: - if ('\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1165,34 +1029,11 @@ public function getNumberOfMessageDeliveriesWithHttpInfo($date, string $contentT ); } - $returnType = '\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetNumberOfMessageDeliveriesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1202,8 +1043,10 @@ public function getNumberOfMessageDeliveriesWithHttpInfo($date, string $contentT $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1446,34 +1289,15 @@ public function getStatisticsPerUnitWithHttpInfo($customAggregationUnit, $from, switch($statusCode) { case 200: - if ('\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1487,34 +1311,11 @@ public function getStatisticsPerUnitWithHttpInfo($customAggregationUnit, $from, ); } - $returnType = '\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Insight\Model\GetStatisticsPerUnitResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1524,8 +1325,10 @@ public function getStatisticsPerUnitWithHttpInfo($customAggregationUnit, $from, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1777,6 +1580,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/insight/lib/ApiException.php b/src/clients/insight/lib/ApiException.php index 119884ad0..edeb4cdac 100644 --- a/src/clients/insight/lib/ApiException.php +++ b/src/clients/insight/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Configuration.php b/src/clients/insight/lib/Configuration.php index 45b6e94bf..99765dd87 100644 --- a/src/clients/insight/lib/Configuration.php +++ b/src/clients/insight/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/clients/insight/lib/FormDataProcessor.php b/src/clients/insight/lib/FormDataProcessor.php new file mode 100644 index 000000000..d6d70ad9b --- /dev/null +++ b/src/clients/insight/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/clients/insight/lib/HeaderSelector.php b/src/clients/insight/lib/HeaderSelector.php index a4c2985bc..a938f366a 100644 --- a/src/clients/insight/lib/HeaderSelector.php +++ b/src/clients/insight/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/AgeTile.php b/src/clients/insight/lib/Model/AgeTile.php index f29809102..e0069c738 100644 --- a/src/clients/insight/lib/Model/AgeTile.php +++ b/src/clients/insight/lib/Model/AgeTile.php @@ -17,7 +17,7 @@ /** * AgeTile * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/AppTypeTile.php b/src/clients/insight/lib/Model/AppTypeTile.php index ba1a5991d..23130ecdf 100644 --- a/src/clients/insight/lib/Model/AppTypeTile.php +++ b/src/clients/insight/lib/Model/AppTypeTile.php @@ -17,7 +17,7 @@ /** * AppTypeTile * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/AreaTile.php b/src/clients/insight/lib/Model/AreaTile.php index e7eb70625..f4d57084d 100644 --- a/src/clients/insight/lib/Model/AreaTile.php +++ b/src/clients/insight/lib/Model/AreaTile.php @@ -17,7 +17,7 @@ /** * AreaTile * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/ErrorDetail.php b/src/clients/insight/lib/Model/ErrorDetail.php index aae433386..a57a645f7 100644 --- a/src/clients/insight/lib/Model/ErrorDetail.php +++ b/src/clients/insight/lib/Model/ErrorDetail.php @@ -17,7 +17,7 @@ /** * ErrorDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/ErrorResponse.php b/src/clients/insight/lib/Model/ErrorResponse.php index 426ae7a08..8149340e6 100644 --- a/src/clients/insight/lib/Model/ErrorResponse.php +++ b/src/clients/insight/lib/Model/ErrorResponse.php @@ -17,7 +17,7 @@ /** * ErrorResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GenderTile.php b/src/clients/insight/lib/Model/GenderTile.php index 551db4c32..4c1d1e6a2 100644 --- a/src/clients/insight/lib/Model/GenderTile.php +++ b/src/clients/insight/lib/Model/GenderTile.php @@ -17,7 +17,7 @@ /** * GenderTile * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetFriendsDemographicsResponse.php b/src/clients/insight/lib/Model/GetFriendsDemographicsResponse.php index 6e4382b06..28b8f5ed7 100644 --- a/src/clients/insight/lib/Model/GetFriendsDemographicsResponse.php +++ b/src/clients/insight/lib/Model/GetFriendsDemographicsResponse.php @@ -17,7 +17,7 @@ /** * GetFriendsDemographicsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetMessageEventResponse.php b/src/clients/insight/lib/Model/GetMessageEventResponse.php index 21d7fae36..0deb82f0f 100644 --- a/src/clients/insight/lib/Model/GetMessageEventResponse.php +++ b/src/clients/insight/lib/Model/GetMessageEventResponse.php @@ -17,7 +17,7 @@ /** * GetMessageEventResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetMessageEventResponseClick.php b/src/clients/insight/lib/Model/GetMessageEventResponseClick.php index 37083e615..dffbec7a1 100644 --- a/src/clients/insight/lib/Model/GetMessageEventResponseClick.php +++ b/src/clients/insight/lib/Model/GetMessageEventResponseClick.php @@ -17,7 +17,7 @@ /** * GetMessageEventResponseClick * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetMessageEventResponseMessage.php b/src/clients/insight/lib/Model/GetMessageEventResponseMessage.php index d254c1be5..3250f845f 100644 --- a/src/clients/insight/lib/Model/GetMessageEventResponseMessage.php +++ b/src/clients/insight/lib/Model/GetMessageEventResponseMessage.php @@ -17,7 +17,7 @@ /** * GetMessageEventResponseMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetMessageEventResponseOverview.php b/src/clients/insight/lib/Model/GetMessageEventResponseOverview.php index b6473f7d6..eafc8b272 100644 --- a/src/clients/insight/lib/Model/GetMessageEventResponseOverview.php +++ b/src/clients/insight/lib/Model/GetMessageEventResponseOverview.php @@ -17,7 +17,7 @@ /** * GetMessageEventResponseOverview * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetNumberOfFollowersResponse.php b/src/clients/insight/lib/Model/GetNumberOfFollowersResponse.php index e2efaf4ea..a7034540b 100644 --- a/src/clients/insight/lib/Model/GetNumberOfFollowersResponse.php +++ b/src/clients/insight/lib/Model/GetNumberOfFollowersResponse.php @@ -17,7 +17,7 @@ /** * GetNumberOfFollowersResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetNumberOfMessageDeliveriesResponse.php b/src/clients/insight/lib/Model/GetNumberOfMessageDeliveriesResponse.php index 3ae531609..c907a62cf 100644 --- a/src/clients/insight/lib/Model/GetNumberOfMessageDeliveriesResponse.php +++ b/src/clients/insight/lib/Model/GetNumberOfMessageDeliveriesResponse.php @@ -17,7 +17,7 @@ /** * GetNumberOfMessageDeliveriesResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponse.php b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponse.php index 059f634d3..d44d933c9 100644 --- a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponse.php +++ b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponse.php @@ -17,7 +17,7 @@ /** * GetStatisticsPerUnitResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseClick.php b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseClick.php index e79f41b2f..81ddc246d 100644 --- a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseClick.php +++ b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseClick.php @@ -17,7 +17,7 @@ /** * GetStatisticsPerUnitResponseClick * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseMessage.php b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseMessage.php index 55bc4f36a..475ae8c31 100644 --- a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseMessage.php +++ b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseMessage.php @@ -17,7 +17,7 @@ /** * GetStatisticsPerUnitResponseMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseOverview.php b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseOverview.php index 36eb9670c..a7c54e3cb 100644 --- a/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseOverview.php +++ b/src/clients/insight/lib/Model/GetStatisticsPerUnitResponseOverview.php @@ -17,7 +17,7 @@ /** * GetStatisticsPerUnitResponseOverview * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/ModelInterface.php b/src/clients/insight/lib/Model/ModelInterface.php index b0b2468c6..1423d0025 100644 --- a/src/clients/insight/lib/Model/ModelInterface.php +++ b/src/clients/insight/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/Model/SubscriptionPeriodTile.php b/src/clients/insight/lib/Model/SubscriptionPeriodTile.php index 0e92da6d4..d076e3c15 100644 --- a/src/clients/insight/lib/Model/SubscriptionPeriodTile.php +++ b/src/clients/insight/lib/Model/SubscriptionPeriodTile.php @@ -17,7 +17,7 @@ /** * SubscriptionPeriodTile * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Insight @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/insight/lib/ObjectSerializer.php b/src/clients/insight/lib/ObjectSerializer.php index e31e99c46..a46c56f4a 100644 --- a/src/clients/insight/lib/ObjectSerializer.php +++ b/src/clients/insight/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/clients/liff/lib/Api/LiffApi.php b/src/clients/liff/lib/Api/LiffApi.php index af45f2eb3..0713acfb4 100644 --- a/src/clients/liff/lib/Api/LiffApi.php +++ b/src/clients/liff/lib/Api/LiffApi.php @@ -16,7 +16,7 @@ */ /** * LiffApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\Liff\ApiException; use LINE\Clients\Liff\Configuration; +use LINE\Clients\Liff\FormDataProcessor; use LINE\Clients\Liff\HeaderSelector; use LINE\Clients\Liff\ObjectSerializer; @@ -205,34 +208,15 @@ public function addLIFFAppWithHttpInfo($addLiffAppRequest, string $contentType = switch($statusCode) { case 200: - if ('\LINE\Clients\Liff\Model\AddLiffAppResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Liff\Model\AddLiffAppResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Liff\Model\AddLiffAppResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Liff\Model\AddLiffAppResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -246,34 +230,11 @@ public function addLIFFAppWithHttpInfo($addLiffAppRequest, string $contentType = ); } - $returnType = '\LINE\Clients\Liff\Model\AddLiffAppResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Liff\Model\AddLiffAppResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -283,8 +244,10 @@ public function addLIFFAppWithHttpInfo($addLiffAppRequest, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -514,10 +477,11 @@ public function deleteLIFFAppWithHttpInfo($liffId, string $contentType = self::c return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -614,7 +578,7 @@ public function deleteLIFFAppRequest($liffId, string $contentType = self::conten // path params if ($liffId !== null) { $resourcePath = str_replace( - '{' . 'liffId' . '}', + '{liffId}', ObjectSerializer::toPathValue($liffId), $resourcePath ); @@ -735,34 +699,15 @@ public function getAllLIFFAppsWithHttpInfo(string $contentType = self::contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\Liff\Model\GetAllLiffAppsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\Liff\Model\GetAllLiffAppsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\Liff\Model\GetAllLiffAppsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\Liff\Model\GetAllLiffAppsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -776,34 +721,11 @@ public function getAllLIFFAppsWithHttpInfo(string $contentType = self::contentTy ); } - $returnType = '\LINE\Clients\Liff\Model\GetAllLiffAppsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\Liff\Model\GetAllLiffAppsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -813,8 +735,10 @@ public function getAllLIFFAppsWithHttpInfo(string $contentType = self::contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1029,10 +953,11 @@ public function updateLIFFAppWithHttpInfo($liffId, $updateLiffAppRequest, string return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1139,7 +1064,7 @@ public function updateLIFFAppRequest($liffId, $updateLiffAppRequest, string $con // path params if ($liffId !== null) { $resourcePath = str_replace( - '{' . 'liffId' . '}', + '{liffId}', ObjectSerializer::toPathValue($liffId), $resourcePath ); @@ -1226,6 +1151,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/liff/lib/ApiException.php b/src/clients/liff/lib/ApiException.php index f1e0cdacb..71acd3627 100644 --- a/src/clients/liff/lib/ApiException.php +++ b/src/clients/liff/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Configuration.php b/src/clients/liff/lib/Configuration.php index bf44dfe1a..d2025f1e5 100644 --- a/src/clients/liff/lib/Configuration.php +++ b/src/clients/liff/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/clients/liff/lib/FormDataProcessor.php b/src/clients/liff/lib/FormDataProcessor.php new file mode 100644 index 000000000..6c2c7521e --- /dev/null +++ b/src/clients/liff/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/clients/liff/lib/HeaderSelector.php b/src/clients/liff/lib/HeaderSelector.php index 9e4abc408..b8fab9e65 100644 --- a/src/clients/liff/lib/HeaderSelector.php +++ b/src/clients/liff/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/AddLiffAppRequest.php b/src/clients/liff/lib/Model/AddLiffAppRequest.php index 6c143970f..97fb39a70 100644 --- a/src/clients/liff/lib/Model/AddLiffAppRequest.php +++ b/src/clients/liff/lib/Model/AddLiffAppRequest.php @@ -17,7 +17,7 @@ /** * AddLiffAppRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/AddLiffAppResponse.php b/src/clients/liff/lib/Model/AddLiffAppResponse.php index 6bc7d4d86..04fd36d85 100644 --- a/src/clients/liff/lib/Model/AddLiffAppResponse.php +++ b/src/clients/liff/lib/Model/AddLiffAppResponse.php @@ -17,7 +17,7 @@ /** * AddLiffAppResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/GetAllLiffAppsResponse.php b/src/clients/liff/lib/Model/GetAllLiffAppsResponse.php index 030784383..3c1dd5a59 100644 --- a/src/clients/liff/lib/Model/GetAllLiffAppsResponse.php +++ b/src/clients/liff/lib/Model/GetAllLiffAppsResponse.php @@ -17,7 +17,7 @@ /** * GetAllLiffAppsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/LiffApp.php b/src/clients/liff/lib/Model/LiffApp.php index 5dd0f9dfe..9458803e0 100644 --- a/src/clients/liff/lib/Model/LiffApp.php +++ b/src/clients/liff/lib/Model/LiffApp.php @@ -17,7 +17,7 @@ /** * LiffApp * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/LiffBotPrompt.php b/src/clients/liff/lib/Model/LiffBotPrompt.php index dcdcb18b0..c80afbb6b 100644 --- a/src/clients/liff/lib/Model/LiffBotPrompt.php +++ b/src/clients/liff/lib/Model/LiffBotPrompt.php @@ -17,7 +17,7 @@ /** * LiffBotPrompt * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/LiffFeatures.php b/src/clients/liff/lib/Model/LiffFeatures.php index f9e74dc87..3ae7d967a 100644 --- a/src/clients/liff/lib/Model/LiffFeatures.php +++ b/src/clients/liff/lib/Model/LiffFeatures.php @@ -17,7 +17,7 @@ /** * LiffFeatures * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/LiffScope.php b/src/clients/liff/lib/Model/LiffScope.php index 8a6799d34..18ad65489 100644 --- a/src/clients/liff/lib/Model/LiffScope.php +++ b/src/clients/liff/lib/Model/LiffScope.php @@ -17,7 +17,7 @@ /** * LiffScope * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/LiffView.php b/src/clients/liff/lib/Model/LiffView.php index c6e75fb11..b14d92b1a 100644 --- a/src/clients/liff/lib/Model/LiffView.php +++ b/src/clients/liff/lib/Model/LiffView.php @@ -17,7 +17,7 @@ /** * LiffView * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/ModelInterface.php b/src/clients/liff/lib/Model/ModelInterface.php index 169cc8932..620f0c8e6 100644 --- a/src/clients/liff/lib/Model/ModelInterface.php +++ b/src/clients/liff/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/UpdateLiffAppRequest.php b/src/clients/liff/lib/Model/UpdateLiffAppRequest.php index 13ce19729..ac2da8f1c 100644 --- a/src/clients/liff/lib/Model/UpdateLiffAppRequest.php +++ b/src/clients/liff/lib/Model/UpdateLiffAppRequest.php @@ -17,7 +17,7 @@ /** * UpdateLiffAppRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/Model/UpdateLiffView.php b/src/clients/liff/lib/Model/UpdateLiffView.php index 874e72304..edb53833c 100644 --- a/src/clients/liff/lib/Model/UpdateLiffView.php +++ b/src/clients/liff/lib/Model/UpdateLiffView.php @@ -17,7 +17,7 @@ /** * UpdateLiffView * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\Liff @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/liff/lib/ObjectSerializer.php b/src/clients/liff/lib/ObjectSerializer.php index 0e934be7e..3bd649e44 100644 --- a/src/clients/liff/lib/ObjectSerializer.php +++ b/src/clients/liff/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/clients/manage-audience/lib/Api/ManageAudienceApi.php b/src/clients/manage-audience/lib/Api/ManageAudienceApi.php index 0997ab588..e98b228d3 100644 --- a/src/clients/manage-audience/lib/Api/ManageAudienceApi.php +++ b/src/clients/manage-audience/lib/Api/ManageAudienceApi.php @@ -16,7 +16,7 @@ */ /** * ManageAudienceApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\ManageAudience\ApiException; use LINE\Clients\ManageAudience\Configuration; +use LINE\Clients\ManageAudience\FormDataProcessor; use LINE\Clients\ManageAudience\HeaderSelector; use LINE\Clients\ManageAudience\ObjectSerializer; @@ -217,10 +220,11 @@ public function addAudienceToAudienceGroupWithHttpInfo($addAudienceToAudienceGro return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -431,34 +435,15 @@ public function createAudienceGroupWithHttpInfo($createAudienceGroupRequest, str switch($statusCode) { case 202: - if ('\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -472,34 +457,11 @@ public function createAudienceGroupWithHttpInfo($createAudienceGroupRequest, str ); } - $returnType = '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -509,8 +471,10 @@ public function createAudienceGroupWithHttpInfo($createAudienceGroupRequest, str $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -734,34 +698,15 @@ public function createClickBasedAudienceGroupWithHttpInfo($createClickBasedAudie switch($statusCode) { case 202: - if ('\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -775,34 +720,11 @@ public function createClickBasedAudienceGroupWithHttpInfo($createClickBasedAudie ); } - $returnType = '\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateClickBasedAudienceGroupResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -812,8 +734,10 @@ public function createClickBasedAudienceGroupWithHttpInfo($createClickBasedAudie $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1037,34 +961,15 @@ public function createImpBasedAudienceGroupWithHttpInfo($createImpBasedAudienceG switch($statusCode) { case 202: - if ('\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1078,34 +983,11 @@ public function createImpBasedAudienceGroupWithHttpInfo($createImpBasedAudienceG ); } - $returnType = '\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateImpBasedAudienceGroupResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -1115,8 +997,10 @@ public function createImpBasedAudienceGroupWithHttpInfo($createImpBasedAudienceG $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1338,10 +1222,11 @@ public function deleteAudienceGroupWithHttpInfo($audienceGroupId, string $conten return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1434,7 +1319,7 @@ public function deleteAudienceGroupRequest($audienceGroupId, string $contentType // path params if ($audienceGroupId !== null) { $resourcePath = str_replace( - '{' . 'audienceGroupId' . '}', + '{audienceGroupId}', ObjectSerializer::toPathValue($audienceGroupId), $resourcePath ); @@ -1553,61 +1438,21 @@ public function getAudienceDataWithHttpInfo($audienceGroupId, string $contentTyp switch($statusCode) { case 200: - if ('\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\ManageAudience\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1621,34 +1466,11 @@ public function getAudienceDataWithHttpInfo($audienceGroupId, string $contentTyp ); } - $returnType = '\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetAudienceDataResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1658,7 +1480,7 @@ public function getAudienceDataWithHttpInfo($audienceGroupId, string $contentTyp $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1666,8 +1488,10 @@ public function getAudienceDataWithHttpInfo($audienceGroupId, string $contentTyp $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1773,7 +1597,7 @@ public function getAudienceDataRequest($audienceGroupId, string $contentType = s // path params if ($audienceGroupId !== null) { $resourcePath = str_replace( - '{' . 'audienceGroupId' . '}', + '{audienceGroupId}', ObjectSerializer::toPathValue($audienceGroupId), $resourcePath ); @@ -1902,34 +1726,15 @@ public function getAudienceGroupsWithHttpInfo($page, $description = null, $statu switch($statusCode) { case 200: - if ('\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1943,34 +1748,11 @@ public function getAudienceGroupsWithHttpInfo($page, $description = null, $statu ); } - $returnType = '\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetAudienceGroupsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1980,8 +1762,10 @@ public function getAudienceGroupsWithHttpInfo($page, $description = null, $statu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2278,61 +2062,21 @@ public function getSharedAudienceDataWithHttpInfo($audienceGroupId, string $cont switch($statusCode) { case 200: - if ('\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\ManageAudience\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2346,34 +2090,11 @@ public function getSharedAudienceDataWithHttpInfo($audienceGroupId, string $cont ); } - $returnType = '\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetSharedAudienceDataResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2383,7 +2104,7 @@ public function getSharedAudienceDataWithHttpInfo($audienceGroupId, string $cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2391,8 +2112,10 @@ public function getSharedAudienceDataWithHttpInfo($audienceGroupId, string $cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2498,7 +2221,7 @@ public function getSharedAudienceDataRequest($audienceGroupId, string $contentTy // path params if ($audienceGroupId !== null) { $resourcePath = str_replace( - '{' . 'audienceGroupId' . '}', + '{audienceGroupId}', ObjectSerializer::toPathValue($audienceGroupId), $resourcePath ); @@ -2627,34 +2350,15 @@ public function getSharedAudienceGroupsWithHttpInfo($page, $description = null, switch($statusCode) { case 200: - if ('\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2668,34 +2372,11 @@ public function getSharedAudienceGroupsWithHttpInfo($page, $description = null, ); } - $returnType = '\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\GetSharedAudienceGroupsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2705,8 +2386,10 @@ public function getSharedAudienceGroupsWithHttpInfo($page, $description = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -3003,10 +2686,11 @@ public function updateAudienceGroupDescriptionWithHttpInfo($audienceGroupId, $up return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -3109,7 +2793,7 @@ public function updateAudienceGroupDescriptionRequest($audienceGroupId, $updateA // path params if ($audienceGroupId !== null) { $resourcePath = str_replace( - '{' . 'audienceGroupId' . '}', + '{audienceGroupId}', ObjectSerializer::toPathValue($audienceGroupId), $resourcePath ); @@ -3196,6 +2880,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/manage-audience/lib/Api/ManageAudienceBlobApi.php b/src/clients/manage-audience/lib/Api/ManageAudienceBlobApi.php index eb61999c3..94cf14deb 100644 --- a/src/clients/manage-audience/lib/Api/ManageAudienceBlobApi.php +++ b/src/clients/manage-audience/lib/Api/ManageAudienceBlobApi.php @@ -16,7 +16,7 @@ */ /** * ManageAudienceBlobApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\ManageAudience\ApiException; use LINE\Clients\ManageAudience\Configuration; +use LINE\Clients\ManageAudience\FormDataProcessor; use LINE\Clients\ManageAudience\HeaderSelector; use LINE\Clients\ManageAudience\ObjectSerializer; @@ -209,10 +212,11 @@ public function addUserIdsToAudienceWithHttpInfo($file, $audienceGroupId = null, return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -330,25 +334,16 @@ public function addUserIdsToAudienceRequest($file, $audienceGroupId = null, $upl // form params - if ($audienceGroupId !== null) { - $formParams['audienceGroupId'] = ObjectSerializer::toFormValue($audienceGroupId); - } - // form params - if ($uploadDescription !== null) { - $formParams['uploadDescription'] = ObjectSerializer::toFormValue($uploadDescription); - } - // form params - if ($file !== null) { - $multipart = true; - $formParams['file'] = []; - $paramFiles = is_array($file) ? $file : [$file]; - foreach ($paramFiles as $paramFile) { - $formParams['file'][] = \GuzzleHttp\Psr7\Utils::tryFopen( - ObjectSerializer::toFormValue($paramFile), - 'rb' - ); - } - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'audienceGroupId' => $audienceGroupId, + 'uploadDescription' => $uploadDescription, + 'file' => $file, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $multipart = true; $headers = $this->headerSelector->selectHeaders( @@ -506,34 +501,15 @@ public function createAudienceForUploadingUserIdsWithHttpInfo($file, $descriptio switch($statusCode) { case 202: - if ('\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -547,34 +523,11 @@ public function createAudienceForUploadingUserIdsWithHttpInfo($file, $descriptio ); } - $returnType = '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\ManageAudience\Model\CreateAudienceGroupResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -584,8 +537,10 @@ public function createAudienceForUploadingUserIdsWithHttpInfo($file, $descriptio $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -723,29 +678,17 @@ public function createAudienceForUploadingUserIdsRequest($file, $description = n // form params - if ($description !== null) { - $formParams['description'] = ObjectSerializer::toFormValue($description); - } - // form params - if ($isIfaAudience !== null) { - $formParams['isIfaAudience'] = ObjectSerializer::toFormValue($isIfaAudience); - } - // form params - if ($uploadDescription !== null) { - $formParams['uploadDescription'] = ObjectSerializer::toFormValue($uploadDescription); - } - // form params - if ($file !== null) { - $multipart = true; - $formParams['file'] = []; - $paramFiles = is_array($file) ? $file : [$file]; - foreach ($paramFiles as $paramFile) { - $formParams['file'][] = \GuzzleHttp\Psr7\Utils::tryFopen( - ObjectSerializer::toFormValue($paramFile), - 'rb' - ); - } - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'description' => $description, + 'isIfaAudience' => $isIfaAudience, + 'uploadDescription' => $uploadDescription, + 'file' => $file, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $multipart = true; $headers = $this->headerSelector->selectHeaders( @@ -846,6 +789,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/manage-audience/lib/ApiException.php b/src/clients/manage-audience/lib/ApiException.php index eba67b163..796732dc0 100644 --- a/src/clients/manage-audience/lib/ApiException.php +++ b/src/clients/manage-audience/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Configuration.php b/src/clients/manage-audience/lib/Configuration.php index 519420d51..c33008139 100644 --- a/src/clients/manage-audience/lib/Configuration.php +++ b/src/clients/manage-audience/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/clients/manage-audience/lib/FormDataProcessor.php b/src/clients/manage-audience/lib/FormDataProcessor.php new file mode 100644 index 000000000..29cc5d830 --- /dev/null +++ b/src/clients/manage-audience/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/clients/manage-audience/lib/HeaderSelector.php b/src/clients/manage-audience/lib/HeaderSelector.php index e299e2a39..5ccb16216 100644 --- a/src/clients/manage-audience/lib/HeaderSelector.php +++ b/src/clients/manage-audience/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/Adaccount.php b/src/clients/manage-audience/lib/Model/Adaccount.php index 09d91eef4..7b81220bf 100644 --- a/src/clients/manage-audience/lib/Model/Adaccount.php +++ b/src/clients/manage-audience/lib/Model/Adaccount.php @@ -17,7 +17,7 @@ /** * Adaccount * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AddAudienceToAudienceGroupRequest.php b/src/clients/manage-audience/lib/Model/AddAudienceToAudienceGroupRequest.php index c39159e7e..160d9b9a2 100644 --- a/src/clients/manage-audience/lib/Model/AddAudienceToAudienceGroupRequest.php +++ b/src/clients/manage-audience/lib/Model/AddAudienceToAudienceGroupRequest.php @@ -17,7 +17,7 @@ /** * AddAudienceToAudienceGroupRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/Audience.php b/src/clients/manage-audience/lib/Model/Audience.php index 77a1be293..e1be942e6 100644 --- a/src/clients/manage-audience/lib/Model/Audience.php +++ b/src/clients/manage-audience/lib/Model/Audience.php @@ -17,7 +17,7 @@ /** * Audience * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroup.php b/src/clients/manage-audience/lib/Model/AudienceGroup.php index b99e944a7..4db37b391 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroup.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroup.php @@ -17,7 +17,7 @@ /** * AudienceGroup * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupCreateRoute.php b/src/clients/manage-audience/lib/Model/AudienceGroupCreateRoute.php index bec2088e5..92d142366 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupCreateRoute.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupCreateRoute.php @@ -17,7 +17,7 @@ /** * AudienceGroupCreateRoute * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupFailedType.php b/src/clients/manage-audience/lib/Model/AudienceGroupFailedType.php index 5f43e2a5f..dac2b1845 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupFailedType.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupFailedType.php @@ -17,7 +17,7 @@ /** * AudienceGroupFailedType * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupJob.php b/src/clients/manage-audience/lib/Model/AudienceGroupJob.php index 038f09640..ec491dac6 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupJob.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupJob.php @@ -17,7 +17,7 @@ /** * AudienceGroupJob * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupJobFailedType.php b/src/clients/manage-audience/lib/Model/AudienceGroupJobFailedType.php index 5d7d58223..53fc42187 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupJobFailedType.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupJobFailedType.php @@ -17,7 +17,7 @@ /** * AudienceGroupJobFailedType * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupJobStatus.php b/src/clients/manage-audience/lib/Model/AudienceGroupJobStatus.php index 7a82b691f..ca0dc2007 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupJobStatus.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupJobStatus.php @@ -17,7 +17,7 @@ /** * AudienceGroupJobStatus * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupJobType.php b/src/clients/manage-audience/lib/Model/AudienceGroupJobType.php index 5e8dd989f..778267235 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupJobType.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupJobType.php @@ -17,7 +17,7 @@ /** * AudienceGroupJobType * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupPermission.php b/src/clients/manage-audience/lib/Model/AudienceGroupPermission.php index 1a194971f..44c14ade3 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupPermission.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupPermission.php @@ -17,7 +17,7 @@ /** * AudienceGroupPermission * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupStatus.php b/src/clients/manage-audience/lib/Model/AudienceGroupStatus.php index 06442dbaa..9dcce2b4f 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupStatus.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupStatus.php @@ -17,7 +17,7 @@ /** * AudienceGroupStatus * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/AudienceGroupType.php b/src/clients/manage-audience/lib/Model/AudienceGroupType.php index c890098c8..3087b0119 100644 --- a/src/clients/manage-audience/lib/Model/AudienceGroupType.php +++ b/src/clients/manage-audience/lib/Model/AudienceGroupType.php @@ -17,7 +17,7 @@ /** * AudienceGroupType * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateAudienceGroupRequest.php b/src/clients/manage-audience/lib/Model/CreateAudienceGroupRequest.php index b158ed9bb..80bdf4dee 100644 --- a/src/clients/manage-audience/lib/Model/CreateAudienceGroupRequest.php +++ b/src/clients/manage-audience/lib/Model/CreateAudienceGroupRequest.php @@ -17,7 +17,7 @@ /** * CreateAudienceGroupRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateAudienceGroupResponse.php b/src/clients/manage-audience/lib/Model/CreateAudienceGroupResponse.php index 51faf498f..1b564b8ac 100644 --- a/src/clients/manage-audience/lib/Model/CreateAudienceGroupResponse.php +++ b/src/clients/manage-audience/lib/Model/CreateAudienceGroupResponse.php @@ -17,7 +17,7 @@ /** * CreateAudienceGroupResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupRequest.php b/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupRequest.php index cf4cc3cd5..20150f0e9 100644 --- a/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupRequest.php +++ b/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupRequest.php @@ -17,7 +17,7 @@ /** * CreateClickBasedAudienceGroupRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupResponse.php b/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupResponse.php index 73c7bd08c..82fd2d602 100644 --- a/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupResponse.php +++ b/src/clients/manage-audience/lib/Model/CreateClickBasedAudienceGroupResponse.php @@ -17,7 +17,7 @@ /** * CreateClickBasedAudienceGroupResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupRequest.php b/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupRequest.php index a72cdc276..dcf05c9a8 100644 --- a/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupRequest.php +++ b/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupRequest.php @@ -17,7 +17,7 @@ /** * CreateImpBasedAudienceGroupRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupResponse.php b/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupResponse.php index 0fdc3c7b7..42502e410 100644 --- a/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupResponse.php +++ b/src/clients/manage-audience/lib/Model/CreateImpBasedAudienceGroupResponse.php @@ -17,7 +17,7 @@ /** * CreateImpBasedAudienceGroupResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/DetailedOwner.php b/src/clients/manage-audience/lib/Model/DetailedOwner.php index a70bd6ad6..21f6a4118 100644 --- a/src/clients/manage-audience/lib/Model/DetailedOwner.php +++ b/src/clients/manage-audience/lib/Model/DetailedOwner.php @@ -17,7 +17,7 @@ /** * DetailedOwner * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/ErrorDetail.php b/src/clients/manage-audience/lib/Model/ErrorDetail.php index 5ef9242c6..3c1b426de 100644 --- a/src/clients/manage-audience/lib/Model/ErrorDetail.php +++ b/src/clients/manage-audience/lib/Model/ErrorDetail.php @@ -17,7 +17,7 @@ /** * ErrorDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/ErrorResponse.php b/src/clients/manage-audience/lib/Model/ErrorResponse.php index 009d8c514..6aae3c377 100644 --- a/src/clients/manage-audience/lib/Model/ErrorResponse.php +++ b/src/clients/manage-audience/lib/Model/ErrorResponse.php @@ -17,7 +17,7 @@ /** * ErrorResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/GetAudienceDataResponse.php b/src/clients/manage-audience/lib/Model/GetAudienceDataResponse.php index 64eb80400..1b74bc443 100644 --- a/src/clients/manage-audience/lib/Model/GetAudienceDataResponse.php +++ b/src/clients/manage-audience/lib/Model/GetAudienceDataResponse.php @@ -17,7 +17,7 @@ /** * GetAudienceDataResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/GetAudienceGroupsResponse.php b/src/clients/manage-audience/lib/Model/GetAudienceGroupsResponse.php index 195d9a48f..dff500e7f 100644 --- a/src/clients/manage-audience/lib/Model/GetAudienceGroupsResponse.php +++ b/src/clients/manage-audience/lib/Model/GetAudienceGroupsResponse.php @@ -17,7 +17,7 @@ /** * GetAudienceGroupsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/GetSharedAudienceDataResponse.php b/src/clients/manage-audience/lib/Model/GetSharedAudienceDataResponse.php index 4163a5546..a2f44df01 100644 --- a/src/clients/manage-audience/lib/Model/GetSharedAudienceDataResponse.php +++ b/src/clients/manage-audience/lib/Model/GetSharedAudienceDataResponse.php @@ -17,7 +17,7 @@ /** * GetSharedAudienceDataResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/GetSharedAudienceGroupsResponse.php b/src/clients/manage-audience/lib/Model/GetSharedAudienceGroupsResponse.php index f3368f612..b277ec614 100644 --- a/src/clients/manage-audience/lib/Model/GetSharedAudienceGroupsResponse.php +++ b/src/clients/manage-audience/lib/Model/GetSharedAudienceGroupsResponse.php @@ -17,7 +17,7 @@ /** * GetSharedAudienceGroupsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/ModelInterface.php b/src/clients/manage-audience/lib/Model/ModelInterface.php index e9cf2b590..60969d5cc 100644 --- a/src/clients/manage-audience/lib/Model/ModelInterface.php +++ b/src/clients/manage-audience/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/Model/UpdateAudienceGroupDescriptionRequest.php b/src/clients/manage-audience/lib/Model/UpdateAudienceGroupDescriptionRequest.php index c5d4a538b..d67fa2422 100644 --- a/src/clients/manage-audience/lib/Model/UpdateAudienceGroupDescriptionRequest.php +++ b/src/clients/manage-audience/lib/Model/UpdateAudienceGroupDescriptionRequest.php @@ -17,7 +17,7 @@ /** * UpdateAudienceGroupDescriptionRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\ManageAudience @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/manage-audience/lib/ObjectSerializer.php b/src/clients/manage-audience/lib/ObjectSerializer.php index 0071b0c47..a53f4c4bc 100644 --- a/src/clients/manage-audience/lib/ObjectSerializer.php +++ b/src/clients/manage-audience/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/clients/messaging-api/lib/Api/MessagingApiApi.php b/src/clients/messaging-api/lib/Api/MessagingApiApi.php index c91d18b8e..c3f047e95 100644 --- a/src/clients/messaging-api/lib/Api/MessagingApiApi.php +++ b/src/clients/messaging-api/lib/Api/MessagingApiApi.php @@ -16,7 +16,7 @@ */ /** * MessagingApiApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\MessagingApi\ApiException; use LINE\Clients\MessagingApi\Configuration; +use LINE\Clients\MessagingApi\FormDataProcessor; use LINE\Clients\MessagingApi\HeaderSelector; use LINE\Clients\MessagingApi\ObjectSerializer; @@ -395,142 +398,39 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, switch($statusCode) { case 200: - if ('object' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('object' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, 'object', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 403: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 409: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 429: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -544,34 +444,11 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, ); } - $returnType = 'object'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -581,7 +458,7 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -589,7 +466,7 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -597,7 +474,7 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 409: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -605,7 +482,7 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 429: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -613,8 +490,10 @@ public function broadcastWithHttpInfo($broadcastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -842,10 +721,11 @@ public function cancelDefaultRichMenuWithHttpInfo(string $contentType = self::co return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1037,7 +917,6 @@ public function closeCouponWithHttpInfo($couponId, string $contentType = self::c return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -1047,7 +926,7 @@ public function closeCouponWithHttpInfo($couponId, string $contentType = self::c $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1055,7 +934,7 @@ public function closeCouponWithHttpInfo($couponId, string $contentType = self::c $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 410: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1063,8 +942,10 @@ public function closeCouponWithHttpInfo($couponId, string $contentType = self::c $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1157,7 +1038,7 @@ public function closeCouponRequest($couponId, string $contentType = self::conten // path params if ($couponId !== null) { $resourcePath = str_replace( - '{' . 'couponId' . '}', + '{couponId}', ObjectSerializer::toPathValue($couponId), $resourcePath ); @@ -1276,61 +1157,21 @@ public function createCouponWithHttpInfo($couponCreateRequest = null, string $co switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\CouponCreateResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\CouponCreateResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\CouponCreateResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\CouponCreateResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1344,34 +1185,11 @@ public function createCouponWithHttpInfo($couponCreateRequest = null, string $co ); } - $returnType = '\LINE\Clients\MessagingApi\Model\CouponCreateResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\CouponCreateResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1381,7 +1199,7 @@ public function createCouponWithHttpInfo($couponCreateRequest = null, string $co $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1389,8 +1207,10 @@ public function createCouponWithHttpInfo($couponCreateRequest = null, string $co $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1608,34 +1428,15 @@ public function createRichMenuWithHttpInfo($richMenuRequest, string $contentType switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1649,34 +1450,11 @@ public function createRichMenuWithHttpInfo($richMenuRequest, string $contentType ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1686,8 +1464,10 @@ public function createRichMenuWithHttpInfo($richMenuRequest, string $contentType $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1909,7 +1689,6 @@ public function createRichMenuAliasWithHttpInfo($createRichMenuAliasRequest, str return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -1919,8 +1698,10 @@ public function createRichMenuAliasWithHttpInfo($createRichMenuAliasRequest, str $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2129,10 +1910,11 @@ public function deleteRichMenuWithHttpInfo($richMenuId, string $contentType = se return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -2225,7 +2007,7 @@ public function deleteRichMenuRequest($richMenuId, string $contentType = self::c // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -2342,7 +2124,6 @@ public function deleteRichMenuAliasWithHttpInfo($richMenuAliasId, string $conten return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -2352,8 +2133,10 @@ public function deleteRichMenuAliasWithHttpInfo($richMenuAliasId, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2446,7 +2229,7 @@ public function deleteRichMenuAliasRequest($richMenuAliasId, string $contentType // path params if ($richMenuAliasId !== null) { $resourcePath = str_replace( - '{' . 'richMenuAliasId' . '}', + '{richMenuAliasId}', ObjectSerializer::toPathValue($richMenuAliasId), $resourcePath ); @@ -2567,34 +2350,15 @@ public function getAggregationUnitNameListWithHttpInfo($limit = null, $start = n switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2608,34 +2372,11 @@ public function getAggregationUnitNameListWithHttpInfo($limit = null, $start = n ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetAggregationUnitNameListResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2645,8 +2386,10 @@ public function getAggregationUnitNameListWithHttpInfo($limit = null, $start = n $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -2877,34 +2620,15 @@ public function getAggregationUnitUsageWithHttpInfo(string $contentType = self:: switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2918,34 +2642,11 @@ public function getAggregationUnitUsageWithHttpInfo(string $contentType = self:: ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetAggregationUnitUsageResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2955,8 +2656,10 @@ public function getAggregationUnitUsageWithHttpInfo(string $contentType = self:: $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -3161,34 +2864,15 @@ public function getBotInfoWithHttpInfo(string $contentType = self::contentTypes[ switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\BotInfoResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\BotInfoResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\BotInfoResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\BotInfoResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -3202,34 +2886,11 @@ public function getBotInfoWithHttpInfo(string $contentType = self::contentTypes[ ); } - $returnType = '\LINE\Clients\MessagingApi\Model\BotInfoResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\BotInfoResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3239,8 +2900,10 @@ public function getBotInfoWithHttpInfo(string $contentType = self::contentTypes[ $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -3447,88 +3110,27 @@ public function getCouponDetailWithHttpInfo($couponId, string $contentType = sel switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\CouponResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\CouponResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\CouponResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\CouponResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 404: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -3542,34 +3144,11 @@ public function getCouponDetailWithHttpInfo($couponId, string $contentType = sel ); } - $returnType = '\LINE\Clients\MessagingApi\Model\CouponResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\CouponResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3579,7 +3158,7 @@ public function getCouponDetailWithHttpInfo($couponId, string $contentType = sel $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3587,7 +3166,7 @@ public function getCouponDetailWithHttpInfo($couponId, string $contentType = sel $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3595,8 +3174,10 @@ public function getCouponDetailWithHttpInfo($couponId, string $contentType = sel $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -3702,7 +3283,7 @@ public function getCouponDetailRequest($couponId, string $contentType = self::co // path params if ($couponId !== null) { $resourcePath = str_replace( - '{' . 'couponId' . '}', + '{couponId}', ObjectSerializer::toPathValue($couponId), $resourcePath ); @@ -3819,34 +3400,15 @@ public function getDefaultRichMenuIdWithHttpInfo(string $contentType = self::con switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -3860,34 +3422,11 @@ public function getDefaultRichMenuIdWithHttpInfo(string $contentType = self::con ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3897,8 +3436,10 @@ public function getDefaultRichMenuIdWithHttpInfo(string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -4107,34 +3648,15 @@ public function getFollowersWithHttpInfo($start = null, $limit = 300, string $co switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetFollowersResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetFollowersResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetFollowersResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetFollowersResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -4148,34 +3670,11 @@ public function getFollowersWithHttpInfo($start = null, $limit = 300, string $co ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetFollowersResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetFollowersResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -4185,8 +3684,10 @@ public function getFollowersWithHttpInfo($start = null, $limit = 300, string $co $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -4422,34 +3923,15 @@ public function getGroupMemberCountWithHttpInfo($groupId, string $contentType = switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -4463,34 +3945,11 @@ public function getGroupMemberCountWithHttpInfo($groupId, string $contentType = ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupMemberCountResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -4500,8 +3959,10 @@ public function getGroupMemberCountWithHttpInfo($groupId, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -4607,7 +4068,7 @@ public function getGroupMemberCountRequest($groupId, string $contentType = self: // path params if ($groupId !== null) { $resourcePath = str_replace( - '{' . 'groupId' . '}', + '{groupId}', ObjectSerializer::toPathValue($groupId), $resourcePath ); @@ -4728,34 +4189,15 @@ public function getGroupMemberProfileWithHttpInfo($groupId, $userId, string $con switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -4769,34 +4211,11 @@ public function getGroupMemberProfileWithHttpInfo($groupId, $userId, string $con ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupUserProfileResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -4806,8 +4225,10 @@ public function getGroupMemberProfileWithHttpInfo($groupId, $userId, string $con $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -4923,7 +4344,7 @@ public function getGroupMemberProfileRequest($groupId, $userId, string $contentT // path params if ($groupId !== null) { $resourcePath = str_replace( - '{' . 'groupId' . '}', + '{groupId}', ObjectSerializer::toPathValue($groupId), $resourcePath ); @@ -4931,7 +4352,7 @@ public function getGroupMemberProfileRequest($groupId, $userId, string $contentT // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -5052,34 +4473,15 @@ public function getGroupMembersIdsWithHttpInfo($groupId, $start = null, string $ switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\MembersIdsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\MembersIdsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5093,34 +4495,11 @@ public function getGroupMembersIdsWithHttpInfo($groupId, $start = null, string $ ); } - $returnType = '\LINE\Clients\MessagingApi\Model\MembersIdsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -5130,8 +4509,10 @@ public function getGroupMembersIdsWithHttpInfo($groupId, $start = null, string $ $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -5250,7 +4631,7 @@ public function getGroupMembersIdsRequest($groupId, $start = null, string $conte // path params if ($groupId !== null) { $resourcePath = str_replace( - '{' . 'groupId' . '}', + '{groupId}', ObjectSerializer::toPathValue($groupId), $resourcePath ); @@ -5369,34 +4750,15 @@ public function getGroupSummaryWithHttpInfo($groupId, string $contentType = self switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GroupSummaryResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GroupSummaryResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GroupSummaryResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupSummaryResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5410,34 +4772,11 @@ public function getGroupSummaryWithHttpInfo($groupId, string $contentType = self ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GroupSummaryResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GroupSummaryResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -5447,8 +4786,10 @@ public function getGroupSummaryWithHttpInfo($groupId, string $contentType = self $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -5554,7 +4895,7 @@ public function getGroupSummaryRequest($groupId, string $contentType = self::con // path params if ($groupId !== null) { $resourcePath = str_replace( - '{' . 'groupId' . '}', + '{groupId}', ObjectSerializer::toPathValue($groupId), $resourcePath ); @@ -5677,88 +5018,27 @@ public function getJoinedMembershipUsersWithHttpInfo($membershipId, $start = nul switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 404: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5772,34 +5052,11 @@ public function getJoinedMembershipUsersWithHttpInfo($membershipId, $start = nul ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetJoinedMembershipUsersResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -5809,7 +5066,7 @@ public function getJoinedMembershipUsersWithHttpInfo($membershipId, $start = nul $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -5817,7 +5074,7 @@ public function getJoinedMembershipUsersWithHttpInfo($membershipId, $start = nul $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -5825,8 +5082,10 @@ public function getJoinedMembershipUsersWithHttpInfo($membershipId, $start = nul $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -5964,7 +5223,7 @@ public function getJoinedMembershipUsersRequest($membershipId, $start = null, $l // path params if ($membershipId !== null) { $resourcePath = str_replace( - '{' . 'membershipId' . '}', + '{membershipId}', ObjectSerializer::toPathValue($membershipId), $resourcePath ); @@ -6081,61 +5340,21 @@ public function getMembershipListWithHttpInfo(string $contentType = self::conten switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\MembershipListResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\MembershipListResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\MembershipListResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembershipListResponse', + $request, + $response, + ); case 404: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -6149,34 +5368,11 @@ public function getMembershipListWithHttpInfo(string $contentType = self::conten ); } - $returnType = '\LINE\Clients\MessagingApi\Model\MembershipListResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembershipListResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -6186,7 +5382,7 @@ public function getMembershipListWithHttpInfo(string $contentType = self::conten $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -6194,8 +5390,10 @@ public function getMembershipListWithHttpInfo(string $contentType = self::conten $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -6402,88 +5600,27 @@ public function getMembershipSubscriptionWithHttpInfo($userId, string $contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 404: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -6497,34 +5634,11 @@ public function getMembershipSubscriptionWithHttpInfo($userId, string $contentTy ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetMembershipSubscriptionResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -6534,7 +5648,7 @@ public function getMembershipSubscriptionWithHttpInfo($userId, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -6542,7 +5656,7 @@ public function getMembershipSubscriptionWithHttpInfo($userId, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -6550,8 +5664,10 @@ public function getMembershipSubscriptionWithHttpInfo($userId, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -6657,7 +5773,7 @@ public function getMembershipSubscriptionRequest($userId, string $contentType = // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -6774,34 +5890,15 @@ public function getMessageQuotaWithHttpInfo(string $contentType = self::contentT switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\MessageQuotaResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\MessageQuotaResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\MessageQuotaResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MessageQuotaResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -6815,34 +5912,11 @@ public function getMessageQuotaWithHttpInfo(string $contentType = self::contentT ); } - $returnType = '\LINE\Clients\MessagingApi\Model\MessageQuotaResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MessageQuotaResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -6852,8 +5926,10 @@ public function getMessageQuotaWithHttpInfo(string $contentType = self::contentT $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -7058,34 +6134,15 @@ public function getMessageQuotaConsumptionWithHttpInfo(string $contentType = sel switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7099,34 +6156,11 @@ public function getMessageQuotaConsumptionWithHttpInfo(string $contentType = sel ); } - $returnType = '\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\QuotaConsumptionResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -7136,8 +6170,10 @@ public function getMessageQuotaConsumptionWithHttpInfo(string $contentType = sel $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -7344,34 +6380,15 @@ public function getNarrowcastProgressWithHttpInfo($requestId, string $contentTyp switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7385,34 +6402,11 @@ public function getNarrowcastProgressWithHttpInfo($requestId, string $contentTyp ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NarrowcastProgressResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -7422,8 +6416,10 @@ public function getNarrowcastProgressWithHttpInfo($requestId, string $contentTyp $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -7649,34 +6645,15 @@ public function getNumberOfSentBroadcastMessagesWithHttpInfo($date, string $cont switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7690,34 +6667,11 @@ public function getNumberOfSentBroadcastMessagesWithHttpInfo($date, string $cont ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -7727,8 +6681,10 @@ public function getNumberOfSentBroadcastMessagesWithHttpInfo($date, string $cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -7954,34 +6910,15 @@ public function getNumberOfSentMulticastMessagesWithHttpInfo($date, string $cont switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7995,34 +6932,11 @@ public function getNumberOfSentMulticastMessagesWithHttpInfo($date, string $cont ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -8032,8 +6946,10 @@ public function getNumberOfSentMulticastMessagesWithHttpInfo($date, string $cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -8259,34 +7175,15 @@ public function getNumberOfSentPushMessagesWithHttpInfo($date, string $contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -8300,34 +7197,11 @@ public function getNumberOfSentPushMessagesWithHttpInfo($date, string $contentTy ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -8337,8 +7211,10 @@ public function getNumberOfSentPushMessagesWithHttpInfo($date, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -8564,34 +7440,15 @@ public function getNumberOfSentReplyMessagesWithHttpInfo($date, string $contentT switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -8605,34 +7462,11 @@ public function getNumberOfSentReplyMessagesWithHttpInfo($date, string $contentT ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -8642,8 +7476,10 @@ public function getNumberOfSentReplyMessagesWithHttpInfo($date, string $contentT $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -8869,34 +7705,15 @@ public function getPNPMessageStatisticsWithHttpInfo($date, string $contentType = switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -8910,34 +7727,11 @@ public function getPNPMessageStatisticsWithHttpInfo($date, string $contentType = ); } - $returnType = '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\NumberOfMessagesResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -8947,8 +7741,10 @@ public function getPNPMessageStatisticsWithHttpInfo($date, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -9177,34 +7973,15 @@ public function getProfileWithHttpInfo($userId, string $contentType = self::cont switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\UserProfileResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\UserProfileResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\UserProfileResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\UserProfileResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -9218,34 +7995,11 @@ public function getProfileWithHttpInfo($userId, string $contentType = self::cont ); } - $returnType = '\LINE\Clients\MessagingApi\Model\UserProfileResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\UserProfileResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -9255,8 +8009,10 @@ public function getProfileWithHttpInfo($userId, string $contentType = self::cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -9362,7 +8118,7 @@ public function getProfileRequest($userId, string $contentType = self::contentTy // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -9481,34 +8237,15 @@ public function getRichMenuWithHttpInfo($richMenuId, string $contentType = self: switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -9522,34 +8259,11 @@ public function getRichMenuWithHttpInfo($richMenuId, string $contentType = self: ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -9559,8 +8273,10 @@ public function getRichMenuWithHttpInfo($richMenuId, string $contentType = self: $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -9666,7 +8382,7 @@ public function getRichMenuRequest($richMenuId, string $contentType = self::cont // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -9785,34 +8501,15 @@ public function getRichMenuAliasWithHttpInfo($richMenuAliasId, string $contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -9826,34 +8523,11 @@ public function getRichMenuAliasWithHttpInfo($richMenuAliasId, string $contentTy ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuAliasResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -9863,8 +8537,10 @@ public function getRichMenuAliasWithHttpInfo($richMenuAliasId, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -9970,7 +8646,7 @@ public function getRichMenuAliasRequest($richMenuAliasId, string $contentType = // path params if ($richMenuAliasId !== null) { $resourcePath = str_replace( - '{' . 'richMenuAliasId' . '}', + '{richMenuAliasId}', ObjectSerializer::toPathValue($richMenuAliasId), $resourcePath ); @@ -10087,34 +8763,15 @@ public function getRichMenuAliasListWithHttpInfo(string $contentType = self::con switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -10128,34 +8785,11 @@ public function getRichMenuAliasListWithHttpInfo(string $contentType = self::con ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuAliasListResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -10165,8 +8799,10 @@ public function getRichMenuAliasListWithHttpInfo(string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -10373,34 +9009,15 @@ public function getRichMenuBatchProgressWithHttpInfo($requestId, string $content switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -10414,34 +9031,11 @@ public function getRichMenuBatchProgressWithHttpInfo($requestId, string $content ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuBatchProgressResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -10451,8 +9045,10 @@ public function getRichMenuBatchProgressWithHttpInfo($requestId, string $content $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -10678,34 +9274,15 @@ public function getRichMenuIdOfUserWithHttpInfo($userId, string $contentType = s switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuIdResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -10719,34 +9296,11 @@ public function getRichMenuIdOfUserWithHttpInfo($userId, string $contentType = s ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuIdResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -10756,8 +9310,10 @@ public function getRichMenuIdOfUserWithHttpInfo($userId, string $contentType = s $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -10863,7 +9419,7 @@ public function getRichMenuIdOfUserRequest($userId, string $contentType = self:: // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -10980,34 +9536,15 @@ public function getRichMenuListWithHttpInfo(string $contentType = self::contentT switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RichMenuListResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RichMenuListResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RichMenuListResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuListResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -11021,34 +9558,11 @@ public function getRichMenuListWithHttpInfo(string $contentType = self::contentT ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RichMenuListResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RichMenuListResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -11058,8 +9572,10 @@ public function getRichMenuListWithHttpInfo(string $contentType = self::contentT $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -11266,34 +9782,15 @@ public function getRoomMemberCountWithHttpInfo($roomId, string $contentType = se switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -11307,34 +9804,11 @@ public function getRoomMemberCountWithHttpInfo($roomId, string $contentType = se ); } - $returnType = '\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RoomMemberCountResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -11344,8 +9818,10 @@ public function getRoomMemberCountWithHttpInfo($roomId, string $contentType = se $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -11451,7 +9927,7 @@ public function getRoomMemberCountRequest($roomId, string $contentType = self::c // path params if ($roomId !== null) { $resourcePath = str_replace( - '{' . 'roomId' . '}', + '{roomId}', ObjectSerializer::toPathValue($roomId), $resourcePath ); @@ -11572,34 +10048,15 @@ public function getRoomMemberProfileWithHttpInfo($roomId, $userId, string $conte switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -11608,39 +10065,16 @@ public function getRoomMemberProfileWithHttpInfo($roomId, $userId, string $conte (string) $request->getUri() ), $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - $returnType = '\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } + $response->getHeaders(), + (string) $response->getBody() + ); } - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\RoomUserProfileResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -11650,8 +10084,10 @@ public function getRoomMemberProfileWithHttpInfo($roomId, $userId, string $conte $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -11767,7 +10203,7 @@ public function getRoomMemberProfileRequest($roomId, $userId, string $contentTyp // path params if ($roomId !== null) { $resourcePath = str_replace( - '{' . 'roomId' . '}', + '{roomId}', ObjectSerializer::toPathValue($roomId), $resourcePath ); @@ -11775,7 +10211,7 @@ public function getRoomMemberProfileRequest($roomId, $userId, string $contentTyp // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -11896,34 +10332,15 @@ public function getRoomMembersIdsWithHttpInfo($roomId, $start = null, string $co switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\MembersIdsResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\MembersIdsResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -11937,34 +10354,11 @@ public function getRoomMembersIdsWithHttpInfo($roomId, $start = null, string $co ); } - $returnType = '\LINE\Clients\MessagingApi\Model\MembersIdsResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MembersIdsResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -11974,8 +10368,10 @@ public function getRoomMembersIdsWithHttpInfo($roomId, $start = null, string $co $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -12094,7 +10490,7 @@ public function getRoomMembersIdsRequest($roomId, $start = null, string $content // path params if ($roomId !== null) { $resourcePath = str_replace( - '{' . 'roomId' . '}', + '{roomId}', ObjectSerializer::toPathValue($roomId), $resourcePath ); @@ -12211,34 +10607,15 @@ public function getWebhookEndpointWithHttpInfo(string $contentType = self::conte switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -12252,34 +10629,11 @@ public function getWebhookEndpointWithHttpInfo(string $contentType = self::conte ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetWebhookEndpointResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -12289,8 +10643,10 @@ public function getWebhookEndpointWithHttpInfo(string $contentType = self::conte $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -12497,34 +10853,15 @@ public function issueLinkTokenWithHttpInfo($userId, string $contentType = self:: switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -12538,34 +10875,11 @@ public function issueLinkTokenWithHttpInfo($userId, string $contentType = self:: ); } - $returnType = '\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\IssueLinkTokenResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -12575,8 +10889,10 @@ public function issueLinkTokenWithHttpInfo($userId, string $contentType = self:: $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -12682,7 +10998,7 @@ public function issueLinkTokenRequest($userId, string $contentType = self::conte // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -12799,7 +11115,6 @@ public function leaveGroupWithHttpInfo($groupId, string $contentType = self::con return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -12809,7 +11124,7 @@ public function leaveGroupWithHttpInfo($groupId, string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -12817,8 +11132,10 @@ public function leaveGroupWithHttpInfo($groupId, string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -12911,7 +11228,7 @@ public function leaveGroupRequest($groupId, string $contentType = self::contentT // path params if ($groupId !== null) { $resourcePath = str_replace( - '{' . 'groupId' . '}', + '{groupId}', ObjectSerializer::toPathValue($groupId), $resourcePath ); @@ -13028,10 +11345,11 @@ public function leaveRoomWithHttpInfo($roomId, string $contentType = self::conte return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -13124,7 +11442,7 @@ public function leaveRoomRequest($roomId, string $contentType = self::contentTyp // path params if ($roomId !== null) { $resourcePath = str_replace( - '{' . 'roomId' . '}', + '{roomId}', ObjectSerializer::toPathValue($roomId), $resourcePath ); @@ -13243,10 +11561,11 @@ public function linkRichMenuIdToUserWithHttpInfo($userId, $richMenuId, string $c return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -13349,7 +11668,7 @@ public function linkRichMenuIdToUserRequest($userId, $richMenuId, string $conten // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -13357,7 +11676,7 @@ public function linkRichMenuIdToUserRequest($userId, $richMenuId, string $conten // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -13474,10 +11793,11 @@ public function linkRichMenuIdToUsersWithHttpInfo($richMenuBulkLinkRequest, stri return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -13692,61 +12012,21 @@ public function listCouponWithHttpInfo($status = null, $start = null, $limit = 2 switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -13760,34 +12040,11 @@ public function listCouponWithHttpInfo($status = null, $start = null, $limit = 2 ); } - $returnType = '\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\MessagingApiPagerCouponListResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -13797,7 +12054,7 @@ public function listCouponWithHttpInfo($status = null, $start = null, $limit = 2 $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -13805,8 +12062,10 @@ public function listCouponWithHttpInfo($status = null, $start = null, $limit = 2 $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -14056,10 +12315,11 @@ public function markMessagesAsReadWithHttpInfo($markMessagesAsReadRequest, strin return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -14268,7 +12528,6 @@ public function markMessagesAsReadByTokenWithHttpInfo($markMessagesAsReadByToken return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -14278,8 +12537,10 @@ public function markMessagesAsReadByTokenWithHttpInfo($markMessagesAsReadByToken $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -14492,142 +12753,39 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, switch($statusCode) { case 200: - if ('object' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('object' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, 'object', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 403: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 409: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 429: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -14641,34 +12799,11 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, ); } - $returnType = 'object'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -14678,7 +12813,7 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -14686,7 +12821,7 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -14694,7 +12829,7 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 409: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -14702,7 +12837,7 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 429: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -14710,8 +12845,10 @@ public function multicastWithHttpInfo($multicastRequest, $xLineRetryKey = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -14945,142 +13082,39 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null switch($statusCode) { case 202: - if ('object' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('object' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, 'object', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 403: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 409: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); + case 409: + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); + case 429: + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -15094,34 +13128,11 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null ); } - $returnType = 'object'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -15131,7 +13142,7 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15139,7 +13150,7 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15147,7 +13158,7 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 409: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15155,7 +13166,7 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 429: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15163,8 +13174,10 @@ public function narrowcastWithHttpInfo($narrowcastRequest, $xLineRetryKey = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -15398,142 +13411,39 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\PushMessageResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\PushMessageResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\PushMessageResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\PushMessageResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 403: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 409: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 429: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -15547,34 +13457,11 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu ); } - $returnType = '\LINE\Clients\MessagingApi\Model\PushMessageResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\PushMessageResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -15584,7 +13471,7 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15592,7 +13479,7 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15600,7 +13487,7 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 409: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15608,7 +13495,7 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 429: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -15616,8 +13503,10 @@ public function pushMessageWithHttpInfo($pushMessageRequest, $xLineRetryKey = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -15849,7 +13738,6 @@ public function pushMessagesByPhoneWithHttpInfo($pnpMessagesRequest, $xLineDeliv return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 422: @@ -15859,8 +13747,10 @@ public function pushMessagesByPhoneWithHttpInfo($pnpMessagesRequest, $xLineDeliv $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -16085,88 +13975,27 @@ public function replyMessageWithHttpInfo($replyMessageRequest, string $contentTy switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\ReplyMessageResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ReplyMessageResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ReplyMessageResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ReplyMessageResponse', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); case 429: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -16180,34 +14009,11 @@ public function replyMessageWithHttpInfo($replyMessageRequest, string $contentTy ); } - $returnType = '\LINE\Clients\MessagingApi\Model\ReplyMessageResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ReplyMessageResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -16217,7 +14023,7 @@ public function replyMessageWithHttpInfo($replyMessageRequest, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -16225,7 +14031,7 @@ public function replyMessageWithHttpInfo($replyMessageRequest, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 429: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -16233,8 +14039,10 @@ public function replyMessageWithHttpInfo($replyMessageRequest, string $contentTy $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -16456,10 +14264,11 @@ public function richMenuBatchWithHttpInfo($richMenuBatchRequest, string $content return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -16668,10 +14477,11 @@ public function setDefaultRichMenuWithHttpInfo($richMenuId, string $contentType return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -16764,7 +14574,7 @@ public function setDefaultRichMenuRequest($richMenuId, string $contentType = sel // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -16881,10 +14691,11 @@ public function setWebhookEndpointWithHttpInfo($setWebhookEndpointRequest, strin return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -17095,61 +14906,21 @@ public function showLoadingAnimationWithHttpInfo($showLoadingAnimationRequest, s switch($statusCode) { case 202: - if ('object' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('object' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, 'object', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); case 400: - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\ErrorResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\ErrorResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\ErrorResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -17163,34 +14934,11 @@ public function showLoadingAnimationWithHttpInfo($showLoadingAnimationRequest, s ); } - $returnType = 'object'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 202: @@ -17200,7 +14948,7 @@ public function showLoadingAnimationWithHttpInfo($showLoadingAnimationRequest, s $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -17208,8 +14956,10 @@ public function showLoadingAnimationWithHttpInfo($showLoadingAnimationRequest, s $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -17433,34 +15183,15 @@ public function testWebhookEndpointWithHttpInfo($testWebhookEndpointRequest = nu switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -17474,34 +15205,11 @@ public function testWebhookEndpointWithHttpInfo($testWebhookEndpointRequest = nu ); } - $returnType = '\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\TestWebhookEndpointResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -17511,8 +15219,10 @@ public function testWebhookEndpointWithHttpInfo($testWebhookEndpointRequest = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -17728,10 +15438,11 @@ public function unlinkRichMenuIdFromUserWithHttpInfo($userId, string $contentTyp return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -17824,7 +15535,7 @@ public function unlinkRichMenuIdFromUserRequest($userId, string $contentType = s // path params if ($userId !== null) { $resourcePath = str_replace( - '{' . 'userId' . '}', + '{userId}', ObjectSerializer::toPathValue($userId), $resourcePath ); @@ -17941,10 +15652,11 @@ public function unlinkRichMenuIdFromUsersWithHttpInfo($richMenuBulkUnlinkRequest return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -18155,7 +15867,6 @@ public function updateRichMenuAliasWithHttpInfo($richMenuAliasId, $updateRichMen return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { case 400: @@ -18165,8 +15876,10 @@ public function updateRichMenuAliasWithHttpInfo($richMenuAliasId, $updateRichMen $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -18269,7 +15982,7 @@ public function updateRichMenuAliasRequest($richMenuAliasId, $updateRichMenuAlia // path params if ($richMenuAliasId !== null) { $resourcePath = str_replace( - '{' . 'richMenuAliasId' . '}', + '{richMenuAliasId}', ObjectSerializer::toPathValue($richMenuAliasId), $resourcePath ); @@ -18393,10 +16106,11 @@ public function validateBroadcastWithHttpInfo($validateMessageRequest, string $c return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -18605,10 +16319,11 @@ public function validateMulticastWithHttpInfo($validateMessageRequest, string $c return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -18817,10 +16532,11 @@ public function validateNarrowcastWithHttpInfo($validateMessageRequest, string $ return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -19029,10 +16745,11 @@ public function validatePushWithHttpInfo($validateMessageRequest, string $conten return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -19241,10 +16958,11 @@ public function validateReplyWithHttpInfo($validateMessageRequest, string $conte return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -19453,10 +17171,11 @@ public function validateRichMenuBatchRequestWithHttpInfo($richMenuBatchRequest, return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -19665,10 +17384,11 @@ public function validateRichMenuObjectWithHttpInfo($richMenuRequest, string $con return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -19840,6 +17560,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php b/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php index 26ecd31dd..3a2a50b6e 100644 --- a/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php +++ b/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php @@ -16,7 +16,7 @@ */ /** * MessagingApiBlobApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Clients\MessagingApi\ApiException; use LINE\Clients\MessagingApi\Configuration; +use LINE\Clients\MessagingApi\FormDataProcessor; use LINE\Clients\MessagingApi\HeaderSelector; use LINE\Clients\MessagingApi\ObjectSerializer; @@ -216,34 +219,15 @@ public function getMessageContentWithHttpInfo($messageId, ?int $hostIndex = null switch($statusCode) { case 200: - if ('\SplFileObject' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\SplFileObject' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\SplFileObject', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -257,34 +241,11 @@ public function getMessageContentWithHttpInfo($messageId, ?int $hostIndex = null ); } - $returnType = '\SplFileObject'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -294,8 +255,10 @@ public function getMessageContentWithHttpInfo($messageId, ?int $hostIndex = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -419,7 +382,7 @@ public function getMessageContentRequest($messageId, ?int $hostIndex = null, arr // path params if ($messageId !== null) { $resourcePath = str_replace( - '{' . 'messageId' . '}', + '{messageId}', ObjectSerializer::toPathValue($messageId), $resourcePath ); @@ -575,34 +538,15 @@ public function getMessageContentPreviewWithHttpInfo($messageId, ?int $hostIndex switch($statusCode) { case 200: - if ('\SplFileObject' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\SplFileObject' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\SplFileObject', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -616,34 +560,11 @@ public function getMessageContentPreviewWithHttpInfo($messageId, ?int $hostIndex ); } - $returnType = '\SplFileObject'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -653,8 +574,10 @@ public function getMessageContentPreviewWithHttpInfo($messageId, ?int $hostIndex $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -778,7 +701,7 @@ public function getMessageContentPreviewRequest($messageId, ?int $hostIndex = nu // path params if ($messageId !== null) { $resourcePath = str_replace( - '{' . 'messageId' . '}', + '{messageId}', ObjectSerializer::toPathValue($messageId), $resourcePath ); @@ -934,34 +857,15 @@ public function getMessageContentTranscodingByMessageIdWithHttpInfo($messageId, switch($statusCode) { case 200: - if ('\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -975,34 +879,11 @@ public function getMessageContentTranscodingByMessageIdWithHttpInfo($messageId, ); } - $returnType = '\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\LINE\Clients\MessagingApi\Model\GetMessageContentTranscodingResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1012,8 +893,10 @@ public function getMessageContentTranscodingByMessageIdWithHttpInfo($messageId, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1137,7 +1020,7 @@ public function getMessageContentTranscodingByMessageIdRequest($messageId, ?int // path params if ($messageId !== null) { $resourcePath = str_replace( - '{' . 'messageId' . '}', + '{messageId}', ObjectSerializer::toPathValue($messageId), $resourcePath ); @@ -1293,34 +1176,15 @@ public function getRichMenuImageWithHttpInfo($richMenuId, ?int $hostIndex = null switch($statusCode) { case 200: - if ('\SplFileObject' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\SplFileObject' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\SplFileObject', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1334,34 +1198,11 @@ public function getRichMenuImageWithHttpInfo($richMenuId, ?int $hostIndex = null ); } - $returnType = '\SplFileObject'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\SplFileObject', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1371,8 +1212,10 @@ public function getRichMenuImageWithHttpInfo($richMenuId, ?int $hostIndex = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1496,7 +1339,7 @@ public function getRichMenuImageRequest($richMenuId, ?int $hostIndex = null, arr // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -1652,10 +1495,11 @@ public function setRichMenuImageWithHttpInfo($richMenuId, $body, ?int $hostIndex return [null, $statusCode, $response->getHeaders()]; - } catch (ApiException $e) { switch ($e->getCode()) { } + + throw $e; } } @@ -1776,7 +1620,7 @@ public function setRichMenuImageRequest($richMenuId, $body, ?int $hostIndex = nu // path params if ($richMenuId !== null) { $resourcePath = str_replace( - '{' . 'richMenuId' . '}', + '{richMenuId}', ObjectSerializer::toPathValue($richMenuId), $resourcePath ); @@ -1888,6 +1732,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/clients/messaging-api/lib/ApiException.php b/src/clients/messaging-api/lib/ApiException.php index bfe00200f..9f4ff1dbd 100644 --- a/src/clients/messaging-api/lib/ApiException.php +++ b/src/clients/messaging-api/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Configuration.php b/src/clients/messaging-api/lib/Configuration.php index 974ecafc4..1bdf3931b 100644 --- a/src/clients/messaging-api/lib/Configuration.php +++ b/src/clients/messaging-api/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/clients/messaging-api/lib/FormDataProcessor.php b/src/clients/messaging-api/lib/FormDataProcessor.php new file mode 100644 index 000000000..db6e7d9c8 --- /dev/null +++ b/src/clients/messaging-api/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/clients/messaging-api/lib/HeaderSelector.php b/src/clients/messaging-api/lib/HeaderSelector.php index 00dc70e63..1fa073b90 100644 --- a/src/clients/messaging-api/lib/HeaderSelector.php +++ b/src/clients/messaging-api/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AcquisitionConditionRequest.php b/src/clients/messaging-api/lib/Model/AcquisitionConditionRequest.php index c0baf1a54..128e9f2f4 100644 --- a/src/clients/messaging-api/lib/Model/AcquisitionConditionRequest.php +++ b/src/clients/messaging-api/lib/Model/AcquisitionConditionRequest.php @@ -17,7 +17,7 @@ /** * AcquisitionConditionRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AcquisitionConditionResponse.php b/src/clients/messaging-api/lib/Model/AcquisitionConditionResponse.php index 8870e067e..e8b09fa83 100644 --- a/src/clients/messaging-api/lib/Model/AcquisitionConditionResponse.php +++ b/src/clients/messaging-api/lib/Model/AcquisitionConditionResponse.php @@ -17,7 +17,7 @@ /** * AcquisitionConditionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Action.php b/src/clients/messaging-api/lib/Model/Action.php index 45b401c8e..596496e23 100644 --- a/src/clients/messaging-api/lib/Model/Action.php +++ b/src/clients/messaging-api/lib/Model/Action.php @@ -17,7 +17,7 @@ /** * Action * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AgeDemographic.php b/src/clients/messaging-api/lib/Model/AgeDemographic.php index b61efec32..4d1bfb7b2 100644 --- a/src/clients/messaging-api/lib/Model/AgeDemographic.php +++ b/src/clients/messaging-api/lib/Model/AgeDemographic.php @@ -17,7 +17,7 @@ /** * AgeDemographic * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AgeDemographicFilter.php b/src/clients/messaging-api/lib/Model/AgeDemographicFilter.php index ad6b1758a..ac6720376 100644 --- a/src/clients/messaging-api/lib/Model/AgeDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/AgeDemographicFilter.php @@ -17,7 +17,7 @@ /** * AgeDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AllMentionTarget.php b/src/clients/messaging-api/lib/Model/AllMentionTarget.php index 6da81dab4..4a1be4172 100644 --- a/src/clients/messaging-api/lib/Model/AllMentionTarget.php +++ b/src/clients/messaging-api/lib/Model/AllMentionTarget.php @@ -17,7 +17,7 @@ /** * AllMentionTarget * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AltUri.php b/src/clients/messaging-api/lib/Model/AltUri.php index bb7b7f84e..52722fa8e 100644 --- a/src/clients/messaging-api/lib/Model/AltUri.php +++ b/src/clients/messaging-api/lib/Model/AltUri.php @@ -17,7 +17,7 @@ /** * AltUri * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AppTypeDemographic.php b/src/clients/messaging-api/lib/Model/AppTypeDemographic.php index df5f2607c..a06939b14 100644 --- a/src/clients/messaging-api/lib/Model/AppTypeDemographic.php +++ b/src/clients/messaging-api/lib/Model/AppTypeDemographic.php @@ -17,7 +17,7 @@ /** * AppTypeDemographic * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AppTypeDemographicFilter.php b/src/clients/messaging-api/lib/Model/AppTypeDemographicFilter.php index 682138556..63a305310 100644 --- a/src/clients/messaging-api/lib/Model/AppTypeDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/AppTypeDemographicFilter.php @@ -17,7 +17,7 @@ /** * AppTypeDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AreaDemographic.php b/src/clients/messaging-api/lib/Model/AreaDemographic.php index 135106284..92d0ca740 100644 --- a/src/clients/messaging-api/lib/Model/AreaDemographic.php +++ b/src/clients/messaging-api/lib/Model/AreaDemographic.php @@ -17,7 +17,7 @@ /** * AreaDemographic * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AreaDemographicFilter.php b/src/clients/messaging-api/lib/Model/AreaDemographicFilter.php index f41a9a1e8..6d2c21df7 100644 --- a/src/clients/messaging-api/lib/Model/AreaDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/AreaDemographicFilter.php @@ -17,7 +17,7 @@ /** * AreaDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AudienceRecipient.php b/src/clients/messaging-api/lib/Model/AudienceRecipient.php index a6efd5d84..668d1ca0d 100644 --- a/src/clients/messaging-api/lib/Model/AudienceRecipient.php +++ b/src/clients/messaging-api/lib/Model/AudienceRecipient.php @@ -17,7 +17,7 @@ /** * AudienceRecipient * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/AudioMessage.php b/src/clients/messaging-api/lib/Model/AudioMessage.php index 442dc0a87..2009e96a6 100644 --- a/src/clients/messaging-api/lib/Model/AudioMessage.php +++ b/src/clients/messaging-api/lib/Model/AudioMessage.php @@ -17,7 +17,7 @@ /** * AudioMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/BotInfoResponse.php b/src/clients/messaging-api/lib/Model/BotInfoResponse.php index 59f298390..2efb0a8a5 100644 --- a/src/clients/messaging-api/lib/Model/BotInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/BotInfoResponse.php @@ -17,7 +17,7 @@ /** * BotInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/BroadcastRequest.php b/src/clients/messaging-api/lib/Model/BroadcastRequest.php index 72d180e79..75dc6db78 100644 --- a/src/clients/messaging-api/lib/Model/BroadcastRequest.php +++ b/src/clients/messaging-api/lib/Model/BroadcastRequest.php @@ -17,7 +17,7 @@ /** * BroadcastRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ButtonsTemplate.php b/src/clients/messaging-api/lib/Model/ButtonsTemplate.php index a506778c2..09ed8bf10 100644 --- a/src/clients/messaging-api/lib/Model/ButtonsTemplate.php +++ b/src/clients/messaging-api/lib/Model/ButtonsTemplate.php @@ -17,7 +17,7 @@ /** * ButtonsTemplate * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CameraAction.php b/src/clients/messaging-api/lib/Model/CameraAction.php index 801d65483..69c22b925 100644 --- a/src/clients/messaging-api/lib/Model/CameraAction.php +++ b/src/clients/messaging-api/lib/Model/CameraAction.php @@ -17,7 +17,7 @@ /** * CameraAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CameraRollAction.php b/src/clients/messaging-api/lib/Model/CameraRollAction.php index f0e5ad38c..e7c36c321 100644 --- a/src/clients/messaging-api/lib/Model/CameraRollAction.php +++ b/src/clients/messaging-api/lib/Model/CameraRollAction.php @@ -17,7 +17,7 @@ /** * CameraRollAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CarouselColumn.php b/src/clients/messaging-api/lib/Model/CarouselColumn.php index 42369953f..2ba141c9a 100644 --- a/src/clients/messaging-api/lib/Model/CarouselColumn.php +++ b/src/clients/messaging-api/lib/Model/CarouselColumn.php @@ -17,7 +17,7 @@ /** * CarouselColumn * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CarouselTemplate.php b/src/clients/messaging-api/lib/Model/CarouselTemplate.php index 08bca6c8d..1050a367c 100644 --- a/src/clients/messaging-api/lib/Model/CarouselTemplate.php +++ b/src/clients/messaging-api/lib/Model/CarouselTemplate.php @@ -17,7 +17,7 @@ /** * CarouselTemplate * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoRequest.php b/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoRequest.php index 20eef6c09..baad421b5 100644 --- a/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoRequest.php @@ -17,7 +17,7 @@ /** * CashBackFixedPriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoResponse.php b/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoResponse.php index 120425bcf..1febd54ab 100644 --- a/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/CashBackFixedPriceInfoResponse.php @@ -17,7 +17,7 @@ /** * CashBackFixedPriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoRequest.php b/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoRequest.php index 804bc62bd..9305a395d 100644 --- a/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoRequest.php @@ -17,7 +17,7 @@ /** * CashBackPercentagePriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoResponse.php b/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoResponse.php index 5892d59b4..e09676fbe 100644 --- a/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/CashBackPercentagePriceInfoResponse.php @@ -17,7 +17,7 @@ /** * CashBackPercentagePriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackPriceInfoRequest.php b/src/clients/messaging-api/lib/Model/CashBackPriceInfoRequest.php index d612c8b19..5295b4f9b 100644 --- a/src/clients/messaging-api/lib/Model/CashBackPriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/CashBackPriceInfoRequest.php @@ -17,7 +17,7 @@ /** * CashBackPriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CashBackPriceInfoResponse.php b/src/clients/messaging-api/lib/Model/CashBackPriceInfoResponse.php index 6c28d1cf0..d893f0694 100644 --- a/src/clients/messaging-api/lib/Model/CashBackPriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/CashBackPriceInfoResponse.php @@ -17,7 +17,7 @@ /** * CashBackPriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ChatReference.php b/src/clients/messaging-api/lib/Model/ChatReference.php index dfb6c4419..f7b1a05f0 100644 --- a/src/clients/messaging-api/lib/Model/ChatReference.php +++ b/src/clients/messaging-api/lib/Model/ChatReference.php @@ -17,7 +17,7 @@ /** * ChatReference * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ClipboardAction.php b/src/clients/messaging-api/lib/Model/ClipboardAction.php index 28a4187b0..f0c982047 100644 --- a/src/clients/messaging-api/lib/Model/ClipboardAction.php +++ b/src/clients/messaging-api/lib/Model/ClipboardAction.php @@ -17,7 +17,7 @@ /** * ClipboardAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ClipboardImagemapAction.php b/src/clients/messaging-api/lib/Model/ClipboardImagemapAction.php index 9cc284ff2..352b6cf7c 100644 --- a/src/clients/messaging-api/lib/Model/ClipboardImagemapAction.php +++ b/src/clients/messaging-api/lib/Model/ClipboardImagemapAction.php @@ -17,7 +17,7 @@ /** * ClipboardImagemapAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ConfirmTemplate.php b/src/clients/messaging-api/lib/Model/ConfirmTemplate.php index dc5243252..42a6853b1 100644 --- a/src/clients/messaging-api/lib/Model/ConfirmTemplate.php +++ b/src/clients/messaging-api/lib/Model/ConfirmTemplate.php @@ -17,7 +17,7 @@ /** * ConfirmTemplate * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponCashBackRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponCashBackRewardRequest.php index 891ed4a94..c93a09964 100644 --- a/src/clients/messaging-api/lib/Model/CouponCashBackRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponCashBackRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponCashBackRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponCashBackRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponCashBackRewardResponse.php index 8bff478b4..a565342e1 100644 --- a/src/clients/messaging-api/lib/Model/CouponCashBackRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponCashBackRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponCashBackRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponCreateRequest.php b/src/clients/messaging-api/lib/Model/CouponCreateRequest.php index 7e3920b1b..e86c52f74 100644 --- a/src/clients/messaging-api/lib/Model/CouponCreateRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponCreateRequest.php @@ -17,7 +17,7 @@ /** * CouponCreateRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponCreateResponse.php b/src/clients/messaging-api/lib/Model/CouponCreateResponse.php index e04b3321b..167c3c848 100644 --- a/src/clients/messaging-api/lib/Model/CouponCreateResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponCreateResponse.php @@ -17,7 +17,7 @@ /** * CouponCreateResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponDiscountRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponDiscountRewardRequest.php index 30c96d10a..a204da402 100644 --- a/src/clients/messaging-api/lib/Model/CouponDiscountRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponDiscountRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponDiscountRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponDiscountRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponDiscountRewardResponse.php index b7220d958..f88f94bdb 100644 --- a/src/clients/messaging-api/lib/Model/CouponDiscountRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponDiscountRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponDiscountRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponFreeRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponFreeRewardRequest.php index f85334422..eb6acf2e3 100644 --- a/src/clients/messaging-api/lib/Model/CouponFreeRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponFreeRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponFreeRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponFreeRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponFreeRewardResponse.php index 909b98d70..162d9a797 100644 --- a/src/clients/messaging-api/lib/Model/CouponFreeRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponFreeRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponFreeRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponGiftRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponGiftRewardRequest.php index 0b18b2c46..555ce84e3 100644 --- a/src/clients/messaging-api/lib/Model/CouponGiftRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponGiftRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponGiftRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponGiftRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponGiftRewardResponse.php index 9f5eec000..3ad3cff9d 100644 --- a/src/clients/messaging-api/lib/Model/CouponGiftRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponGiftRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponGiftRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponListResponse.php b/src/clients/messaging-api/lib/Model/CouponListResponse.php index 7ec918287..02de56957 100644 --- a/src/clients/messaging-api/lib/Model/CouponListResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponListResponse.php @@ -17,7 +17,7 @@ /** * CouponListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponMessage.php b/src/clients/messaging-api/lib/Model/CouponMessage.php index 82d6f52bd..85e30c528 100644 --- a/src/clients/messaging-api/lib/Model/CouponMessage.php +++ b/src/clients/messaging-api/lib/Model/CouponMessage.php @@ -17,7 +17,7 @@ /** * CouponMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponOthersRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponOthersRewardRequest.php index 118905e2d..a98b2888d 100644 --- a/src/clients/messaging-api/lib/Model/CouponOthersRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponOthersRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponOthersRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponOthersRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponOthersRewardResponse.php index 73a93c9ac..e84c3a419 100644 --- a/src/clients/messaging-api/lib/Model/CouponOthersRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponOthersRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponOthersRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponResponse.php b/src/clients/messaging-api/lib/Model/CouponResponse.php index 55ac780fb..5a3c70c4d 100644 --- a/src/clients/messaging-api/lib/Model/CouponResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponResponse.php @@ -17,7 +17,7 @@ /** * CouponResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponRewardRequest.php b/src/clients/messaging-api/lib/Model/CouponRewardRequest.php index b63c33bc9..b671bfab5 100644 --- a/src/clients/messaging-api/lib/Model/CouponRewardRequest.php +++ b/src/clients/messaging-api/lib/Model/CouponRewardRequest.php @@ -17,7 +17,7 @@ /** * CouponRewardRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CouponRewardResponse.php b/src/clients/messaging-api/lib/Model/CouponRewardResponse.php index 996d900ea..7b5ba3b69 100644 --- a/src/clients/messaging-api/lib/Model/CouponRewardResponse.php +++ b/src/clients/messaging-api/lib/Model/CouponRewardResponse.php @@ -17,7 +17,7 @@ /** * CouponRewardResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/CreateRichMenuAliasRequest.php b/src/clients/messaging-api/lib/Model/CreateRichMenuAliasRequest.php index 1c8be7498..aa287194f 100644 --- a/src/clients/messaging-api/lib/Model/CreateRichMenuAliasRequest.php +++ b/src/clients/messaging-api/lib/Model/CreateRichMenuAliasRequest.php @@ -17,7 +17,7 @@ /** * CreateRichMenuAliasRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DatetimePickerAction.php b/src/clients/messaging-api/lib/Model/DatetimePickerAction.php index 3767a8494..3a989850e 100644 --- a/src/clients/messaging-api/lib/Model/DatetimePickerAction.php +++ b/src/clients/messaging-api/lib/Model/DatetimePickerAction.php @@ -17,7 +17,7 @@ /** * DatetimePickerAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DemographicFilter.php b/src/clients/messaging-api/lib/Model/DemographicFilter.php index 04110c697..f2b87250a 100644 --- a/src/clients/messaging-api/lib/Model/DemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/DemographicFilter.php @@ -17,7 +17,7 @@ /** * DemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoRequest.php b/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoRequest.php index 97e112142..9605decb8 100644 --- a/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoRequest.php @@ -17,7 +17,7 @@ /** * DiscountExplicitPriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoResponse.php b/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoResponse.php index 6ee968211..c0bd19d26 100644 --- a/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/DiscountExplicitPriceInfoResponse.php @@ -17,7 +17,7 @@ /** * DiscountExplicitPriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoRequest.php b/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoRequest.php index e29769186..28ef398a4 100644 --- a/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoRequest.php @@ -17,7 +17,7 @@ /** * DiscountFixedPriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoResponse.php b/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoResponse.php index 7b0c0abf2..c3141d5c3 100644 --- a/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/DiscountFixedPriceInfoResponse.php @@ -17,7 +17,7 @@ /** * DiscountFixedPriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoRequest.php b/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoRequest.php index 554010db5..f87694b45 100644 --- a/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoRequest.php @@ -17,7 +17,7 @@ /** * DiscountPercentagePriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoResponse.php b/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoResponse.php index 24fb285a4..0ae7f9523 100644 --- a/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/DiscountPercentagePriceInfoResponse.php @@ -17,7 +17,7 @@ /** * DiscountPercentagePriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountPriceInfoRequest.php b/src/clients/messaging-api/lib/Model/DiscountPriceInfoRequest.php index 1cfcd750f..147f28a27 100644 --- a/src/clients/messaging-api/lib/Model/DiscountPriceInfoRequest.php +++ b/src/clients/messaging-api/lib/Model/DiscountPriceInfoRequest.php @@ -17,7 +17,7 @@ /** * DiscountPriceInfoRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/DiscountPriceInfoResponse.php b/src/clients/messaging-api/lib/Model/DiscountPriceInfoResponse.php index 81655a5f5..e9e9b145c 100644 --- a/src/clients/messaging-api/lib/Model/DiscountPriceInfoResponse.php +++ b/src/clients/messaging-api/lib/Model/DiscountPriceInfoResponse.php @@ -17,7 +17,7 @@ /** * DiscountPriceInfoResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Emoji.php b/src/clients/messaging-api/lib/Model/Emoji.php index 2d6540269..b182c71e5 100644 --- a/src/clients/messaging-api/lib/Model/Emoji.php +++ b/src/clients/messaging-api/lib/Model/Emoji.php @@ -17,7 +17,7 @@ /** * Emoji * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/EmojiSubstitutionObject.php b/src/clients/messaging-api/lib/Model/EmojiSubstitutionObject.php index 8680382e1..9bd5baf0a 100644 --- a/src/clients/messaging-api/lib/Model/EmojiSubstitutionObject.php +++ b/src/clients/messaging-api/lib/Model/EmojiSubstitutionObject.php @@ -17,7 +17,7 @@ /** * EmojiSubstitutionObject * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ErrorDetail.php b/src/clients/messaging-api/lib/Model/ErrorDetail.php index 6168b8894..80b6c75a3 100644 --- a/src/clients/messaging-api/lib/Model/ErrorDetail.php +++ b/src/clients/messaging-api/lib/Model/ErrorDetail.php @@ -17,7 +17,7 @@ /** * ErrorDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ErrorResponse.php b/src/clients/messaging-api/lib/Model/ErrorResponse.php index d598f5921..a37838d11 100644 --- a/src/clients/messaging-api/lib/Model/ErrorResponse.php +++ b/src/clients/messaging-api/lib/Model/ErrorResponse.php @@ -17,7 +17,7 @@ /** * ErrorResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Filter.php b/src/clients/messaging-api/lib/Model/Filter.php index b8c3171cb..f6c393196 100644 --- a/src/clients/messaging-api/lib/Model/Filter.php +++ b/src/clients/messaging-api/lib/Model/Filter.php @@ -17,7 +17,7 @@ /** * Filter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBlockStyle.php b/src/clients/messaging-api/lib/Model/FlexBlockStyle.php index f6771e1c0..1e4a5bea9 100644 --- a/src/clients/messaging-api/lib/Model/FlexBlockStyle.php +++ b/src/clients/messaging-api/lib/Model/FlexBlockStyle.php @@ -17,7 +17,7 @@ /** * FlexBlockStyle * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBox.php b/src/clients/messaging-api/lib/Model/FlexBox.php index b496f6260..013fd847e 100644 --- a/src/clients/messaging-api/lib/Model/FlexBox.php +++ b/src/clients/messaging-api/lib/Model/FlexBox.php @@ -17,7 +17,7 @@ /** * FlexBox * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxBackground.php b/src/clients/messaging-api/lib/Model/FlexBoxBackground.php index bb79b375d..1209cca08 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxBackground.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxBackground.php @@ -17,7 +17,7 @@ /** * FlexBoxBackground * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxBorderWidth.php b/src/clients/messaging-api/lib/Model/FlexBoxBorderWidth.php index a96d83c38..fa4e22c47 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxBorderWidth.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxBorderWidth.php @@ -17,7 +17,7 @@ /** * FlexBoxBorderWidth * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxCornerRadius.php b/src/clients/messaging-api/lib/Model/FlexBoxCornerRadius.php index 97a73f18f..728af6109 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxCornerRadius.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxCornerRadius.php @@ -17,7 +17,7 @@ /** * FlexBoxCornerRadius * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxLinearGradient.php b/src/clients/messaging-api/lib/Model/FlexBoxLinearGradient.php index 891597e89..6ca2c368d 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxLinearGradient.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxLinearGradient.php @@ -17,7 +17,7 @@ /** * FlexBoxLinearGradient * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxPadding.php b/src/clients/messaging-api/lib/Model/FlexBoxPadding.php index fe300179f..cf0b84336 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxPadding.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxPadding.php @@ -17,7 +17,7 @@ /** * FlexBoxPadding * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBoxSpacing.php b/src/clients/messaging-api/lib/Model/FlexBoxSpacing.php index 35909ca61..6b7a63a71 100644 --- a/src/clients/messaging-api/lib/Model/FlexBoxSpacing.php +++ b/src/clients/messaging-api/lib/Model/FlexBoxSpacing.php @@ -17,7 +17,7 @@ /** * FlexBoxSpacing * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBubble.php b/src/clients/messaging-api/lib/Model/FlexBubble.php index 5bfdf03c9..73b9ae1b4 100644 --- a/src/clients/messaging-api/lib/Model/FlexBubble.php +++ b/src/clients/messaging-api/lib/Model/FlexBubble.php @@ -17,7 +17,7 @@ /** * FlexBubble * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexBubbleStyles.php b/src/clients/messaging-api/lib/Model/FlexBubbleStyles.php index 66ad7b5e5..3945eab99 100644 --- a/src/clients/messaging-api/lib/Model/FlexBubbleStyles.php +++ b/src/clients/messaging-api/lib/Model/FlexBubbleStyles.php @@ -17,7 +17,7 @@ /** * FlexBubbleStyles * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexButton.php b/src/clients/messaging-api/lib/Model/FlexButton.php index 8d0064b51..6d7e42784 100644 --- a/src/clients/messaging-api/lib/Model/FlexButton.php +++ b/src/clients/messaging-api/lib/Model/FlexButton.php @@ -17,7 +17,7 @@ /** * FlexButton * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexCarousel.php b/src/clients/messaging-api/lib/Model/FlexCarousel.php index e4793e597..1ca4e5040 100644 --- a/src/clients/messaging-api/lib/Model/FlexCarousel.php +++ b/src/clients/messaging-api/lib/Model/FlexCarousel.php @@ -17,7 +17,7 @@ /** * FlexCarousel * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexComponent.php b/src/clients/messaging-api/lib/Model/FlexComponent.php index 1c21cf20f..bf0df27aa 100644 --- a/src/clients/messaging-api/lib/Model/FlexComponent.php +++ b/src/clients/messaging-api/lib/Model/FlexComponent.php @@ -17,7 +17,7 @@ /** * FlexComponent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexContainer.php b/src/clients/messaging-api/lib/Model/FlexContainer.php index 6fc1fbfb6..99594eb8d 100644 --- a/src/clients/messaging-api/lib/Model/FlexContainer.php +++ b/src/clients/messaging-api/lib/Model/FlexContainer.php @@ -17,7 +17,7 @@ /** * FlexContainer * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexFiller.php b/src/clients/messaging-api/lib/Model/FlexFiller.php index 5f5fda257..011dd295d 100644 --- a/src/clients/messaging-api/lib/Model/FlexFiller.php +++ b/src/clients/messaging-api/lib/Model/FlexFiller.php @@ -17,7 +17,7 @@ /** * FlexFiller * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexIcon.php b/src/clients/messaging-api/lib/Model/FlexIcon.php index 60689fd57..b4a0ed505 100644 --- a/src/clients/messaging-api/lib/Model/FlexIcon.php +++ b/src/clients/messaging-api/lib/Model/FlexIcon.php @@ -17,7 +17,7 @@ /** * FlexIcon * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexIconSize.php b/src/clients/messaging-api/lib/Model/FlexIconSize.php index 5f04e0798..b3c9210ce 100644 --- a/src/clients/messaging-api/lib/Model/FlexIconSize.php +++ b/src/clients/messaging-api/lib/Model/FlexIconSize.php @@ -17,7 +17,7 @@ /** * FlexIconSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexImage.php b/src/clients/messaging-api/lib/Model/FlexImage.php index aec4779b5..e022a4166 100644 --- a/src/clients/messaging-api/lib/Model/FlexImage.php +++ b/src/clients/messaging-api/lib/Model/FlexImage.php @@ -17,7 +17,7 @@ /** * FlexImage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexImageSize.php b/src/clients/messaging-api/lib/Model/FlexImageSize.php index a9196906f..68c7611c0 100644 --- a/src/clients/messaging-api/lib/Model/FlexImageSize.php +++ b/src/clients/messaging-api/lib/Model/FlexImageSize.php @@ -17,7 +17,7 @@ /** * FlexImageSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexMargin.php b/src/clients/messaging-api/lib/Model/FlexMargin.php index 7a60de67e..341a038a7 100644 --- a/src/clients/messaging-api/lib/Model/FlexMargin.php +++ b/src/clients/messaging-api/lib/Model/FlexMargin.php @@ -17,7 +17,7 @@ /** * FlexMargin * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexMessage.php b/src/clients/messaging-api/lib/Model/FlexMessage.php index 547ff025e..6b87c4d8d 100644 --- a/src/clients/messaging-api/lib/Model/FlexMessage.php +++ b/src/clients/messaging-api/lib/Model/FlexMessage.php @@ -17,7 +17,7 @@ /** * FlexMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexOffset.php b/src/clients/messaging-api/lib/Model/FlexOffset.php index 1fa46f4f3..fd23c2ac3 100644 --- a/src/clients/messaging-api/lib/Model/FlexOffset.php +++ b/src/clients/messaging-api/lib/Model/FlexOffset.php @@ -17,7 +17,7 @@ /** * FlexOffset * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexSeparator.php b/src/clients/messaging-api/lib/Model/FlexSeparator.php index b49fe1148..8403c9087 100644 --- a/src/clients/messaging-api/lib/Model/FlexSeparator.php +++ b/src/clients/messaging-api/lib/Model/FlexSeparator.php @@ -17,7 +17,7 @@ /** * FlexSeparator * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexSpan.php b/src/clients/messaging-api/lib/Model/FlexSpan.php index c9c095dad..d037b17f3 100644 --- a/src/clients/messaging-api/lib/Model/FlexSpan.php +++ b/src/clients/messaging-api/lib/Model/FlexSpan.php @@ -17,7 +17,7 @@ /** * FlexSpan * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexSpanSize.php b/src/clients/messaging-api/lib/Model/FlexSpanSize.php index c7b984a10..ec0473ab0 100644 --- a/src/clients/messaging-api/lib/Model/FlexSpanSize.php +++ b/src/clients/messaging-api/lib/Model/FlexSpanSize.php @@ -17,7 +17,7 @@ /** * FlexSpanSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexText.php b/src/clients/messaging-api/lib/Model/FlexText.php index 10efd10aa..4fdd34c3b 100644 --- a/src/clients/messaging-api/lib/Model/FlexText.php +++ b/src/clients/messaging-api/lib/Model/FlexText.php @@ -17,7 +17,7 @@ /** * FlexText * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexTextFontSize.php b/src/clients/messaging-api/lib/Model/FlexTextFontSize.php index 69f155199..0b4ea059c 100644 --- a/src/clients/messaging-api/lib/Model/FlexTextFontSize.php +++ b/src/clients/messaging-api/lib/Model/FlexTextFontSize.php @@ -17,7 +17,7 @@ /** * FlexTextFontSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/FlexVideo.php b/src/clients/messaging-api/lib/Model/FlexVideo.php index 448f2b2f1..9c5afa483 100644 --- a/src/clients/messaging-api/lib/Model/FlexVideo.php +++ b/src/clients/messaging-api/lib/Model/FlexVideo.php @@ -17,7 +17,7 @@ /** * FlexVideo * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GenderDemographic.php b/src/clients/messaging-api/lib/Model/GenderDemographic.php index 97a624b77..c33711152 100644 --- a/src/clients/messaging-api/lib/Model/GenderDemographic.php +++ b/src/clients/messaging-api/lib/Model/GenderDemographic.php @@ -17,7 +17,7 @@ /** * GenderDemographic * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GenderDemographicFilter.php b/src/clients/messaging-api/lib/Model/GenderDemographicFilter.php index 32449ba81..fee766148 100644 --- a/src/clients/messaging-api/lib/Model/GenderDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/GenderDemographicFilter.php @@ -17,7 +17,7 @@ /** * GenderDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetAggregationUnitNameListResponse.php b/src/clients/messaging-api/lib/Model/GetAggregationUnitNameListResponse.php index 5d5a6786d..4b1faf75c 100644 --- a/src/clients/messaging-api/lib/Model/GetAggregationUnitNameListResponse.php +++ b/src/clients/messaging-api/lib/Model/GetAggregationUnitNameListResponse.php @@ -17,7 +17,7 @@ /** * GetAggregationUnitNameListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetAggregationUnitUsageResponse.php b/src/clients/messaging-api/lib/Model/GetAggregationUnitUsageResponse.php index ae9a7f2e4..4b35a1ce0 100644 --- a/src/clients/messaging-api/lib/Model/GetAggregationUnitUsageResponse.php +++ b/src/clients/messaging-api/lib/Model/GetAggregationUnitUsageResponse.php @@ -17,7 +17,7 @@ /** * GetAggregationUnitUsageResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetFollowersResponse.php b/src/clients/messaging-api/lib/Model/GetFollowersResponse.php index d81f1aab7..2d762e7aa 100644 --- a/src/clients/messaging-api/lib/Model/GetFollowersResponse.php +++ b/src/clients/messaging-api/lib/Model/GetFollowersResponse.php @@ -17,7 +17,7 @@ /** * GetFollowersResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetJoinedMembershipUsersResponse.php b/src/clients/messaging-api/lib/Model/GetJoinedMembershipUsersResponse.php index fc603d076..2ddba9f51 100644 --- a/src/clients/messaging-api/lib/Model/GetJoinedMembershipUsersResponse.php +++ b/src/clients/messaging-api/lib/Model/GetJoinedMembershipUsersResponse.php @@ -17,7 +17,7 @@ /** * GetJoinedMembershipUsersResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetMembershipSubscriptionResponse.php b/src/clients/messaging-api/lib/Model/GetMembershipSubscriptionResponse.php index 75e4790c7..72ef873ff 100644 --- a/src/clients/messaging-api/lib/Model/GetMembershipSubscriptionResponse.php +++ b/src/clients/messaging-api/lib/Model/GetMembershipSubscriptionResponse.php @@ -17,7 +17,7 @@ /** * GetMembershipSubscriptionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetMessageContentTranscodingResponse.php b/src/clients/messaging-api/lib/Model/GetMessageContentTranscodingResponse.php index ce840a739..0d1d132bb 100644 --- a/src/clients/messaging-api/lib/Model/GetMessageContentTranscodingResponse.php +++ b/src/clients/messaging-api/lib/Model/GetMessageContentTranscodingResponse.php @@ -17,7 +17,7 @@ /** * GetMessageContentTranscodingResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GetWebhookEndpointResponse.php b/src/clients/messaging-api/lib/Model/GetWebhookEndpointResponse.php index 603ffd037..50a3e9118 100644 --- a/src/clients/messaging-api/lib/Model/GetWebhookEndpointResponse.php +++ b/src/clients/messaging-api/lib/Model/GetWebhookEndpointResponse.php @@ -17,7 +17,7 @@ /** * GetWebhookEndpointResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GroupMemberCountResponse.php b/src/clients/messaging-api/lib/Model/GroupMemberCountResponse.php index ea8ed4097..caed330b1 100644 --- a/src/clients/messaging-api/lib/Model/GroupMemberCountResponse.php +++ b/src/clients/messaging-api/lib/Model/GroupMemberCountResponse.php @@ -17,7 +17,7 @@ /** * GroupMemberCountResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GroupSummaryResponse.php b/src/clients/messaging-api/lib/Model/GroupSummaryResponse.php index 85f276eb2..be30b24b1 100644 --- a/src/clients/messaging-api/lib/Model/GroupSummaryResponse.php +++ b/src/clients/messaging-api/lib/Model/GroupSummaryResponse.php @@ -17,7 +17,7 @@ /** * GroupSummaryResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/GroupUserProfileResponse.php b/src/clients/messaging-api/lib/Model/GroupUserProfileResponse.php index 4108454cf..bdb72df97 100644 --- a/src/clients/messaging-api/lib/Model/GroupUserProfileResponse.php +++ b/src/clients/messaging-api/lib/Model/GroupUserProfileResponse.php @@ -17,7 +17,7 @@ /** * GroupUserProfileResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImageCarouselColumn.php b/src/clients/messaging-api/lib/Model/ImageCarouselColumn.php index 23f932112..752f3992a 100644 --- a/src/clients/messaging-api/lib/Model/ImageCarouselColumn.php +++ b/src/clients/messaging-api/lib/Model/ImageCarouselColumn.php @@ -17,7 +17,7 @@ /** * ImageCarouselColumn * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImageCarouselTemplate.php b/src/clients/messaging-api/lib/Model/ImageCarouselTemplate.php index 73a385a56..0205f6d5a 100644 --- a/src/clients/messaging-api/lib/Model/ImageCarouselTemplate.php +++ b/src/clients/messaging-api/lib/Model/ImageCarouselTemplate.php @@ -17,7 +17,7 @@ /** * ImageCarouselTemplate * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImageMessage.php b/src/clients/messaging-api/lib/Model/ImageMessage.php index 9128e6a0d..8d238d9c0 100644 --- a/src/clients/messaging-api/lib/Model/ImageMessage.php +++ b/src/clients/messaging-api/lib/Model/ImageMessage.php @@ -17,7 +17,7 @@ /** * ImageMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapAction.php b/src/clients/messaging-api/lib/Model/ImagemapAction.php index 4a0f7397e..91a00ebe9 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapAction.php +++ b/src/clients/messaging-api/lib/Model/ImagemapAction.php @@ -17,7 +17,7 @@ /** * ImagemapAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapArea.php b/src/clients/messaging-api/lib/Model/ImagemapArea.php index dd2d8251e..393d1ec4a 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapArea.php +++ b/src/clients/messaging-api/lib/Model/ImagemapArea.php @@ -17,7 +17,7 @@ /** * ImagemapArea * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapBaseSize.php b/src/clients/messaging-api/lib/Model/ImagemapBaseSize.php index 8e90f43b5..e8d722bed 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapBaseSize.php +++ b/src/clients/messaging-api/lib/Model/ImagemapBaseSize.php @@ -17,7 +17,7 @@ /** * ImagemapBaseSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapExternalLink.php b/src/clients/messaging-api/lib/Model/ImagemapExternalLink.php index 513d6b3be..ebeb295ba 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapExternalLink.php +++ b/src/clients/messaging-api/lib/Model/ImagemapExternalLink.php @@ -17,7 +17,7 @@ /** * ImagemapExternalLink * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapMessage.php b/src/clients/messaging-api/lib/Model/ImagemapMessage.php index 9e26cf1fb..d3280cf81 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapMessage.php +++ b/src/clients/messaging-api/lib/Model/ImagemapMessage.php @@ -17,7 +17,7 @@ /** * ImagemapMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ImagemapVideo.php b/src/clients/messaging-api/lib/Model/ImagemapVideo.php index 263a875f4..a7cdaa74c 100644 --- a/src/clients/messaging-api/lib/Model/ImagemapVideo.php +++ b/src/clients/messaging-api/lib/Model/ImagemapVideo.php @@ -17,7 +17,7 @@ /** * ImagemapVideo * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/IssueLinkTokenResponse.php b/src/clients/messaging-api/lib/Model/IssueLinkTokenResponse.php index 8bce73bb2..ed0330bb8 100644 --- a/src/clients/messaging-api/lib/Model/IssueLinkTokenResponse.php +++ b/src/clients/messaging-api/lib/Model/IssueLinkTokenResponse.php @@ -17,7 +17,7 @@ /** * IssueLinkTokenResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Limit.php b/src/clients/messaging-api/lib/Model/Limit.php index 566528767..eaed638b8 100644 --- a/src/clients/messaging-api/lib/Model/Limit.php +++ b/src/clients/messaging-api/lib/Model/Limit.php @@ -17,7 +17,7 @@ /** * Limit * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/LocationAction.php b/src/clients/messaging-api/lib/Model/LocationAction.php index 76e0cdf1b..349e5a571 100644 --- a/src/clients/messaging-api/lib/Model/LocationAction.php +++ b/src/clients/messaging-api/lib/Model/LocationAction.php @@ -17,7 +17,7 @@ /** * LocationAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/LocationMessage.php b/src/clients/messaging-api/lib/Model/LocationMessage.php index 9fb37ceb8..ede26a61e 100644 --- a/src/clients/messaging-api/lib/Model/LocationMessage.php +++ b/src/clients/messaging-api/lib/Model/LocationMessage.php @@ -17,7 +17,7 @@ /** * LocationMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionRequest.php b/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionRequest.php index 70f645a32..5ae8d0469 100644 --- a/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionRequest.php +++ b/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionRequest.php @@ -17,7 +17,7 @@ /** * LotteryAcquisitionConditionRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionResponse.php b/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionResponse.php index 27ebeb454..853dd89d9 100644 --- a/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionResponse.php +++ b/src/clients/messaging-api/lib/Model/LotteryAcquisitionConditionResponse.php @@ -17,7 +17,7 @@ /** * LotteryAcquisitionConditionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MarkMessagesAsReadByTokenRequest.php b/src/clients/messaging-api/lib/Model/MarkMessagesAsReadByTokenRequest.php index ad886d8ec..845985cbe 100644 --- a/src/clients/messaging-api/lib/Model/MarkMessagesAsReadByTokenRequest.php +++ b/src/clients/messaging-api/lib/Model/MarkMessagesAsReadByTokenRequest.php @@ -17,7 +17,7 @@ /** * MarkMessagesAsReadByTokenRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MarkMessagesAsReadRequest.php b/src/clients/messaging-api/lib/Model/MarkMessagesAsReadRequest.php index f4062d5ad..47ee5fe2d 100644 --- a/src/clients/messaging-api/lib/Model/MarkMessagesAsReadRequest.php +++ b/src/clients/messaging-api/lib/Model/MarkMessagesAsReadRequest.php @@ -17,7 +17,7 @@ /** * MarkMessagesAsReadRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MembersIdsResponse.php b/src/clients/messaging-api/lib/Model/MembersIdsResponse.php index 05ff999ba..e25075a00 100644 --- a/src/clients/messaging-api/lib/Model/MembersIdsResponse.php +++ b/src/clients/messaging-api/lib/Model/MembersIdsResponse.php @@ -17,7 +17,7 @@ /** * MembersIdsResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Membership.php b/src/clients/messaging-api/lib/Model/Membership.php index e83143f86..43f6dbcce 100644 --- a/src/clients/messaging-api/lib/Model/Membership.php +++ b/src/clients/messaging-api/lib/Model/Membership.php @@ -17,7 +17,7 @@ /** * Membership * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MembershipListResponse.php b/src/clients/messaging-api/lib/Model/MembershipListResponse.php index 4cdc33825..e61c95e8d 100644 --- a/src/clients/messaging-api/lib/Model/MembershipListResponse.php +++ b/src/clients/messaging-api/lib/Model/MembershipListResponse.php @@ -17,7 +17,7 @@ /** * MembershipListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MentionSubstitutionObject.php b/src/clients/messaging-api/lib/Model/MentionSubstitutionObject.php index 711fde372..4f726afe9 100644 --- a/src/clients/messaging-api/lib/Model/MentionSubstitutionObject.php +++ b/src/clients/messaging-api/lib/Model/MentionSubstitutionObject.php @@ -17,7 +17,7 @@ /** * MentionSubstitutionObject * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MentionTarget.php b/src/clients/messaging-api/lib/Model/MentionTarget.php index 31383769a..001f685e6 100644 --- a/src/clients/messaging-api/lib/Model/MentionTarget.php +++ b/src/clients/messaging-api/lib/Model/MentionTarget.php @@ -17,7 +17,7 @@ /** * MentionTarget * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Message.php b/src/clients/messaging-api/lib/Model/Message.php index 52ab09fb3..9e64ead34 100644 --- a/src/clients/messaging-api/lib/Model/Message.php +++ b/src/clients/messaging-api/lib/Model/Message.php @@ -17,7 +17,7 @@ /** * Message * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MessageAction.php b/src/clients/messaging-api/lib/Model/MessageAction.php index 0443760a5..d7a42eddb 100644 --- a/src/clients/messaging-api/lib/Model/MessageAction.php +++ b/src/clients/messaging-api/lib/Model/MessageAction.php @@ -17,7 +17,7 @@ /** * MessageAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MessageImagemapAction.php b/src/clients/messaging-api/lib/Model/MessageImagemapAction.php index 67d8ab788..1b86f7ab9 100644 --- a/src/clients/messaging-api/lib/Model/MessageImagemapAction.php +++ b/src/clients/messaging-api/lib/Model/MessageImagemapAction.php @@ -17,7 +17,7 @@ /** * MessageImagemapAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MessageQuotaResponse.php b/src/clients/messaging-api/lib/Model/MessageQuotaResponse.php index e8a6d7983..f6dd25a6d 100644 --- a/src/clients/messaging-api/lib/Model/MessageQuotaResponse.php +++ b/src/clients/messaging-api/lib/Model/MessageQuotaResponse.php @@ -17,7 +17,7 @@ /** * MessageQuotaResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MessagingApiPagerCouponListResponse.php b/src/clients/messaging-api/lib/Model/MessagingApiPagerCouponListResponse.php index 68004908a..b46eb52e7 100644 --- a/src/clients/messaging-api/lib/Model/MessagingApiPagerCouponListResponse.php +++ b/src/clients/messaging-api/lib/Model/MessagingApiPagerCouponListResponse.php @@ -17,7 +17,7 @@ /** * MessagingApiPagerCouponListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ModelInterface.php b/src/clients/messaging-api/lib/Model/ModelInterface.php index c3bfaa24f..040c1757a 100644 --- a/src/clients/messaging-api/lib/Model/ModelInterface.php +++ b/src/clients/messaging-api/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/MulticastRequest.php b/src/clients/messaging-api/lib/Model/MulticastRequest.php index d8fc6037c..c3160192e 100644 --- a/src/clients/messaging-api/lib/Model/MulticastRequest.php +++ b/src/clients/messaging-api/lib/Model/MulticastRequest.php @@ -17,7 +17,7 @@ /** * MulticastRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/NarrowcastProgressResponse.php b/src/clients/messaging-api/lib/Model/NarrowcastProgressResponse.php index f395d2264..261a38d0c 100644 --- a/src/clients/messaging-api/lib/Model/NarrowcastProgressResponse.php +++ b/src/clients/messaging-api/lib/Model/NarrowcastProgressResponse.php @@ -17,7 +17,7 @@ /** * NarrowcastProgressResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/NarrowcastRequest.php b/src/clients/messaging-api/lib/Model/NarrowcastRequest.php index 2348ec225..cde2a2439 100644 --- a/src/clients/messaging-api/lib/Model/NarrowcastRequest.php +++ b/src/clients/messaging-api/lib/Model/NarrowcastRequest.php @@ -17,7 +17,7 @@ /** * NarrowcastRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionRequest.php b/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionRequest.php index 0f6b09791..a04d3dbab 100644 --- a/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionRequest.php +++ b/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionRequest.php @@ -17,7 +17,7 @@ /** * NormalAcquisitionConditionRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionResponse.php b/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionResponse.php index 2b5155734..5632f0c96 100644 --- a/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionResponse.php +++ b/src/clients/messaging-api/lib/Model/NormalAcquisitionConditionResponse.php @@ -17,7 +17,7 @@ /** * NormalAcquisitionConditionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/NumberOfMessagesResponse.php b/src/clients/messaging-api/lib/Model/NumberOfMessagesResponse.php index e4413cec3..866eb22a5 100644 --- a/src/clients/messaging-api/lib/Model/NumberOfMessagesResponse.php +++ b/src/clients/messaging-api/lib/Model/NumberOfMessagesResponse.php @@ -17,7 +17,7 @@ /** * NumberOfMessagesResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/OperatorDemographicFilter.php b/src/clients/messaging-api/lib/Model/OperatorDemographicFilter.php index d23f509bc..c866a3175 100644 --- a/src/clients/messaging-api/lib/Model/OperatorDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/OperatorDemographicFilter.php @@ -17,7 +17,7 @@ /** * OperatorDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/OperatorRecipient.php b/src/clients/messaging-api/lib/Model/OperatorRecipient.php index 559f66889..75cc3fbac 100644 --- a/src/clients/messaging-api/lib/Model/OperatorRecipient.php +++ b/src/clients/messaging-api/lib/Model/OperatorRecipient.php @@ -17,7 +17,7 @@ /** * OperatorRecipient * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/PnpMessagesRequest.php b/src/clients/messaging-api/lib/Model/PnpMessagesRequest.php index 39e6ee200..043eccd5d 100644 --- a/src/clients/messaging-api/lib/Model/PnpMessagesRequest.php +++ b/src/clients/messaging-api/lib/Model/PnpMessagesRequest.php @@ -17,7 +17,7 @@ /** * PnpMessagesRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/PostbackAction.php b/src/clients/messaging-api/lib/Model/PostbackAction.php index fb3384667..e3516b3a8 100644 --- a/src/clients/messaging-api/lib/Model/PostbackAction.php +++ b/src/clients/messaging-api/lib/Model/PostbackAction.php @@ -17,7 +17,7 @@ /** * PostbackAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/PushMessageRequest.php b/src/clients/messaging-api/lib/Model/PushMessageRequest.php index 9a2e3622b..91ec3dbcf 100644 --- a/src/clients/messaging-api/lib/Model/PushMessageRequest.php +++ b/src/clients/messaging-api/lib/Model/PushMessageRequest.php @@ -17,7 +17,7 @@ /** * PushMessageRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/PushMessageResponse.php b/src/clients/messaging-api/lib/Model/PushMessageResponse.php index 122353d78..c14b1f10b 100644 --- a/src/clients/messaging-api/lib/Model/PushMessageResponse.php +++ b/src/clients/messaging-api/lib/Model/PushMessageResponse.php @@ -17,7 +17,7 @@ /** * PushMessageResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/QuickReply.php b/src/clients/messaging-api/lib/Model/QuickReply.php index 1e4f50e61..e6f9982e5 100644 --- a/src/clients/messaging-api/lib/Model/QuickReply.php +++ b/src/clients/messaging-api/lib/Model/QuickReply.php @@ -17,7 +17,7 @@ /** * QuickReply * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/QuickReplyItem.php b/src/clients/messaging-api/lib/Model/QuickReplyItem.php index f0ebb5c38..bc5e90d74 100644 --- a/src/clients/messaging-api/lib/Model/QuickReplyItem.php +++ b/src/clients/messaging-api/lib/Model/QuickReplyItem.php @@ -17,7 +17,7 @@ /** * QuickReplyItem * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/QuotaConsumptionResponse.php b/src/clients/messaging-api/lib/Model/QuotaConsumptionResponse.php index fad2e7bf5..6fd92aa7f 100644 --- a/src/clients/messaging-api/lib/Model/QuotaConsumptionResponse.php +++ b/src/clients/messaging-api/lib/Model/QuotaConsumptionResponse.php @@ -17,7 +17,7 @@ /** * QuotaConsumptionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/QuotaType.php b/src/clients/messaging-api/lib/Model/QuotaType.php index 3eeea37c8..0c097a004 100644 --- a/src/clients/messaging-api/lib/Model/QuotaType.php +++ b/src/clients/messaging-api/lib/Model/QuotaType.php @@ -17,7 +17,7 @@ /** * QuotaType * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Recipient.php b/src/clients/messaging-api/lib/Model/Recipient.php index f6d923cd4..bfc499cc6 100644 --- a/src/clients/messaging-api/lib/Model/Recipient.php +++ b/src/clients/messaging-api/lib/Model/Recipient.php @@ -17,7 +17,7 @@ /** * Recipient * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RedeliveryRecipient.php b/src/clients/messaging-api/lib/Model/RedeliveryRecipient.php index 15e398ee9..53f7e596b 100644 --- a/src/clients/messaging-api/lib/Model/RedeliveryRecipient.php +++ b/src/clients/messaging-api/lib/Model/RedeliveryRecipient.php @@ -17,7 +17,7 @@ /** * RedeliveryRecipient * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ReferralAcquisitionConditionResponse.php b/src/clients/messaging-api/lib/Model/ReferralAcquisitionConditionResponse.php index ec562fb0f..52fbd7c70 100644 --- a/src/clients/messaging-api/lib/Model/ReferralAcquisitionConditionResponse.php +++ b/src/clients/messaging-api/lib/Model/ReferralAcquisitionConditionResponse.php @@ -17,7 +17,7 @@ /** * ReferralAcquisitionConditionResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ReplyMessageRequest.php b/src/clients/messaging-api/lib/Model/ReplyMessageRequest.php index d0ae82e2e..30892197e 100644 --- a/src/clients/messaging-api/lib/Model/ReplyMessageRequest.php +++ b/src/clients/messaging-api/lib/Model/ReplyMessageRequest.php @@ -17,7 +17,7 @@ /** * ReplyMessageRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ReplyMessageResponse.php b/src/clients/messaging-api/lib/Model/ReplyMessageResponse.php index e5639751b..f0ba030dd 100644 --- a/src/clients/messaging-api/lib/Model/ReplyMessageResponse.php +++ b/src/clients/messaging-api/lib/Model/ReplyMessageResponse.php @@ -17,7 +17,7 @@ /** * ReplyMessageResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuAliasListResponse.php b/src/clients/messaging-api/lib/Model/RichMenuAliasListResponse.php index c7b5be568..ebcf7ed79 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuAliasListResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuAliasListResponse.php @@ -17,7 +17,7 @@ /** * RichMenuAliasListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuAliasResponse.php b/src/clients/messaging-api/lib/Model/RichMenuAliasResponse.php index 100b9e4f8..21a8a184f 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuAliasResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuAliasResponse.php @@ -17,7 +17,7 @@ /** * RichMenuAliasResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuArea.php b/src/clients/messaging-api/lib/Model/RichMenuArea.php index 0a2da457a..e074b1540 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuArea.php +++ b/src/clients/messaging-api/lib/Model/RichMenuArea.php @@ -17,7 +17,7 @@ /** * RichMenuArea * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchLinkOperation.php b/src/clients/messaging-api/lib/Model/RichMenuBatchLinkOperation.php index 3b4c2e609..882c85fe6 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchLinkOperation.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchLinkOperation.php @@ -17,7 +17,7 @@ /** * RichMenuBatchLinkOperation * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchOperation.php b/src/clients/messaging-api/lib/Model/RichMenuBatchOperation.php index a27aaacd0..2ce5ccb64 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchOperation.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchOperation.php @@ -17,7 +17,7 @@ /** * RichMenuBatchOperation * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchProgressPhase.php b/src/clients/messaging-api/lib/Model/RichMenuBatchProgressPhase.php index 0aee6587c..ee5ab6520 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchProgressPhase.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchProgressPhase.php @@ -17,7 +17,7 @@ /** * RichMenuBatchProgressPhase * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchProgressResponse.php b/src/clients/messaging-api/lib/Model/RichMenuBatchProgressResponse.php index bf2116272..cb25a7114 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchProgressResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchProgressResponse.php @@ -17,7 +17,7 @@ /** * RichMenuBatchProgressResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchRequest.php b/src/clients/messaging-api/lib/Model/RichMenuBatchRequest.php index 1c568a4a2..cff9596ff 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchRequest.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchRequest.php @@ -17,7 +17,7 @@ /** * RichMenuBatchRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkAllOperation.php b/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkAllOperation.php index 4499bea6f..65984fdc8 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkAllOperation.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkAllOperation.php @@ -17,7 +17,7 @@ /** * RichMenuBatchUnlinkAllOperation * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkOperation.php b/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkOperation.php index 4d2af8464..834c56798 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkOperation.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBatchUnlinkOperation.php @@ -17,7 +17,7 @@ /** * RichMenuBatchUnlinkOperation * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBounds.php b/src/clients/messaging-api/lib/Model/RichMenuBounds.php index 9fbba9810..7827f0b50 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBounds.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBounds.php @@ -17,7 +17,7 @@ /** * RichMenuBounds * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBulkLinkRequest.php b/src/clients/messaging-api/lib/Model/RichMenuBulkLinkRequest.php index dc52a6264..a138caec3 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBulkLinkRequest.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBulkLinkRequest.php @@ -17,7 +17,7 @@ /** * RichMenuBulkLinkRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuBulkUnlinkRequest.php b/src/clients/messaging-api/lib/Model/RichMenuBulkUnlinkRequest.php index 196d1fba0..941e476fb 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuBulkUnlinkRequest.php +++ b/src/clients/messaging-api/lib/Model/RichMenuBulkUnlinkRequest.php @@ -17,7 +17,7 @@ /** * RichMenuBulkUnlinkRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuIdResponse.php b/src/clients/messaging-api/lib/Model/RichMenuIdResponse.php index 58b786a55..9afdb1c05 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuIdResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuIdResponse.php @@ -17,7 +17,7 @@ /** * RichMenuIdResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuListResponse.php b/src/clients/messaging-api/lib/Model/RichMenuListResponse.php index 823cc893d..cd6f58f1a 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuListResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuListResponse.php @@ -17,7 +17,7 @@ /** * RichMenuListResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuRequest.php b/src/clients/messaging-api/lib/Model/RichMenuRequest.php index d6a08d83e..01d20aae0 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuRequest.php +++ b/src/clients/messaging-api/lib/Model/RichMenuRequest.php @@ -17,7 +17,7 @@ /** * RichMenuRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuResponse.php b/src/clients/messaging-api/lib/Model/RichMenuResponse.php index 5a765025e..4d64f9209 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuResponse.php +++ b/src/clients/messaging-api/lib/Model/RichMenuResponse.php @@ -17,7 +17,7 @@ /** * RichMenuResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuSize.php b/src/clients/messaging-api/lib/Model/RichMenuSize.php index f1d327f68..e1507c34c 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuSize.php +++ b/src/clients/messaging-api/lib/Model/RichMenuSize.php @@ -17,7 +17,7 @@ /** * RichMenuSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RichMenuSwitchAction.php b/src/clients/messaging-api/lib/Model/RichMenuSwitchAction.php index def8d5000..d4bf2c94c 100644 --- a/src/clients/messaging-api/lib/Model/RichMenuSwitchAction.php +++ b/src/clients/messaging-api/lib/Model/RichMenuSwitchAction.php @@ -17,7 +17,7 @@ /** * RichMenuSwitchAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RoomMemberCountResponse.php b/src/clients/messaging-api/lib/Model/RoomMemberCountResponse.php index 36c7940de..19724fb20 100644 --- a/src/clients/messaging-api/lib/Model/RoomMemberCountResponse.php +++ b/src/clients/messaging-api/lib/Model/RoomMemberCountResponse.php @@ -17,7 +17,7 @@ /** * RoomMemberCountResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/RoomUserProfileResponse.php b/src/clients/messaging-api/lib/Model/RoomUserProfileResponse.php index 0670f8d94..8ce450108 100644 --- a/src/clients/messaging-api/lib/Model/RoomUserProfileResponse.php +++ b/src/clients/messaging-api/lib/Model/RoomUserProfileResponse.php @@ -17,7 +17,7 @@ /** * RoomUserProfileResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Sender.php b/src/clients/messaging-api/lib/Model/Sender.php index 3e5e00418..76329d2fc 100644 --- a/src/clients/messaging-api/lib/Model/Sender.php +++ b/src/clients/messaging-api/lib/Model/Sender.php @@ -17,7 +17,7 @@ /** * Sender * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SentMessage.php b/src/clients/messaging-api/lib/Model/SentMessage.php index ce29fa1e7..c4f506ea9 100644 --- a/src/clients/messaging-api/lib/Model/SentMessage.php +++ b/src/clients/messaging-api/lib/Model/SentMessage.php @@ -17,7 +17,7 @@ /** * SentMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SetWebhookEndpointRequest.php b/src/clients/messaging-api/lib/Model/SetWebhookEndpointRequest.php index 0a50b2849..03626f7f0 100644 --- a/src/clients/messaging-api/lib/Model/SetWebhookEndpointRequest.php +++ b/src/clients/messaging-api/lib/Model/SetWebhookEndpointRequest.php @@ -17,7 +17,7 @@ /** * SetWebhookEndpointRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ShowLoadingAnimationRequest.php b/src/clients/messaging-api/lib/Model/ShowLoadingAnimationRequest.php index a580885cb..caa7efb75 100644 --- a/src/clients/messaging-api/lib/Model/ShowLoadingAnimationRequest.php +++ b/src/clients/messaging-api/lib/Model/ShowLoadingAnimationRequest.php @@ -17,7 +17,7 @@ /** * ShowLoadingAnimationRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/StickerMessage.php b/src/clients/messaging-api/lib/Model/StickerMessage.php index 372020887..701a551ac 100644 --- a/src/clients/messaging-api/lib/Model/StickerMessage.php +++ b/src/clients/messaging-api/lib/Model/StickerMessage.php @@ -17,7 +17,7 @@ /** * StickerMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SubscribedMembershipPlan.php b/src/clients/messaging-api/lib/Model/SubscribedMembershipPlan.php index d48b004e0..a514d3dc1 100644 --- a/src/clients/messaging-api/lib/Model/SubscribedMembershipPlan.php +++ b/src/clients/messaging-api/lib/Model/SubscribedMembershipPlan.php @@ -17,7 +17,7 @@ /** * SubscribedMembershipPlan * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SubscribedMembershipUser.php b/src/clients/messaging-api/lib/Model/SubscribedMembershipUser.php index c5bb10bdb..deefc9dee 100644 --- a/src/clients/messaging-api/lib/Model/SubscribedMembershipUser.php +++ b/src/clients/messaging-api/lib/Model/SubscribedMembershipUser.php @@ -17,7 +17,7 @@ /** * SubscribedMembershipUser * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Subscription.php b/src/clients/messaging-api/lib/Model/Subscription.php index 0332fb2b6..700b09962 100644 --- a/src/clients/messaging-api/lib/Model/Subscription.php +++ b/src/clients/messaging-api/lib/Model/Subscription.php @@ -17,7 +17,7 @@ /** * Subscription * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographic.php b/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographic.php index d88928fe0..a374307f2 100644 --- a/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographic.php +++ b/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographic.php @@ -17,7 +17,7 @@ /** * SubscriptionPeriodDemographic * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographicFilter.php b/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographicFilter.php index 7e43b68b8..bcc799b04 100644 --- a/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographicFilter.php +++ b/src/clients/messaging-api/lib/Model/SubscriptionPeriodDemographicFilter.php @@ -17,7 +17,7 @@ /** * SubscriptionPeriodDemographicFilter * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/SubstitutionObject.php b/src/clients/messaging-api/lib/Model/SubstitutionObject.php index 9d54d86cf..2ea6e112f 100644 --- a/src/clients/messaging-api/lib/Model/SubstitutionObject.php +++ b/src/clients/messaging-api/lib/Model/SubstitutionObject.php @@ -17,7 +17,7 @@ /** * SubstitutionObject * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/Template.php b/src/clients/messaging-api/lib/Model/Template.php index 94f3dd014..43362997e 100644 --- a/src/clients/messaging-api/lib/Model/Template.php +++ b/src/clients/messaging-api/lib/Model/Template.php @@ -17,7 +17,7 @@ /** * Template * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TemplateImageAspectRatio.php b/src/clients/messaging-api/lib/Model/TemplateImageAspectRatio.php index f702575a7..98ed88538 100644 --- a/src/clients/messaging-api/lib/Model/TemplateImageAspectRatio.php +++ b/src/clients/messaging-api/lib/Model/TemplateImageAspectRatio.php @@ -17,7 +17,7 @@ /** * TemplateImageAspectRatio * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TemplateImageSize.php b/src/clients/messaging-api/lib/Model/TemplateImageSize.php index 233ba78a0..d5bce2a60 100644 --- a/src/clients/messaging-api/lib/Model/TemplateImageSize.php +++ b/src/clients/messaging-api/lib/Model/TemplateImageSize.php @@ -17,7 +17,7 @@ /** * TemplateImageSize * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TemplateMessage.php b/src/clients/messaging-api/lib/Model/TemplateMessage.php index 4469e6d34..b5d63c1be 100644 --- a/src/clients/messaging-api/lib/Model/TemplateMessage.php +++ b/src/clients/messaging-api/lib/Model/TemplateMessage.php @@ -17,7 +17,7 @@ /** * TemplateMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TestWebhookEndpointRequest.php b/src/clients/messaging-api/lib/Model/TestWebhookEndpointRequest.php index 206992b71..d93853043 100644 --- a/src/clients/messaging-api/lib/Model/TestWebhookEndpointRequest.php +++ b/src/clients/messaging-api/lib/Model/TestWebhookEndpointRequest.php @@ -17,7 +17,7 @@ /** * TestWebhookEndpointRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TestWebhookEndpointResponse.php b/src/clients/messaging-api/lib/Model/TestWebhookEndpointResponse.php index bbcfa7027..b282f5db1 100644 --- a/src/clients/messaging-api/lib/Model/TestWebhookEndpointResponse.php +++ b/src/clients/messaging-api/lib/Model/TestWebhookEndpointResponse.php @@ -17,7 +17,7 @@ /** * TestWebhookEndpointResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TextMessage.php b/src/clients/messaging-api/lib/Model/TextMessage.php index fc80c21ef..9717db11c 100644 --- a/src/clients/messaging-api/lib/Model/TextMessage.php +++ b/src/clients/messaging-api/lib/Model/TextMessage.php @@ -17,7 +17,7 @@ /** * TextMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/TextMessageV2.php b/src/clients/messaging-api/lib/Model/TextMessageV2.php index aa10bd640..91893e89a 100644 --- a/src/clients/messaging-api/lib/Model/TextMessageV2.php +++ b/src/clients/messaging-api/lib/Model/TextMessageV2.php @@ -17,7 +17,7 @@ /** * TextMessageV2 * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/URIAction.php b/src/clients/messaging-api/lib/Model/URIAction.php index 89bd2d963..af85a0013 100644 --- a/src/clients/messaging-api/lib/Model/URIAction.php +++ b/src/clients/messaging-api/lib/Model/URIAction.php @@ -17,7 +17,7 @@ /** * URIAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/URIImagemapAction.php b/src/clients/messaging-api/lib/Model/URIImagemapAction.php index c778852d2..c18298029 100644 --- a/src/clients/messaging-api/lib/Model/URIImagemapAction.php +++ b/src/clients/messaging-api/lib/Model/URIImagemapAction.php @@ -17,7 +17,7 @@ /** * URIImagemapAction * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/UpdateRichMenuAliasRequest.php b/src/clients/messaging-api/lib/Model/UpdateRichMenuAliasRequest.php index 23bca5a91..6159a4004 100644 --- a/src/clients/messaging-api/lib/Model/UpdateRichMenuAliasRequest.php +++ b/src/clients/messaging-api/lib/Model/UpdateRichMenuAliasRequest.php @@ -17,7 +17,7 @@ /** * UpdateRichMenuAliasRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/UserMentionTarget.php b/src/clients/messaging-api/lib/Model/UserMentionTarget.php index 1d31d9c08..08865481d 100644 --- a/src/clients/messaging-api/lib/Model/UserMentionTarget.php +++ b/src/clients/messaging-api/lib/Model/UserMentionTarget.php @@ -17,7 +17,7 @@ /** * UserMentionTarget * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/UserProfileResponse.php b/src/clients/messaging-api/lib/Model/UserProfileResponse.php index 32e7e03d4..ed6b6a9f1 100644 --- a/src/clients/messaging-api/lib/Model/UserProfileResponse.php +++ b/src/clients/messaging-api/lib/Model/UserProfileResponse.php @@ -17,7 +17,7 @@ /** * UserProfileResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/ValidateMessageRequest.php b/src/clients/messaging-api/lib/Model/ValidateMessageRequest.php index 96b15da13..f2ad1cc8e 100644 --- a/src/clients/messaging-api/lib/Model/ValidateMessageRequest.php +++ b/src/clients/messaging-api/lib/Model/ValidateMessageRequest.php @@ -17,7 +17,7 @@ /** * ValidateMessageRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/Model/VideoMessage.php b/src/clients/messaging-api/lib/Model/VideoMessage.php index 4ea3bbe0f..e8bd0e587 100644 --- a/src/clients/messaging-api/lib/Model/VideoMessage.php +++ b/src/clients/messaging-api/lib/Model/VideoMessage.php @@ -17,7 +17,7 @@ /** * VideoMessage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Clients\MessagingApi @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/clients/messaging-api/lib/ObjectSerializer.php b/src/clients/messaging-api/lib/ObjectSerializer.php index 51b4df2d6..4ff6193d9 100644 --- a/src/clients/messaging-api/lib/ObjectSerializer.php +++ b/src/clients/messaging-api/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 0.0.1 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/webhook/lib/Api/DummyApi.php b/src/webhook/lib/Api/DummyApi.php index 1c6488e95..58c113626 100644 --- a/src/webhook/lib/Api/DummyApi.php +++ b/src/webhook/lib/Api/DummyApi.php @@ -16,7 +16,7 @@ */ /** * DummyApi - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -49,8 +49,11 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use LINE\Webhook\ApiException; use LINE\Webhook\Configuration; +use LINE\Webhook\FormDataProcessor; use LINE\Webhook\HeaderSelector; use LINE\Webhook\ObjectSerializer; @@ -192,34 +195,15 @@ public function callbackWithHttpInfo($callbackRequest, string $contentType = sel switch($statusCode) { case 200: - if ('string' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('string' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, 'string', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + 'string', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -233,34 +217,11 @@ public function callbackWithHttpInfo($callbackRequest, string $contentType = sel ); } - $returnType = 'string'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + 'string', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -270,8 +231,10 @@ public function callbackWithHttpInfo($callbackRequest, string $contentType = sel $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -452,6 +415,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/src/webhook/lib/ApiException.php b/src/webhook/lib/ApiException.php index a5949cbe5..c6432d3ba 100644 --- a/src/webhook/lib/ApiException.php +++ b/src/webhook/lib/ApiException.php @@ -16,7 +16,7 @@ */ /** * ApiException - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Configuration.php b/src/webhook/lib/Configuration.php index 78e574be3..d7451ce82 100644 --- a/src/webhook/lib/Configuration.php +++ b/src/webhook/lib/Configuration.php @@ -16,7 +16,7 @@ */ /** * Configuration - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** @@ -44,7 +44,7 @@ /** * Configuration Class Doc Comment - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -138,6 +138,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -411,6 +425,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/src/webhook/lib/FormDataProcessor.php b/src/webhook/lib/FormDataProcessor.php new file mode 100644 index 000000000..35b0fceec --- /dev/null +++ b/src/webhook/lib/FormDataProcessor.php @@ -0,0 +1,261 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/src/webhook/lib/HeaderSelector.php b/src/webhook/lib/HeaderSelector.php index c11b99b9b..a789ae300 100644 --- a/src/webhook/lib/HeaderSelector.php +++ b/src/webhook/lib/HeaderSelector.php @@ -16,7 +16,7 @@ */ /** * HeaderSelector - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/AccountLinkEvent.php b/src/webhook/lib/Model/AccountLinkEvent.php index 452d30fc7..9410f38cb 100644 --- a/src/webhook/lib/Model/AccountLinkEvent.php +++ b/src/webhook/lib/Model/AccountLinkEvent.php @@ -17,7 +17,7 @@ /** * AccountLinkEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ActivatedEvent.php b/src/webhook/lib/Model/ActivatedEvent.php index 0127a522b..9765eba0e 100644 --- a/src/webhook/lib/Model/ActivatedEvent.php +++ b/src/webhook/lib/Model/ActivatedEvent.php @@ -17,7 +17,7 @@ /** * ActivatedEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/AllMentionee.php b/src/webhook/lib/Model/AllMentionee.php index 137059b06..41f8f67ca 100644 --- a/src/webhook/lib/Model/AllMentionee.php +++ b/src/webhook/lib/Model/AllMentionee.php @@ -17,7 +17,7 @@ /** * AllMentionee * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/AttachedModuleContent.php b/src/webhook/lib/Model/AttachedModuleContent.php index 8a291eca3..8b2801c1d 100644 --- a/src/webhook/lib/Model/AttachedModuleContent.php +++ b/src/webhook/lib/Model/AttachedModuleContent.php @@ -17,7 +17,7 @@ /** * AttachedModuleContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/AudioMessageContent.php b/src/webhook/lib/Model/AudioMessageContent.php index 9dcbcc800..aba931173 100644 --- a/src/webhook/lib/Model/AudioMessageContent.php +++ b/src/webhook/lib/Model/AudioMessageContent.php @@ -17,7 +17,7 @@ /** * AudioMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/BeaconContent.php b/src/webhook/lib/Model/BeaconContent.php index d7d724a05..dffbe7887 100644 --- a/src/webhook/lib/Model/BeaconContent.php +++ b/src/webhook/lib/Model/BeaconContent.php @@ -17,7 +17,7 @@ /** * BeaconContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/BeaconEvent.php b/src/webhook/lib/Model/BeaconEvent.php index 3a8249bde..be550d6fe 100644 --- a/src/webhook/lib/Model/BeaconEvent.php +++ b/src/webhook/lib/Model/BeaconEvent.php @@ -17,7 +17,7 @@ /** * BeaconEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/BotResumedEvent.php b/src/webhook/lib/Model/BotResumedEvent.php index a3c268af6..23c308296 100644 --- a/src/webhook/lib/Model/BotResumedEvent.php +++ b/src/webhook/lib/Model/BotResumedEvent.php @@ -17,7 +17,7 @@ /** * BotResumedEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/BotSuspendedEvent.php b/src/webhook/lib/Model/BotSuspendedEvent.php index af7f6a342..28789cce4 100644 --- a/src/webhook/lib/Model/BotSuspendedEvent.php +++ b/src/webhook/lib/Model/BotSuspendedEvent.php @@ -17,7 +17,7 @@ /** * BotSuspendedEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/CallbackRequest.php b/src/webhook/lib/Model/CallbackRequest.php index 44bc47e28..915f9a034 100644 --- a/src/webhook/lib/Model/CallbackRequest.php +++ b/src/webhook/lib/Model/CallbackRequest.php @@ -17,7 +17,7 @@ /** * CallbackRequest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ChatControl.php b/src/webhook/lib/Model/ChatControl.php index e7c6e1890..d5c3bae3f 100644 --- a/src/webhook/lib/Model/ChatControl.php +++ b/src/webhook/lib/Model/ChatControl.php @@ -17,7 +17,7 @@ /** * ChatControl * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ContentProvider.php b/src/webhook/lib/Model/ContentProvider.php index 76e6a9624..b787cd07e 100644 --- a/src/webhook/lib/Model/ContentProvider.php +++ b/src/webhook/lib/Model/ContentProvider.php @@ -17,7 +17,7 @@ /** * ContentProvider * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/DeactivatedEvent.php b/src/webhook/lib/Model/DeactivatedEvent.php index 897d29df7..a347e0f8c 100644 --- a/src/webhook/lib/Model/DeactivatedEvent.php +++ b/src/webhook/lib/Model/DeactivatedEvent.php @@ -17,7 +17,7 @@ /** * DeactivatedEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/DeliveryContext.php b/src/webhook/lib/Model/DeliveryContext.php index e28962b9a..3c4b7e5d6 100644 --- a/src/webhook/lib/Model/DeliveryContext.php +++ b/src/webhook/lib/Model/DeliveryContext.php @@ -17,7 +17,7 @@ /** * DeliveryContext * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/DetachedModuleContent.php b/src/webhook/lib/Model/DetachedModuleContent.php index 783158397..926687b38 100644 --- a/src/webhook/lib/Model/DetachedModuleContent.php +++ b/src/webhook/lib/Model/DetachedModuleContent.php @@ -17,7 +17,7 @@ /** * DetachedModuleContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/Emoji.php b/src/webhook/lib/Model/Emoji.php index dc750a7da..a3b518bd3 100644 --- a/src/webhook/lib/Model/Emoji.php +++ b/src/webhook/lib/Model/Emoji.php @@ -17,7 +17,7 @@ /** * Emoji * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/Event.php b/src/webhook/lib/Model/Event.php index 2c23f5cc1..b919f8db9 100644 --- a/src/webhook/lib/Model/Event.php +++ b/src/webhook/lib/Model/Event.php @@ -17,7 +17,7 @@ /** * Event * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/EventMode.php b/src/webhook/lib/Model/EventMode.php index ee756e0c5..03a7f1d01 100644 --- a/src/webhook/lib/Model/EventMode.php +++ b/src/webhook/lib/Model/EventMode.php @@ -17,7 +17,7 @@ /** * EventMode * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/FileMessageContent.php b/src/webhook/lib/Model/FileMessageContent.php index d0b89bdb4..7f5b0980c 100644 --- a/src/webhook/lib/Model/FileMessageContent.php +++ b/src/webhook/lib/Model/FileMessageContent.php @@ -17,7 +17,7 @@ /** * FileMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/FollowDetail.php b/src/webhook/lib/Model/FollowDetail.php index 97dfa9578..2e4d91060 100644 --- a/src/webhook/lib/Model/FollowDetail.php +++ b/src/webhook/lib/Model/FollowDetail.php @@ -17,7 +17,7 @@ /** * FollowDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/FollowEvent.php b/src/webhook/lib/Model/FollowEvent.php index 5a7c198b0..0a33fa823 100644 --- a/src/webhook/lib/Model/FollowEvent.php +++ b/src/webhook/lib/Model/FollowEvent.php @@ -17,7 +17,7 @@ /** * FollowEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/GroupSource.php b/src/webhook/lib/Model/GroupSource.php index 025b9f1e1..083677273 100644 --- a/src/webhook/lib/Model/GroupSource.php +++ b/src/webhook/lib/Model/GroupSource.php @@ -17,7 +17,7 @@ /** * GroupSource * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ImageMessageContent.php b/src/webhook/lib/Model/ImageMessageContent.php index f7e97bdb0..bcc7fd233 100644 --- a/src/webhook/lib/Model/ImageMessageContent.php +++ b/src/webhook/lib/Model/ImageMessageContent.php @@ -17,7 +17,7 @@ /** * ImageMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ImageSet.php b/src/webhook/lib/Model/ImageSet.php index 94c94567d..bed4d5c50 100644 --- a/src/webhook/lib/Model/ImageSet.php +++ b/src/webhook/lib/Model/ImageSet.php @@ -17,7 +17,7 @@ /** * ImageSet * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/JoinEvent.php b/src/webhook/lib/Model/JoinEvent.php index c28345b3a..b833e916b 100644 --- a/src/webhook/lib/Model/JoinEvent.php +++ b/src/webhook/lib/Model/JoinEvent.php @@ -17,7 +17,7 @@ /** * JoinEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/JoinedMembers.php b/src/webhook/lib/Model/JoinedMembers.php index 268ee4bc4..f14192f37 100644 --- a/src/webhook/lib/Model/JoinedMembers.php +++ b/src/webhook/lib/Model/JoinedMembers.php @@ -17,7 +17,7 @@ /** * JoinedMembers * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/JoinedMembershipContent.php b/src/webhook/lib/Model/JoinedMembershipContent.php index 61ad269b8..42381460e 100644 --- a/src/webhook/lib/Model/JoinedMembershipContent.php +++ b/src/webhook/lib/Model/JoinedMembershipContent.php @@ -17,7 +17,7 @@ /** * JoinedMembershipContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/LeaveEvent.php b/src/webhook/lib/Model/LeaveEvent.php index d6049b4bf..f8f04b23f 100644 --- a/src/webhook/lib/Model/LeaveEvent.php +++ b/src/webhook/lib/Model/LeaveEvent.php @@ -17,7 +17,7 @@ /** * LeaveEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/LeftMembers.php b/src/webhook/lib/Model/LeftMembers.php index 8182168db..d1db4511c 100644 --- a/src/webhook/lib/Model/LeftMembers.php +++ b/src/webhook/lib/Model/LeftMembers.php @@ -17,7 +17,7 @@ /** * LeftMembers * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/LeftMembershipContent.php b/src/webhook/lib/Model/LeftMembershipContent.php index 7d0db4232..cf3fcbfad 100644 --- a/src/webhook/lib/Model/LeftMembershipContent.php +++ b/src/webhook/lib/Model/LeftMembershipContent.php @@ -17,7 +17,7 @@ /** * LeftMembershipContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/LinkContent.php b/src/webhook/lib/Model/LinkContent.php index 3f3146abe..d25a3f564 100644 --- a/src/webhook/lib/Model/LinkContent.php +++ b/src/webhook/lib/Model/LinkContent.php @@ -17,7 +17,7 @@ /** * LinkContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/LocationMessageContent.php b/src/webhook/lib/Model/LocationMessageContent.php index ac221edc8..231a5f0e0 100644 --- a/src/webhook/lib/Model/LocationMessageContent.php +++ b/src/webhook/lib/Model/LocationMessageContent.php @@ -17,7 +17,7 @@ /** * LocationMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MemberJoinedEvent.php b/src/webhook/lib/Model/MemberJoinedEvent.php index 84877551c..c6255567c 100644 --- a/src/webhook/lib/Model/MemberJoinedEvent.php +++ b/src/webhook/lib/Model/MemberJoinedEvent.php @@ -17,7 +17,7 @@ /** * MemberJoinedEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MemberLeftEvent.php b/src/webhook/lib/Model/MemberLeftEvent.php index 5634f732c..d81b60a87 100644 --- a/src/webhook/lib/Model/MemberLeftEvent.php +++ b/src/webhook/lib/Model/MemberLeftEvent.php @@ -17,7 +17,7 @@ /** * MemberLeftEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MembershipContent.php b/src/webhook/lib/Model/MembershipContent.php index 5a1b7646b..b39076c83 100644 --- a/src/webhook/lib/Model/MembershipContent.php +++ b/src/webhook/lib/Model/MembershipContent.php @@ -17,7 +17,7 @@ /** * MembershipContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MembershipEvent.php b/src/webhook/lib/Model/MembershipEvent.php index 38f7d2c2e..9121ffe79 100644 --- a/src/webhook/lib/Model/MembershipEvent.php +++ b/src/webhook/lib/Model/MembershipEvent.php @@ -17,7 +17,7 @@ /** * MembershipEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/Mention.php b/src/webhook/lib/Model/Mention.php index 922bedf8d..d647c9c30 100644 --- a/src/webhook/lib/Model/Mention.php +++ b/src/webhook/lib/Model/Mention.php @@ -17,7 +17,7 @@ /** * Mention * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/Mentionee.php b/src/webhook/lib/Model/Mentionee.php index 2d57fd722..7d48f4745 100644 --- a/src/webhook/lib/Model/Mentionee.php +++ b/src/webhook/lib/Model/Mentionee.php @@ -17,7 +17,7 @@ /** * Mentionee * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MessageContent.php b/src/webhook/lib/Model/MessageContent.php index 2e6f411ef..8c2659622 100644 --- a/src/webhook/lib/Model/MessageContent.php +++ b/src/webhook/lib/Model/MessageContent.php @@ -17,7 +17,7 @@ /** * MessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/MessageEvent.php b/src/webhook/lib/Model/MessageEvent.php index b666db6c1..63455ec06 100644 --- a/src/webhook/lib/Model/MessageEvent.php +++ b/src/webhook/lib/Model/MessageEvent.php @@ -17,7 +17,7 @@ /** * MessageEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ModelInterface.php b/src/webhook/lib/Model/ModelInterface.php index 2662c3d63..186e0b5db 100644 --- a/src/webhook/lib/Model/ModelInterface.php +++ b/src/webhook/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook\Model @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ModuleContent.php b/src/webhook/lib/Model/ModuleContent.php index 428c0580a..9d9c7ff47 100644 --- a/src/webhook/lib/Model/ModuleContent.php +++ b/src/webhook/lib/Model/ModuleContent.php @@ -17,7 +17,7 @@ /** * ModuleContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/ModuleEvent.php b/src/webhook/lib/Model/ModuleEvent.php index 9acc474ab..d5264cf97 100644 --- a/src/webhook/lib/Model/ModuleEvent.php +++ b/src/webhook/lib/Model/ModuleEvent.php @@ -17,7 +17,7 @@ /** * ModuleEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/PnpDelivery.php b/src/webhook/lib/Model/PnpDelivery.php index 21f69b597..691f1eaaa 100644 --- a/src/webhook/lib/Model/PnpDelivery.php +++ b/src/webhook/lib/Model/PnpDelivery.php @@ -17,7 +17,7 @@ /** * PnpDelivery * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/PnpDeliveryCompletionEvent.php b/src/webhook/lib/Model/PnpDeliveryCompletionEvent.php index 10db402b4..cbeec621c 100644 --- a/src/webhook/lib/Model/PnpDeliveryCompletionEvent.php +++ b/src/webhook/lib/Model/PnpDeliveryCompletionEvent.php @@ -17,7 +17,7 @@ /** * PnpDeliveryCompletionEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/PostbackContent.php b/src/webhook/lib/Model/PostbackContent.php index 80881a5f8..b6ffade41 100644 --- a/src/webhook/lib/Model/PostbackContent.php +++ b/src/webhook/lib/Model/PostbackContent.php @@ -17,7 +17,7 @@ /** * PostbackContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/PostbackEvent.php b/src/webhook/lib/Model/PostbackEvent.php index e1a1ab39f..90df756d4 100644 --- a/src/webhook/lib/Model/PostbackEvent.php +++ b/src/webhook/lib/Model/PostbackEvent.php @@ -17,7 +17,7 @@ /** * PostbackEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/RenewedMembershipContent.php b/src/webhook/lib/Model/RenewedMembershipContent.php index 1b8e28c3b..9bbcfea02 100644 --- a/src/webhook/lib/Model/RenewedMembershipContent.php +++ b/src/webhook/lib/Model/RenewedMembershipContent.php @@ -17,7 +17,7 @@ /** * RenewedMembershipContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/RoomSource.php b/src/webhook/lib/Model/RoomSource.php index b320882f5..04ab9e78a 100644 --- a/src/webhook/lib/Model/RoomSource.php +++ b/src/webhook/lib/Model/RoomSource.php @@ -17,7 +17,7 @@ /** * RoomSource * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/Source.php b/src/webhook/lib/Model/Source.php index 72ea9e86b..8bb488e9b 100644 --- a/src/webhook/lib/Model/Source.php +++ b/src/webhook/lib/Model/Source.php @@ -17,7 +17,7 @@ /** * Source * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/StickerMessageContent.php b/src/webhook/lib/Model/StickerMessageContent.php index bbcaf112f..26f82da3d 100644 --- a/src/webhook/lib/Model/StickerMessageContent.php +++ b/src/webhook/lib/Model/StickerMessageContent.php @@ -17,7 +17,7 @@ /** * StickerMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/TextMessageContent.php b/src/webhook/lib/Model/TextMessageContent.php index 9c3296dd3..0949a98ea 100644 --- a/src/webhook/lib/Model/TextMessageContent.php +++ b/src/webhook/lib/Model/TextMessageContent.php @@ -17,7 +17,7 @@ /** * TextMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/UnfollowEvent.php b/src/webhook/lib/Model/UnfollowEvent.php index 8da8b5d98..f7edda468 100644 --- a/src/webhook/lib/Model/UnfollowEvent.php +++ b/src/webhook/lib/Model/UnfollowEvent.php @@ -17,7 +17,7 @@ /** * UnfollowEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/UnsendDetail.php b/src/webhook/lib/Model/UnsendDetail.php index 2eaba78f3..85d3d96e9 100644 --- a/src/webhook/lib/Model/UnsendDetail.php +++ b/src/webhook/lib/Model/UnsendDetail.php @@ -17,7 +17,7 @@ /** * UnsendDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/UnsendEvent.php b/src/webhook/lib/Model/UnsendEvent.php index 29ca7eb95..7892ae047 100644 --- a/src/webhook/lib/Model/UnsendEvent.php +++ b/src/webhook/lib/Model/UnsendEvent.php @@ -17,7 +17,7 @@ /** * UnsendEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/UserMentionee.php b/src/webhook/lib/Model/UserMentionee.php index b514c613b..242e3ed9d 100644 --- a/src/webhook/lib/Model/UserMentionee.php +++ b/src/webhook/lib/Model/UserMentionee.php @@ -17,7 +17,7 @@ /** * UserMentionee * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/UserSource.php b/src/webhook/lib/Model/UserSource.php index de1752b78..f119b60a9 100644 --- a/src/webhook/lib/Model/UserSource.php +++ b/src/webhook/lib/Model/UserSource.php @@ -17,7 +17,7 @@ /** * UserSource * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/VideoMessageContent.php b/src/webhook/lib/Model/VideoMessageContent.php index 5c0d6f7ce..786f74a22 100644 --- a/src/webhook/lib/Model/VideoMessageContent.php +++ b/src/webhook/lib/Model/VideoMessageContent.php @@ -17,7 +17,7 @@ /** * VideoMessageContent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/VideoPlayComplete.php b/src/webhook/lib/Model/VideoPlayComplete.php index 95a05dff2..b1e9f5427 100644 --- a/src/webhook/lib/Model/VideoPlayComplete.php +++ b/src/webhook/lib/Model/VideoPlayComplete.php @@ -17,7 +17,7 @@ /** * VideoPlayComplete * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/Model/VideoPlayCompleteEvent.php b/src/webhook/lib/Model/VideoPlayCompleteEvent.php index ab003f0e2..a62be5441 100644 --- a/src/webhook/lib/Model/VideoPlayCompleteEvent.php +++ b/src/webhook/lib/Model/VideoPlayCompleteEvent.php @@ -17,7 +17,7 @@ /** * VideoPlayCompleteEvent * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/lib/ObjectSerializer.php b/src/webhook/lib/ObjectSerializer.php index 462b4c32a..c6e54b2b2 100644 --- a/src/webhook/lib/ObjectSerializer.php +++ b/src/webhook/lib/ObjectSerializer.php @@ -32,9 +32,8 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/webhook/test/Api/DummyApiTest.php b/src/webhook/test/Api/DummyApiTest.php index da7d72b5b..f1b2db2a6 100644 --- a/src/webhook/test/Api/DummyApiTest.php +++ b/src/webhook/test/Api/DummyApiTest.php @@ -16,7 +16,7 @@ */ /** * DummyApiTest - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -31,7 +31,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/AccountLinkEventTest.php b/src/webhook/test/Model/AccountLinkEventTest.php index 7c2f5686c..fbfd7a6ed 100644 --- a/src/webhook/test/Model/AccountLinkEventTest.php +++ b/src/webhook/test/Model/AccountLinkEventTest.php @@ -17,7 +17,7 @@ /** * AccountLinkEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ActivatedEventTest.php b/src/webhook/test/Model/ActivatedEventTest.php index fd1891aee..bcaac5f34 100644 --- a/src/webhook/test/Model/ActivatedEventTest.php +++ b/src/webhook/test/Model/ActivatedEventTest.php @@ -17,7 +17,7 @@ /** * ActivatedEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/AllMentioneeTest.php b/src/webhook/test/Model/AllMentioneeTest.php index 6de9d90bf..d510eaead 100644 --- a/src/webhook/test/Model/AllMentioneeTest.php +++ b/src/webhook/test/Model/AllMentioneeTest.php @@ -17,7 +17,7 @@ /** * AllMentioneeTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/AttachedModuleContentTest.php b/src/webhook/test/Model/AttachedModuleContentTest.php index 00d38f6eb..9bbfba49b 100644 --- a/src/webhook/test/Model/AttachedModuleContentTest.php +++ b/src/webhook/test/Model/AttachedModuleContentTest.php @@ -17,7 +17,7 @@ /** * AttachedModuleContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/AudioMessageContentTest.php b/src/webhook/test/Model/AudioMessageContentTest.php index 769a29b30..d25b0efc8 100644 --- a/src/webhook/test/Model/AudioMessageContentTest.php +++ b/src/webhook/test/Model/AudioMessageContentTest.php @@ -17,7 +17,7 @@ /** * AudioMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/BeaconContentTest.php b/src/webhook/test/Model/BeaconContentTest.php index 38754343f..61a544c16 100644 --- a/src/webhook/test/Model/BeaconContentTest.php +++ b/src/webhook/test/Model/BeaconContentTest.php @@ -17,7 +17,7 @@ /** * BeaconContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/BeaconEventTest.php b/src/webhook/test/Model/BeaconEventTest.php index c9d2cf04d..5bf3026fc 100644 --- a/src/webhook/test/Model/BeaconEventTest.php +++ b/src/webhook/test/Model/BeaconEventTest.php @@ -17,7 +17,7 @@ /** * BeaconEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/BotResumedEventTest.php b/src/webhook/test/Model/BotResumedEventTest.php index f2e4317b0..5da58c3b7 100644 --- a/src/webhook/test/Model/BotResumedEventTest.php +++ b/src/webhook/test/Model/BotResumedEventTest.php @@ -17,7 +17,7 @@ /** * BotResumedEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/BotSuspendedEventTest.php b/src/webhook/test/Model/BotSuspendedEventTest.php index 62bab7151..ce981525d 100644 --- a/src/webhook/test/Model/BotSuspendedEventTest.php +++ b/src/webhook/test/Model/BotSuspendedEventTest.php @@ -17,7 +17,7 @@ /** * BotSuspendedEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/CallbackRequestTest.php b/src/webhook/test/Model/CallbackRequestTest.php index b6f4b776f..03e877b76 100644 --- a/src/webhook/test/Model/CallbackRequestTest.php +++ b/src/webhook/test/Model/CallbackRequestTest.php @@ -17,7 +17,7 @@ /** * CallbackRequestTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ChatControlTest.php b/src/webhook/test/Model/ChatControlTest.php index 4aea45d48..7f2f3dbca 100644 --- a/src/webhook/test/Model/ChatControlTest.php +++ b/src/webhook/test/Model/ChatControlTest.php @@ -17,7 +17,7 @@ /** * ChatControlTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ContentProviderTest.php b/src/webhook/test/Model/ContentProviderTest.php index 090ae0a0f..83cb6379f 100644 --- a/src/webhook/test/Model/ContentProviderTest.php +++ b/src/webhook/test/Model/ContentProviderTest.php @@ -17,7 +17,7 @@ /** * ContentProviderTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/DeactivatedEventTest.php b/src/webhook/test/Model/DeactivatedEventTest.php index 549cf378a..63f00828d 100644 --- a/src/webhook/test/Model/DeactivatedEventTest.php +++ b/src/webhook/test/Model/DeactivatedEventTest.php @@ -17,7 +17,7 @@ /** * DeactivatedEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/DeliveryContextTest.php b/src/webhook/test/Model/DeliveryContextTest.php index 8bfec599d..df565f75d 100644 --- a/src/webhook/test/Model/DeliveryContextTest.php +++ b/src/webhook/test/Model/DeliveryContextTest.php @@ -17,7 +17,7 @@ /** * DeliveryContextTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/DetachedModuleContentTest.php b/src/webhook/test/Model/DetachedModuleContentTest.php index 87c3d38bf..7a7cb730c 100644 --- a/src/webhook/test/Model/DetachedModuleContentTest.php +++ b/src/webhook/test/Model/DetachedModuleContentTest.php @@ -17,7 +17,7 @@ /** * DetachedModuleContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/EmojiTest.php b/src/webhook/test/Model/EmojiTest.php index a66ec8303..f489cfa04 100644 --- a/src/webhook/test/Model/EmojiTest.php +++ b/src/webhook/test/Model/EmojiTest.php @@ -17,7 +17,7 @@ /** * EmojiTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/EventModeTest.php b/src/webhook/test/Model/EventModeTest.php index ea1263d83..cd5f95c0e 100644 --- a/src/webhook/test/Model/EventModeTest.php +++ b/src/webhook/test/Model/EventModeTest.php @@ -17,7 +17,7 @@ /** * EventModeTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/EventTest.php b/src/webhook/test/Model/EventTest.php index 0af79c03b..cd1597c11 100644 --- a/src/webhook/test/Model/EventTest.php +++ b/src/webhook/test/Model/EventTest.php @@ -17,7 +17,7 @@ /** * EventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/FileMessageContentTest.php b/src/webhook/test/Model/FileMessageContentTest.php index 4aa1a5115..ca2a2e7cb 100644 --- a/src/webhook/test/Model/FileMessageContentTest.php +++ b/src/webhook/test/Model/FileMessageContentTest.php @@ -17,7 +17,7 @@ /** * FileMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/FollowDetailTest.php b/src/webhook/test/Model/FollowDetailTest.php index 5f6a7d924..3a51d5319 100644 --- a/src/webhook/test/Model/FollowDetailTest.php +++ b/src/webhook/test/Model/FollowDetailTest.php @@ -17,7 +17,7 @@ /** * FollowDetailTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/FollowEventTest.php b/src/webhook/test/Model/FollowEventTest.php index 5c0b1ed7b..bc790abb4 100644 --- a/src/webhook/test/Model/FollowEventTest.php +++ b/src/webhook/test/Model/FollowEventTest.php @@ -17,7 +17,7 @@ /** * FollowEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/GroupSourceTest.php b/src/webhook/test/Model/GroupSourceTest.php index d438f6cad..0fe698676 100644 --- a/src/webhook/test/Model/GroupSourceTest.php +++ b/src/webhook/test/Model/GroupSourceTest.php @@ -17,7 +17,7 @@ /** * GroupSourceTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ImageMessageContentTest.php b/src/webhook/test/Model/ImageMessageContentTest.php index 5621250e4..5cb450e80 100644 --- a/src/webhook/test/Model/ImageMessageContentTest.php +++ b/src/webhook/test/Model/ImageMessageContentTest.php @@ -17,7 +17,7 @@ /** * ImageMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ImageSetTest.php b/src/webhook/test/Model/ImageSetTest.php index 253dbc6c7..2bfc809a6 100644 --- a/src/webhook/test/Model/ImageSetTest.php +++ b/src/webhook/test/Model/ImageSetTest.php @@ -17,7 +17,7 @@ /** * ImageSetTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/JoinEventTest.php b/src/webhook/test/Model/JoinEventTest.php index bd9ef8b48..8678da788 100644 --- a/src/webhook/test/Model/JoinEventTest.php +++ b/src/webhook/test/Model/JoinEventTest.php @@ -17,7 +17,7 @@ /** * JoinEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/JoinedMembersTest.php b/src/webhook/test/Model/JoinedMembersTest.php index 5b5ab271d..16044edd9 100644 --- a/src/webhook/test/Model/JoinedMembersTest.php +++ b/src/webhook/test/Model/JoinedMembersTest.php @@ -17,7 +17,7 @@ /** * JoinedMembersTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/JoinedMembershipContentTest.php b/src/webhook/test/Model/JoinedMembershipContentTest.php index 22e5c4bc8..a5dbbf2b3 100644 --- a/src/webhook/test/Model/JoinedMembershipContentTest.php +++ b/src/webhook/test/Model/JoinedMembershipContentTest.php @@ -17,7 +17,7 @@ /** * JoinedMembershipContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/LeaveEventTest.php b/src/webhook/test/Model/LeaveEventTest.php index f67f71422..c3f4e7e35 100644 --- a/src/webhook/test/Model/LeaveEventTest.php +++ b/src/webhook/test/Model/LeaveEventTest.php @@ -17,7 +17,7 @@ /** * LeaveEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/LeftMembersTest.php b/src/webhook/test/Model/LeftMembersTest.php index f26c16621..0d8827bed 100644 --- a/src/webhook/test/Model/LeftMembersTest.php +++ b/src/webhook/test/Model/LeftMembersTest.php @@ -17,7 +17,7 @@ /** * LeftMembersTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/LeftMembershipContentTest.php b/src/webhook/test/Model/LeftMembershipContentTest.php index c0de8656e..d91889a41 100644 --- a/src/webhook/test/Model/LeftMembershipContentTest.php +++ b/src/webhook/test/Model/LeftMembershipContentTest.php @@ -17,7 +17,7 @@ /** * LeftMembershipContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/LinkContentTest.php b/src/webhook/test/Model/LinkContentTest.php index 7bfb99105..847196164 100644 --- a/src/webhook/test/Model/LinkContentTest.php +++ b/src/webhook/test/Model/LinkContentTest.php @@ -17,7 +17,7 @@ /** * LinkContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/LocationMessageContentTest.php b/src/webhook/test/Model/LocationMessageContentTest.php index 25d02d7ee..9967012fb 100644 --- a/src/webhook/test/Model/LocationMessageContentTest.php +++ b/src/webhook/test/Model/LocationMessageContentTest.php @@ -17,7 +17,7 @@ /** * LocationMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MemberJoinedEventTest.php b/src/webhook/test/Model/MemberJoinedEventTest.php index 3d14aeb2f..5d48115d0 100644 --- a/src/webhook/test/Model/MemberJoinedEventTest.php +++ b/src/webhook/test/Model/MemberJoinedEventTest.php @@ -17,7 +17,7 @@ /** * MemberJoinedEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MemberLeftEventTest.php b/src/webhook/test/Model/MemberLeftEventTest.php index 74897a808..5694fe50f 100644 --- a/src/webhook/test/Model/MemberLeftEventTest.php +++ b/src/webhook/test/Model/MemberLeftEventTest.php @@ -17,7 +17,7 @@ /** * MemberLeftEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MembershipContentTest.php b/src/webhook/test/Model/MembershipContentTest.php index 365b47f94..38361fc59 100644 --- a/src/webhook/test/Model/MembershipContentTest.php +++ b/src/webhook/test/Model/MembershipContentTest.php @@ -17,7 +17,7 @@ /** * MembershipContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MembershipEventTest.php b/src/webhook/test/Model/MembershipEventTest.php index 66800505f..b4746bab0 100644 --- a/src/webhook/test/Model/MembershipEventTest.php +++ b/src/webhook/test/Model/MembershipEventTest.php @@ -17,7 +17,7 @@ /** * MembershipEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MentionTest.php b/src/webhook/test/Model/MentionTest.php index 5def60a98..82f735b33 100644 --- a/src/webhook/test/Model/MentionTest.php +++ b/src/webhook/test/Model/MentionTest.php @@ -17,7 +17,7 @@ /** * MentionTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MentioneeTest.php b/src/webhook/test/Model/MentioneeTest.php index 89ecef934..53305c319 100644 --- a/src/webhook/test/Model/MentioneeTest.php +++ b/src/webhook/test/Model/MentioneeTest.php @@ -17,7 +17,7 @@ /** * MentioneeTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MessageContentTest.php b/src/webhook/test/Model/MessageContentTest.php index a80e904ea..e36777a7e 100644 --- a/src/webhook/test/Model/MessageContentTest.php +++ b/src/webhook/test/Model/MessageContentTest.php @@ -17,7 +17,7 @@ /** * MessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/MessageEventTest.php b/src/webhook/test/Model/MessageEventTest.php index 2328d58c3..5d1a4397f 100644 --- a/src/webhook/test/Model/MessageEventTest.php +++ b/src/webhook/test/Model/MessageEventTest.php @@ -17,7 +17,7 @@ /** * MessageEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ModuleContentTest.php b/src/webhook/test/Model/ModuleContentTest.php index 4fdb09566..67477c417 100644 --- a/src/webhook/test/Model/ModuleContentTest.php +++ b/src/webhook/test/Model/ModuleContentTest.php @@ -17,7 +17,7 @@ /** * ModuleContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/ModuleEventTest.php b/src/webhook/test/Model/ModuleEventTest.php index c16a98a23..df6da4165 100644 --- a/src/webhook/test/Model/ModuleEventTest.php +++ b/src/webhook/test/Model/ModuleEventTest.php @@ -17,7 +17,7 @@ /** * ModuleEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/PnpDeliveryCompletionEventTest.php b/src/webhook/test/Model/PnpDeliveryCompletionEventTest.php index 416235489..a6312df01 100644 --- a/src/webhook/test/Model/PnpDeliveryCompletionEventTest.php +++ b/src/webhook/test/Model/PnpDeliveryCompletionEventTest.php @@ -17,7 +17,7 @@ /** * PnpDeliveryCompletionEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/PnpDeliveryTest.php b/src/webhook/test/Model/PnpDeliveryTest.php index 8cb40b53a..178b6e9f1 100644 --- a/src/webhook/test/Model/PnpDeliveryTest.php +++ b/src/webhook/test/Model/PnpDeliveryTest.php @@ -17,7 +17,7 @@ /** * PnpDeliveryTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/PostbackContentTest.php b/src/webhook/test/Model/PostbackContentTest.php index e4a268b82..b9c206db8 100644 --- a/src/webhook/test/Model/PostbackContentTest.php +++ b/src/webhook/test/Model/PostbackContentTest.php @@ -17,7 +17,7 @@ /** * PostbackContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/PostbackEventTest.php b/src/webhook/test/Model/PostbackEventTest.php index 0f722c54b..226338be6 100644 --- a/src/webhook/test/Model/PostbackEventTest.php +++ b/src/webhook/test/Model/PostbackEventTest.php @@ -17,7 +17,7 @@ /** * PostbackEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/RenewedMembershipContentTest.php b/src/webhook/test/Model/RenewedMembershipContentTest.php index 6fa7ca275..89a84dd26 100644 --- a/src/webhook/test/Model/RenewedMembershipContentTest.php +++ b/src/webhook/test/Model/RenewedMembershipContentTest.php @@ -17,7 +17,7 @@ /** * RenewedMembershipContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/RoomSourceTest.php b/src/webhook/test/Model/RoomSourceTest.php index 08ac70ac9..6ebf14f76 100644 --- a/src/webhook/test/Model/RoomSourceTest.php +++ b/src/webhook/test/Model/RoomSourceTest.php @@ -17,7 +17,7 @@ /** * RoomSourceTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/SourceTest.php b/src/webhook/test/Model/SourceTest.php index 48289c4ad..f92fea9c9 100644 --- a/src/webhook/test/Model/SourceTest.php +++ b/src/webhook/test/Model/SourceTest.php @@ -17,7 +17,7 @@ /** * SourceTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/StickerMessageContentTest.php b/src/webhook/test/Model/StickerMessageContentTest.php index f5a3c9c73..ccd365eaa 100644 --- a/src/webhook/test/Model/StickerMessageContentTest.php +++ b/src/webhook/test/Model/StickerMessageContentTest.php @@ -17,7 +17,7 @@ /** * StickerMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/TextMessageContentTest.php b/src/webhook/test/Model/TextMessageContentTest.php index d0497bea0..82b5d9756 100644 --- a/src/webhook/test/Model/TextMessageContentTest.php +++ b/src/webhook/test/Model/TextMessageContentTest.php @@ -17,7 +17,7 @@ /** * TextMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/UnfollowEventTest.php b/src/webhook/test/Model/UnfollowEventTest.php index 4f458fd4b..e0e4f14a1 100644 --- a/src/webhook/test/Model/UnfollowEventTest.php +++ b/src/webhook/test/Model/UnfollowEventTest.php @@ -17,7 +17,7 @@ /** * UnfollowEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/UnsendDetailTest.php b/src/webhook/test/Model/UnsendDetailTest.php index 0142fe400..21c1c76aa 100644 --- a/src/webhook/test/Model/UnsendDetailTest.php +++ b/src/webhook/test/Model/UnsendDetailTest.php @@ -17,7 +17,7 @@ /** * UnsendDetailTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/UnsendEventTest.php b/src/webhook/test/Model/UnsendEventTest.php index e44439e1b..97c6b341b 100644 --- a/src/webhook/test/Model/UnsendEventTest.php +++ b/src/webhook/test/Model/UnsendEventTest.php @@ -17,7 +17,7 @@ /** * UnsendEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/UserMentioneeTest.php b/src/webhook/test/Model/UserMentioneeTest.php index 2f5fe7a4d..f0107e278 100644 --- a/src/webhook/test/Model/UserMentioneeTest.php +++ b/src/webhook/test/Model/UserMentioneeTest.php @@ -17,7 +17,7 @@ /** * UserMentioneeTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/UserSourceTest.php b/src/webhook/test/Model/UserSourceTest.php index 889a0d533..b0aa851bf 100644 --- a/src/webhook/test/Model/UserSourceTest.php +++ b/src/webhook/test/Model/UserSourceTest.php @@ -17,7 +17,7 @@ /** * UserSourceTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/VideoMessageContentTest.php b/src/webhook/test/Model/VideoMessageContentTest.php index 90f58eae9..7be2ad58a 100644 --- a/src/webhook/test/Model/VideoMessageContentTest.php +++ b/src/webhook/test/Model/VideoMessageContentTest.php @@ -17,7 +17,7 @@ /** * VideoMessageContentTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/VideoPlayCompleteEventTest.php b/src/webhook/test/Model/VideoPlayCompleteEventTest.php index 086481610..e2ea624fd 100644 --- a/src/webhook/test/Model/VideoPlayCompleteEventTest.php +++ b/src/webhook/test/Model/VideoPlayCompleteEventTest.php @@ -17,7 +17,7 @@ /** * VideoPlayCompleteEventTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /** diff --git a/src/webhook/test/Model/VideoPlayCompleteTest.php b/src/webhook/test/Model/VideoPlayCompleteTest.php index c0e3f57e6..c61c48f82 100644 --- a/src/webhook/test/Model/VideoPlayCompleteTest.php +++ b/src/webhook/test/Model/VideoPlayCompleteTest.php @@ -17,7 +17,7 @@ /** * VideoPlayCompleteTest * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package LINE\Webhook @@ -32,7 +32,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.11.0 + * Generator version: 7.23.0 */ /**