作者 lackoxygen

feat:auto gen

正在显示 51 个修改的文件 包含 6707 行增加1302 行删除
  1 +#!/bin/env php
  2 +<?php
  3 +
  4 +use Illuminate\Support\Enumerable;
  5 +
  6 +$app_path = dirname(__DIR__);
  7 +
  8 +$src_path = $app_path . '/src';
  9 +
  10 +/**
  11 + * @param string $message
  12 + * @param string $prefix
  13 + * @return void
  14 + */
  15 +function println(string $message, string $prefix = 'info')
  16 +{
  17 + \fwrite(
  18 + STDOUT,
  19 + '[' . date('Y-m-d H:i:s') . ' ' . strtoupper($prefix) . '] ' . $message . PHP_EOL
  20 + );
  21 +}
  22 +
  23 +/**
  24 + * @param string $url
  25 + * @param array $query
  26 + * @return bool|string
  27 + */
  28 +function curl_fetch(string $url, array $query = []): array
  29 +{
  30 + $ch = \curl_init();
  31 +
  32 + $query && $url .= '?' . http_build_query($query);
  33 +
  34 + \curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  35 +
  36 + \curl_setopt($ch, CURLOPT_URL, $url);
  37 +
  38 + \curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  39 +
  40 + try {
  41 + $body = \curl_exec($ch);
  42 +
  43 + if (is_string($body)) {
  44 + return json_decode($body, true);
  45 + }
  46 + return [];
  47 + } finally {
  48 + \curl_close($ch);
  49 + }
  50 +}
  51 +
  52 +/**
  53 + * @param array $items
  54 + * @param string $subject
  55 + * @return string
  56 + */
  57 +function replaces(array $items, string $subject): string
  58 +{
  59 + return str_replace(
  60 + array_keys($items),
  61 + array_values($items),
  62 + $subject
  63 + );
  64 +}
  65 +
  66 +class Arr
  67 +{
  68 + /**
  69 + * @param array $array
  70 + * @param string|null $key
  71 + * @param $default
  72 + * @return mixed
  73 + */
  74 + public static function get(array $array, string $key = null, $default = null)
  75 + {
  76 + $keys = explode('.', $key);
  77 +
  78 + if (is_null($key)) {
  79 + return $array;
  80 + }
  81 +
  82 + foreach ($keys as $key) {
  83 + if (static::exists($array, $key)) {
  84 + $array = $array[$key];
  85 + } else {
  86 + return $default;
  87 + }
  88 + }
  89 +
  90 + return $array;
  91 + }
  92 +
  93 + /**
  94 + * @param $array
  95 + * @param $key
  96 + * @return bool
  97 + */
  98 + public static function exists($array, $key): bool
  99 + {
  100 + if ($array instanceof Enumerable) {
  101 + return $array->has($key);
  102 + }
  103 +
  104 + if ($array instanceof ArrayAccess) {
  105 + return $array->offsetExists($key);
  106 + }
  107 +
  108 + return array_key_exists($key, $array);
  109 + }
  110 +}
  111 +
  112 +class Cls
  113 +{
  114 + /**
  115 + * @param object $object
  116 + * @param string|null $key
  117 + * @param $default
  118 + * @return mixed|object|null
  119 + */
  120 + public static function get(object $object, string $key = null, $default = null)
  121 + {
  122 + $keys = explode('->', $key);
  123 +
  124 + if (is_null($key)) {
  125 + return $object;
  126 + }
  127 +
  128 + foreach ($keys as $key) {
  129 + if (is_object($object) && static::exists($object, $key)) {
  130 + $object = $object->{$key};
  131 + } elseif (is_array($object) && Arr::exists($object, $key)) {
  132 + $object = Arr::get($object, $key);
  133 + } else {
  134 + return $default;
  135 + }
  136 + }
  137 +
  138 + return $object;
  139 + }
  140 +
  141 + /**
  142 + * @param object $object
  143 + * @param $key
  144 + * @return bool
  145 + */
  146 + public static function exists(object $object, $key): bool
  147 + {
  148 + if ($object instanceof Enumerable) {
  149 + return $object->has($key);
  150 + }
  151 +
  152 + if ($object instanceof ArrayAccess) {
  153 + return $object->offsetExists($key);
  154 + }
  155 +
  156 + return property_exists($object, $key);
  157 + }
  158 +}
  159 +
  160 +class FetchDoc
  161 +{
  162 + /**
  163 + * fetch top doc menus.
  164 + * @return array|null
  165 + */
  166 + public function fetchDocMenus(): array
  167 + {
  168 + return curl_fetch(
  169 + 'https://op.jinritemai.com/doc/external/open/queryDocDirTree',
  170 + ['dirId' => 3]
  171 + );
  172 + }
  173 +
  174 + /**
  175 + * fetch in menu api list
  176 + * @param int $dirId
  177 + * @return array|null
  178 + */
  179 + public function fetchDocApis(int $dirId): array
  180 + {
  181 + return curl_fetch(
  182 + 'https://op.jinritemai.com/doc/external/open/queryDocArticleList',
  183 + [
  184 + 'dirId' => $dirId,
  185 + 'orderType' => 3,
  186 + 'pageIndex' => 0,
  187 + 'pageSize' => 9999,
  188 + 'status' => 1
  189 + ]
  190 + );
  191 + }
  192 +
  193 + /**
  194 + * fetch doc detail
  195 + * @param int $articleId
  196 + * @return array
  197 + */
  198 + public function fetchDocApi(int $articleId): array
  199 + {
  200 + return curl_fetch(
  201 + 'https://op.jinritemai.com/doc/external/open/queryDocArticleDetail',
  202 + [
  203 + 'articleId' => $articleId,
  204 + 'onlyView' => false,
  205 + ]
  206 + );
  207 + }
  208 +}
  209 +
  210 +class Name
  211 +{
  212 + /**
  213 + * @param string $value
  214 + * @return string
  215 + */
  216 + public static function methodName(string $value): string
  217 + {
  218 + $words = explode(' ', str_replace(['-', '_'], ' ', $value));
  219 +
  220 + $studlyWords = array_map(function ($word) {
  221 + return ucfirst($word);
  222 + }, $words);
  223 +
  224 + return lcfirst(implode($studlyWords));
  225 + }
  226 +
  227 + /**
  228 + * @param string $value
  229 + * @return string
  230 + */
  231 + public static function className(string $value): string
  232 + {
  233 + return ucfirst(static::methodName($value));
  234 + }
  235 +}
  236 +
  237 +class Main
  238 +{
  239 + /**
  240 + * @var CodeSpace
  241 + */
  242 + protected CodeSpace $codeSpace;
  243 +
  244 + /**
  245 + * @var FetchDoc
  246 + */
  247 + protected FetchDoc $fetchDoc;
  248 +
  249 + /**
  250 + * @return void
  251 + */
  252 + public static function run()
  253 + {
  254 + $static = new static();
  255 +
  256 + $static->do();
  257 + }
  258 +
  259 + public function __construct()
  260 + {
  261 + $this->codeSpace = new CodeSpace();
  262 +
  263 + $this->fetchDoc = new FetchDoc();
  264 + }
  265 +
  266 + /**
  267 + * main
  268 + * @return void
  269 + */
  270 + public function do()
  271 + {
  272 + $menus = $this->fetchDoc->fetchDocMenus();
  273 +
  274 + foreach (Arr::get($menus, 'data.dirs', []) as $item) {
  275 + $apis = $this->fetchDoc->fetchDocApis(Arr::get($item, 'id'));
  276 +
  277 + $articles = Arr::get($apis, 'data.articles', []);
  278 +
  279 + $this->codeSpace->push(
  280 + $this->createCodeSpace(
  281 + $item,
  282 + $articles
  283 + )
  284 + );
  285 + }
  286 +
  287 + println('success!');
  288 + }
  289 +
  290 + /**
  291 + * @param array $section
  292 + * @param array $articles
  293 + * @return CodeSelf
  294 + */
  295 + protected function createCodeSpace(array $section, array $articles): CodeSelf
  296 + {
  297 + $code = new CodeSelf();
  298 +
  299 + $code->className = Name::className($this->reckonClsName($articles));
  300 +
  301 + $code->annotate = Arr::get($section, 'name', '');
  302 +
  303 + foreach ($articles as $article) {
  304 + $apiArticle = $this->fetchDoc->fetchDocApi(
  305 + Arr::get($article, 'id')
  306 + );
  307 +
  308 + $subSelf = $this->createCodeMethod(
  309 + $section,
  310 + Arr::get($apiArticle, 'data.article', [])
  311 + );
  312 +
  313 + if ($subSelf->service) {
  314 + $code->methods[] = $this->createCodeMethod(
  315 + $section,
  316 + Arr::get($apiArticle, 'data.article', [])
  317 + );
  318 + }
  319 + }
  320 +
  321 + $this->codeSpace->push($code);
  322 +
  323 + return $code;
  324 + }
  325 +
  326 + /**
  327 + * @param array $section
  328 + * @param array $article
  329 + * @return CodeSubSelf
  330 + */
  331 + protected function createCodeMethod(array $section, array $article): CodeSubSelf
  332 + {
  333 + $subSelf = new CodeSubSelf();
  334 +
  335 + $content = Arr::get($article, 'content');
  336 +
  337 + if (strpos($content, 'TreeTable') !== false) {
  338 + preg_match(
  339 + '/"demoValue":"([^"]*)"/',
  340 + Arr::get($article, 'content'),
  341 + $match
  342 + );
  343 +
  344 + $subSelf->service = Arr::get($match, 1);
  345 + } elseif (strpos(Arr::get($article, 'content'), '|--|--|') !== false) {
  346 + $parts = explode(PHP_EOL, $content);
  347 +
  348 + $flag = false;
  349 +
  350 + $pos = 0;
  351 +
  352 + foreach ($parts as $key => $line) {
  353 + if (mb_strpos($line, '公共参数') !== false) {
  354 + $pos = $key;
  355 + }
  356 +
  357 + if ($pos && $key == $pos + 1) {
  358 + $flag = true;
  359 + }
  360 +
  361 + if ($flag && '' == $line) {
  362 + $flag = false;
  363 + }
  364 +
  365 + if ($flag) {
  366 + if ($key === $pos + 3) {
  367 + $parts = explode('|', trim($line, '|'));
  368 +
  369 + $subSelf->service = trim($parts[3]);
  370 + }
  371 + }
  372 + }
  373 + } else {
  374 + $content = json_decode(
  375 + $content,
  376 + true,
  377 + 512,
  378 + JSON_INVALID_UTF8_SUBSTITUTE
  379 + );
  380 +
  381 + $subSelf->service = Arr::get($content, 'request.publicParam.0.example');
  382 + }
  383 +
  384 + $subSelf->method = 'POST';
  385 +
  386 + $subSelf->path = Arr::get($article, 'info.title');
  387 +
  388 + $subSelf->name = Name::methodName(
  389 + str_replace('.', '_', $subSelf->service)
  390 + );
  391 +
  392 + $subSelf->docUri = sprintf(
  393 + 'https://op.jinritemai.com/docs/api-docs/%d/%d',
  394 + Arr::get($section, 'id'),
  395 + Arr::get($article, 'info.id')
  396 + );
  397 +
  398 + $subSelf->annotate = Arr::get($article, 'info.subtitle');
  399 +
  400 + return $subSelf;
  401 + }
  402 +
  403 + /**
  404 + * @param array $articles
  405 + * @return false|int|string
  406 + */
  407 + protected function reckonClsName(array $articles): string
  408 + {
  409 + $titles = array_map(function ($article) {
  410 + $title = trim(Arr::get($article, 'title', ''), '/');
  411 +
  412 + $parts = explode('/', $title);
  413 +
  414 + return $parts ? $parts[0] : '';
  415 + }, $articles);
  416 +
  417 + $titleCountValues = array_count_values($titles);
  418 +
  419 + arsort($titleCountValues);
  420 +
  421 + return current(array_keys($titleCountValues));
  422 + }
  423 +
  424 + /**
  425 + * @return void
  426 + */
  427 + protected function refreshAnnotate()
  428 + {
  429 + $queue = $this->codeSpace->toQueue();
  430 +
  431 + $targets = [];
  432 + do {
  433 + /**
  434 + * @var CodeSelf $code
  435 + */
  436 + $code = $queue->pop();
  437 +
  438 + $targets[] = Name::methodName($code->className);
  439 + } while (!$queue->isEmpty());
  440 +
  441 + $targets = array_unique($targets);
  442 +
  443 + $metaMethods = array_map(function ($target) {
  444 + $name = ucfirst($target);
  445 + $interface = sprintf('Passage\\%s\\%sInterface', $name, $name);
  446 + $method = lcfirst($target);
  447 + return ' * @method ' . $interface . ' ' . $method . '()';
  448 + }, $targets);
  449 +
  450 + array_unshift($metaMethods, ' * @method Verify verify()');
  451 +
  452 + $metaAnnotate = '/**' . "\n";
  453 + $metaAnnotate .= join("\n", $metaMethods) . "\n";
  454 + $metaAnnotate .= ' */';
  455 +
  456 + global $src_path;
  457 +
  458 + $metaFile = $src_path . '/TiktokShop.php';
  459 +
  460 + require_once $metaFile;
  461 +
  462 + $ref = new ReflectionClass(\Lackoxygen\TiktokShop\TiktokShop::class);
  463 +
  464 + $content = file_get_contents($metaFile);
  465 +
  466 + file_put_contents($metaFile, str_replace($ref->getDocComment(), $metaAnnotate, $content));
  467 + }
  468 +
  469 + public function __destruct()
  470 + {
  471 + $this->codeSpace->write();
  472 +
  473 + $this->refreshAnnotate();
  474 + }
  475 +}
  476 +
  477 +class CodeSpace
  478 +{
  479 + protected SplQueue $spaces;
  480 +
  481 + protected CodeWriter $writer;
  482 +
  483 + public function __construct()
  484 + {
  485 + $this->spaces = new SplQueue();
  486 +
  487 + $this->writer = new CodeWriter();
  488 + }
  489 +
  490 + public function push(CodeSelf $codeSelf)
  491 + {
  492 + $this->spaces->push($codeSelf);
  493 + }
  494 +
  495 + public function write()
  496 + {
  497 + $this->writer->batchWrite($this->toQueue());
  498 + }
  499 +
  500 + public function toQueue(): SplQueue
  501 + {
  502 + return clone $this->spaces;
  503 + }
  504 +}
  505 +
  506 +class CodeWriter
  507 +{
  508 + /**
  509 + * @param SplQueue $queue
  510 + * @return void
  511 + */
  512 + public function batchWrite(SplQueue $queue)
  513 + {
  514 + do {
  515 + $code = $queue->pop();
  516 +
  517 + $this->write($code);
  518 + } while (!$queue->isEmpty());
  519 + }
  520 +
  521 + /**
  522 + * @param CodeSelf $codeSelf
  523 + * @return void
  524 + */
  525 + public function write(CodeSelf $codeSelf)
  526 + {
  527 + $interface = new CodeGenerateInterface(
  528 + clone $codeSelf
  529 + );
  530 +
  531 + $class = new CodeGenerateClass(
  532 + clone $codeSelf,
  533 + $interface->toArray()['name']
  534 + );
  535 +
  536 + global $src_path;
  537 +
  538 + $baseDir = $src_path . '/Passage';
  539 +
  540 + $directory = $baseDir . '/' . $class->toArray()['name'];
  541 +
  542 + if (!is_dir($directory)) {
  543 + @mkdir($directory);
  544 + }
  545 +
  546 + file_put_contents(
  547 + $directory . '/' . $interface->toArray()['file'],
  548 + $interface
  549 + );
  550 +
  551 + file_put_contents(
  552 + $directory . '/' . $class->toArray()['file'],
  553 + $class
  554 + );
  555 + }
  556 +}
  557 +
  558 +
  559 +class CodeGenerateInterface
  560 +{
  561 + protected static string $template = <<<temp
  562 +<?php
  563 +namespace Lackoxygen\TiktokShop\Passage\\\${SECTION};
  564 +
  565 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  566 +
  567 +/**
  568 + * @note \${ANNOTATE}
  569 + */
  570 +interface \${NAME}Interface
  571 +{
  572 +\${METHOD}
  573 +}
  574 +temp;
  575 +
  576 + protected string $content = '';
  577 +
  578 + protected CodeSelf $codeSelf;
  579 +
  580 + /**
  581 + * @param CodeSelf $codeSelf
  582 + */
  583 + public function __construct(CodeSelf $codeSelf)
  584 + {
  585 + $methods = [];
  586 +
  587 + /**
  588 + * @var CodeSubSelf $method
  589 + */
  590 + foreach ($codeSelf->methods as $method) {
  591 + $methods[] = $this->generateMethod($method);
  592 + }
  593 +
  594 + $this->content = replaces(
  595 + [
  596 + '${SECTION}' => $codeSelf->className,
  597 + '${ANNOTATE}' => $codeSelf->annotate,
  598 + '${NAME}' => $codeSelf->className,
  599 + '${METHOD}' => join(
  600 + PHP_EOL . PHP_EOL,
  601 + array_map(function ($method) {
  602 + return join(PHP_EOL, $method);
  603 + }, $methods)
  604 + )
  605 + ],
  606 + static::$template
  607 + );
  608 +
  609 + $this->codeSelf = $codeSelf;
  610 + }
  611 +
  612 + /**
  613 + * @param CodeSubSelf $subSelf
  614 + * @return array
  615 + */
  616 + protected function generateMethod(CodeSubSelf $subSelf): array
  617 + {
  618 + $template[] = "\t" . '/**';
  619 + $template[] = "\t" . ' * ' . $subSelf->annotate;
  620 + $template[] = "\t" . ' * @link ' . $subSelf->docUri;
  621 + $template[] = "\t" . ' * @param array $params';
  622 + $template[] = "\t" . ' * @return ResultSet';
  623 + $template[] = "\t" . ' */';
  624 + $template[] = "\t" . 'function ' . $subSelf->name . '(array $params);';
  625 +
  626 + return $template;
  627 + }
  628 +
  629 +
  630 + /**
  631 + * @return string
  632 + */
  633 + public function __toString(): string
  634 + {
  635 + return $this->content;
  636 + }
  637 +
  638 + /**
  639 + * @return array
  640 + */
  641 + public function toArray(): array
  642 + {
  643 + $name = $this->codeSelf->className . 'Interface';
  644 +
  645 + return [
  646 + 'name' => $name,
  647 + 'file' => $name . '.php',
  648 + 'content' => $this->content,
  649 + ];
  650 + }
  651 +}
  652 +
  653 +class CodeGenerateClass
  654 +{
  655 + protected static string $template = <<<temp
  656 +<?php
  657 +
  658 +namespace Lackoxygen\TiktokShop\Passage\\\${SECTION};
  659 +
  660 +use Lackoxygen\TiktokShop\Passage\Passage;
  661 +
  662 +class \${NAME} extends Passage implements \${INTERFACE}
  663 +{
  664 +\${METHOD}
  665 +}
  666 +temp;
  667 +
  668 + protected string $content = '';
  669 +
  670 + protected CodeSelf $codeSelf;
  671 +
  672 + protected string $interface = '';
  673 +
  674 + public function __construct(CodeSelf $codeSelf, string $interface)
  675 + {
  676 + $this->codeSelf = $codeSelf;
  677 +
  678 + $this->interface = $interface;
  679 +
  680 + $methods = [];
  681 +
  682 + /**
  683 + * @var CodeSubSelf $method
  684 + */
  685 + foreach ($codeSelf->methods as $method) {
  686 + $methods[] = $this->generateMethod($method);
  687 + }
  688 +
  689 + $this->content = replaces(
  690 + [
  691 + '${SECTION}' => $codeSelf->className,
  692 + '${ANNOTATE}' => $codeSelf->annotate,
  693 + '${INTERFACE}' => $this->interface,
  694 + '${NAME}' => $codeSelf->className,
  695 + '${METHOD}' => join(
  696 + PHP_EOL . PHP_EOL,
  697 + array_map(function ($method) {
  698 + return join(PHP_EOL, $method);
  699 + }, $methods)
  700 + )
  701 + ],
  702 + static::$template
  703 + );
  704 + }
  705 +
  706 + /**
  707 + * @param CodeSubSelf $subSelf
  708 + * @return array
  709 + */
  710 + protected function generateMethod(CodeSubSelf $subSelf): array
  711 + {
  712 + $template[] = "\t" . '/**';
  713 + $template[] = "\t" . ' * @inheritDoc';
  714 + $template[] = "\t" . ' */';
  715 + $template[] = "\t" . 'function ' . $subSelf->name . '(array $params)';
  716 + $template[] = "\t" . '{';
  717 + $template[] = "\t\t" . '$this->builder->method(\'' . $subSelf->method . '\')';
  718 + $template[] = "\t\t\t" . '->service(\'' . $subSelf->service . '\')';
  719 + $template[] = "\t\t\t" . '->path(\'' . $subSelf->path . '\')';
  720 + $template[] = "\t\t\t" . '->params($params);';
  721 + $template[] = "\t" . '}';
  722 +
  723 + return $template;
  724 + }
  725 +
  726 + /**
  727 + * @return string
  728 + */
  729 + public function __toString(): string
  730 + {
  731 + return $this->content;
  732 + }
  733 +
  734 + /**
  735 + * @return array
  736 + */
  737 + public function toArray(): array
  738 + {
  739 + return [
  740 + 'name' => $this->codeSelf->className,
  741 + 'file' => $this->codeSelf->className . '.php',
  742 + 'content' => $this->content,
  743 + ];
  744 + }
  745 +}
  746 +
  747 +class CodeSelf
  748 +{
  749 + /**
  750 + * @var string
  751 + */
  752 + public string $className = '';
  753 +
  754 + /**
  755 + * @var string
  756 + */
  757 + public string $annotate = '';
  758 +
  759 + /**
  760 + * @var array [] $methods
  761 + */
  762 + public array $methods = [];
  763 +}
  764 +
  765 +class CodeSubSelf
  766 +{
  767 + /**
  768 + * @var string
  769 + */
  770 + public string $docUri = '';
  771 +
  772 + /**
  773 + * @var string
  774 + */
  775 + public string $name = '';
  776 +
  777 + /**
  778 + * @var string
  779 + */
  780 + public string $method = '';
  781 +
  782 + /**
  783 + * @var string
  784 + */
  785 + public string $service = '';
  786 +
  787 + /**
  788 + * @var string
  789 + */
  790 + public string $path = '';
  791 +
  792 + /**
  793 + * @var string
  794 + */
  795 + public string $annotate = '';
  796 +}
  797 +
  798 +Main::run();
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Shop; 3 +namespace Lackoxygen\TiktokShop\Passage\Address;
4 4
5 use Lackoxygen\TiktokShop\Passage\Passage; 5 use Lackoxygen\TiktokShop\Passage\Passage;
6 6
7 -class Shop extends Passage implements ShopInterface 7 +class Address extends Passage implements AddressInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function brandList(array $params) 12 + public function qualificationSettle(array $params)
13 { 13 {
14 - $this->builder  
15 - ->method('POST')  
16 - ->params($params)  
17 - ->service('shop.brandList'); 14 + $this->builder->method('POST')
  15 + ->service('qualification.settle')
  16 + ->path('/qualification/settle')
  17 + ->params($params);
18 } 18 }
19 19
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function searchMemberList(array $params)  
24 - {  
25 - $this->builder  
26 - ->method('POST')  
27 - ->params($params)  
28 - ->service('member.searchList');  
29 - }  
30 -  
31 - /**  
32 - * @inheritDoc  
33 - */  
34 - public function userLogin(array $params) 23 + public function addressUpdate(array $params)
35 { 24 {
36 - $this->builder  
37 - ->method('POST')  
38 - ->params($params)  
39 - ->service('antispam.userLogin'); 25 + $this->builder->method('POST')
  26 + ->service('address.update')
  27 + ->path('/address/update')
  28 + ->params($params);
40 } 29 }
41 30
42 /** 31 /**
43 * @inheritDoc 32 * @inheritDoc
44 */ 33 */
45 - public function getShopCategory(array $params) 34 + public function addressCreate(array $params)
46 { 35 {
47 - $this->builder  
48 - ->method('POST')  
49 - ->params($params)  
50 - ->service('shop.getShopCategory'); 36 + $this->builder->method('POST')
  37 + ->service('address.create')
  38 + ->path('/address/create')
  39 + ->params($params);
51 } 40 }
52 41
53 /** 42 /**
54 * @inheritDoc 43 * @inheritDoc
55 */ 44 */
56 - public function addressUpdate(array $params) 45 + public function memberGetShopShortLink(array $params)
57 { 46 {
58 - $this->builder  
59 - ->method('POST')  
60 - ->params($params)  
61 - ->service('address.update'); 47 + $this->builder->method('POST')
  48 + ->service('member.getShopShortLink')
  49 + ->path('/member/getShopShortLink')
  50 + ->params($params);
62 } 51 }
63 52
64 /** 53 /**
65 * @inheritDoc 54 * @inheritDoc
66 */ 55 */
67 - public function addressCreate(array $params) 56 + public function addressList(array $params)
68 { 57 {
69 - $this->builder  
70 - ->method('POST')  
71 - ->params($params)  
72 - ->service('address.create'); 58 + $this->builder->method('POST')
  59 + ->service('address.list')
  60 + ->path('/address/list')
  61 + ->params($params);
73 } 62 }
74 63
75 /** 64 /**
76 * @inheritDoc 65 * @inheritDoc
77 */ 66 */
78 - public function getShopShortLink(array $params) 67 + public function shopGetShopCategory(array $params)
79 { 68 {
80 - $this->builder  
81 - ->method('POST')  
82 - ->params($params)  
83 - ->service('member.getShopShortLink'); 69 + $this->builder->method('POST')
  70 + ->service('shop.getShopCategory')
  71 + ->path('/shop/getShopCategory')
  72 + ->params($params);
84 } 73 }
85 74
86 /** 75 /**
87 * @inheritDoc 76 * @inheritDoc
88 */ 77 */
89 - public function addressList(array $params) 78 + public function shopBrandList(array $params)
90 { 79 {
91 - $this->builder  
92 - ->method('POST')  
93 - ->params($params)  
94 - ->service('address.list'); 80 + $this->builder->method('POST')
  81 + ->service('shop.brandList')
  82 + ->path('/shop/brandList')
  83 + ->params($params);
95 } 84 }
96 } 85 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Shop; 3 +namespace Lackoxygen\TiktokShop\Passage\Address;
4 4
5 use Lackoxygen\TiktokShop\Passage\ResultSet; 5 use Lackoxygen\TiktokShop\Passage\ResultSet;
6 6
7 -interface ShopInterface  
8 -{  
9 - /**  
10 - * @link https://op.jinritemai.com/docs/api-docs/13/54  
11 - * @param array $params  
12 - * @return ResultSet 7 +/**
  8 + * @note 店铺API
13 */ 9 */
14 - public function brandList(array $params);  
15 - 10 +interface AddressInterface
  11 +{
16 /** 12 /**
17 - * @link https://op.jinritemai.com/docs/api-docs/13/366 13 + * 商家入驻提交资料
  14 + * @link https://op.jinritemai.com/docs/api-docs/13/658
18 * @param array $params 15 * @param array $params
19 * @return ResultSet 16 * @return ResultSet
20 */ 17 */
21 - public function searchMemberList(array $params); 18 + public function qualificationSettle(array $params);
22 19
23 /** 20 /**
24 - * @link https://op.jinritemai.com/docs/api-docs/13/635 21 + * 店铺修改售后地址接口
  22 + * @link https://op.jinritemai.com/docs/api-docs/13/1511
25 * @param array $params 23 * @param array $params
26 * @return ResultSet 24 * @return ResultSet
27 */ 25 */
28 - public function userLogin(array $params); 26 + public function addressUpdate(array $params);
29 27
30 /** 28 /**
31 - * @link https://op.jinritemai.com/docs/api-docs/13/821 29 + * 创建店铺地址库
  30 + * @link https://op.jinritemai.com/docs/api-docs/13/1510
32 * @param array $params 31 * @param array $params
33 * @return ResultSet 32 * @return ResultSet
34 */ 33 */
35 - public function getShopCategory(array $params); 34 + public function addressCreate(array $params);
36 35
37 /** 36 /**
38 - * @link https://op.jinritemai.com/docs/api-docs/13/1511 37 + * 获取商家推广链接接口
  38 + * @link https://op.jinritemai.com/docs/api-docs/13/1455
39 * @param array $params 39 * @param array $params
40 * @return ResultSet 40 * @return ResultSet
41 */ 41 */
42 - public function addressUpdate(array $params); 42 + public function memberGetShopShortLink(array $params);
43 43
44 /** 44 /**
45 - * @link https://op.jinritemai.com/docs/api-docs/13/1510 45 + * 售后地址列表接口
  46 + * @link https://op.jinritemai.com/docs/api-docs/13/1435
46 * @param array $params 47 * @param array $params
47 * @return ResultSet 48 * @return ResultSet
48 */ 49 */
49 - public function addressCreate(array $params); 50 + public function addressList(array $params);
50 51
51 /** 52 /**
52 - * @link https://op.jinritemai.com/docs/api-docs/13/1455 53 + * 获取店铺后台供商家发布商品的类目
  54 + * @link https://op.jinritemai.com/docs/api-docs/13/1820
53 * @param array $params 55 * @param array $params
54 * @return ResultSet 56 * @return ResultSet
55 */ 57 */
56 - public function getShopShortLink(array $params); 58 + public function shopGetShopCategory(array $params);
57 59
58 /** 60 /**
59 - * @link https://op.jinritemai.com/docs/api-docs/13/1435 61 + * 获取店铺的已授权品牌列表
  62 + * @link https://op.jinritemai.com/docs/api-docs/13/1821
60 * @param array $params 63 * @param array $params
61 * @return ResultSet 64 * @return ResultSet
62 */ 65 */
63 - public function addressList(array $params); 66 + public function shopBrandList(array $params);
64 } 67 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\AfterSale;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class AfterSale extends Passage implements AfterSaleInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function afterSaleOperate(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('afterSale.operate')
  16 + ->path('/afterSale/operate')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function afterSaleDetail(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('afterSale.Detail')
  27 + ->path('/afterSale/Detail')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function afterSaleList(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('afterSale.List')
  38 + ->path('/afterSale/List')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function afterSaleAddOrderRemark(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('afterSale.addOrderRemark')
  49 + ->path('/afterSale/addOrderRemark')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function afterSaleOpenAfterSaleChannel(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('afterSale.OpenAfterSaleChannel')
  60 + ->path('/afterSale/OpenAfterSaleChannel')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function afterSaleBuyerExchangeConfirm(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('afterSale.buyerExchangeConfirm')
  71 + ->path('/afterSale/buyerExchangeConfirm')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function afterSaleApplyLogisticsIntercept(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('afterSale.applyLogisticsIntercept')
  82 + ->path('/afterSale/applyLogisticsIntercept')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function afterSaleCancelSendGoodsSuccess(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('afterSale.CancelSendGoodsSuccess')
  93 + ->path('/afterSale/CancelSendGoodsSuccess')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function afterSaleReturnGoodsToWareHouseSuccess(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('afterSale.returnGoodsToWareHouseSuccess')
  104 + ->path('/afterSale/returnGoodsToWareHouseSuccess')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function tradeRefundListSearch(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('trade.refundListSearch')
  115 + ->path('/trade/refundListSearch')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function afterSaleTimeExtend(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('afterSale.timeExtend')
  126 + ->path('/afterSale/timeExtend')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function afterSaleBuyerExchange(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('afterSale.buyerExchange')
  137 + ->path('/afterSale/buyerExchange')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function afterSaleRejectReasonCodeList(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('afterSale.rejectReasonCodeList')
  148 + ->path('/afterSale/rejectReasonCodeList')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + public function afterSaleFillLogistics(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('afterSale.fillLogistics')
  159 + ->path('/afterSale/fillLogistics')
  160 + ->params($params);
  161 + }
  162 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\AfterSale;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 售后退款API
  9 + */
  10 +interface AfterSaleInterface
  11 +{
  12 + /**
  13 + * 售后审核接口聚合版
  14 + * @link https://op.jinritemai.com/docs/api-docs/17/560
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function afterSaleOperate(array $params);
  19 +
  20 + /**
  21 + * 提供给商家获取售后单详情信息
  22 + * @link https://op.jinritemai.com/docs/api-docs/17/1095
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function afterSaleDetail(array $params);
  27 +
  28 + /**
  29 + * 售后列表接口
  30 + * @link https://op.jinritemai.com/docs/api-docs/17/1295
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function afterSaleList(array $params);
  35 +
  36 + /**
  37 + * 店家给售后单添加备注
  38 + * @link https://op.jinritemai.com/docs/api-docs/17/585
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function afterSaleAddOrderRemark(array $params);
  43 +
  44 + /**
  45 + * 打开售后通道,使用户可以发起超级售后
  46 + * @link https://op.jinritemai.com/docs/api-docs/17/764
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function afterSaleOpenAfterSaleChannel(array $params);
  51 +
  52 + /**
  53 + * 商家确认是否收到换货
  54 + * @link https://op.jinritemai.com/docs/api-docs/17/768
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function afterSaleBuyerExchangeConfirm(array $params);
  59 +
  60 + /**
  61 + * 申请物流拦截
  62 + * @link https://op.jinritemai.com/docs/api-docs/17/897
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function afterSaleApplyLogisticsIntercept(array $params);
  67 +
  68 + /**
  69 + * 商家在未发货仅退款途中发送取消发货的状态
  70 + * @link https://op.jinritemai.com/docs/api-docs/17/816
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function afterSaleCancelSendGoodsSuccess(array $params);
  75 +
  76 + /**
  77 + * 商家确认售后单对应的用户退货入仓成功
  78 + * @link https://op.jinritemai.com/docs/api-docs/17/815
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function afterSaleReturnGoodsToWareHouseSuccess(array $params);
  83 +
  84 + /**
  85 + * 售后单列表查询推荐使用/afterSale/List
  86 + * @link https://op.jinritemai.com/docs/api-docs/17/254
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function tradeRefundListSearch(array $params);
  91 +
  92 + /**
  93 + * 商家延时收获接口
  94 + * @link https://op.jinritemai.com/docs/api-docs/17/770
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function afterSaleTimeExtend(array $params);
  99 +
  100 + /**
  101 + * 商家处理换货请求接口
  102 + * @link https://op.jinritemai.com/docs/api-docs/17/769
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function afterSaleBuyerExchange(array $params);
  107 +
  108 + /**
  109 + * 售后审核处理原因列表查询接口
  110 + * @link https://op.jinritemai.com/docs/api-docs/17/1540
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function afterSaleRejectReasonCodeList(array $params);
  115 +
  116 + /**
  117 + * 售后商家发货
  118 + * @link https://op.jinritemai.com/docs/api-docs/17/1908
  119 + * @param array $params
  120 + * @return ResultSet
  121 + */
  122 + public function afterSaleFillLogistics(array $params);
  123 +}
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Alliance;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\Passage;  
6 -  
7 -class Alliance extends Passage implements AllianceInterface  
8 -{  
9 - /**  
10 - * @inheritDoc  
11 - */  
12 - public function simplePlan(array $params)  
13 - {  
14 - $this->builder  
15 - ->method('POST')  
16 - ->params($params)  
17 - ->path('buyin/simplePlan')  
18 - ->service('buyin.simplePlan');  
19 - }  
20 -  
21 - /**  
22 - * @inheritDoc  
23 - */  
24 - public function exclusivePlan(array $params)  
25 - {  
26 - $this->builder  
27 - ->method('POST')  
28 - ->params($params)  
29 - ->path('buyin/exclusivePlan')  
30 - ->service('buyin.exclusivePlan');  
31 - }  
32 -  
33 - /**  
34 - * @inheritDoc  
35 - */  
36 - public function activitySearch(array $params)  
37 - {  
38 - $this->builder  
39 - ->method('POST')  
40 - ->params($params)  
41 - ->path('buyin/activitySearch')  
42 - ->service('buyin.activitySearch');  
43 - }  
44 -  
45 - /**  
46 - * @inheritDoc  
47 - */  
48 - public function applyActivities(array $params)  
49 - {  
50 - $this->builder  
51 - ->method('POST')  
52 - ->params($params)  
53 - ->path('buyin/applyActivities')  
54 - ->service('buyin.applyActivities');  
55 - }  
56 -  
57 - /**  
58 - * @inheritDoc  
59 - */  
60 - public function createOrUpdateOrienPlan(array $params)  
61 - {  
62 - $this->builder  
63 - ->method('POST')  
64 - ->params($params)  
65 - ->path('buyin/createOrUpdateOrienPlan')  
66 - ->service('buyin.createOrUpdateOrienPlan');  
67 - }  
68 -  
69 - /**  
70 - * @inheritDoc  
71 - */  
72 - public function orienPlanList(array $params)  
73 - {  
74 - $this->builder  
75 - ->method('POST')  
76 - ->params($params)  
77 - ->path('buyin/orienPlanList')  
78 - ->service('buyin.orienPlanList');  
79 - }  
80 -  
81 - /**  
82 - * @inheritDoc  
83 - */  
84 - public function orienPlanAuthors(array $params)  
85 - {  
86 - $this->builder  
87 - ->method('POST')  
88 - ->params($params)  
89 - ->path('buyin/orienPlanAuthors')  
90 - ->service('buyin.orienPlanAuthors');  
91 - }  
92 -  
93 - /**  
94 - * @inheritDoc  
95 - */  
96 - public function orienPlanCtrl(array $params)  
97 - {  
98 - $this->builder  
99 - ->method('POST')  
100 - ->params($params)  
101 - ->path('buyin/orienPlanCtrl')  
102 - ->service('buyin.orienPlanCtrl');  
103 - }  
104 -  
105 - /**  
106 - * @inheritDoc  
107 - */  
108 - public function orienPlanAuthorsAdd(array $params)  
109 - {  
110 - $this->builder  
111 - ->method('POST')  
112 - ->params($params)  
113 - ->path('buyin/orienPlanAuthorsAdd')  
114 - ->service('buyin.orienPlanAuthorsAdd');  
115 - }  
116 -  
117 - /**  
118 - * @inheritDoc  
119 - */  
120 - public function orienPlanAudit(array $params)  
121 - {  
122 - $this->builder  
123 - ->method('POST')  
124 - ->params($params)  
125 - ->path('buyin/orienPlanAudit')  
126 - ->service('buyin.orienPlanAudit');  
127 - }  
128 -  
129 - /**  
130 - * @inheritDoc  
131 - */  
132 - public function colonelActivityCreateOrUpdate(array $params)  
133 - {  
134 - $this->builder  
135 - ->method('POST')  
136 - ->params($params)  
137 - ->path('alliance/colonelActivityCreateOrUpdate')  
138 - ->service('alliance.colonelActivityCreateOrUpdate');  
139 - }  
140 -  
141 - /**  
142 - * @inheritDoc  
143 - */  
144 - public function activityProductCategoryList(array $params)  
145 - {  
146 - $this->builder  
147 - ->method('POST')  
148 - ->params($params)  
149 - ->path('alliance/activityProductCategoryList')  
150 - ->service('alliance.activityProductCategoryList');  
151 - }  
152 -  
153 - /**  
154 - * @inheritDoc  
155 - */  
156 - public function instituteColonelActivityList(array $params)  
157 - {  
158 - $this->builder  
159 - ->method('POST')  
160 - ->params($params)  
161 - ->path('alliance/instituteColonelActivityList')  
162 - ->service('alliance.instituteColonelActivityList');  
163 - }  
164 -  
165 - /**  
166 - * @inheritDoc  
167 - */  
168 - public function instituteColonelActivityOperate(array $params)  
169 - {  
170 - $this->builder  
171 - ->method('POST')  
172 - ->params($params)  
173 - ->path('alliance/instituteColonelActivityOperate')  
174 - ->service('alliance.instituteColonelActivityOperate');  
175 - }  
176 -  
177 - /**  
178 - * @inheritDoc  
179 - */  
180 - public function colonelActivityProduct(array $params)  
181 - {  
182 - $this->builder  
183 - ->method('POST')  
184 - ->params($params)  
185 - ->path('alliance/colonelActivityProduct')  
186 - ->service('alliance.colonelActivityProduct');  
187 - }  
188 -  
189 - /**  
190 - * @inheritDoc  
191 - */  
192 - public function colonelActivityProductAudit(array $params)  
193 - {  
194 - $this->builder  
195 - ->method('POST')  
196 - ->params($params)  
197 - ->path('alliance/colonelActivityProductAudit')  
198 - ->service('alliance.colonelActivityProductAudit');  
199 - }  
200 -  
201 - /**  
202 - * @inheritDoc  
203 - */  
204 - public function colonelActivityProductExtension(array $params)  
205 - {  
206 - $this->builder  
207 - ->method('POST')  
208 - ->params($params)  
209 - ->path('alliance/colonelActivityProductExtension')  
210 - ->service('alliance.colonelActivityProductExtension');  
211 - }  
212 -  
213 - /**  
214 - * @inheritDoc  
215 - */  
216 - public function specialApplyList(array $params)  
217 - {  
218 - $this->builder  
219 - ->method('POST')  
220 - ->params($params)  
221 - ->path('buyin.colonel/specialApplyList')  
222 - ->service('buyin.colonel.specialApplyList');  
223 - }  
224 -  
225 - /**  
226 - * @inheritDoc  
227 - */  
228 - public function specialApplyDeal(array $params)  
229 - {  
230 - $this->builder  
231 - ->method('POST')  
232 - ->params($params)  
233 - ->path('buyin.colonel/specialApplyDeal')  
234 - ->service('buyin.colonel.specialApplyDeal');  
235 - }  
236 -  
237 - /**  
238 - * @inheritDoc  
239 - */  
240 - public function materialsProductsSearch(array $params)  
241 - {  
242 - $this->builder  
243 - ->method('POST')  
244 - ->params($params)  
245 - ->path('alliance/materialsProductsSearch')  
246 - ->service('alliance.materialsProductsSearch');  
247 - }  
248 -  
249 - /**  
250 - * @inheritDoc  
251 - */  
252 - public function materialsProductsDetails(array $params)  
253 - {  
254 - $this->builder  
255 - ->method('POST')  
256 - ->params($params)  
257 - ->path('alliance/materialsProductsDetails')  
258 - ->service('alliance.materialsProductsDetails');  
259 - }  
260 -  
261 - /**  
262 - * @inheritDoc  
263 - */  
264 - public function materialsProductCategory(array $params)  
265 - {  
266 - $this->builder  
267 - ->method('POST')  
268 - ->params($params)  
269 - ->path('alliance/materialsProductCategory')  
270 - ->service('alliance.materialsProductCategory');  
271 - }  
272 -  
273 - /**  
274 - * @inheritDoc  
275 - */  
276 - public function materialsProductStatus(array $params)  
277 - {  
278 - $this->builder  
279 - ->method('POST')  
280 - ->params($params)  
281 - ->path('buyin/materialsProductStatus')  
282 - ->service('buyin.materialsProductStatus');  
283 - }  
284 -  
285 - /**  
286 - * @inheritDoc  
287 - */  
288 - public function queryInstituteOrders(array $params)  
289 - {  
290 - $this->builder  
291 - ->method('POST')  
292 - ->params($params)  
293 - ->path('buyin/queryInstituteOrders')  
294 - ->service('buyin.queryInstituteOrders');  
295 - }  
296 -  
297 - /**  
298 - * @inheritDoc  
299 - */  
300 - public function kolPidCreate(array $params)  
301 - {  
302 - $this->builder  
303 - ->method('POST')  
304 - ->params($params)  
305 - ->path('buyin/kolPidCreate')  
306 - ->service('buyin.kolPidCreate');  
307 - }  
308 -  
309 - /**  
310 - * @inheritDoc  
311 - */  
312 - public function kolPidList(array $params)  
313 - {  
314 - $this->builder  
315 - ->method('POST')  
316 - ->params($params)  
317 - ->path('buyin/kolPidList')  
318 - ->service('buyin.kolPidList');  
319 - }  
320 -  
321 - /**  
322 - * @inheritDoc  
323 - */  
324 - public function kolPidEdit(array $params)  
325 - {  
326 - $this->builder  
327 - ->method('POST')  
328 - ->params($params)  
329 - ->path('buyin/kolPidEdit')  
330 - ->service('buyin.kolPidEdit');  
331 - }  
332 -  
333 - /**  
334 - * @inheritDoc  
335 - */  
336 - public function kolPidDel(array $params)  
337 - {  
338 - $this->builder  
339 - ->method('POST')  
340 - ->params($params)  
341 - ->path('buyin/kolPidDel')  
342 - ->service('buyin.kolPidDel');  
343 - }  
344 -  
345 - /**  
346 - * @inheritDoc  
347 - */  
348 - public function kolProductShare(array $params)  
349 - {  
350 - $this->builder  
351 - ->method('POST')  
352 - ->params($params)  
353 - ->path('buyin/kolProductShare')  
354 - ->service('buyin.kolProductShare');  
355 - }  
356 -  
357 - /**  
358 - * @inheritDoc  
359 - */  
360 - public function institutePidCreate(array $params)  
361 - {  
362 - $this->builder  
363 - ->method('POST')  
364 - ->params($params)  
365 - ->path('buyin/institutePidCreate')  
366 - ->service('buyin.institutePidCreate');  
367 - }  
368 -  
369 - /**  
370 - * @inheritDoc  
371 - */  
372 - public function institutePidList(array $params)  
373 - {  
374 - $this->builder  
375 - ->method('POST')  
376 - ->params($params)  
377 - ->path('buyin/institutePidList')  
378 - ->service('buyin.institutePidList');  
379 - }  
380 -  
381 - /**  
382 - * @inheritDoc  
383 - */  
384 - public function institutePidEdit(array $params)  
385 - {  
386 - $this->builder  
387 - ->method('POST')  
388 - ->params($params)  
389 - ->path('buyin/institutePidEdit')  
390 - ->service('buyin.institutePidEdit');  
391 - }  
392 -  
393 - /**  
394 - * @inheritDoc  
395 - */  
396 - public function institutePidDel(array $params)  
397 - {  
398 - $this->builder  
399 - ->method('POST')  
400 - ->params($params)  
401 - ->path('buyin/institutePidDel')  
402 - ->service('buyin.institutePidDel');  
403 - }  
404 -  
405 - /**  
406 - * @inheritDoc  
407 - */  
408 - public function liveShareMaterial(array $params)  
409 - {  
410 - $this->builder  
411 - ->method('POST')  
412 - ->params($params)  
413 - ->path('buyin/liveShareMaterial')  
414 - ->service('buyin.liveShareMaterial');  
415 - }  
416 -  
417 - /**  
418 - * @inheritDoc  
419 - */  
420 - public function instituteLiveShare(array $params)  
421 - {  
422 - $this->builder  
423 - ->method('POST')  
424 - ->params($params)  
425 - ->path('buyin/instituteLiveShare')  
426 - ->service('buyin.instituteLiveShare');  
427 - }  
428 -  
429 - /**  
430 - * @inheritDoc  
431 - */  
432 - public function instituteOrderAds(array $params)  
433 - {  
434 - $this->builder  
435 - ->method('POST')  
436 - ->params($params)  
437 - ->path('buyin/instituteOrderAds')  
438 - ->service('buyin.instituteOrderAds');  
439 - }  
440 -  
441 - /**  
442 - * @inheritDoc  
443 - */  
444 - public function kolOrderAds(array $params)  
445 - {  
446 - $this->builder  
447 - ->method('POST')  
448 - ->params($params)  
449 - ->path('buyin/kolOrderAds')  
450 - ->service('buyin.kolOrderAds');  
451 - }  
452 -  
453 - /**  
454 - * @inheritDoc  
455 - */  
456 - public function shopPidMemberCreate(array $params)  
457 - {  
458 - $this->builder  
459 - ->method('POST')  
460 - ->params($params)  
461 - ->path('buyin/shopPidMemberCreate')  
462 - ->service('buyin.shopPidMemberCreate');  
463 - }  
464 -  
465 - /**  
466 - * @inheritDoc  
467 - */  
468 - public function kolMaterialsProductsDetails(array $params)  
469 - {  
470 - $this->builder  
471 - ->method('POST')  
472 - ->params($params)  
473 - ->path('buyin/kolMaterialsProductsDetails')  
474 - ->service('buyin.kolMaterialsProductsDetails');  
475 - }  
476 -  
477 - /**  
478 - * @inheritDoc  
479 - */  
480 - public function getProductShareMaterial(array $params)  
481 - {  
482 - $this->builder  
483 - ->method('POST')  
484 - ->params($params)  
485 - ->path('buyin/getProductShareMaterial')  
486 - ->service('buyin.getProductShareMaterial');  
487 - }  
488 -  
489 - /**  
490 - * @inheritDoc  
491 - */  
492 - public function getProductSkus(array $params)  
493 - {  
494 - $this->builder  
495 - ->method('POST')  
496 - ->params($params)  
497 - ->path('buyin/productSkus')  
498 - ->service('buyin.productSkus');  
499 - }  
500 -  
501 - /**  
502 - * @inheritDoc  
503 - */  
504 - public function shareCommandParse(array $params)  
505 - {  
506 - $this->builder  
507 - ->method('POST')  
508 - ->params($params)  
509 - ->path('buyin/shareCommandParse')  
510 - ->service('buyin.shareCommandParse');  
511 - }  
512 -  
513 - /**  
514 - * @inheritDoc  
515 - */  
516 - public function activityShareConvert(array $params)  
517 - {  
518 - $this->builder  
519 - ->method('POST')  
520 - ->params($params)  
521 - ->path('buyin/activityShareConvert')  
522 - ->service('buyin.activityShareConvert');  
523 - }  
524 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Alliance;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet;  
6 -  
7 -interface AllianceInterface  
8 -{  
9 - /**  
10 - * @link https://op.jinritemai.com/docs/api-docs/61/923  
11 - * @param array $params  
12 - * @return ResultSet  
13 - */  
14 - public function simplePlan(array $params);  
15 -  
16 - /**  
17 - * @link https://op.jinritemai.com/docs/api-docs/61/922  
18 - * @param array $params  
19 - * @return ResultSet  
20 - */  
21 - public function exclusivePlan(array $params);  
22 -  
23 - /**  
24 - * @link https://op.jinritemai.com/docs/api-docs/61/743  
25 - * @param array $params  
26 - * @return ResultSet  
27 - */  
28 - public function activitySearch(array $params);  
29 -  
30 - /**  
31 - * @link https://op.jinritemai.com/docs/api-docs/61/744  
32 - * @param array $params  
33 - * @return ResultSet  
34 - */  
35 - public function applyActivities(array $params);  
36 -  
37 - /**  
38 - * @link https://op.jinritemai.com/docs/api-docs/61/708  
39 - * @param array $params  
40 - * @return ResultSet  
41 - */  
42 - public function createOrUpdateOrienPlan(array $params);  
43 -  
44 - /**  
45 - * @link https://op.jinritemai.com/docs/api-docs/61/705  
46 - * @param array $params  
47 - * @return ResultSet  
48 - */  
49 - public function orienPlanList(array $params);  
50 -  
51 - /**  
52 - * @link https://op.jinritemai.com/docs/api-docs/61/709  
53 - * @param array $params  
54 - * @return ResultSet  
55 - */  
56 - public function orienPlanAuthors(array $params);  
57 -  
58 - /**  
59 - * @link https://op.jinritemai.com/docs/api-docs/61/706  
60 - * @param array $params  
61 - * @return ResultSet  
62 - */  
63 - public function orienPlanCtrl(array $params);  
64 -  
65 - /**  
66 - * @link https://op.jinritemai.com/docs/api-docs/61/706  
67 - * @param array $params  
68 - * @return ResultSet  
69 - */  
70 - public function orienPlanAuthorsAdd(array $params);  
71 -  
72 - /**  
73 - * @link https://op.jinritemai.com/docs/api-docs/61/707  
74 - * @param array $params  
75 - * @return ResultSet  
76 - */  
77 - public function orienPlanAudit(array $params);  
78 -  
79 - /**  
80 - * @link https://op.jinritemai.com/docs/api-docs/61/966  
81 - * @param array $params  
82 - * @return ResultSet  
83 - */  
84 - public function colonelActivityCreateOrUpdate(array $params);  
85 -  
86 - /**  
87 - * @link https://op.jinritemai.com/docs/api-docs/61/970  
88 - * @param array $params  
89 - * @return ResultSet  
90 - */  
91 - public function activityProductCategoryList(array $params);  
92 -  
93 - /**  
94 - * @link https://op.jinritemai.com/docs/api-docs/61/1330  
95 - * @param array $params  
96 - * @return ResultSet  
97 - */  
98 - public function instituteColonelActivityList(array $params);  
99 -  
100 - /**  
101 - * @link https://op.jinritemai.com/docs/api-docs/61/972  
102 - * @param array $params  
103 - * @return ResultSet  
104 - */  
105 - public function instituteColonelActivityOperate(array $params);  
106 -  
107 - /**  
108 - * @link https://op.jinritemai.com/docs/api-docs/61/968  
109 - * @param array $params  
110 - * @return ResultSet  
111 - */  
112 - public function colonelActivityProduct(array $params);  
113 -  
114 - /**  
115 - * @link https://op.jinritemai.com/docs/api-docs/61/971  
116 - * @param array $params  
117 - * @return ResultSet  
118 - */  
119 - public function colonelActivityProductAudit(array $params);  
120 -  
121 - /**  
122 - * @link https://op.jinritemai.com/docs/api-docs/61/967  
123 - * @param array $params  
124 - * @return ResultSet  
125 - */  
126 - public function colonelActivityProductExtension(array $params);  
127 -  
128 - /**  
129 - * @link https://op.jinritemai.com/docs/api-docs/61/1552  
130 - * @param array $params  
131 - * @return ResultSet  
132 - */  
133 - public function specialApplyList(array $params);  
134 -  
135 - /**  
136 - * @link https://op.jinritemai.com/docs/api-docs/61/1553  
137 - * @param array $params  
138 - * @return ResultSet  
139 - */  
140 - public function specialApplyDeal(array $params);  
141 -  
142 - /**  
143 - * @link https://op.jinritemai.com/docs/api-docs/61/924  
144 - * @param array $params  
145 - * @return ResultSet  
146 - */  
147 - public function materialsProductsSearch(array $params);  
148 -  
149 - /**  
150 - * @link https://op.jinritemai.com/docs/api-docs/61/1356  
151 - * @param array $params  
152 - * @return ResultSet  
153 - */  
154 - public function materialsProductsDetails(array $params);  
155 -  
156 - /**  
157 - * @link https://op.jinritemai.com/docs/api-docs/61/637  
158 - * @param array $params  
159 - * @return ResultSet  
160 - */  
161 - public function materialsProductCategory(array $params);  
162 -  
163 - /**  
164 - * @link https://op.jinritemai.com/docs/api-docs/61/1497  
165 - * @param array $params  
166 - * @return ResultSet  
167 - */  
168 - public function materialsProductStatus(array $params);  
169 -  
170 - /**  
171 - * @link https://op.jinritemai.com/docs/api-docs/61/1398  
172 - * @param array $params  
173 - * @return ResultSet  
174 - */  
175 - public function queryInstituteOrders(array $params);  
176 -  
177 - /**  
178 - * @link https://op.jinritemai.com/docs/api-docs/61/1460  
179 - * @param array $params  
180 - * @return ResultSet  
181 - */  
182 - public function kolPidCreate(array $params);  
183 -  
184 - /**  
185 - * @link https://op.jinritemai.com/docs/api-docs/61/1461  
186 - * @param array $params  
187 - * @return ResultSet  
188 - */  
189 - public function kolPidList(array $params);  
190 -  
191 - /**  
192 - * @link https://op.jinritemai.com/docs/api-docs/61/1462  
193 - * @param array $params  
194 - * @return ResultSet  
195 - */  
196 - public function kolPidEdit(array $params);  
197 -  
198 - /**  
199 - * @link https://op.jinritemai.com/docs/api-docs/61/1463  
200 - * @param array $params  
201 - * @return ResultSet  
202 - */  
203 - public function kolPidDel(array $params);  
204 -  
205 - /**  
206 - * @link https://op.jinritemai.com/docs/api-docs/61/1464  
207 - * @param array $params  
208 - * @return ResultSet  
209 - */  
210 - public function kolProductShare(array $params);  
211 -  
212 - /**  
213 - * @link https://op.jinritemai.com/docs/api-docs/61/1273  
214 - * @param array $params  
215 - * @return ResultSet  
216 - */  
217 - public function institutePidCreate(array $params);  
218 -  
219 - /**  
220 - * @link https://op.jinritemai.com/docs/api-docs/61/1269  
221 - * @param array $params  
222 - * @return ResultSet  
223 - */  
224 - public function institutePidList(array $params);  
225 -  
226 - /**  
227 - * @link https://op.jinritemai.com/docs/api-docs/61/1270  
228 - * @param array $params  
229 - * @return ResultSet  
230 - */  
231 - public function institutePidEdit(array $params);  
232 -  
233 - /**  
234 - * @link https://op.jinritemai.com/docs/api-docs/61/1271  
235 - * @param array $params  
236 - * @return ResultSet  
237 - */  
238 - public function institutePidDel(array $params);  
239 -  
240 - /**  
241 - * @link https://op.jinritemai.com/docs/api-docs/61/1396  
242 - * @param array $params  
243 - * @return ResultSet  
244 - */  
245 - public function liveShareMaterial(array $params);  
246 -  
247 - /**  
248 - * @link https://op.jinritemai.com/docs/api-docs/61/1297  
249 - * @param array $params  
250 - * @return ResultSet  
251 - */  
252 - public function instituteLiveShare(array $params);  
253 -  
254 - /**  
255 - * @link https://op.jinritemai.com/docs/api-docs/61/1296  
256 - * @param array $params  
257 - * @return ResultSet  
258 - */  
259 - public function instituteOrderAds(array $params);  
260 -  
261 - /**  
262 - * @link https://op.jinritemai.com/docs/api-docs/61/1459  
263 - * @param array $params  
264 - * @return ResultSet  
265 - */  
266 - public function kolOrderAds(array $params);  
267 -  
268 - /**  
269 - * @link https://op.jinritemai.com/docs/api-docs/61/1493  
270 - * @param array $params  
271 - * @return ResultSet  
272 - */  
273 - public function shopPidMemberCreate(array $params);  
274 -  
275 - /**  
276 - * @link https://op.jinritemai.com/docs/api-docs/61/1589  
277 - * @param array $params  
278 - * @return ResultSet  
279 - */  
280 - public function kolMaterialsProductsDetails(array $params);  
281 -  
282 - /**  
283 - * @link https://op.jinritemai.com/docs/api-docs/61/1588  
284 - * @param array $params  
285 - * @return ResultSet  
286 - */  
287 - public function getProductShareMaterial(array $params);  
288 -  
289 - /**  
290 - * @link https://op.jinritemai.com/docs/api-docs/61/1626  
291 - * @param array $params  
292 - * @return mixed  
293 - */  
294 - public function getProductSkus(array $params);  
295 -  
296 - /**  
297 - * @link https://op.jinritemai.com/docs/api-docs/61/1726  
298 - * @param array $params  
299 - * @return mixed  
300 - */  
301 - public function shareCommandParse(array $params);  
302 -  
303 - /**  
304 - * @link https://op.jinritemai.com/docs/api-docs/61/2003  
305 - * @param array $params  
306 - * @return mixed  
307 - */  
308 - public function activityShareConvert(array $params);  
309 -}  
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Antispam;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Antispam extends Passage implements AntispamInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function antispamUserLogin(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('antispam.userLogin')
  16 + ->path('/antispam/userLogin')
  17 + ->params($params);
  18 + }
  19 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Antispam;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 风控安全API
  9 + */
  10 +interface AntispamInterface
  11 +{
  12 + /**
  13 + * 商户登陆风险检查
  14 + * @link https://op.jinritemai.com/docs/api-docs/187/635
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function antispamUserLogin(array $params);
  19 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Btas;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Btas extends Passage implements BtasInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function btasShipping(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('btas.shipping')
  16 + ->path('/btas/shipping')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function btasGetInspectionOrder(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('btas.getInspectionOrder')
  27 + ->path('/btas/getInspectionOrder')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function btasSaveInspectionOnline(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('btas.saveInspectionOnline')
  38 + ->path('/btas/saveInspectionOnline')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function btasGetOrderInspectionResult(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('btas.getOrderInspectionResult')
  49 + ->path('/btas/getOrderInspectionResult')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function btasSaveInspectionInfo(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('btas.saveInspectionInfo')
  60 + ->path('/btas/saveInspectionInfo')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function btasListBrand(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('btas.listBrand')
  71 + ->path('/btas/listBrand')
  72 + ->params($params);
  73 + }
  74 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Btas;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note BTAS质检API
  9 + */
  10 +interface BtasInterface
  11 +{
  12 + /**
  13 + * 商家调用发货
  14 + * @link https://op.jinritemai.com/docs/api-docs/49/489
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function btasShipping(array $params);
  19 +
  20 + /**
  21 + * ⁣查询订单是否需要质检
  22 + * @link https://op.jinritemai.com/docs/api-docs/49/473
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function btasGetInspectionOrder(array $params);
  27 +
  28 + /**
  29 + * 图片质检送检
  30 + * @link https://op.jinritemai.com/docs/api-docs/49/572
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function btasSaveInspectionOnline(array $params);
  35 +
  36 + /**
  37 + * 获取订单的质检结果
  38 + * @link https://op.jinritemai.com/docs/api-docs/49/573
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function btasGetOrderInspectionResult(array $params);
  43 +
  44 + /**
  45 + * 商家送检调用
  46 + * @link https://op.jinritemai.com/docs/api-docs/49/574
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function btasSaveInspectionInfo(array $params);
  51 +
  52 + /**
  53 + * 获取可图片鉴定的品牌
  54 + * @link https://op.jinritemai.com/docs/api-docs/49/1865
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function btasListBrand(array $params);
  59 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Buyin;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Buyin extends Passage implements BuyinInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + function buyinSimplePlan(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('buyin.simplePlan')
  16 + ->path('/buyin/simplePlan')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + function buyinShopActivityList(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('buyin.ShopActivityList')
  27 + ->path('/buyin/ShopActivityList')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + function buyinShopActivityDetail(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('buyin.shopActivityDetail')
  38 + ->path('/buyin/shopActivityDetail')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + function buyinApplyActivities(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('buyin.applyActivities')
  49 + ->path('/buyin/applyActivities')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + function buyinActivityProductExtendList(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('buyin.activityProductExtendList')
  60 + ->path('/buyin/activityProductExtendList')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + function buyinActivityProductExtendApprove(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('buyin.activityProductExtendApprove')
  71 + ->path('/buyin/activityProductExtendApprove')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + function buyinCreateOrUpdateOrienPlan(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('buyin.createOrUpdateOrienPlan')
  82 + ->path('/buyin/createOrUpdateOrienPlan')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + function buyinOrienPlanList(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('buyin.orienPlanList')
  93 + ->path('/buyin/orienPlanList')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + function buyinOrienPlanCtrl(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('buyin.orienPlanCtrl')
  104 + ->path('/buyin/orienPlanCtrl')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + function buyinOrienPlanAuthors(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('buyin.orienPlanAuthors')
  115 + ->path('/buyin/orienPlanAuthors')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + function buyinOrienPlanAuthorsAdd(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('buyin.orienPlanAuthorsAdd')
  126 + ->path('/buyin/orienPlanAuthorsAdd')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + function buyinOrienPlanAudit(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('buyin.orienPlanAudit')
  137 + ->path('/buyin/orienPlanAudit')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + function buyinExclusivePlan(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('buyin.exclusivePlan')
  148 + ->path('/buyin/exclusivePlan')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + function buyinExclusivePlanAuthorOperate(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('buyin.exclusivePlanAuthorOperate')
  159 + ->path('/buyin/exclusivePlanAuthorOperate')
  160 + ->params($params);
  161 + }
  162 +
  163 + /**
  164 + * @inheritDoc
  165 + */
  166 + function allianceColonelActivityCreateOrUpdate(array $params)
  167 + {
  168 + $this->builder->method('POST')
  169 + ->service('alliance.colonelActivityCreateOrUpdate')
  170 + ->path('/alliance/colonelActivityCreateOrUpdate')
  171 + ->params($params);
  172 + }
  173 +
  174 + /**
  175 + * @inheritDoc
  176 + */
  177 + function allianceActivityProductCategoryList(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('alliance.activityProductCategoryList')
  181 + ->path('/alliance/activityProductCategoryList')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + function allianceInstituteColonelActivityList(array $params)
  189 + {
  190 + $this->builder->method('POST')
  191 + ->service('alliance.instituteColonelActivityList')
  192 + ->path('/alliance/instituteColonelActivityList')
  193 + ->params($params);
  194 + }
  195 +
  196 + /**
  197 + * @inheritDoc
  198 + */
  199 + function allianceInstituteColonelActivityOperate(array $params)
  200 + {
  201 + $this->builder->method('POST')
  202 + ->service('alliance.instituteColonelActivityOperate')
  203 + ->path('/alliance/instituteColonelActivityOperate')
  204 + ->params($params);
  205 + }
  206 +
  207 + /**
  208 + * @inheritDoc
  209 + */
  210 + function allianceColonelActivityProduct(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('alliance.colonelActivityProduct')
  214 + ->path('/alliance/colonelActivityProduct')
  215 + ->params($params);
  216 + }
  217 +
  218 + /**
  219 + * @inheritDoc
  220 + */
  221 + function allianceColonelActivityProductAudit(array $params)
  222 + {
  223 + $this->builder->method('POST')
  224 + ->service('alliance.colonelActivityProductAudit')
  225 + ->path('/alliance/colonelActivityProductAudit')
  226 + ->params($params);
  227 + }
  228 +
  229 + /**
  230 + * @inheritDoc
  231 + */
  232 + function buyinColonel/specialApplyList(array $params)
  233 + {
  234 + $this->builder->method('POST')
  235 + ->service('buyin.colonel/specialApplyList')
  236 + ->path('/buyin/colonel/specialApplyList')
  237 + ->params($params);
  238 + }
  239 +
  240 + /**
  241 + * @inheritDoc
  242 + */
  243 + function allianceColonelActivityProductExtension(array $params)
  244 + {
  245 + $this->builder->method('POST')
  246 + ->service('alliance.colonelActivityProductExtension')
  247 + ->path('/alliance/colonelActivityProductExtension')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + function buyinColonel/specialApplyDeal(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('buyin.colonel/specialApplyDeal')
  258 + ->path('/buyin/colonel/specialApplyDeal')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + function buyinOriginColonelEnrollableActivityList(array $params)
  266 + {
  267 + $this->builder->method('POST')
  268 + ->service('buyin.originColonelEnrollableActivityList')
  269 + ->path('/buyin/originColonelEnrollableActivityList')
  270 + ->params($params);
  271 + }
  272 +
  273 + /**
  274 + * @inheritDoc
  275 + */
  276 + function buyinColonelActivityDetail(array $params)
  277 + {
  278 + $this->builder->method('POST')
  279 + ->service('buyin.colonelActivityDetail')
  280 + ->path('/buyin/colonelActivityDetail')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + function buyinOriginColonelUnappliedProductList(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('buyin.originColonelUnappliedProductList')
  291 + ->path('/buyin/originColonelUnappliedProductList')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + function buyinOriginColonelApplyActivities(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('buyin.originColonelApplyActivities')
  302 + ->path('/buyin/originColonelApplyActivities')
  303 + ->params($params);
  304 + }
  305 +
  306 + /**
  307 + * @inheritDoc
  308 + */
  309 + function buyinActivityProductList(array $params)
  310 + {
  311 + $this->builder->method('POST')
  312 + ->service('buyin.activityProductList')
  313 + ->path('/buyin/activityProductList')
  314 + ->params($params);
  315 + }
  316 +
  317 + /**
  318 + * @inheritDoc
  319 + */
  320 + function buyinActivityProductCancel(array $params)
  321 + {
  322 + $this->builder->method('POST')
  323 + ->service('buyin.activityProductCancel')
  324 + ->path('/buyin/activityProductCancel')
  325 + ->params($params);
  326 + }
  327 +
  328 + /**
  329 + * @inheritDoc
  330 + */
  331 + function allianceMaterialsProductsSearch(array $params)
  332 + {
  333 + $this->builder->method('POST')
  334 + ->service('alliance.materialsProductsSearch')
  335 + ->path('/alliance/materialsProductsSearch')
  336 + ->params($params);
  337 + }
  338 +
  339 + /**
  340 + * @inheritDoc
  341 + */
  342 + function buyinSimplePlanList(array $params)
  343 + {
  344 + $this->builder->method('POST')
  345 + ->service('buyin.simplePlanList')
  346 + ->path('/buyin/simplePlanList')
  347 + ->params($params);
  348 + }
  349 +
  350 + /**
  351 + * @inheritDoc
  352 + */
  353 + function allianceMaterialsProductsDetails(array $params)
  354 + {
  355 + $this->builder->method('POST')
  356 + ->service('alliance.materialsProductsDetails')
  357 + ->path('/alliance/materialsProductsDetails')
  358 + ->params($params);
  359 + }
  360 +
  361 + /**
  362 + * @inheritDoc
  363 + */
  364 + function buyinProductSkus(array $params)
  365 + {
  366 + $this->builder->method('POST')
  367 + ->service('buyin.productSkus')
  368 + ->path('/buyin/productSkus')
  369 + ->params($params);
  370 + }
  371 +
  372 + /**
  373 + * @inheritDoc
  374 + */
  375 + function allianceMaterialsProductCategory(array $params)
  376 + {
  377 + $this->builder->method('POST')
  378 + ->service('alliance.materialsProductCategory')
  379 + ->path('/alliance/materialsProductCategory')
  380 + ->params($params);
  381 + }
  382 +
  383 + /**
  384 + * @inheritDoc
  385 + */
  386 + function buyinMaterialsProductStatus(array $params)
  387 + {
  388 + $this->builder->method('POST')
  389 + ->service('buyin.materialsProductStatus')
  390 + ->path('/buyin/materialsProductStatus')
  391 + ->params($params);
  392 + }
  393 +
  394 + /**
  395 + * @inheritDoc
  396 + */
  397 + function buyinKolMaterialsProductsSearch(array $params)
  398 + {
  399 + $this->builder->method('POST')
  400 + ->service('buyin.kolMaterialsProductsSearch')
  401 + ->path('/buyin/kolMaterialsProductsSearch')
  402 + ->params($params);
  403 + }
  404 +
  405 + /**
  406 + * @inheritDoc
  407 + */
  408 + function buyinKolMaterialsProductsDetails(array $params)
  409 + {
  410 + $this->builder->method('POST')
  411 + ->service('buyin.kolMaterialsProductsDetails')
  412 + ->path('/buyin/kolMaterialsProductsDetails')
  413 + ->params($params);
  414 + }
  415 +
  416 + /**
  417 + * @inheritDoc
  418 + */
  419 + function buyinQueryInstituteOrders(array $params)
  420 + {
  421 + $this->builder->method('POST')
  422 + ->service('buyin.queryInstituteOrders')
  423 + ->path('/buyin/queryInstituteOrders')
  424 + ->params($params);
  425 + }
  426 +
  427 + /**
  428 + * @inheritDoc
  429 + */
  430 + function buyinInstituteOrderMCN(array $params)
  431 + {
  432 + $this->builder->method('POST')
  433 + ->service('buyin.instituteOrderMCN')
  434 + ->path('/buyin/instituteOrderMCN')
  435 + ->params($params);
  436 + }
  437 +
  438 + /**
  439 + * @inheritDoc
  440 + */
  441 + function buyinInstituteOrderColonel(array $params)
  442 + {
  443 + $this->builder->method('POST')
  444 + ->service('buyin.instituteOrderColonel')
  445 + ->path('/buyin/instituteOrderColonel')
  446 + ->params($params);
  447 + }
  448 +
  449 + /**
  450 + * @inheritDoc
  451 + */
  452 + function buyinInstPickSourceConvert(array $params)
  453 + {
  454 + $this->builder->method('POST')
  455 + ->service('buyin.instPickSourceConvert')
  456 + ->path('/buyin/instPickSourceConvert')
  457 + ->params($params);
  458 + }
  459 +
  460 + /**
  461 + * @inheritDoc
  462 + */
  463 + function buyinInstGmv(array $params)
  464 + {
  465 + $this->builder->method('POST')
  466 + ->service('buyin.instGmv')
  467 + ->path('/buyin/instGmv')
  468 + ->params($params);
  469 + }
  470 +
  471 + /**
  472 + * @inheritDoc
  473 + */
  474 + function buyinInstGmvDetail(array $params)
  475 + {
  476 + $this->builder->method('POST')
  477 + ->service('buyin.instGmvDetail')
  478 + ->path('/buyin/instGmvDetail')
  479 + ->params($params);
  480 + }
  481 +
  482 + /**
  483 + * @inheritDoc
  484 + */
  485 + function buyinKolPidCreate(array $params)
  486 + {
  487 + $this->builder->method('POST')
  488 + ->service('buyin.kolPidCreate')
  489 + ->path('/buyin/kolPidCreate')
  490 + ->params($params);
  491 + }
  492 +
  493 + /**
  494 + * @inheritDoc
  495 + */
  496 + function buyinKolPidList(array $params)
  497 + {
  498 + $this->builder->method('POST')
  499 + ->service('buyin.kolPidList')
  500 + ->path('/buyin/kolPidList')
  501 + ->params($params);
  502 + }
  503 +
  504 + /**
  505 + * @inheritDoc
  506 + */
  507 + function buyinKolPidEdit(array $params)
  508 + {
  509 + $this->builder->method('POST')
  510 + ->service('buyin.kolPidEdit')
  511 + ->path('/buyin/kolPidEdit')
  512 + ->params($params);
  513 + }
  514 +
  515 + /**
  516 + * @inheritDoc
  517 + */
  518 + function buyinKolPidDel(array $params)
  519 + {
  520 + $this->builder->method('POST')
  521 + ->service('buyin.kolPidDel')
  522 + ->path('/buyin/kolPidDel')
  523 + ->params($params);
  524 + }
  525 +
  526 + /**
  527 + * @inheritDoc
  528 + */
  529 + function buyinShareCommandParse(array $params)
  530 + {
  531 + $this->builder->method('POST')
  532 + ->service('buyin.shareCommandParse')
  533 + ->path('/buyin/shareCommandParse')
  534 + ->params($params);
  535 + }
  536 +
  537 + /**
  538 + * @inheritDoc
  539 + */
  540 + function buyinKolProductShare(array $params)
  541 + {
  542 + $this->builder->method('POST')
  543 + ->service('buyin.kolProductShare')
  544 + ->path('/buyin/kolProductShare')
  545 + ->params($params);
  546 + }
  547 +
  548 + /**
  549 + * @inheritDoc
  550 + */
  551 + function buyinInstitutePidCreate(array $params)
  552 + {
  553 + $this->builder->method('POST')
  554 + ->service('buyin.institutePidCreate')
  555 + ->path('/buyin/institutePidCreate')
  556 + ->params($params);
  557 + }
  558 +
  559 + /**
  560 + * @inheritDoc
  561 + */
  562 + function buyinInstitutePidList(array $params)
  563 + {
  564 + $this->builder->method('POST')
  565 + ->service('buyin.institutePidList')
  566 + ->path('/buyin/institutePidList')
  567 + ->params($params);
  568 + }
  569 +
  570 + /**
  571 + * @inheritDoc
  572 + */
  573 + function buyinInstitutePidEdit(array $params)
  574 + {
  575 + $this->builder->method('POST')
  576 + ->service('buyin.institutePidEdit')
  577 + ->path('/buyin/institutePidEdit')
  578 + ->params($params);
  579 + }
  580 +
  581 + /**
  582 + * @inheritDoc
  583 + */
  584 + function buyinInstitutePidDel(array $params)
  585 + {
  586 + $this->builder->method('POST')
  587 + ->service('buyin.institutePidDel')
  588 + ->path('/buyin/institutePidDel')
  589 + ->params($params);
  590 + }
  591 +
  592 + /**
  593 + * @inheritDoc
  594 + */
  595 + function buyinLiveShareMaterial(array $params)
  596 + {
  597 + $this->builder->method('POST')
  598 + ->service('buyin.liveShareMaterial')
  599 + ->path('/buyin/liveShareMaterial')
  600 + ->params($params);
  601 + }
  602 +
  603 + /**
  604 + * @inheritDoc
  605 + */
  606 + function buyinDistributionLiveProductList(array $params)
  607 + {
  608 + $this->builder->method('POST')
  609 + ->service('buyin.distributionLiveProductList')
  610 + ->path('/buyin/distributionLiveProductList')
  611 + ->params($params);
  612 + }
  613 +
  614 + /**
  615 + * @inheritDoc
  616 + */
  617 + function buyinInstituteLiveShare(array $params)
  618 + {
  619 + $this->builder->method('POST')
  620 + ->service('buyin.instituteLiveShare')
  621 + ->path('/buyin/instituteLiveShare')
  622 + ->params($params);
  623 + }
  624 +
  625 + /**
  626 + * @inheritDoc
  627 + */
  628 + function buyinInstituteOrderAds(array $params)
  629 + {
  630 + $this->builder->method('POST')
  631 + ->service('buyin.instituteOrderAds')
  632 + ->path('/buyin/instituteOrderAds')
  633 + ->params($params);
  634 + }
  635 +
  636 + /**
  637 + * @inheritDoc
  638 + */
  639 + function buyinKolOrderAds(array $params)
  640 + {
  641 + $this->builder->method('POST')
  642 + ->service('buyin.kolOrderAds')
  643 + ->path('/buyin/kolOrderAds')
  644 + ->params($params);
  645 + }
  646 +
  647 + /**
  648 + * @inheritDoc
  649 + */
  650 + function buyinShopPidMemberCreate(array $params)
  651 + {
  652 + $this->builder->method('POST')
  653 + ->service('buyin.shopPidMemberCreate')
  654 + ->path('/buyin/shopPidMemberCreate')
  655 + ->params($params);
  656 + }
  657 +
  658 + /**
  659 + * @inheritDoc
  660 + */
  661 + function buyinKolLiveShare(array $params)
  662 + {
  663 + $this->builder->method('POST')
  664 + ->service('buyin.kolLiveShare')
  665 + ->path('/buyin/kolLiveShare')
  666 + ->params($params);
  667 + }
  668 +
  669 + /**
  670 + * @inheritDoc
  671 + */
  672 + function buyinMHandleTrusteeshipApply(array $params)
  673 + {
  674 + $this->builder->method('POST')
  675 + ->service('buyin.mHandleTrusteeshipApply')
  676 + ->path('/buyin/mHandleTrusteeshipApply')
  677 + ->params($params);
  678 + }
  679 +
  680 + /**
  681 + * @inheritDoc
  682 + */
  683 + function buyinColonel/trusteeshipList(array $params)
  684 + {
  685 + $this->builder->method('POST')
  686 + ->service('buyin.colonel/trusteeshipList')
  687 + ->path('/buyin/colonel/trusteeshipList')
  688 + ->params($params);
  689 + }
  690 +
  691 + /**
  692 + * @inheritDoc
  693 + */
  694 + function buyinInstituteOrderPick(array $params)
  695 + {
  696 + $this->builder->method('POST')
  697 + ->service('buyin.instituteOrderPick')
  698 + ->path('/buyin/instituteOrderPick')
  699 + ->params($params);
  700 + }
  701 +
  702 + /**
  703 + * @inheritDoc
  704 + */
  705 + function buyinInstituteLivePreviewShare(array $params)
  706 + {
  707 + $this->builder->method('POST')
  708 + ->service('buyin.instituteLivePreviewShare')
  709 + ->path('/buyin/instituteLivePreviewShare')
  710 + ->params($params);
  711 + }
  712 +
  713 + /**
  714 + * @inheritDoc
  715 + */
  716 + function buyinKolLivePreviewShare(array $params)
  717 + {
  718 + $this->builder->method('POST')
  719 + ->service('buyin.kolLivePreviewShare')
  720 + ->path('/buyin/kolLivePreviewShare')
  721 + ->params($params);
  722 + }
  723 +
  724 + /**
  725 + * @inheritDoc
  726 + */
  727 + function buyinActivityShareConvert(array $params)
  728 + {
  729 + $this->builder->method('POST')
  730 + ->service('buyin.activityShareConvert')
  731 + ->path('/buyin/activityShareConvert')
  732 + ->params($params);
  733 + }
  734 +}
  1 +<?php
  2 +namespace Lackoxygen\TiktokShop\Passage\Buyin;
  3 +
  4 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  5 +
  6 +/**
  7 + * @note 精选联盟API
  8 + */
  9 +interface BuyinInterface
  10 +{
  11 + /**
  12 + * 创建/修改普通商品推广计划
  13 + * @link https://op.jinritemai.com/docs/api-docs/61/923
  14 + * @param array $params
  15 + * @return ResultSet
  16 + */
  17 + function buyinSimplePlan(array $params);
  18 +
  19 + /**
  20 + * 商家可参与的团长活动查询接口
  21 + * @link https://op.jinritemai.com/docs/api-docs/61/1671
  22 + * @param array $params
  23 + * @return ResultSet
  24 + */
  25 + function buyinShopActivityList(array $params);
  26 +
  27 + /**
  28 + * 商家侧获取团长活动详情
  29 + * @link https://op.jinritemai.com/docs/api-docs/61/1797
  30 + * @param array $params
  31 + * @return ResultSet
  32 + */
  33 + function buyinShopActivityDetail(array $params);
  34 +
  35 + /**
  36 + * 商品团长活动提报接口
  37 + * @link https://op.jinritemai.com/docs/api-docs/61/744
  38 + * @param array $params
  39 + * @return ResultSet
  40 + */
  41 + function buyinApplyActivities(array $params);
  42 +
  43 + /**
  44 + * 延长推广待处理/已处理记录查询
  45 + * @link https://op.jinritemai.com/docs/api-docs/61/1674
  46 + * @param array $params
  47 + * @return ResultSet
  48 + */
  49 + function buyinActivityProductExtendList(array $params);
  50 +
  51 + /**
  52 + * 商家处理团长活动商品的推广延期申请
  53 + * @link https://op.jinritemai.com/docs/api-docs/61/1673
  54 + * @param array $params
  55 + * @return ResultSet
  56 + */
  57 + function buyinActivityProductExtendApprove(array $params);
  58 +
  59 + /**
  60 + * 创建/修改商品定向计划
  61 + * @link https://op.jinritemai.com/docs/api-docs/61/708
  62 + * @param array $params
  63 + * @return ResultSet
  64 + */
  65 + function buyinCreateOrUpdateOrienPlan(array $params);
  66 +
  67 + /**
  68 + * 商品定向计划查询
  69 + * @link https://op.jinritemai.com/docs/api-docs/61/705
  70 + * @param array $params
  71 + * @return ResultSet
  72 + */
  73 + function buyinOrienPlanList(array $params);
  74 +
  75 + /**
  76 + * 商品定向计划管理
  77 + * @link https://op.jinritemai.com/docs/api-docs/61/704
  78 + * @param array $params
  79 + * @return ResultSet
  80 + */
  81 + function buyinOrienPlanCtrl(array $params);
  82 +
  83 + /**
  84 + * 查询定向计划作者列表
  85 + * @link https://op.jinritemai.com/docs/api-docs/61/1879
  86 + * @param array $params
  87 + * @return ResultSet
  88 + */
  89 + function buyinOrienPlanAuthors(array $params);
  90 +
  91 + /**
  92 + * 向指定定向计划中添加达人
  93 + * @link https://op.jinritemai.com/docs/api-docs/61/1877
  94 + * @param array $params
  95 + * @return ResultSet
  96 + */
  97 + function buyinOrienPlanAuthorsAdd(array $params);
  98 +
  99 + /**
  100 + * 定向计划达人申请审核
  101 + * @link https://op.jinritemai.com/docs/api-docs/61/1878
  102 + * @param array $params
  103 + * @return ResultSet
  104 + */
  105 + function buyinOrienPlanAudit(array $params);
  106 +
  107 + /**
  108 + * 创建/修改商品专属推广计划
  109 + * @link https://op.jinritemai.com/docs/api-docs/61/1880
  110 + * @param array $params
  111 + * @return ResultSet
  112 + */
  113 + function buyinExclusivePlan(array $params);
  114 +
  115 + /**
  116 + * 店铺专属达人管理
  117 + * @link https://op.jinritemai.com/docs/api-docs/61/1935
  118 + * @param array $params
  119 + * @return ResultSet
  120 + */
  121 + function buyinExclusivePlanAuthorOperate(array $params);
  122 +
  123 + /**
  124 + * 团长活动创建/编辑接口
  125 + * @link https://op.jinritemai.com/docs/api-docs/61/966
  126 + * @param array $params
  127 + * @return ResultSet
  128 + */
  129 + function allianceColonelActivityCreateOrUpdate(array $params);
  130 +
  131 + /**
  132 + * 创建活动时候可选择的类目接口
  133 + * @link https://op.jinritemai.com/docs/api-docs/61/1882
  134 + * @param array $params
  135 + * @return ResultSet
  136 + */
  137 + function allianceActivityProductCategoryList(array $params);
  138 +
  139 + /**
  140 + * 团长活动查询接口
  141 + * @link https://op.jinritemai.com/docs/api-docs/61/1330
  142 + * @param array $params
  143 + * @return ResultSet
  144 + */
  145 + function allianceInstituteColonelActivityList(array $params);
  146 +
  147 + /**
  148 + * 专属团长活动删除接口(下线+删除)
  149 + * @link https://op.jinritemai.com/docs/api-docs/61/972
  150 + * @param array $params
  151 + * @return ResultSet
  152 + */
  153 + function allianceInstituteColonelActivityOperate(array $params);
  154 +
  155 + /**
  156 + * 活动商品查询接口
  157 + * @link https://op.jinritemai.com/docs/api-docs/61/968
  158 + * @param array $params
  159 + * @return ResultSet
  160 + */
  161 + function allianceColonelActivityProduct(array $params);
  162 +
  163 + /**
  164 + * 专属团长活动商品审核接口
  165 + * @link https://op.jinritemai.com/docs/api-docs/61/971
  166 + * @param array $params
  167 + * @return ResultSet
  168 + */
  169 + function allianceColonelActivityProductAudit(array $params);
  170 +
  171 + /**
  172 + * 查询团长活动特殊申请
  173 + * @link https://op.jinritemai.com/docs/api-docs/61/1552
  174 + * @param array $params
  175 + * @return ResultSet
  176 + */
  177 + function buyinColonel/specialApplyList(array $params);
  178 +
  179 + /**
  180 + * 专属团长活动商品延时接口
  181 + * @link https://op.jinritemai.com/docs/api-docs/61/1881
  182 + * @param array $params
  183 + * @return ResultSet
  184 + */
  185 + function allianceColonelActivityProductExtension(array $params);
  186 +
  187 + /**
  188 + * 团长活动特殊申请审核
  189 + * @link https://op.jinritemai.com/docs/api-docs/61/1553
  190 + * @param array $params
  191 + * @return ResultSet
  192 + */
  193 + function buyinColonel/specialApplyDeal(array $params);
  194 +
  195 + /**
  196 + * 团长可参与的二级团长活动查询接口
  197 + * @link https://op.jinritemai.com/docs/api-docs/61/1675
  198 + * @param array $params
  199 + * @return ResultSet
  200 + */
  201 + function buyinOriginColonelEnrollableActivityList(array $params);
  202 +
  203 + /**
  204 + * 获取团长活动详情
  205 + * @link https://op.jinritemai.com/docs/api-docs/61/1670
  206 + * @param array $params
  207 + * @return ResultSet
  208 + */
  209 + function buyinColonelActivityDetail(array $params);
  210 +
  211 + /**
  212 + * 团长获取可提报二级团长活动的商品列表
  213 + * @link https://op.jinritemai.com/docs/api-docs/61/1677
  214 + * @param array $params
  215 + * @return ResultSet
  216 + */
  217 + function buyinOriginColonelUnappliedProductList(array $params);
  218 +
  219 + /**
  220 + * 团长报名二级团长活动
  221 + * @link https://op.jinritemai.com/docs/api-docs/61/1672
  222 + * @param array $params
  223 + * @return ResultSet
  224 + */
  225 + function buyinOriginColonelApplyActivities(array $params);
  226 +
  227 + /**
  228 + * 一级团长查询提报活动商品
  229 + * @link https://op.jinritemai.com/docs/api-docs/61/1926
  230 + * @param array $params
  231 + * @return ResultSet
  232 + */
  233 + function buyinActivityProductList(array $params);
  234 +
  235 + /**
  236 + * 一级团长取消活动提报申请接口
  237 + * @link https://op.jinritemai.com/docs/api-docs/61/1927
  238 + * @param array $params
  239 + * @return ResultSet
  240 + */
  241 + function buyinActivityProductCancel(array $params);
  242 +
  243 + /**
  244 + * 检索精选联盟商品
  245 + * @link https://op.jinritemai.com/docs/api-docs/61/924
  246 + * @param array $params
  247 + * @return ResultSet
  248 + */
  249 + function allianceMaterialsProductsSearch(array $params);
  250 +
  251 + /**
  252 + * 商品推广 普通计划查询
  253 + * @link https://op.jinritemai.com/docs/api-docs/61/349
  254 + * @param array $params
  255 + * @return ResultSet
  256 + */
  257 + function buyinSimplePlanList(array $params);
  258 +
  259 + /**
  260 + * 批量查询推广商品详情
  261 + * @link https://op.jinritemai.com/docs/api-docs/61/1356
  262 + * @param array $params
  263 + * @return ResultSet
  264 + */
  265 + function allianceMaterialsProductsDetails(array $params);
  266 +
  267 + /**
  268 + * 查询商品 SKU
  269 + * @link https://op.jinritemai.com/docs/api-docs/61/1626
  270 + * @param array $params
  271 + * @return ResultSet
  272 + */
  273 + function buyinProductSkus(array $params);
  274 +
  275 + /**
  276 + * 类目查询
  277 + * @link https://op.jinritemai.com/docs/api-docs/61/637
  278 + * @param array $params
  279 + * @return ResultSet
  280 + */
  281 + function allianceMaterialsProductCategory(array $params);
  282 +
  283 + /**
  284 + * 商品状态查询
  285 + * @link https://op.jinritemai.com/docs/api-docs/61/1497
  286 + * @param array $params
  287 + * @return ResultSet
  288 + */
  289 + function buyinMaterialsProductStatus(array $params);
  290 +
  291 + /**
  292 + * 检索精选联盟商品,需达人授权
  293 + * @link https://op.jinritemai.com/docs/api-docs/61/1725
  294 + * @param array $params
  295 + * @return ResultSet
  296 + */
  297 + function buyinKolMaterialsProductsSearch(array $params);
  298 +
  299 + /**
  300 + * 查询达人视角商品详情
  301 + * @link https://op.jinritemai.com/docs/api-docs/61/1589
  302 + * @param array $params
  303 + * @return ResultSet
  304 + */
  305 + function buyinKolMaterialsProductsDetails(array $params);
  306 +
  307 + /**
  308 + * 【即将下线】查询机构联盟订单
  309 + * @link https://op.jinritemai.com/docs/api-docs/61/1398
  310 + * @param array $params
  311 + * @return ResultSet
  312 + */
  313 + function buyinQueryInstituteOrders(array $params);
  314 +
  315 + /**
  316 + * 查询MCN机构订单
  317 + * @link https://op.jinritemai.com/docs/api-docs/61/1602
  318 + * @param array $params
  319 + * @return ResultSet
  320 + */
  321 + function buyinInstituteOrderMCN(array $params);
  322 +
  323 + /**
  324 + * 机构查询团长订单
  325 + * @link https://op.jinritemai.com/docs/api-docs/61/1603
  326 + * @param array $params
  327 + * @return ResultSet
  328 + */
  329 + function buyinInstituteOrderColonel(array $params);
  330 +
  331 + /**
  332 + * 商品选品来源转链
  333 + * @link https://op.jinritemai.com/docs/api-docs/61/1454
  334 + * @param array $params
  335 + * @return ResultSet
  336 + */
  337 + function buyinInstPickSourceConvert(array $params);
  338 +
  339 + /**
  340 + * 机构选品GMV查询接口
  341 + * @link https://op.jinritemai.com/docs/api-docs/61/1652
  342 + * @param array $params
  343 + * @return ResultSet
  344 + */
  345 + function buyinInstGmv(array $params);
  346 +
  347 + /**
  348 + * 机构选品GMV明细查询接口
  349 + * @link https://op.jinritemai.com/docs/api-docs/61/1653
  350 + * @param array $params
  351 + * @return ResultSet
  352 + */
  353 + function buyinInstGmvDetail(array $params);
  354 +
  355 + /**
  356 + * 达人PID创建
  357 + * @link https://op.jinritemai.com/docs/api-docs/61/1460
  358 + * @param array $params
  359 + * @return ResultSet
  360 + */
  361 + function buyinKolPidCreate(array $params);
  362 +
  363 + /**
  364 + * 达人PID查询接口
  365 + * @link https://op.jinritemai.com/docs/api-docs/61/1461
  366 + * @param array $params
  367 + * @return ResultSet
  368 + */
  369 + function buyinKolPidList(array $params);
  370 +
  371 + /**
  372 + * 达人PID 编辑
  373 + * @link https://op.jinritemai.com/docs/api-docs/61/1462
  374 + * @param array $params
  375 + * @return ResultSet
  376 + */
  377 + function buyinKolPidEdit(array $params);
  378 +
  379 + /**
  380 + * 达人PID删除
  381 + * @link https://op.jinritemai.com/docs/api-docs/61/1463
  382 + * @param array $params
  383 + * @return ResultSet
  384 + */
  385 + function buyinKolPidDel(array $params);
  386 +
  387 + /**
  388 + * 商品口令转商品解析
  389 + * @link https://op.jinritemai.com/docs/api-docs/61/1726
  390 + * @param array $params
  391 + * @return ResultSet
  392 + */
  393 + function buyinShareCommandParse(array $params);
  394 +
  395 + /**
  396 + * 达人商品分销转链
  397 + * @link https://op.jinritemai.com/docs/api-docs/61/1464
  398 + * @param array $params
  399 + * @return ResultSet
  400 + */
  401 + function buyinKolProductShare(array $params);
  402 +
  403 + /**
  404 + * 机构PID创建
  405 + * @link https://op.jinritemai.com/docs/api-docs/61/1273
  406 + * @param array $params
  407 + * @return ResultSet
  408 + */
  409 + function buyinInstitutePidCreate(array $params);
  410 +
  411 + /**
  412 + * 机构PID查询接口
  413 + * @link https://op.jinritemai.com/docs/api-docs/61/1269
  414 + * @param array $params
  415 + * @return ResultSet
  416 + */
  417 + function buyinInstitutePidList(array $params);
  418 +
  419 + /**
  420 + * 机构PID 编辑
  421 + * @link https://op.jinritemai.com/docs/api-docs/61/1270
  422 + * @param array $params
  423 + * @return ResultSet
  424 + */
  425 + function buyinInstitutePidEdit(array $params);
  426 +
  427 + /**
  428 + * 机构PID删除
  429 + * @link https://op.jinritemai.com/docs/api-docs/61/1271
  430 + * @param array $params
  431 + * @return ResultSet
  432 + */
  433 + function buyinInstitutePidDel(array $params);
  434 +
  435 + /**
  436 + * 直播间分销物料查询
  437 + * @link https://op.jinritemai.com/docs/api-docs/61/1396
  438 + * @param array $params
  439 + * @return ResultSet
  440 + */
  441 + function buyinLiveShareMaterial(array $params);
  442 +
  443 + /**
  444 + * 分销直播间商品列表
  445 + * @link https://op.jinritemai.com/docs/api-docs/61/1770
  446 + * @param array $params
  447 + * @return ResultSet
  448 + */
  449 + function buyinDistributionLiveProductList(array $params);
  450 +
  451 + /**
  452 + * 机构获取达人直播间分享链接
  453 + * @link https://op.jinritemai.com/docs/api-docs/61/1297
  454 + * @param array $params
  455 + * @return ResultSet
  456 + */
  457 + function buyinInstituteLiveShare(array $params);
  458 +
  459 + /**
  460 + * 查询抖客直播间分销订单
  461 + * @link https://op.jinritemai.com/docs/api-docs/61/1296
  462 + * @param array $params
  463 + * @return ResultSet
  464 + */
  465 + function buyinInstituteOrderAds(array $params);
  466 +
  467 + /**
  468 + * 查询达人的直播间分销、商品分销、活动页分销订单
  469 + * @link https://op.jinritemai.com/docs/api-docs/61/1459
  470 + * @param array $params
  471 + * @return ResultSet
  472 + */
  473 + function buyinKolOrderAds(array $params);
  474 +
  475 + /**
  476 + * 店铺会员绑定渠道关系创建
  477 + * @link https://op.jinritemai.com/docs/api-docs/61/1493
  478 + * @param array $params
  479 + * @return ResultSet
  480 + */
  481 + function buyinShopPidMemberCreate(array $params);
  482 +
  483 + /**
  484 + * 获取达人直播间分享链接
  485 + * @link https://op.jinritemai.com/docs/api-docs/61/1724
  486 + * @param array $params
  487 + * @return ResultSet
  488 + */
  489 + function buyinKolLiveShare(array $params);
  490 +
  491 + /**
  492 + * 团长托管商品审核
  493 + * @link https://op.jinritemai.com/docs/api-docs/61/2138
  494 + * @param array $params
  495 + * @return ResultSet
  496 + */
  497 + function buyinMHandleTrusteeshipApply(array $params);
  498 +
  499 + /**
  500 + * 团长托管商品查询
  501 + * @link https://op.jinritemai.com/docs/api-docs/61/2137
  502 + * @param array $params
  503 + * @return ResultSet
  504 + */
  505 + function buyinColonel/trusteeshipList(array $params);
  506 +
  507 + /**
  508 + * 选品订单明细查询接口
  509 + * @link https://op.jinritemai.com/docs/api-docs/61/2008
  510 + * @param array $params
  511 + * @return ResultSet
  512 + */
  513 + function buyinInstituteOrderPick(array $params);
  514 +
  515 + /**
  516 + * 机构直播预告转链
  517 + * @link https://op.jinritemai.com/docs/api-docs/61/2007
  518 + * @param array $params
  519 + * @return ResultSet
  520 + */
  521 + function buyinInstituteLivePreviewShare(array $params);
  522 +
  523 + /**
  524 + * 达人直播预告转链
  525 + * @link https://op.jinritemai.com/docs/api-docs/61/2006
  526 + * @param array $params
  527 + * @return ResultSet
  528 + */
  529 + function buyinKolLivePreviewShare(array $params);
  530 +
  531 + /**
  532 + * 活动页转链接口
  533 + * @link https://op.jinritemai.com/docs/api-docs/61/2003
  534 + * @param array $params
  535 + * @return ResultSet
  536 + */
  537 + function buyinActivityShareConvert(array $params);
  538 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Coupons;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Coupons extends Passage implements CouponsInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function couponsCancelVerify(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('coupons.cancelVerify')
  16 + ->path('/coupons/cancelVerify')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function couponsAbandon(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('coupons.abandon')
  27 + ->path('/coupons/abandon')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function couponsSyncV2(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('coupons.syncV2')
  38 + ->path('/coupons/syncV2')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function couponsVerifyV2(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('coupons.verifyV2')
  49 + ->path('/coupons/verifyV2')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function couponsCertVerifyUpdate(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('coupons.certVerifyUpdate')
  60 + ->path('/coupons/certVerifyUpdate')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function orderSettle(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('order.settle')
  71 + ->path('/coupons/list')
  72 + ->params($params);
  73 + }
  74 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Coupons;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 卡券API
  9 + */
  10 +interface CouponsInterface
  11 +{
  12 + /**
  13 + * 卡券取消核销接口
  14 + * @link https://op.jinritemai.com/docs/api-docs/52/668
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function couponsCancelVerify(array $params);
  19 +
  20 + /**
  21 + * 卡券废弃接口
  22 + * @link https://op.jinritemai.com/docs/api-docs/52/669
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function couponsAbandon(array $params);
  27 +
  28 + /**
  29 + * 卡券同步
  30 + * @link https://op.jinritemai.com/docs/api-docs/52/712
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function couponsSyncV2(array $params);
  35 +
  36 + /**
  37 + * 卡券核销接口V2版本
  38 + * @link https://op.jinritemai.com/docs/api-docs/52/797
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function couponsVerifyV2(array $params);
  43 +
  44 + /**
  45 + * 卡券核销次数更新
  46 + * @link https://op.jinritemai.com/docs/api-docs/52/900
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function couponsCertVerifyUpdate(array $params);
  51 +
  52 + /**
  53 + * 三方卡券列表查询
  54 + * @link https://op.jinritemai.com/docs/api-docs/52/369
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function orderSettle(array $params);
  59 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Crossborder;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Crossborder extends Passage implements CrossborderInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function dutyFreeOrderList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('dutyFree.orderList')
  16 + ->path('/dutyFree/orderList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function crossborderStockTaking(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('crossborder.stockTaking')
  27 + ->path('/crossborder/stockTaking')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function crossborderStockTransform(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('crossborder.stockTransform')
  38 + ->path('/crossborder/stockTransform')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function crossborderOrderInterception(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('crossborder.OrderInterception')
  49 + ->path('/crossborder/OrderInterception')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function crossborderTakingLogisticsInfo(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('crossborder.takingLogisticsInfo')
  60 + ->path('/crossborder/takingLogisticsInfo')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function crossborderWarehouseInOutboundEvent(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('crossborder.warehouseInOutboundEvent')
  71 + ->path('/crossborder/warehouseInOutboundEvent')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function crossBorderGetTradeOrderStatus(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('crossBorder.getTradeOrderStatus')
  82 + ->path('/crossBorder/getTradeOrderStatus')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function crossBorderCustomsTaxInfo(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('crossBorder.customsTaxInfo')
  93 + ->path('/crossBorder/customsTaxInfo')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function dutyFreeOrderConfirm(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('dutyFree.orderConfirm')
  104 + ->path('/dutyFree/orderConfirm')
  105 + ->params($params);
  106 + }
  107 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Crossborder;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 跨境API
  9 + */
  10 +interface CrossborderInterface
  11 +{
  12 + /**
  13 + * 商家拉单
  14 + * @link https://op.jinritemai.com/docs/api-docs/53/703
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function dutyFreeOrderList(array $params);
  19 +
  20 + /**
  21 + * 库存盘点回告
  22 + * @link https://op.jinritemai.com/docs/api-docs/53/883
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function crossborderStockTaking(array $params);
  27 +
  28 + /**
  29 + * 库存类型变动回告
  30 + * @link https://op.jinritemai.com/docs/api-docs/53/918
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function crossborderStockTransform(array $params);
  35 +
  36 + /**
  37 + * 服务商锁单结果回告
  38 + * @link https://op.jinritemai.com/docs/api-docs/53/920
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function crossborderOrderInterception(array $params);
  43 +
  44 + /**
  45 + * 运单信息回告
  46 + * @link https://op.jinritemai.com/docs/api-docs/53/1293
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function crossborderTakingLogisticsInfo(array $params);
  51 +
  52 + /**
  53 + * 入库和提货出库回告
  54 + * @link https://op.jinritemai.com/docs/api-docs/53/1205
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function crossborderWarehouseInOutboundEvent(array $params);
  59 +
  60 + /**
  61 + * 获取交易订单状态
  62 + * @link https://op.jinritemai.com/docs/api-docs/53/1650
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function crossBorderGetTradeOrderStatus(array $params);
  67 +
  68 + /**
  69 + * 服务商回告海关税费
  70 + * @link https://op.jinritemai.com/docs/api-docs/53/1761
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function crossBorderCustomsTaxInfo(array $params);
  75 +
  76 + /**
  77 + * 商家接单
  78 + * @link https://op.jinritemai.com/docs/api-docs/53/1873
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function dutyFreeOrderConfirm(array $params);
  83 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Iop;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Iop extends Passage implements IopInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function iopOrderList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('iop.orderList')
  16 + ->path('/iop/orderList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function iopWaybillGet(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('iop.waybillGet')
  27 + ->path('/iop/waybillGet')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function iopWaybillCancel(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('iop.waybillCancel')
  38 + ->path('/iop/waybillCancel')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function iopWaybillReturn(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('iop.waybillReturn')
  49 + ->path('/iop/waybillReturn')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function iopWaybillUpdate(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('iop.waybillUpdate')
  60 + ->path('/iop/waybillUpdate')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function iopOrderInfo(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('iop.orderInfo')
  71 + ->path('/iop/orderInfo')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function iopSellerDistribute(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('iop.sellerDistribute')
  82 + ->path('/iop/sellerDistribute')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function iopSellerOrderList(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('iop.sellerOrderList')
  93 + ->path('/iop/sellerOrderList')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function iopGetSellerList(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('iop.getSellerList')
  104 + ->path('/iop/getSellerList')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function iopRoleGet(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('iop.roleGet')
  115 + ->path('/iop/roleGet')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function iopSellerCancleDistribute(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('iop.sellerCancleDistribute')
  126 + ->path('/iop/sellerCancleDistribute')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function iopSellerSupplierList(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('iop.sellerSupplierList')
  137 + ->path('/iop/sellerSupplierList')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function iopSellerOrderInfo(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('iop.sellerOrderInfo')
  148 + ->path('/iop/sellerOrderInfo')
  149 + ->params($params);
  150 + }
  151 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Iop;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 代发API
  9 + */
  10 +interface IopInterface
  11 +{
  12 + /**
  13 + * 【厂商】查询代打订单列表
  14 + * @link https://op.jinritemai.com/docs/api-docs/59/673
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function iopOrderList(array $params);
  19 +
  20 + /**
  21 + * 【厂商】电子面单取号
  22 + * @link https://op.jinritemai.com/docs/api-docs/59/674
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function iopWaybillGet(array $params);
  27 +
  28 + /**
  29 + * 【厂商】取消电子面单
  30 + * @link https://op.jinritemai.com/docs/api-docs/59/675
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function iopWaybillCancel(array $params);
  35 +
  36 + /**
  37 + * 【厂商】代发订单发货接口
  38 + * @link https://op.jinritemai.com/docs/api-docs/59/676
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function iopWaybillReturn(array $params);
  43 +
  44 + /**
  45 + * 【厂商】代发订单更新发货接口
  46 + * @link https://op.jinritemai.com/docs/api-docs/59/677
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function iopWaybillUpdate(array $params);
  51 +
  52 + /**
  53 + * 【厂商】订单详情
  54 + * @link https://op.jinritemai.com/docs/api-docs/59/678
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function iopOrderInfo(array $params);
  59 +
  60 + /**
  61 + * 【商家】分配代发订单
  62 + * @link https://op.jinritemai.com/docs/api-docs/59/958
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function iopSellerDistribute(array $params);
  67 +
  68 + /**
  69 + * 【商家】查看代发订单列表
  70 + * @link https://op.jinritemai.com/docs/api-docs/59/960
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function iopSellerOrderList(array $params);
  75 +
  76 + /**
  77 + * 【厂家】查询商家列表
  78 + * @link https://op.jinritemai.com/docs/api-docs/59/1752
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function iopGetSellerList(array $params);
  83 +
  84 + /**
  85 + * 【厂商】查询店铺身份
  86 + * @link https://op.jinritemai.com/docs/api-docs/59/1874
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function iopRoleGet(array $params);
  91 +
  92 + /**
  93 + * 【商家】取消分配代发订单
  94 + * @link https://op.jinritemai.com/docs/api-docs/59/1876
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function iopSellerCancleDistribute(array $params);
  99 +
  100 + /**
  101 + * 【商家】查询厂商管理列表
  102 + * @link https://op.jinritemai.com/docs/api-docs/59/1799
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function iopSellerSupplierList(array $params);
  107 +
  108 + /**
  109 + * 【商家】查看代发订单详情
  110 + * @link https://op.jinritemai.com/docs/api-docs/59/1875
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function iopSellerOrderInfo(array $params);
  115 +}
@@ -9,67 +9,66 @@ class Logistics extends Passage implements LogisticsInterface @@ -9,67 +9,66 @@ class Logistics extends Passage implements LogisticsInterface
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function appendSubOrder(array $params) 12 + public function logisticsAppendSubOrder(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('logistics.appendSubOrder') 15 ->service('logistics.appendSubOrder')
16 - ->path('logistics/appendSubOrder') 16 + ->path('/logistics/appendSubOrder')
17 ->params($params); 17 ->params($params);
18 } 18 }
19 19
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function logisticsCompanyList(array $params) 23 + public function orderLogisticsCompanyList(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('order.logisticsCompanyList') 26 ->service('order.logisticsCompanyList')
27 - ->path('order/logisticsCompanyList') 27 + ->path('/order/logisticsCompanyList')
28 ->params($params); 28 ->params($params);
29 } 29 }
30 30
31 -  
32 /** 31 /**
33 * @inheritDoc 32 * @inheritDoc
34 */ 33 */
35 - public function add(array $params) 34 + public function orderLogisticsAdd(array $params)
36 { 35 {
37 $this->builder->method('POST') 36 $this->builder->method('POST')
38 ->service('order.logisticsAdd') 37 ->service('order.logisticsAdd')
39 - ->path('order/logisticsAdd') 38 + ->path('/order/logisticsAdd')
40 ->params($params); 39 ->params($params);
41 } 40 }
42 41
43 /** 42 /**
44 * @inheritDoc 43 * @inheritDoc
45 */ 44 */
46 - public function edit(array $params) 45 + public function orderLogisticsEdit(array $params)
47 { 46 {
48 $this->builder->method('POST') 47 $this->builder->method('POST')
49 ->service('order.logisticsEdit') 48 ->service('order.logisticsEdit')
50 - ->path('order/logisticsEdit') 49 + ->path('/order/logisticsEdit')
51 ->params($params); 50 ->params($params);
52 } 51 }
53 52
54 /** 53 /**
55 * @inheritDoc 54 * @inheritDoc
56 */ 55 */
57 - public function logisticsEditByPack(array $params) 56 + public function orderLogisticsEditByPack(array $params)
58 { 57 {
59 $this->builder->method('POST') 58 $this->builder->method('POST')
60 ->service('order.logisticsEditByPack') 59 ->service('order.logisticsEditByPack')
61 - ->path('order/logisticsEditByPack') 60 + ->path('/order/logisticsEditByPack')
62 ->params($params); 61 ->params($params);
63 } 62 }
64 63
65 /** 64 /**
66 * @inheritDoc 65 * @inheritDoc
67 */ 66 */
68 - public function logisticsAddMultiPack(array $params) 67 + public function orderLogisticsAddMultiPack(array $params)
69 { 68 {
70 $this->builder->method('POST') 69 $this->builder->method('POST')
71 ->service('order.logisticsAddMultiPack') 70 ->service('order.logisticsAddMultiPack')
72 - ->path('order/logisticsAddMultiPack') 71 + ->path('/order/logisticsAddMultiPack')
73 ->params($params); 72 ->params($params);
74 } 73 }
75 74
@@ -80,140 +79,403 @@ class Logistics extends Passage implements LogisticsInterface @@ -80,140 +79,403 @@ class Logistics extends Passage implements LogisticsInterface
80 { 79 {
81 $this->builder->method('POST') 80 $this->builder->method('POST')
82 ->service('freightTemplate.list') 81 ->service('freightTemplate.list')
83 - ->path('freightTemplate/list') 82 + ->path('/freightTemplate/list')
84 ->params($params); 83 ->params($params);
85 } 84 }
86 85
87 /** 86 /**
88 * @inheritDoc 87 * @inheritDoc
89 */ 88 */
90 - public function logisticsAddSinglePack(array $params) 89 + public function orderLogisticsAddSinglePack(array $params)
91 { 90 {
92 $this->builder->method('POST') 91 $this->builder->method('POST')
93 ->service('order.logisticsAddSinglePack') 92 ->service('order.logisticsAddSinglePack')
94 - ->path('order/logisticsAddSinglePack') 93 + ->path('/order/logisticsAddSinglePack')
95 ->params($params); 94 ->params($params);
96 } 95 }
97 96
98 /** 97 /**
99 * @inheritDoc 98 * @inheritDoc
100 */ 99 */
101 - public function updateOrder(array $params) 100 + public function logisticsUpdateOrder(array $params)
102 { 101 {
103 $this->builder->method('POST') 102 $this->builder->method('POST')
104 ->service('logistics.updateOrder') 103 ->service('logistics.updateOrder')
105 - ->path('logistics/updateOrder') 104 + ->path('/logistics/updateOrder')
106 ->params($params); 105 ->params($params);
107 } 106 }
108 107
109 /** 108 /**
110 * @inheritDoc 109 * @inheritDoc
111 */ 110 */
112 - public function cancelOrder(array $params) 111 + public function logisticsCancelOrder(array $params)
113 { 112 {
114 $this->builder->method('POST') 113 $this->builder->method('POST')
115 ->service('logistics.cancelOrder') 114 ->service('logistics.cancelOrder')
116 - ->path('logistics/cancelOrder') 115 + ->path('/logistics/cancelOrder')
117 ->params($params); 116 ->params($params);
118 } 117 }
119 118
120 /** 119 /**
121 * @inheritDoc 120 * @inheritDoc
122 */ 121 */
123 - public function orderOperate(array $params) 122 + public function crossBorderOrderOperate(array $params)
124 { 123 {
125 $this->builder->method('POST') 124 $this->builder->method('POST')
126 ->service('crossBorder.orderOperate') 125 ->service('crossBorder.orderOperate')
127 - ->path('crossBorder/orderOperate') 126 + ->path('/crossBorder/orderOperate')
128 ->params($params); 127 ->params($params);
129 } 128 }
130 129
131 /** 130 /**
132 * @inheritDoc 131 * @inheritDoc
133 */ 132 */
134 - public function orderCustomClearance(array $params) 133 + public function crossborderOrderCustomClearance(array $params)
135 { 134 {
136 $this->builder->method('POST') 135 $this->builder->method('POST')
137 ->service('crossborder.orderCustomClearance') 136 ->service('crossborder.orderCustomClearance')
138 - ->path('crossborder/orderCustomClearance') 137 + ->path('/crossborder/orderCustomClearance')
139 ->params($params); 138 ->params($params);
140 } 139 }
141 140
142 -  
143 /** 141 /**
144 * @inheritDoc 142 * @inheritDoc
145 */ 143 */
146 - public function orderLogisticsTrace(array $params) 144 + public function crossborderOrderLogisticsTrace(array $params)
147 { 145 {
148 $this->builder->method('POST') 146 $this->builder->method('POST')
149 ->service('crossborder.orderLogisticsTrace') 147 ->service('crossborder.orderLogisticsTrace')
150 - ->path('crossborder/orderLogisticsTrace') 148 + ->path('/crossborder/orderLogisticsTrace')
151 ->params($params); 149 ->params($params);
152 } 150 }
153 151
154 /** 152 /**
155 * @inheritDoc 153 * @inheritDoc
156 */ 154 */
157 - public function customTemplateList(array $params) 155 + public function logisticsCustomTemplateList(array $params)
158 { 156 {
159 $this->builder->method('POST') 157 $this->builder->method('POST')
160 ->service('logistics.customTemplateList') 158 ->service('logistics.customTemplateList')
161 - ->path('logistics/customTemplateList') 159 + ->path('/logistics/customTemplateList')
162 ->params($params); 160 ->params($params);
163 } 161 }
164 162
165 /** 163 /**
166 * @inheritDoc 164 * @inheritDoc
167 */ 165 */
168 - public function getOutRange(array $params) 166 + public function logisticsGetOutRange(array $params)
169 { 167 {
170 $this->builder->method('POST') 168 $this->builder->method('POST')
171 ->service('logistics.getOutRange') 169 ->service('logistics.getOutRange')
172 - ->path('logistics/getOutRange') 170 + ->path('/logistics/getOutRange')
173 ->params($params); 171 ->params($params);
174 } 172 }
175 173
176 /** 174 /**
177 * @inheritDoc 175 * @inheritDoc
178 */ 176 */
179 - public function templateList(array $params) 177 + public function crossBorderOrderConfirm(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('crossBorder.orderConfirm')
  181 + ->path('/crossBorder/orderConfirm')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + public function logisticsTemplateList(array $params)
180 { 189 {
181 $this->builder->method('POST') 190 $this->builder->method('POST')
182 ->service('logistics.templateList') 191 ->service('logistics.templateList')
183 - ->path('logistics/templateList') 192 + ->path('/logistics/templateList')
184 ->params($params); 193 ->params($params);
185 } 194 }
186 195
187 /** 196 /**
188 * @inheritDoc 197 * @inheritDoc
189 */ 198 */
190 - public function waybillApply(array $params) 199 + public function logisticsWaybillApply(array $params)
191 { 200 {
192 $this->builder->method('POST') 201 $this->builder->method('POST')
193 ->service('logistics.waybillApply') 202 ->service('logistics.waybillApply')
194 - ->path('logistics/waybillApply') 203 + ->path('/logistics/waybillApply')
195 ->params($params); 204 ->params($params);
196 } 205 }
197 206
198 /** 207 /**
199 * @inheritDoc 208 * @inheritDoc
200 */ 209 */
201 - public function deliveryNotice(array $params) 210 + public function logisticsDeliveryNotice(array $params)
202 { 211 {
203 $this->builder->method('POST') 212 $this->builder->method('POST')
204 ->service('logistics.deliveryNotice') 213 ->service('logistics.deliveryNotice')
205 - ->path('logistics/deliveryNotice') 214 + ->path('/logistics/deliveryNotice')
206 ->params($params); 215 ->params($params);
207 } 216 }
208 217
209 /** 218 /**
210 * @inheritDoc 219 * @inheritDoc
211 */ 220 */
212 - public function isByteDancePackage(array $params) 221 + public function powerIsByteDancePackage(array $params)
213 { 222 {
214 $this->builder->method('POST') 223 $this->builder->method('POST')
215 ->service('power.isByteDancePackage') 224 ->service('power.isByteDancePackage')
216 - ->path('power/isByteDancePackage') 225 + ->path('/power/isByteDancePackage')
  226 + ->params($params);
  227 + }
  228 +
  229 + /**
  230 + * @inheritDoc
  231 + */
  232 + public function powerPushFirstSortCode(array $params)
  233 + {
  234 + $this->builder->method('POST')
  235 + ->service('power.pushFirstSortCode')
  236 + ->path('/power/pushFirstSortCode')
  237 + ->params($params);
  238 + }
  239 +
  240 + /**
  241 + * @inheritDoc
  242 + */
  243 + public function powerPushCustomSortCode(array $params)
  244 + {
  245 + $this->builder->method('POST')
  246 + ->service('power.pushCustomSortCode')
  247 + ->path('/power/pushCustomSortCode')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + public function powerPushThirdSortCode(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('power.pushThirdSortCode')
  258 + ->path('/power/pushThirdSortCode')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + public function logisticsNewCreateOrder(array $params)
  266 + {
  267 + $this->builder->method('POST')
  268 + ->service('logistics.newCreateOrder')
  269 + ->path('/logistics/newCreateOrder')
  270 + ->params($params);
  271 + }
  272 +
  273 + /**
  274 + * @inheritDoc
  275 + */
  276 + public function logisticsQueryPackageRoute(array $params)
  277 + {
  278 + $this->builder->method('POST')
  279 + ->service('logistics.queryPackageRoute')
  280 + ->path('/logistics/queryPackageRoute')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + public function logisticsRegisterPackageRoute(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('logistics.registerPackageRoute')
  291 + ->path('/logistics/registerPackageRoute')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + public function powerUpdateCollectTime(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('power.updateCollectTime')
  302 + ->path('/power/updateCollectTime')
  303 + ->params($params);
  304 + }
  305 +
  306 + /**
  307 + * @inheritDoc
  308 + */
  309 + public function freightTemplateUpdate(array $params)
  310 + {
  311 + $this->builder->method('POST')
  312 + ->service('freightTemplate.update')
  313 + ->path('/freightTemplate/update')
  314 + ->params($params);
  315 + }
  316 +
  317 + /**
  318 + * @inheritDoc
  319 + */
  320 + public function freightTemplateCreate(array $params)
  321 + {
  322 + $this->builder->method('POST')
  323 + ->service('freightTemplate.create')
  324 + ->path('/freightTemplate/create')
  325 + ->params($params);
  326 + }
  327 +
  328 + /**
  329 + * @inheritDoc
  330 + */
  331 + public function powerPickupCodeCallback(array $params)
  332 + {
  333 + $this->builder->method('POST')
  334 + ->service('power.pickupCodeCallback')
  335 + ->path('/power/pickupCodeCallback')
  336 + ->params($params);
  337 + }
  338 +
  339 + /**
  340 + * @inheritDoc
  341 + */
  342 + public function logisticsGetDesignTemplateList(array $params)
  343 + {
  344 + $this->builder->method('POST')
  345 + ->service('logistics.getDesignTemplateList')
  346 + ->path('/logistics/getDesignTemplateList')
  347 + ->params($params);
  348 + }
  349 +
  350 + /**
  351 + * @inheritDoc
  352 + */
  353 + public function powerVirtualServicePushCallRecord(array $params)
  354 + {
  355 + $this->builder->method('POST')
  356 + ->service('power.virtualServicePushCallRecord')
  357 + ->path('/power/virtualServicePushCallRecord')
  358 + ->params($params);
  359 + }
  360 +
  361 + /**
  362 + * @inheritDoc
  363 + */
  364 + public function logisticsGetCustomTemplateList(array $params)
  365 + {
  366 + $this->builder->method('POST')
  367 + ->service('logistics.getCustomTemplateList')
  368 + ->path('/logistics/getCustomTemplateList')
  369 + ->params($params);
  370 + }
  371 +
  372 + /**
  373 + * @inheritDoc
  374 + */
  375 + public function logisticsTrackNoRouteDetail(array $params)
  376 + {
  377 + $this->builder->method('POST')
  378 + ->service('logistics.trackNoRouteDetail')
  379 + ->path('/logistics/trackNoRouteDetail')
  380 + ->params($params);
  381 + }
  382 +
  383 + /**
  384 + * @inheritDoc
  385 + */
  386 + public function dutyFreeOrderOperate(array $params)
  387 + {
  388 + $this->builder->method('POST')
  389 + ->service('dutyFree.orderOperate')
  390 + ->path('/dutyFree/orderOperate')
  391 + ->params($params);
  392 + }
  393 +
  394 + /**
  395 + * @inheritDoc
  396 + */
  397 + public function crossBorderOrderList(array $params)
  398 + {
  399 + $this->builder->method('POST')
  400 + ->service('crossBorder.orderList')
  401 + ->path('/crossBorder/orderList')
  402 + ->params($params);
  403 + }
  404 +
  405 + /**
  406 + * @inheritDoc
  407 + */
  408 + public function logisticsListShopNetsite(array $params)
  409 + {
  410 + $this->builder->method('POST')
  411 + ->service('logistics.listShopNetsite')
  412 + ->path('/logistics/listShopNetsite')
  413 + ->params($params);
  414 + }
  415 +
  416 + /**
  417 + * @inheritDoc
  418 + */
  419 + public function addressGetProvince(array $params)
  420 + {
  421 + $this->builder->method('POST')
  422 + ->service('address.getProvince')
  423 + ->path('/address/getProvince')
  424 + ->params($params);
  425 + }
  426 +
  427 + /**
  428 + * @inheritDoc
  429 + */
  430 + public function addressGetAreasByProvince(array $params)
  431 + {
  432 + $this->builder->method('POST')
  433 + ->service('address.getAreasByProvince')
  434 + ->path('/address/getAreasByProvince')
  435 + ->params($params);
  436 + }
  437 +
  438 + /**
  439 + * @inheritDoc
  440 + */
  441 + public function freightTemplateDetail(array $params)
  442 + {
  443 + $this->builder->method('POST')
  444 + ->service('freightTemplate.detail')
  445 + ->path('/freightTemplate/detail')
  446 + ->params($params);
  447 + }
  448 +
  449 + /**
  450 + * @inheritDoc
  451 + */
  452 + public function crossBorderReceiveReceiptOfCustomsWayBill(array $params)
  453 + {
  454 + $this->builder->method('POST')
  455 + ->service('crossBorder.receiveReceiptOfCustomsWayBill')
  456 + ->path('/crossBorder/receiveReceiptOfCustomsWayBill')
  457 + ->params($params);
  458 + }
  459 +
  460 + /**
  461 + * @inheritDoc
  462 + */
  463 + public function logisticsUpdateTerminalOrder(array $params)
  464 + {
  465 + $this->builder->method('POST')
  466 + ->service('logistics.updateTerminalOrder')
  467 + ->path('/logistics/updateTerminalOrder')
  468 + ->params($params);
  469 + }
  470 +
  471 + /**
  472 + * @inheritDoc
  473 + */
  474 + public function powerHandleVirtualTelConnect(array $params)
  475 + {
  476 + $this->builder->method('POST')
  477 + ->service('power.HandleVirtualTelConnect')
  478 + ->path('/power/HandleVirtualTelConnect')
217 ->params($params); 479 ->params($params);
218 } 480 }
219 } 481 }
@@ -4,119 +4,352 @@ namespace Lackoxygen\TiktokShop\Passage\Logistics; @@ -4,119 +4,352 @@ namespace Lackoxygen\TiktokShop\Passage\Logistics;
4 4
5 use Lackoxygen\TiktokShop\Passage\ResultSet; 5 use Lackoxygen\TiktokShop\Passage\ResultSet;
6 6
  7 +/**
  8 + * @note 物流发货API
  9 + */
7 interface LogisticsInterface 10 interface LogisticsInterface
8 { 11 {
9 /** 12 /**
  13 + * 追加子母件
10 * @link https://op.jinritemai.com/docs/api-docs/16/1075 14 * @link https://op.jinritemai.com/docs/api-docs/16/1075
11 - * @return mixed 15 + * @param array $params
  16 + * @return ResultSet
12 */ 17 */
13 - public function appendSubOrder(array $params); 18 + public function logisticsAppendSubOrder(array $params);
14 19
15 /** 20 /**
  21 + * 获取快递公司列表
16 * @link https://op.jinritemai.com/docs/api-docs/16/541 22 * @link https://op.jinritemai.com/docs/api-docs/16/541
17 - * @return mixed 23 + * @param array $params
  24 + * @return ResultSet
18 */ 25 */
19 - public function logisticsCompanyList(array $params); 26 + public function orderLogisticsCompanyList(array $params);
20 27
21 /** 28 /**
  29 + * 订单发货接口
22 * @link https://op.jinritemai.com/docs/api-docs/16/718 30 * @link https://op.jinritemai.com/docs/api-docs/16/718
23 - * @return mixed 31 + * @param array $params
  32 + * @return ResultSet
24 */ 33 */
25 - public function add(array $params); 34 + public function orderLogisticsAdd(array $params);
26 35
27 /** 36 /**
  37 + * 修改发货物流
28 * @link https://op.jinritemai.com/docs/api-docs/16/390 38 * @link https://op.jinritemai.com/docs/api-docs/16/390
29 - * @return mixed 39 + * @param array $params
  40 + * @return ResultSet
30 */ 41 */
31 - public function edit(array $params); 42 + public function orderLogisticsEdit(array $params);
32 43
33 /** 44 /**
  45 + * 修改包裹里的物流信息
34 * @link https://op.jinritemai.com/docs/api-docs/16/539 46 * @link https://op.jinritemai.com/docs/api-docs/16/539
35 - * @return mixed 47 + * @param array $params
  48 + * @return ResultSet
36 */ 49 */
37 - public function logisticsEditByPack(array $params); 50 + public function orderLogisticsEditByPack(array $params);
38 51
39 /** 52 /**
  53 + * 一单多包发货接口
40 * @link https://op.jinritemai.com/docs/api-docs/16/562 54 * @link https://op.jinritemai.com/docs/api-docs/16/562
41 - * @return mixed 55 + * @param array $params
  56 + * @return ResultSet
42 */ 57 */
43 - public function logisticsAddMultiPack(array $params); 58 + public function orderLogisticsAddMultiPack(array $params);
44 59
45 /** 60 /**
  61 + * 获取运费模板列表
46 * @link https://op.jinritemai.com/docs/api-docs/16/565 62 * @link https://op.jinritemai.com/docs/api-docs/16/565
47 - * @return mixed 63 + * @param array $params
  64 + * @return ResultSet
48 */ 65 */
49 public function freightTemplateList(array $params); 66 public function freightTemplateList(array $params);
50 67
51 /** 68 /**
  69 + * 支持多个订单发同一个物流包裹
52 * @link https://op.jinritemai.com/docs/api-docs/16/563 70 * @link https://op.jinritemai.com/docs/api-docs/16/563
53 - * @return mixed 71 + * @param array $params
  72 + * @return ResultSet
54 */ 73 */
55 - public function logisticsAddSinglePack(array $params); 74 + public function orderLogisticsAddSinglePack(array $params);
56 75
57 /** 76 /**
  77 + * 更新收件人信息 以及发件人名字联系方式信息,不支持顺丰速递面单信息更新
58 * @link https://op.jinritemai.com/docs/api-docs/16/494 78 * @link https://op.jinritemai.com/docs/api-docs/16/494
59 - * @return mixed 79 + * @param array $params
  80 + * @return ResultSet
60 */ 81 */
61 - public function updateOrder(array $params); 82 + public function logisticsUpdateOrder(array $params);
62 83
63 /** 84 /**
  85 + * 用于ISV/商家ERP系统 端发起取消已获取的电子面单号
64 * @link https://op.jinritemai.com/docs/api-docs/16/397 86 * @link https://op.jinritemai.com/docs/api-docs/16/397
65 - * @return mixed 87 + * @param array $params
  88 + * @return ResultSet
66 */ 89 */
67 - public function cancelOrder(array $params); 90 + public function logisticsCancelOrder(array $params);
68 91
69 /** 92 /**
  93 + * 服务商回传仓储
70 * @link https://op.jinritemai.com/docs/api-docs/16/526 94 * @link https://op.jinritemai.com/docs/api-docs/16/526
71 - * @return mixed 95 + * @param array $params
  96 + * @return ResultSet
72 */ 97 */
73 - public function orderOperate(array $params); 98 + public function crossBorderOrderOperate(array $params);
74 99
75 /** 100 /**
  101 + * 服务商回告清关状态
76 * @link https://op.jinritemai.com/docs/api-docs/16/527 102 * @link https://op.jinritemai.com/docs/api-docs/16/527
77 - * @return mixed 103 + * @param array $params
  104 + * @return ResultSet
78 */ 105 */
79 - public function orderCustomClearance(array $params); 106 + public function crossborderOrderCustomClearance(array $params);
80 107
81 /** 108 /**
  109 + * 服务商回传国际干线作业节点
82 * @link https://op.jinritemai.com/docs/api-docs/16/528 110 * @link https://op.jinritemai.com/docs/api-docs/16/528
83 - * @return mixed 111 + * @param array $params
  112 + * @return ResultSet
84 */ 113 */
85 - public function orderLogisticsTrace(array $params); 114 + public function crossborderOrderLogisticsTrace(array $params);
86 115
87 /** 116 /**
  117 + * 查询商家自定义区域数据
88 * @link https://op.jinritemai.com/docs/api-docs/16/549 118 * @link https://op.jinritemai.com/docs/api-docs/16/549
89 - * @return mixed 119 + * @param array $params
  120 + * @return ResultSet
90 */ 121 */
91 - public function customTemplateList(array $params); 122 + public function logisticsCustomTemplateList(array $params);
92 123
93 /** 124 /**
  125 + * 查询地址快递是否可以送达
94 * @link https://op.jinritemai.com/docs/api-docs/16/582 126 * @link https://op.jinritemai.com/docs/api-docs/16/582
95 - * @return mixed 127 + * @param array $params
  128 + * @return ResultSet
96 */ 129 */
97 - public function getOutRange(array $params); 130 + public function logisticsGetOutRange(array $params);
98 131
99 /** 132 /**
  133 + * 服务商接单
  134 + * @link https://op.jinritemai.com/docs/api-docs/16/401
  135 + * @param array $params
  136 + * @return ResultSet
  137 + */
  138 + public function crossBorderOrderConfirm(array $params);
  139 +
  140 + /**
  141 + * 获取商家所有模版信息
100 * @link https://op.jinritemai.com/docs/api-docs/16/476 142 * @link https://op.jinritemai.com/docs/api-docs/16/476
101 - * @return mixed 143 + * @param array $params
  144 + * @return ResultSet
102 */ 145 */
103 - public function templateList(array $params); 146 + public function logisticsTemplateList(array $params);
104 147
105 /** 148 /**
  149 + * 获取面单信息
106 * @link https://op.jinritemai.com/docs/api-docs/16/490 150 * @link https://op.jinritemai.com/docs/api-docs/16/490
107 - * @return mixed 151 + * @param array $params
  152 + * @return ResultSet
108 */ 153 */
109 - public function waybillApply(array $params); 154 + public function logisticsWaybillApply(array $params);
110 155
111 /** 156 /**
  157 + * 订单放行/回退
112 * @link https://op.jinritemai.com/docs/api-docs/16/1578 158 * @link https://op.jinritemai.com/docs/api-docs/16/1578
113 - * @return mixed 159 + * @param array $params
  160 + * @return ResultSet
114 */ 161 */
115 - public function deliveryNotice(array $params); 162 + public function logisticsDeliveryNotice(array $params);
116 163
117 /** 164 /**
  165 + * 末端服务字节面单信息查询(仅用于兼容老物流网关)
118 * @link https://op.jinritemai.com/docs/api-docs/16/1558 166 * @link https://op.jinritemai.com/docs/api-docs/16/1558
119 - * @return mixed 167 + * @param array $params
  168 + * @return ResultSet
  169 + */
  170 + public function powerIsByteDancePackage(array $params);
  171 +
  172 + /**
  173 + * 一段码推送(包含末端中心、集包地、大头笔)(仅用于兼容老物流网关)
  174 + * @link https://op.jinritemai.com/docs/api-docs/16/1488
  175 + * @param array $params
  176 + * @return ResultSet
  177 + */
  178 + public function powerPushFirstSortCode(array $params);
  179 +
  180 + /**
  181 + * 个性化集包编码推送(仅用于兼容老物流网关)
  182 + * @link https://op.jinritemai.com/docs/api-docs/16/1486
  183 + * @param array $params
  184 + * @return ResultSet
  185 + */
  186 + public function powerPushCustomSortCode(array $params);
  187 +
  188 + /**
  189 + * 三段码推送(仅用于兼容老物流网关)
  190 + * @link https://op.jinritemai.com/docs/api-docs/16/1485
  191 + * @param array $params
  192 + * @return ResultSet
  193 + */
  194 + public function powerPushThirdSortCode(array $params);
  195 +
  196 + /**
  197 + * 商家ERP/ISV 向字节电子面单系统获取单号和打印信息
  198 + * @link https://op.jinritemai.com/docs/api-docs/16/1339
  199 + * @param array $params
  200 + * @return ResultSet
  201 + */
  202 + public function logisticsNewCreateOrder(array $params);
  203 +
  204 + /**
  205 + * isv轨迹查询
  206 + * @link https://op.jinritemai.com/docs/api-docs/16/1632
  207 + * @param array $params
  208 + * @return ResultSet
  209 + */
  210 + public function logisticsQueryPackageRoute(array $params);
  211 +
  212 + /**
  213 + * isv轨迹订阅
  214 + * @link https://op.jinritemai.com/docs/api-docs/16/1631
  215 + * @param array $params
  216 + * @return ResultSet
  217 + */
  218 + public function logisticsRegisterPackageRoute(array $params);
  219 +
  220 + /**
  221 + * 物流商推送改约时间
  222 + * @link https://op.jinritemai.com/docs/api-docs/16/1627
  223 + * @param array $params
  224 + * @return ResultSet
  225 + */
  226 + public function powerUpdateCollectTime(array $params);
  227 +
  228 + /**
  229 + * 更新运费模板
  230 + * @link https://op.jinritemai.com/docs/api-docs/16/1662
  231 + * @param array $params
  232 + * @return ResultSet
  233 + */
  234 + public function freightTemplateUpdate(array $params);
  235 +
  236 + /**
  237 + * 创建运费模板
  238 + * @link https://op.jinritemai.com/docs/api-docs/16/1661
  239 + * @param array $params
  240 + * @return ResultSet
  241 + */
  242 + public function freightTemplateCreate(array $params);
  243 +
  244 + /**
  245 + * 末端服务商回传取件码(仅用于兼容老物流网关)
  246 + * @link https://op.jinritemai.com/docs/api-docs/16/1793
  247 + * @param array $params
  248 + * @return ResultSet
  249 + */
  250 + public function powerPickupCodeCallback(array $params);
  251 +
  252 + /**
  253 + * 查询商家自定义模板(新版)
  254 + * @link https://op.jinritemai.com/docs/api-docs/16/1737
  255 + * @param array $params
  256 + * @return ResultSet
  257 + */
  258 + public function logisticsGetDesignTemplateList(array $params);
  259 +
  260 + /**
  261 + * 虚拟号服务商通话记录回传(仅用于兼容老物流网关)
  262 + * @link https://op.jinritemai.com/docs/api-docs/16/1920
  263 + * @param array $params
  264 + * @return ResultSet
  265 + */
  266 + public function powerVirtualServicePushCallRecord(array $params);
  267 +
  268 + /**
  269 + * 查询商家自定义区模板(新版)
  270 + * @link https://op.jinritemai.com/docs/api-docs/16/1852
  271 + * @param array $params
  272 + * @return ResultSet
  273 + */
  274 + public function logisticsGetCustomTemplateList(array $params);
  275 +
  276 + /**
  277 + * 运单轨迹查询接口
  278 + * @link https://op.jinritemai.com/docs/api-docs/16/1851
  279 + * @param array $params
  280 + * @return ResultSet
  281 + */
  282 + public function logisticsTrackNoRouteDetail(array $params);
  283 +
  284 + /**
  285 + * 海南项目服务商回传实操节点
  286 + * @link https://op.jinritemai.com/docs/api-docs/16/1850
  287 + * @param array $params
  288 + * @return ResultSet
  289 + */
  290 + public function dutyFreeOrderOperate(array $params);
  291 +
  292 + /**
  293 + * 查询跨境订单列表
  294 + * @link https://op.jinritemai.com/docs/api-docs/16/1849
  295 + * @param array $params
  296 + * @return ResultSet
  297 + */
  298 + public function crossBorderOrderList(array $params);
  299 +
  300 + /**
  301 + * 查询商家和物流商的订购关系以及物流单号使用情况
  302 + * @link https://op.jinritemai.com/docs/api-docs/16/1843
  303 + * @param array $params
  304 + * @return ResultSet
  305 + */
  306 + public function logisticsListShopNetsite(array $params);
  307 +
  308 + /**
  309 + * 获取四级地址全量省份信息
  310 + * @link https://op.jinritemai.com/docs/api-docs/16/1848
  311 + * @param array $params
  312 + * @return ResultSet
  313 + */
  314 + public function addressGetProvince(array $params);
  315 +
  316 + /**
  317 + * 根据省获取全量四级地址
  318 + * @link https://op.jinritemai.com/docs/api-docs/16/1844
  319 + * @param array $params
  320 + * @return ResultSet
  321 + */
  322 + public function addressGetAreasByProvince(array $params);
  323 +
  324 + /**
  325 + * 获取运费模板详情
  326 + * @link https://op.jinritemai.com/docs/api-docs/16/2157
  327 + * @param array $params
  328 + * @return ResultSet
  329 + */
  330 + public function freightTemplateDetail(array $params);
  331 +
  332 + /**
  333 + * 快递服务商将运单申报的回执回告至平台
  334 + * @link https://op.jinritemai.com/docs/api-docs/16/2020
  335 + * @param array $params
  336 + * @return ResultSet
  337 + */
  338 + public function crossBorderReceiveReceiptOfCustomsWayBill(array $params);
  339 +
  340 + /**
  341 + * 末端订单状态推送
  342 + * @link https://op.jinritemai.com/docs/api-docs/16/2016
  343 + * @param array $params
  344 + * @return ResultSet
  345 + */
  346 + public function logisticsUpdateTerminalOrder(array $params);
  347 +
  348 + /**
  349 + * 虚拟号服务商回传虚拟号接通事件
  350 + * @link https://op.jinritemai.com/docs/api-docs/16/2011
  351 + * @param array $params
  352 + * @return ResultSet
120 */ 353 */
121 - public function isByteDancePackage(array $params); 354 + public function powerHandleVirtualTelConnect(array $params);
122 } 355 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Material;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Material extends Passage implements MaterialInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function materialCreateFolder(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('material.createFolder')
  16 + ->path('/material/createFolder')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function materialEditFolder(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('material.editFolder')
  27 + ->path('/material/editFolder')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function materialMoveFolderToRecycleBin(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('material.moveFolderToRecycleBin')
  38 + ->path('/material/moveFolderToRecycleBin')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function materialMoveMaterialToRecycleBin(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('material.moveMaterialToRecycleBin')
  49 + ->path('/material/moveMaterialToRecycleBin')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function materialRecoverMaterial(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('material.recoverMaterial')
  60 + ->path('/material/recoverMaterial')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function materialEditMaterial(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('material.editMaterial')
  71 + ->path('/material/editMaterial')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function materialBatchUploadVideoAsync(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('material.batchUploadVideoAsync')
  82 + ->path('/material/batchUploadVideoAsync')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function materialBatchUploadImageSync(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('material.batchUploadImageSync')
  93 + ->path('/material/batchUploadImageSync')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function materialGetFolderInfo(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('material.getFolderInfo')
  104 + ->path('/material/getFolderInfo')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function materialSearchFolder(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('material.searchFolder')
  115 + ->path('/material/searchFolder')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function materialSearchMaterial(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('material.searchMaterial')
  126 + ->path('/material/searchMaterial')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function materialUploadVideoAsync(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('material.uploadVideoAsync')
  137 + ->path('/material/uploadVideoAsync')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function materialUploadImageSync(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('material.uploadImageSync')
  148 + ->path('/material/uploadImageSync')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + public function materialQueryMaterialDetail(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('material.queryMaterialDetail')
  159 + ->path('/material/queryMaterialDetail')
  160 + ->params($params);
  161 + }
  162 +
  163 + /**
  164 + * @inheritDoc
  165 + */
  166 + public function materialDeleteFolder(array $params)
  167 + {
  168 + $this->builder->method('POST')
  169 + ->service('material.deleteFolder')
  170 + ->path('/material/deleteFolder')
  171 + ->params($params);
  172 + }
  173 +
  174 + /**
  175 + * @inheritDoc
  176 + */
  177 + public function materialDeleteMaterial(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('material.deleteMaterial')
  181 + ->path('/material/deleteMaterial')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + public function materialRecoverFolder(array $params)
  189 + {
  190 + $this->builder->method('POST')
  191 + ->service('material.recoverFolder')
  192 + ->path('/material/recoverFolder')
  193 + ->params($params);
  194 + }
  195 +
  196 + /**
  197 + * @inheritDoc
  198 + */
  199 + public function materialGetCapInfo(array $params)
  200 + {
  201 + $this->builder->method('POST')
  202 + ->service('material.get_cap_info')
  203 + ->path('/material/get_cap_info')
  204 + ->params($params);
  205 + }
  206 +
  207 + /**
  208 + * @inheritDoc
  209 + */
  210 + public function materialEasyShuttle(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('material.easyShuttle')
  214 + ->path('/material/easyShuttle')
  215 + ->params($params);
  216 + }
  217 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Material;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 素材中心API
  9 + */
  10 +interface MaterialInterface
  11 +{
  12 + /**
  13 + * 创建文件夹
  14 + * @link https://op.jinritemai.com/docs/api-docs/69/946
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function materialCreateFolder(array $params);
  19 +
  20 + /**
  21 + * 编辑/移动文件夹
  22 + * @link https://op.jinritemai.com/docs/api-docs/69/948
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function materialEditFolder(array $params);
  27 +
  28 + /**
  29 + * 将文件夹移动到回收站
  30 + * @link https://op.jinritemai.com/docs/api-docs/69/947
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function materialMoveFolderToRecycleBin(array $params);
  35 +
  36 + /**
  37 + * 移动素材到回收站
  38 + * @link https://op.jinritemai.com/docs/api-docs/69/951
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function materialMoveMaterialToRecycleBin(array $params);
  43 +
  44 + /**
  45 + * 从回收站中恢复素材
  46 + * @link https://op.jinritemai.com/docs/api-docs/69/954
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function materialRecoverMaterial(array $params);
  51 +
  52 + /**
  53 + * 编辑素材
  54 + * @link https://op.jinritemai.com/docs/api-docs/69/956
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function materialEditMaterial(array $params);
  59 +
  60 + /**
  61 + * 批量上传视频到素材中心
  62 + * @link https://op.jinritemai.com/docs/api-docs/69/1617
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function materialBatchUploadVideoAsync(array $params);
  67 +
  68 + /**
  69 + * 批量上传图片到素材中心
  70 + * @link https://op.jinritemai.com/docs/api-docs/69/1616
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function materialBatchUploadImageSync(array $params);
  75 +
  76 + /**
  77 + * 查看文件夹详情
  78 + * @link https://op.jinritemai.com/docs/api-docs/69/1150
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function materialGetFolderInfo(array $params);
  83 +
  84 + /**
  85 + * 搜索文件夹
  86 + * @link https://op.jinritemai.com/docs/api-docs/69/1149
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function materialSearchFolder(array $params);
  91 +
  92 + /**
  93 + * 搜索素材
  94 + * @link https://op.jinritemai.com/docs/api-docs/69/1148
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function materialSearchMaterial(array $params);
  99 +
  100 + /**
  101 + * 素材中心--异步上传视频接口
  102 + * @link https://op.jinritemai.com/docs/api-docs/69/1147
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function materialUploadVideoAsync(array $params);
  107 +
  108 + /**
  109 + * 同步上传素材
  110 + * @link https://op.jinritemai.com/docs/api-docs/69/1146
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function materialUploadImageSync(array $params);
  115 +
  116 + /**
  117 + * 查素材详情
  118 + * @link https://op.jinritemai.com/docs/api-docs/69/1145
  119 + * @param array $params
  120 + * @return ResultSet
  121 + */
  122 + public function materialQueryMaterialDetail(array $params);
  123 +
  124 + /**
  125 + * 彻底删除文件夹
  126 + * @link https://op.jinritemai.com/docs/api-docs/69/1139
  127 + * @param array $params
  128 + * @return ResultSet
  129 + */
  130 + public function materialDeleteFolder(array $params);
  131 +
  132 + /**
  133 + * 彻底删除素材
  134 + * @link https://op.jinritemai.com/docs/api-docs/69/1138
  135 + * @param array $params
  136 + * @return ResultSet
  137 + */
  138 + public function materialDeleteMaterial(array $params);
  139 +
  140 + /**
  141 + * 从回收站恢复文件夹
  142 + * @link https://op.jinritemai.com/docs/api-docs/69/1096
  143 + * @param array $params
  144 + * @return ResultSet
  145 + */
  146 + public function materialRecoverFolder(array $params);
  147 +
  148 + /**
  149 + * 获取商家容量详情
  150 + * @link https://op.jinritemai.com/docs/api-docs/69/1694
  151 + * @param array $params
  152 + * @return ResultSet
  153 + */
  154 + public function materialGetCapInfo(array $params);
  155 +
  156 + /**
  157 + * 一键删除
  158 + * @link https://op.jinritemai.com/docs/api-docs/69/1955
  159 + * @param array $params
  160 + * @return ResultSet
  161 + */
  162 + public function materialEasyShuttle(array $params);
  163 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Member;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Member extends Passage implements MemberInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function memberBatchUpdate(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('member.batchUpdate')
  16 + ->path('/member/batchUpdate')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function memberBatchGetUnionIdByOpenIdList(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('member.batchGetUnionIdByOpenIdList')
  27 + ->path('/member/batchGetUnionIdByOpenIdList')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function memberJoinShopMemberWithMobileId(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('member.JoinShopMemberWithMobileId')
  38 + ->path('/member/JoinShopMemberWithMobileId')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function memberGetOuterShopMemberConf(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('member.GetOuterShopMemberConf')
  49 + ->path('/member/GetOuterShopMemberConf')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function memberGetUserShopMemberCard(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('member.GetUserShopMemberCard')
  60 + ->path('/member/GetUserShopMemberCard')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function memberGetJoinBonusCountForUser(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('member.GetJoinBonusCountForUser')
  71 + ->path('/member/GetJoinBonusCountForUser')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function memberBatchGetHistoryMemberUnionId(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('member.batchGetHistoryMemberUnionId')
  82 + ->path('/member/batchGetHistoryMemberUnionId')
  83 + ->params($params);
  84 + }
  85 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Member;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 会员中心API
  9 + */
  10 +interface MemberInterface
  11 +{
  12 + /**
  13 + * 会员等级更新
  14 + * @link https://op.jinritemai.com/docs/api-docs/66/329
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function memberBatchUpdate(array $params);
  19 +
  20 + /**
  21 + * 【品牌会员专用】将openId转化成品牌会员商家的unionId
  22 + * @link https://op.jinritemai.com/docs/api-docs/66/1790
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function memberBatchGetUnionIdByOpenIdList(array $params);
  27 +
  28 + /**
  29 + * 加入会员接口
  30 + * @link https://op.jinritemai.com/docs/api-docs/66/1806
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function memberJoinShopMemberWithMobileId(array $params);
  35 +
  36 + /**
  37 + * 入会面板调用
  38 + * @link https://op.jinritemai.com/docs/api-docs/66/1805
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function memberGetOuterShopMemberConf(array $params);
  43 +
  44 + /**
  45 + * 电商会员卡面信息
  46 + * @link https://op.jinritemai.com/docs/api-docs/66/1803
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function memberGetUserShopMemberCard(array $params);
  51 +
  52 + /**
  53 + * 获取用户裂变引导入会人数
  54 + * @link https://op.jinritemai.com/docs/api-docs/66/1801
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function memberGetJoinBonusCountForUser(array $params);
  59 +
  60 + /**
  61 + * 【品牌会员店铺专用】根据店铺会员的openId获取品牌维度的用户身份标识unionId
  62 + * @link https://op.jinritemai.com/docs/api-docs/66/2136
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function memberBatchGetHistoryMemberUnionId(array $params);
  67 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\OpenCloud;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class OpenCloud extends Passage implements OpenCloudInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function openCloudDdpGetShopList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('openCloud.ddpGetShopList')
  16 + ->path('/openCloud/ddpGetShopList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function openCloudDdpDeleteShop(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('openCloud.ddpDeleteShop')
  27 + ->path('/openCloud/ddpDeleteShop')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function openCloudDdpAddShop(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('openCloud.ddpAddShop')
  38 + ->path('/openCloud/ddpAddShop')
  39 + ->params($params);
  40 + }
  41 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\OpenCloud;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 电商云API
  9 + */
  10 +interface OpenCloudInterface
  11 +{
  12 + /**
  13 + * 数据推送,推送店铺列表
  14 + * @link https://op.jinritemai.com/docs/api-docs/158/1404
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function openCloudDdpGetShopList(array $params);
  19 +
  20 + /**
  21 + * 数据推送,删除绑定的推送店铺
  22 + * @link https://op.jinritemai.com/docs/api-docs/158/1403
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function openCloudDdpDeleteShop(array $params);
  27 +
  28 + /**
  29 + * 数据推送,添加数据推送店铺
  30 + * @link https://op.jinritemai.com/docs/api-docs/158/1402
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function openCloudDdpAddShop(array $params);
  35 +}
@@ -9,7 +9,7 @@ class Order extends Passage implements OrderInterface @@ -9,7 +9,7 @@ class Order extends Passage implements OrderInterface
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function searchList(array $params) 12 + public function orderSearchList(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('order.searchList') 15 ->service('order.searchList')
@@ -20,7 +20,7 @@ class Order extends Passage implements OrderInterface @@ -20,7 +20,7 @@ class Order extends Passage implements OrderInterface
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function orderDetail(array $params) 23 + public function orderOrderDetail(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('order.orderDetail') 26 ->service('order.orderDetail')
@@ -31,7 +31,7 @@ class Order extends Passage implements OrderInterface @@ -31,7 +31,7 @@ class Order extends Passage implements OrderInterface
31 /** 31 /**
32 * @inheritDoc 32 * @inheritDoc
33 */ 33 */
34 - public function batchDecrypt(array $params) 34 + public function orderBatchDecrypt(array $params)
35 { 35 {
36 $this->builder->method('POST') 36 $this->builder->method('POST')
37 ->service('order.batchDecrypt') 37 ->service('order.batchDecrypt')
@@ -42,7 +42,7 @@ class Order extends Passage implements OrderInterface @@ -42,7 +42,7 @@ class Order extends Passage implements OrderInterface
42 /** 42 /**
43 * @inheritDoc 43 * @inheritDoc
44 */ 44 */
45 - public function addOrderRemark(array $params) 45 + public function orderAddOrderRemark(array $params)
46 { 46 {
47 $this->builder->method('POST') 47 $this->builder->method('POST')
48 ->service('order.addOrderRemark') 48 ->service('order.addOrderRemark')
@@ -53,126 +53,132 @@ class Order extends Passage implements OrderInterface @@ -53,126 +53,132 @@ class Order extends Passage implements OrderInterface
53 /** 53 /**
54 * @inheritDoc 54 * @inheritDoc
55 */ 55 */
56 - public function updatePostAmount(array $params) 56 + public function orderAddressAppliedSwitch(array $params)
57 { 57 {
58 $this->builder->method('POST') 58 $this->builder->method('POST')
59 - ->service('order.updatePostAmount')  
60 - ->path('/order/updatePostAmount') 59 + ->service('order.AddressAppliedSwitch')
  60 + ->path('/order/AddressAppliedSwitch')
61 ->params($params); 61 ->params($params);
62 } 62 }
63 63
64 /** 64 /**
65 * @inheritDoc 65 * @inheritDoc
66 */ 66 */
67 - public function addressAppliedSwitch(array $params) 67 + public function orderAddressModify(array $params)
68 { 68 {
69 $this->builder->method('POST') 69 $this->builder->method('POST')
70 - ->service('order.AddressAppliedSwitch')  
71 - ->path('/order/AddressAppliedSwitch') 70 + ->service('order.addressModify')
  71 + ->path('/order/addressModify')
72 ->params($params); 72 ->params($params);
73 } 73 }
74 74
75 /** 75 /**
76 * @inheritDoc 76 * @inheritDoc
77 */ 77 */
78 - public function updateOrderAmount(array $params) 78 + public function orderBatchEncrypt(array $params)
79 { 79 {
80 - $this->builder  
81 - ->method('POST')  
82 - ->service('order.updateOrderAmount')  
83 - ->path('') 80 + $this->builder->method('POST')
  81 + ->service('order.batchEncrypt')
  82 + ->path('/order/batchEncrypt')
84 ->params($params); 83 ->params($params);
85 } 84 }
86 85
87 - public function addressConfirm(array $params) 86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function orderBatchSensitive(array $params)
88 { 90 {
89 - $this->builder  
90 - ->method('POST')  
91 - ->service('order.addressConfirm') 91 + $this->builder->method('POST')
  92 + ->service('order.batchSensitive')
  93 + ->path('/order/batchSensitive')
92 ->params($params); 94 ->params($params);
93 } 95 }
94 96
95 /** 97 /**
96 * @inheritDoc 98 * @inheritDoc
97 */ 99 */
98 - public function addressModify(array $params) 100 + public function orderStockUp(array $params)
99 { 101 {
100 - $this->builder  
101 - ->method('POST')  
102 - ->service('order.addressModify') 102 + $this->builder->method('POST')
  103 + ->service('order.stockUp')
  104 + ->path('/order/invoiceUpload')
103 ->params($params); 105 ->params($params);
104 } 106 }
105 107
106 /** 108 /**
107 * @inheritDoc 109 * @inheritDoc
108 */ 110 */
109 - public function addressSwitchConfig(array $params) 111 + public function orderAddSerialNumber(array $params)
110 { 112 {
111 - $this->builder  
112 - ->method('POST')  
113 - ->service('order.addresSwitchConfig') 113 + $this->builder->method('POST')
  114 + ->service('order.addSerialNumber')
  115 + ->path('/order/addSerialNumber')
114 ->params($params); 116 ->params($params);
115 } 117 }
116 118
117 /** 119 /**
118 * @inheritDoc 120 * @inheritDoc
119 */ 121 */
120 - public function invoiceList(array $params) 122 + public function orderOrdeReportList(array $params)
121 { 123 {
122 $this->builder->method('POST') 124 $this->builder->method('POST')
123 - ->service('order.invoiceList') 125 + ->service('order.ordeReportList')
  126 + ->path('/order/ordeReportList')
124 ->params($params); 127 ->params($params);
125 } 128 }
126 129
127 /** 130 /**
128 * @inheritDoc 131 * @inheritDoc
129 */ 132 */
130 - public function batchEncrypt(array $params) 133 + public function orderReview(array $params)
131 { 134 {
132 - $this->builder  
133 - ->method('POST')  
134 - ->service('order.batchEncrypt') 135 + $this->builder->method('POST')
  136 + ->service('order.review')
  137 + ->path('/order/review')
135 ->params($params); 138 ->params($params);
136 } 139 }
137 140
138 /** 141 /**
139 * @inheritDoc 142 * @inheritDoc
140 */ 143 */
141 - public function batchSensitive(array $params) 144 + public function couponsExtendCertValidEndByOrder(array $params)
142 { 145 {
143 - $this->builder  
144 - ->method('POST')  
145 - ->service('order.batchSensitive') 146 + $this->builder->method('POST')
  147 + ->service('coupons.extendCertValidEndByOrder')
  148 + ->path('/coupons/extendCertValidEndByOrder')
146 ->params($params); 149 ->params($params);
147 } 150 }
148 151
149 - public function invoiceUpload(array $params) 152 + /**
  153 + * @inheritDoc
  154 + */
  155 + public function orderReplyService(array $params)
150 { 156 {
151 - $this->builder  
152 - ->method('POST')  
153 - ->service('order.stockUp') 157 + $this->builder->method('POST')
  158 + ->service('order.replyService')
  159 + ->path('/order/replyService')
154 ->params($params); 160 ->params($params);
155 } 161 }
156 162
157 /** 163 /**
158 * @inheritDoc 164 * @inheritDoc
159 */ 165 */
160 - public function batchSearchIndex(array $params) 166 + public function orderGetUserOrderList(array $params)
161 { 167 {
162 - $this->builder  
163 - ->method('POST')  
164 - ->service('order.BatchSearchIndex') 168 + $this->builder->method('POST')
  169 + ->service('order.getUserOrderList')
  170 + ->path('/order/getUserOrderList')
165 ->params($params); 171 ->params($params);
166 } 172 }
167 173
168 /** 174 /**
169 * @inheritDoc 175 * @inheritDoc
170 */ 176 */
171 - public function antispamOrderSend(array $params) 177 + public function orderInvoiceList(array $params)
172 { 178 {
173 - $this->builder  
174 - ->method('POST')  
175 - ->service('antispam.orderSend') 179 + $this->builder->method('POST')
  180 + ->service('order.invoiceList')
  181 + ->path('/order/invoiceList')
176 ->params($params); 182 ->params($params);
177 } 183 }
178 184
@@ -181,64 +187,119 @@ class Order extends Passage implements OrderInterface @@ -181,64 +187,119 @@ class Order extends Passage implements OrderInterface
181 */ 187 */
182 public function antispamOrderQuery(array $params) 188 public function antispamOrderQuery(array $params)
183 { 189 {
184 - $this->builder  
185 - ->method('POST') 190 + $this->builder->method('POST')
186 ->service('antispam.orderQuery') 191 ->service('antispam.orderQuery')
  192 + ->path('/antispam/orderQuery')
187 ->params($params); 193 ->params($params);
188 } 194 }
189 195
190 /** 196 /**
191 * @inheritDoc 197 * @inheritDoc
192 */ 198 */
193 - public function getCrossBorderFulfillInfo(array $params) 199 + public function antispamOrderSend(array $params)
194 { 200 {
195 - $this->builder  
196 - ->method('POST')  
197 - ->service('order.getCrossBorderFulfillInfo') 201 + $this->builder->method('POST')
  202 + ->service('antispam.orderSend')
  203 + ->path('/antispam/orderSend')
198 ->params($params); 204 ->params($params);
199 } 205 }
200 206
201 /** 207 /**
202 * @inheritDoc 208 * @inheritDoc
203 */ 209 */
204 - public function getServiceList(array $params) 210 + public function orderBatchSearchIndex(array $params)
205 { 211 {
206 - $this->builder  
207 - ->method('POST')  
208 - ->service('order.getServiceList') 212 + $this->builder->method('POST')
  213 + ->service('order.BatchSearchIndex')
  214 + ->path('/order/BatchSearchIndex')
209 ->params($params); 215 ->params($params);
210 } 216 }
211 217
212 /** 218 /**
213 * @inheritDoc 219 * @inheritDoc
214 */ 220 */
215 - public function addSerialNumber(array $params) 221 + public function orderAddresSwitchConfig(array $params)
216 { 222 {
217 - $this->builder  
218 - ->method('POST')  
219 - ->service('order.addSerialNumber') 223 + $this->builder->method('POST')
  224 + ->service('order.addresSwitchConfig')
  225 + ->path('/order/addresSwitchConfig')
220 ->params($params); 226 ->params($params);
221 } 227 }
222 228
223 /** 229 /**
224 * @inheritDoc 230 * @inheritDoc
225 */ 231 */
226 - public function replyService(array $params) 232 + public function orderAddressConfirm(array $params)
227 { 233 {
228 - $this->builder  
229 - ->method('POST')  
230 - ->service('order.replyService') 234 + $this->builder->method('POST')
  235 + ->service('order.addressConfirm')
  236 + ->path('/order/addressConfirm')
231 ->params($params); 237 ->params($params);
232 } 238 }
233 239
234 /** 240 /**
235 * @inheritDoc 241 * @inheritDoc
236 */ 242 */
237 - public function serviceDetail(array $params) 243 + public function orderUpdateOrderAmount(array $params)
238 { 244 {
239 - $this->builder  
240 - ->method('POST') 245 + $this->builder->method('POST')
  246 + ->service('order.updateOrderAmount')
  247 + ->path('/order/updateOrderAmount')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + public function orderGetServiceList(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('order.getServiceList')
  258 + ->path('/order/getServiceList')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + public function orderServiceDetail(array $params)
  266 + {
  267 + $this->builder->method('POST')
241 ->service('order.serviceDetail') 268 ->service('order.serviceDetail')
  269 + ->path('/order/serviceDetail')
  270 + ->params($params);
  271 + }
  272 +
  273 + /**
  274 + * @inheritDoc
  275 + */
  276 + public function orderUpdatePostAmount(array $params)
  277 + {
  278 + $this->builder->method('POST')
  279 + ->service('order.updatePostAmount')
  280 + ->path('/order/updatePostAmount')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + public function powerSubscribeVirtualTelCallStatus(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('power.SubscribeVirtualTelCallStatus')
  291 + ->path('/power/SubscribeVirtualTelCallStatus')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + public function orderGetCrossBorderFulfillInfo(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('order.getCrossBorderFulfillInfo')
  302 + ->path('/order/getCrossBorderFulfillInfo')
242 ->params($params); 303 ->params($params);
243 } 304 }
244 } 305 }
@@ -5,161 +5,223 @@ namespace Lackoxygen\TiktokShop\Passage\Order; @@ -5,161 +5,223 @@ namespace Lackoxygen\TiktokShop\Passage\Order;
5 use Lackoxygen\TiktokShop\Passage\ResultSet; 5 use Lackoxygen\TiktokShop\Passage\ResultSet;
6 6
7 /** 7 /**
8 - * @link https://op.jinritemai.com/docs/api-docs/15/1343 8 + * @note 订单API
9 */ 9 */
10 interface OrderInterface 10 interface OrderInterface
11 { 11 {
12 /** 12 /**
  13 + * 订单列表查询
13 * @link https://op.jinritemai.com/docs/api-docs/15/1342 14 * @link https://op.jinritemai.com/docs/api-docs/15/1342
14 * @param array $params 15 * @param array $params
15 * @return ResultSet 16 * @return ResultSet
16 */ 17 */
17 - public function searchList(array $params); 18 + public function orderSearchList(array $params);
18 19
19 /** 20 /**
  21 + * 订单详情查询
20 * @link https://op.jinritemai.com/docs/api-docs/15/1343 22 * @link https://op.jinritemai.com/docs/api-docs/15/1343
21 * @param array $params 23 * @param array $params
22 * @return ResultSet 24 * @return ResultSet
23 */ 25 */
24 - public function orderDetail(array $params); 26 + public function orderOrderDetail(array $params);
25 27
26 /** 28 /**
  29 + * 批量解密接口
27 * @link https://op.jinritemai.com/docs/api-docs/15/982 30 * @link https://op.jinritemai.com/docs/api-docs/15/982
28 * @param array $params 31 * @param array $params
29 * @return ResultSet 32 * @return ResultSet
30 */ 33 */
31 - public function batchDecrypt(array $params); 34 + public function orderBatchDecrypt(array $params);
32 35
33 /** 36 /**
  37 + * 为商家提供订单备注接口
34 * @link https://op.jinritemai.com/docs/api-docs/15/568 38 * @link https://op.jinritemai.com/docs/api-docs/15/568
35 * @param array $params 39 * @param array $params
36 * @return ResultSet 40 * @return ResultSet
37 */ 41 */
38 - public function addOrderRemark(array $params); 42 + public function orderAddOrderRemark(array $params);
39 43
40 /** 44 /**
41 - * @link https://op.jinritemai.com/docs/api-docs/15/264 45 + * 支持调用后打开(或关闭)卖家针对买家收货地址变更的审核流程
  46 + * @link https://op.jinritemai.com/docs/api-docs/15/500
42 * @param array $params 47 * @param array $params
43 * @return ResultSet 48 * @return ResultSet
44 */ 49 */
45 - public function updatePostAmount(array $params); 50 + public function orderAddressAppliedSwitch(array $params);
46 51
47 /** 52 /**
48 - * @link https://op.jinritemai.com/docs/api-docs/15/500 53 + * 卖家主动修改收货地址
  54 + * @link https://op.jinritemai.com/docs/api-docs/15/290
49 * @param array $params 55 * @param array $params
50 * @return ResultSet 56 * @return ResultSet
51 */ 57 */
52 - public function addressAppliedSwitch(array $params); 58 + public function orderAddressModify(array $params);
53 59
54 /** 60 /**
55 - * @link https://op.jinritemai.com/docs/api-docs/15/263 61 + * 批量加密接口
  62 + * @link https://op.jinritemai.com/docs/api-docs/15/487
56 * @param array $params 63 * @param array $params
57 * @return ResultSet 64 * @return ResultSet
58 */ 65 */
59 - public function updateOrderAmount(array $params); 66 + public function orderBatchEncrypt(array $params);
60 67
61 /** 68 /**
62 - * @link https://op.jinritemai.com/docs/api-docs/15/505 69 + * 批量脱敏接口
  70 + * @link https://op.jinritemai.com/docs/api-docs/15/508
63 * @param array $params 71 * @param array $params
64 * @return ResultSet 72 * @return ResultSet
65 */ 73 */
66 - public function addressConfirm(array $params); 74 + public function orderBatchSensitive(array $params);
67 75
68 /** 76 /**
69 - * @link https://op.jinritemai.com/docs/api-docs/15/290 77 + * 发票信息回传
  78 + * @link https://op.jinritemai.com/docs/api-docs/15/892
70 * @param array $params 79 * @param array $params
71 * @return ResultSet 80 * @return ResultSet
72 */ 81 */
73 - public function addressModify(array $params); 82 + public function orderStockUp(array $params);
74 83
75 /** 84 /**
76 - * @link https://op.jinritemai.com/docs/api-docs/15/501 85 + * 订单商品的序列号上传
  86 + * @link https://op.jinritemai.com/docs/api-docs/15/1289
77 * @param array $params 87 * @param array $params
78 * @return ResultSet 88 * @return ResultSet
79 */ 89 */
80 - public function addressSwitchConfig(array $params); 90 + public function orderAddSerialNumber(array $params);
81 91
82 /** 92 /**
83 - * @link https://op.jinritemai.com/docs/api-docs/15/660 93 + * 查询明文手机号报备接口
  94 + * @link https://op.jinritemai.com/docs/api-docs/15/1550
84 * @param array $params 95 * @param array $params
85 * @return ResultSet 96 * @return ResultSet
86 */ 97 */
87 - public function invoiceList(array $params); 98 + public function orderOrdeReportList(array $params);
88 99
89 /** 100 /**
90 - * @link https://op.jinritemai.com/docs/api-docs/15/487 101 + * 商家回传订单审核结果
  102 + * @link https://op.jinritemai.com/docs/api-docs/15/1785
91 * @param array $params 103 * @param array $params
92 * @return ResultSet 104 * @return ResultSet
93 */ 105 */
94 - public function batchEncrypt(array $params); 106 + public function orderReview(array $params);
95 107
96 /** 108 /**
97 - * @link https://op.jinritemai.com/docs/api-docs/15/508 109 + * 三方卡券延期
  110 + * @link https://op.jinritemai.com/docs/api-docs/15/1730
98 * @param array $params 111 * @param array $params
99 * @return ResultSet 112 * @return ResultSet
100 */ 113 */
101 - public function batchSensitive(array $params); 114 + public function couponsExtendCertValidEndByOrder(array $params);
102 115
103 /** 116 /**
104 - * @link https://op.jinritemai.com/docs/api-docs/15/892 117 + * 回复服务请求
  118 + * @link https://op.jinritemai.com/docs/api-docs/15/1917
105 * @param array $params 119 * @param array $params
106 * @return ResultSet 120 * @return ResultSet
107 */ 121 */
108 - public function invoiceUpload(array $params); 122 + public function orderReplyService(array $params);
109 123
110 /** 124 /**
111 - * @link https://op.jinritemai.com/docs/api-docs/15/516 125 + * 按用户id查询订单简要信息
  126 + * @link https://op.jinritemai.com/docs/api-docs/15/1915
112 * @param array $params 127 * @param array $params
113 * @return ResultSet 128 * @return ResultSet
114 */ 129 */
115 - public function batchSearchIndex(array $params); 130 + public function orderGetUserOrderList(array $params);
116 131
117 /** 132 /**
118 - * @link https://op.jinritemai.com/docs/api-docs/15/649 133 + * 查看商家开票列表
  134 + * @link https://op.jinritemai.com/docs/api-docs/15/1842
119 * @param array $params 135 * @param array $params
120 * @return ResultSet 136 * @return ResultSet
121 */ 137 */
122 - public function antispamOrderSend(array $params); 138 + public function orderInvoiceList(array $params);
123 139
124 /** 140 /**
125 - * @link https://op.jinritemai.com/docs/api-docs/15/650 141 + * 用户在ISV查看订单、下载订单时, 上报事件到风控系统
  142 + * @link https://op.jinritemai.com/docs/api-docs/15/1841
126 * @param array $params 143 * @param array $params
127 * @return ResultSet 144 * @return ResultSet
128 */ 145 */
129 public function antispamOrderQuery(array $params); 146 public function antispamOrderQuery(array $params);
130 147
131 /** 148 /**
132 - * @link https://op.jinritemai.com/docs/api-docs/15/495 149 + * 支持使用在ISV系统商户发送(外部系统或模块,如快递平台)场景
  150 + * @link https://op.jinritemai.com/docs/api-docs/15/1840
133 * @param array $params 151 * @param array $params
134 * @return ResultSet 152 * @return ResultSet
135 */ 153 */
136 - public function getCrossBorderFulfillInfo(array $params); 154 + public function antispamOrderSend(array $params);
137 155
138 /** 156 /**
139 - * @link https://op.jinritemai.com/docs/api-docs/15/266 157 + * 批量获取索引串接口
  158 + * @link https://op.jinritemai.com/docs/api-docs/15/1839
140 * @param array $params 159 * @param array $params
141 * @return ResultSet 160 * @return ResultSet
142 */ 161 */
143 - public function getServiceList(array $params); 162 + public function orderBatchSearchIndex(array $params);
144 163
145 /** 164 /**
146 - * @link https://op.jinritemai.com/docs/api-docs/15/1289 165 + * 获取App对于商家订单修改地址的审核权限
  166 + * @link https://op.jinritemai.com/docs/api-docs/15/1838
  167 + * @param array $params
  168 + * @return ResultSet
  169 + */
  170 + public function orderAddresSwitchConfig(array $params);
  171 +
  172 + /**
  173 + * 买家地址变更确认
  174 + * @link https://op.jinritemai.com/docs/api-docs/15/1836
  175 + * @param array $params
  176 + * @return ResultSet
  177 + */
  178 + public function orderAddressConfirm(array $params);
  179 +
  180 + /**
  181 + * 未支付订单改货款
  182 + * @link https://op.jinritemai.com/docs/api-docs/15/1833
  183 + * @param array $params
  184 + * @return ResultSet
  185 + */
  186 + public function orderUpdateOrderAmount(array $params);
  187 +
  188 + /**
  189 + * 获取服务单列表
  190 + * @link https://op.jinritemai.com/docs/api-docs/15/1835
  191 + * @param array $params
  192 + * @return ResultSet
  193 + */
  194 + public function orderGetServiceList(array $params);
  195 +
  196 + /**
  197 + * 查询商家服务单详情请求
  198 + * @link https://op.jinritemai.com/docs/api-docs/15/1832
  199 + * @param array $params
  200 + * @return ResultSet
  201 + */
  202 + public function orderServiceDetail(array $params);
  203 +
  204 + /**
  205 + * 未支付订单邮费修改
  206 + * @link https://op.jinritemai.com/docs/api-docs/15/1834
147 * @param array $params 207 * @param array $params
148 * @return ResultSet 208 * @return ResultSet
149 */ 209 */
150 - public function addSerialNumber(array $params); 210 + public function orderUpdatePostAmount(array $params);
151 211
152 /** 212 /**
153 - * @link https://op.jinritemai.com/docs/api-docs/15/75 213 + * isv获取虚拟号通话状态申请
  214 + * @link https://op.jinritemai.com/docs/api-docs/15/2072
154 * @param array $params 215 * @param array $params
155 * @return ResultSet 216 * @return ResultSet
156 */ 217 */
157 - public function replyService(array $params); 218 + public function powerSubscribeVirtualTelCallStatus(array $params);
158 219
159 /** 220 /**
160 - * @link https://op.jinritemai.com/docs/api-docs/15/253 221 + * 获取跨境承运单信息
  222 + * @link https://op.jinritemai.com/docs/api-docs/15/1939
161 * @param array $params 223 * @param array $params
162 * @return ResultSet 224 * @return ResultSet
163 */ 225 */
164 - public function serviceDetail(array $params); 226 + public function orderGetCrossBorderFulfillInfo(array $params);
165 } 227 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\OrderCode;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class OrderCode extends Passage implements OrderCodeInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function orderCodeErpShopBindOrderCode(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('orderCode.erpShopBindOrderCode')
  16 + ->path('/orderCode/erpShopBindOrderCode')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function orderCodeBatchGetOrderCodeByShop(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('orderCode.batchGetOrderCodeByShop')
  27 + ->path('/orderCode/batchGetOrderCodeByShop')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function orderCodeDownloadOrderCodeByShop(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('orderCode.downloadOrderCodeByShop')
  38 + ->path('/orderCode/downloadOrderCodeByShop')
  39 + ->params($params);
  40 + }
  41 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\OrderCode;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note BIC质检API
  9 + */
  10 +interface OrderCodeInterface
  11 +{
  12 + /**
  13 + * bic流程订单商家发货接口
  14 + * @link https://op.jinritemai.com/docs/api-docs/51/806
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function orderCodeErpShopBindOrderCode(array $params);
  19 +
  20 + /**
  21 + * 批量下载bic订单码
  22 + * @link https://op.jinritemai.com/docs/api-docs/51/1872
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function orderCodeBatchGetOrderCodeByShop(array $params);
  27 +
  28 + /**
  29 + * 下载bic订单码
  30 + * @link https://op.jinritemai.com/docs/api-docs/51/1871
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function orderCodeDownloadOrderCodeByShop(array $params);
  35 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Pigeon;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Pigeon extends Passage implements PigeonInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function pigeonWorkOrderNotify(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('pigeon.workOrderNotify')
  16 + ->path('/pigeon/workOrderNotify')
  17 + ->params($params);
  18 + }
  19 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Pigeon;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 飞鸽API
  9 + */
  10 +interface PigeonInterface
  11 +{
  12 + /**
  13 + * 更新或者存储工单
  14 + * @link https://op.jinritemai.com/docs/api-docs/188/1974
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function pigeonWorkOrderNotify(array $params);
  19 +}
@@ -9,264 +9,264 @@ class Product extends Passage implements ProductInterface @@ -9,264 +9,264 @@ class Product extends Passage implements ProductInterface
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function listV2(array $params) 12 + public function productListV2(array $params)
13 { 13 {
14 - $this->builder  
15 - ->method('POST') 14 + $this->builder->method('POST')
16 ->service('product.listV2') 15 ->service('product.listV2')
  16 + ->path('/product/listV2')
17 ->params($params); 17 ->params($params);
18 } 18 }
19 19
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function getCateProperty(array $params) 23 + public function productAddV2(array $params)
24 { 24 {
25 - $this->builder  
26 - ->method('POST')  
27 - ->service('product.getCateProperty') 25 + $this->builder->method('POST')
  26 + ->service('product.addV2')
  27 + ->path('/product/addV2')
28 ->params($params); 28 ->params($params);
29 } 29 }
30 30
31 /** 31 /**
32 * @inheritDoc 32 * @inheritDoc
33 */ 33 */
34 - public function addV2(array $params) 34 + public function productEditV2(array $params)
35 { 35 {
36 - $this->builder  
37 - ->method('POST')  
38 - ->service('product.addV2') 36 + $this->builder->method('POST')
  37 + ->service('product.editV2')
  38 + ->path('/product/editV2')
39 ->params($params); 39 ->params($params);
40 } 40 }
41 41
42 /** 42 /**
43 * @inheritDoc 43 * @inheritDoc
44 */ 44 */
45 - public function editV2(array $params) 45 + public function productDetail(array $params)
46 { 46 {
47 - $this->builder  
48 - ->method('POST')  
49 - ->service('product.editV2') 47 + $this->builder->method('POST')
  48 + ->service('product.detail')
  49 + ->path('/product/detail')
50 ->params($params); 50 ->params($params);
51 } 51 }
52 52
53 /** 53 /**
54 * @inheritDoc 54 * @inheritDoc
55 */ 55 */
56 - public function detail(array $params) 56 + public function productDel(array $params)
57 { 57 {
58 - $this->builder  
59 - ->method('POST')  
60 - ->service('product.detail') 58 + $this->builder->method('POST')
  59 + ->service('product.del')
  60 + ->path('/product/del')
61 ->params($params); 61 ->params($params);
62 } 62 }
63 63
64 /** 64 /**
65 * @inheritDoc 65 * @inheritDoc
66 */ 66 */
67 - public function del(array $params) 67 + public function skuDetail(array $params)
68 { 68 {
69 - $this->builder  
70 - ->method('POST')  
71 - ->service('product.del') 69 + $this->builder->method('POST')
  70 + ->service('sku.detail')
  71 + ->path('/sku/detail')
72 ->params($params); 72 ->params($params);
73 } 73 }
74 74
75 /** 75 /**
76 * @inheritDoc 76 * @inheritDoc
77 */ 77 */
78 - public function skuDetail(array $params) 78 + public function brandList(array $params)
79 { 79 {
80 - $this->builder  
81 - ->method('POST')  
82 - ->service('sku.detail') 80 + $this->builder->method('POST')
  81 + ->service('brand.list')
  82 + ->path('/brand/list')
83 ->params($params); 83 ->params($params);
84 } 84 }
85 85
86 /** 86 /**
87 * @inheritDoc 87 * @inheritDoc
88 */ 88 */
89 - public function freightTemplateList(array $params) 89 + public function productGetCatePropertyV2(array $params)
90 { 90 {
91 - $this->builder  
92 - ->method('POST')  
93 - ->service('freightTemplate.list') 91 + $this->builder->method('POST')
  92 + ->service('product.getCatePropertyV2')
  93 + ->path('/product/getCatePropertyV2')
94 ->params($params); 94 ->params($params);
95 } 95 }
96 96
97 /** 97 /**
98 * @inheritDoc 98 * @inheritDoc
99 */ 99 */
100 - public function brandList(array $params) 100 + public function productSetOnline(array $params)
101 { 101 {
102 - $this->builder  
103 - ->method('POST')  
104 - ->service('brand.list') 102 + $this->builder->method('POST')
  103 + ->service('product.setOnline')
  104 + ->path('/product/setOnline')
105 ->params($params); 105 ->params($params);
106 } 106 }
107 107
108 /** 108 /**
109 * @inheritDoc 109 * @inheritDoc
110 */ 110 */
111 - public function getCatePropertyV2(array $params) 111 + public function skuList(array $params)
112 { 112 {
113 - $this->builder  
114 - ->method('POST')  
115 - ->service('product.getCatePropertyV2') 113 + $this->builder->method('POST')
  114 + ->service('sku.list')
  115 + ->path('/sku/list')
116 ->params($params); 116 ->params($params);
117 } 117 }
118 118
119 /** 119 /**
120 * @inheritDoc 120 * @inheritDoc
121 */ 121 */
122 - public function setOnline(array $params) 122 + public function productSetOffline(array $params)
123 { 123 {
124 - $this->builder  
125 - ->method('POST')  
126 - ->service('product.setOnline') 124 + $this->builder->method('POST')
  125 + ->service('product.setOffline')
  126 + ->path('/product/setOffline')
127 ->params($params); 127 ->params($params);
128 } 128 }
129 129
130 /** 130 /**
131 * @inheritDoc 131 * @inheritDoc
132 */ 132 */
133 - public function skuList(array $params) 133 + public function productQualityList(array $params)
134 { 134 {
135 - $this->builder  
136 - ->method('POST')  
137 - ->service('sku.list') 135 + $this->builder->method('POST')
  136 + ->service('product.qualityList')
  137 + ->path('/product/qualityList')
138 ->params($params); 138 ->params($params);
139 } 139 }
140 140
141 /** 141 /**
142 * @inheritDoc 142 * @inheritDoc
143 */ 143 */
144 - public function skuSyncStockBatch(array $params) 144 + public function skuEditCode(array $params)
145 { 145 {
146 - $this->builder  
147 - ->method('POST')  
148 - ->service('sku.syncStockBatch') 146 + $this->builder->method('POST')
  147 + ->service('sku.editCode')
  148 + ->path('/sku/editCode')
149 ->params($params); 149 ->params($params);
150 } 150 }
151 151
152 /** 152 /**
153 * @inheritDoc 153 * @inheritDoc
154 */ 154 */
155 - public function setOffline(array $params) 155 + public function productQualificationConfig(array $params)
156 { 156 {
157 - $this->builder  
158 - ->method('POST')  
159 - ->service('product.setOffline') 157 + $this->builder->method('POST')
  158 + ->service('product.qualificationConfig')
  159 + ->path('/product/qualificationConfig')
160 ->params($params); 160 ->params($params);
161 } 161 }
162 162
163 /** 163 /**
164 * @inheritDoc 164 * @inheritDoc
165 */ 165 */
166 - public function qualityList(array $params) 166 + public function productAddCbProduct(array $params)
167 { 167 {
168 - $this->builder  
169 - ->method('POST')  
170 - ->service('product.qualityList') 168 + $this->builder->method('POST')
  169 + ->service('product.addCbProduct')
  170 + ->path('/product/addCbProduct')
171 ->params($params); 171 ->params($params);
172 } 172 }
173 173
174 /** 174 /**
175 * @inheritDoc 175 * @inheritDoc
176 */ 176 */
177 - public function editSkuPrice(array $params) 177 + public function brandGetSug(array $params)
178 { 178 {
179 - $this->builder  
180 - ->method('POST')  
181 - ->service('sku.editPrice') 179 + $this->builder->method('POST')
  180 + ->service('brand.getSug')
  181 + ->path('/brand/getSug')
182 ->params($params); 182 ->params($params);
183 } 183 }
184 184
185 /** 185 /**
186 * @inheritDoc 186 * @inheritDoc
187 */ 187 */
188 - public function qualityDetail(array $params) 188 + public function productEditCbProduct(array $params)
189 { 189 {
190 - $this->builder  
191 - ->method('POST')  
192 - ->service('product.qualityDetail') 190 + $this->builder->method('POST')
  191 + ->service('product.editCbProduct')
  192 + ->path('/product/editCbProduct')
193 ->params($params); 193 ->params($params);
194 } 194 }
195 195
196 /** 196 /**
197 * @inheritDoc 197 * @inheritDoc
198 */ 198 */
199 - public function editBuyerLimit(array $params) 199 + public function productGetProductUpdateRule(array $params)
200 { 200 {
201 - $this->builder  
202 - ->method('POST')  
203 - ->service('product.editBuyerLimit') 201 + $this->builder->method('POST')
  202 + ->service('product.getProductUpdateRule')
  203 + ->path('/product/getProductUpdateRule')
204 ->params($params); 204 ->params($params);
205 } 205 }
206 206
207 /** 207 /**
208 * @inheritDoc 208 * @inheritDoc
209 */ 209 */
210 - public function qualityTask(array $params) 210 + public function promiseDeliveryList(array $params)
211 { 211 {
212 - $this->builder  
213 - ->method('POST')  
214 - ->service('product.qualityTask') 212 + $this->builder->method('POST')
  213 + ->service('promise.deliveryList')
  214 + ->path('/promise/deliveryList')
215 ->params($params); 215 ->params($params);
216 } 216 }
217 217
218 /** 218 /**
219 * @inheritDoc 219 * @inheritDoc
220 */ 220 */
221 - public function getSpuKeyPropertyByCid(array $params) 221 + public function brandConvert(array $params)
222 { 222 {
223 - $this->builder  
224 - ->method('POST')  
225 - ->service('spu.getKeyPropertyByCid') 223 + $this->builder->method('POST')
  224 + ->service('brand.convert')
  225 + ->path('/brand/convert')
226 ->params($params); 226 ->params($params);
227 } 227 }
228 228
229 /** 229 /**
230 * @inheritDoc 230 * @inheritDoc
231 */ 231 */
232 - public function editSkuCode(array $params) 232 + public function powerPushSecondSortCode(array $params)
233 { 233 {
234 - $this->builder  
235 - ->method('POST')  
236 - ->service('sku.editCode') 234 + $this->builder->method('POST')
  235 + ->service('power.pushSecondSortCode')
  236 + ->path('/power/pushSecondSortCode')
237 ->params($params); 237 ->params($params);
238 } 238 }
239 239
240 /** 240 /**
241 * @inheritDoc 241 * @inheritDoc
242 */ 242 */
243 - public function getSpuInfoBySpuId(array $params) 243 + public function productEditCbProductV2(array $params)
244 { 244 {
245 - $this->builder  
246 - ->method('POST')  
247 - ->service('spu.getSpuInfoBySpuId') 245 + $this->builder->method('POST')
  246 + ->service('product.editCbProductV2')
  247 + ->path('/product/editCbProductV2')
248 ->params($params); 248 ->params($params);
249 } 249 }
250 250
251 /** 251 /**
252 * @inheritDoc 252 * @inheritDoc
253 */ 253 */
254 - public function getSpuTpl(array $params) 254 + public function productAuditList(array $params)
255 { 255 {
256 - $this->builder  
257 - ->method('POST')  
258 - ->service('spu.getSpuTpl') 256 + $this->builder->method('POST')
  257 + ->service('product.auditList')
  258 + ->path('/product/auditList')
259 ->params($params); 259 ->params($params);
260 } 260 }
261 261
262 /** 262 /**
263 * @inheritDoc 263 * @inheritDoc
264 */ 264 */
265 - public function addShopSpu(array $params) 265 + public function opptyProductGetApplyProgress(array $params)
266 { 266 {
267 - $this->builder  
268 - ->method('POST')  
269 - ->service('spu.addShopSpu') 267 + $this->builder->method('POST')
  268 + ->service('opptyProduct.getApplyProgress')
  269 + ->path('/opptyProduct/getApplyProgress')
270 ->params($params); 270 ->params($params);
271 } 271 }
272 272
@@ -275,9 +275,42 @@ class Product extends Passage implements ProductInterface @@ -275,9 +275,42 @@ class Product extends Passage implements ProductInterface
275 */ 275 */
276 public function opptyProductApply(array $params) 276 public function opptyProductApply(array $params)
277 { 277 {
278 - $this->builder  
279 - ->method('POST') 278 + $this->builder->method('POST')
280 ->service('opptyProduct.apply') 279 ->service('opptyProduct.apply')
  280 + ->path('/opptyProduct/apply')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + public function productQualityDetail(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('product.qualityDetail')
  291 + ->path('/product/qualityDetail')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + public function productQualityTask(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('product.qualityTask')
  302 + ->path('/product/qualityTask')
  303 + ->params($params);
  304 + }
  305 +
  306 + /**
  307 + * @inheritDoc
  308 + */
  309 + public function productEditBuyerLimit(array $params)
  310 + {
  311 + $this->builder->method('POST')
  312 + ->service('product.editBuyerLimit')
  313 + ->path('/product/editBuyerLimit')
281 ->params($params); 314 ->params($params);
282 } 315 }
283 316
@@ -286,86 +319,108 @@ class Product extends Passage implements ProductInterface @@ -286,86 +319,108 @@ class Product extends Passage implements ProductInterface
286 */ 319 */
287 public function opptyProductClue(array $params) 320 public function opptyProductClue(array $params)
288 { 321 {
289 - $this->builder  
290 - ->method('POST') 322 + $this->builder->method('POST')
291 ->service('opptyProduct.clue') 323 ->service('opptyProduct.clue')
  324 + ->path('/opptyProduct/clue')
292 ->params($params); 325 ->params($params);
293 } 326 }
294 327
295 /** 328 /**
296 * @inheritDoc 329 * @inheritDoc
297 */ 330 */
298 - public function getOpptyProductApplyProgress(array $params) 331 + public function spuAddShopSpu(array $params)
299 { 332 {
300 - $this->builder  
301 - ->method('POST')  
302 - ->service('opptyProduct.getApplyProgress') 333 + $this->builder->method('POST')
  334 + ->service('spu.addShopSpu')
  335 + ->path('/spu/addShopSpu')
303 ->params($params); 336 ->params($params);
304 } 337 }
305 338
306 /** 339 /**
307 * @inheritDoc 340 * @inheritDoc
308 */ 341 */
309 - public function allianceMaterialsProductCategory(array $params) 342 + public function spuGetSpuTpl(array $params)
310 { 343 {
311 - $this->builder  
312 - ->method('POST')  
313 - ->service('alliance.materialsProductCategory') 344 + $this->builder->method('POST')
  345 + ->service('spu.getSpuTpl')
  346 + ->path('/spu/getSpuTpl')
314 ->params($params); 347 ->params($params);
315 } 348 }
316 349
317 /** 350 /**
318 * @inheritDoc 351 * @inheritDoc
319 */ 352 */
320 - public function qualificationConfig(array $params) 353 + public function spuGetSpuInfoBySpuId(array $params)
321 { 354 {
322 - $this->builder  
323 - ->method('POST')  
324 - ->service('product.qualificationConfig') 355 + $this->builder->method('POST')
  356 + ->service('spu.getSpuInfoBySpuId')
  357 + ->path('/spu/getSpuInfoBySpuId')
325 ->params($params); 358 ->params($params);
326 } 359 }
327 360
328 /** 361 /**
329 * @inheritDoc 362 * @inheritDoc
330 */ 363 */
331 - public function getBrandSug(array $params) 364 + public function spuGetKeyPropertyByCid(array $params)
332 { 365 {
333 - $this->builder  
334 - ->method('POST')  
335 - ->service('brand.getSug') 366 + $this->builder->method('POST')
  367 + ->service('spu.getKeyPropertyByCid')
  368 + ->path('/spu/getKeyPropertyByCid')
336 ->params($params); 369 ->params($params);
337 } 370 }
338 371
339 /** 372 /**
340 * @inheritDoc 373 * @inheritDoc
341 */ 374 */
342 - public function promiseDeliveryList(array $params) 375 + public function skuEditPrice(array $params)
343 { 376 {
344 - $this->builder  
345 - ->method('POST')  
346 - ->service('promise.deliveryList') 377 + $this->builder->method('POST')
  378 + ->service('sku.editPrice')
  379 + ->path('/sku/editPrice')
347 ->params($params); 380 ->params($params);
348 } 381 }
349 382
350 /** 383 /**
351 * @inheritDoc 384 * @inheritDoc
352 */ 385 */
353 - public function brandConvert(array $params) 386 + public function productGetRecommendCategory(array $params)
354 { 387 {
355 - $this->builder  
356 - ->method('POST')  
357 - ->service('brand.convert') 388 + $this->builder->method('POST')
  389 + ->service('product.GetRecommendCategory')
  390 + ->path('/product/GetRecommendCategory')
  391 + ->params($params);
  392 + }
  393 +
  394 + /**
  395 + * @inheritDoc
  396 + */
  397 + public function productEditComponentTemplate(array $params)
  398 + {
  399 + $this->builder->method('POST')
  400 + ->service('product.editComponentTemplate')
  401 + ->path('/product/editComponentTemplate')
  402 + ->params($params);
  403 + }
  404 +
  405 + /**
  406 + * @inheritDoc
  407 + */
  408 + public function productCreateComponentTemplateV2(array $params)
  409 + {
  410 + $this->builder->method('POST')
  411 + ->service('product.createComponentTemplateV2')
  412 + ->path('/product/createComponentTemplateV2')
358 ->params($params); 413 ->params($params);
359 } 414 }
360 415
361 /** 416 /**
362 * @inheritDoc 417 * @inheritDoc
363 */ 418 */
364 - public function distributionLiveProductList(array $params) 419 + public function productGetComponentTemplate(array $params)
365 { 420 {
366 - $this->builder  
367 - ->method('POST')  
368 - ->service('buyin.distributionLiveProductList') 421 + $this->builder->method('POST')
  422 + ->service('product.getComponentTemplate')
  423 + ->path('/product/getComponentTemplate')
369 ->params($params); 424 ->params($params);
370 } 425 }
371 } 426 }
@@ -4,51 +4,53 @@ namespace Lackoxygen\TiktokShop\Passage\Product; @@ -4,51 +4,53 @@ namespace Lackoxygen\TiktokShop\Passage\Product;
4 4
5 use Lackoxygen\TiktokShop\Passage\ResultSet; 5 use Lackoxygen\TiktokShop\Passage\ResultSet;
6 6
  7 +/**
  8 + * @note 商品API
  9 + */
7 interface ProductInterface 10 interface ProductInterface
8 { 11 {
9 /** 12 /**
  13 + * 获取商品列表新版
10 * @link https://op.jinritemai.com/docs/api-docs/14/633 14 * @link https://op.jinritemai.com/docs/api-docs/14/633
11 * @param array $params 15 * @param array $params
12 * @return ResultSet 16 * @return ResultSet
13 */ 17 */
14 - public function listV2(array $params);  
15 -  
16 - /**  
17 - * @link https://op.jinritemai.com/docs/api-docs/14/94  
18 - * @param array $params  
19 - * @return ResultSet  
20 - */  
21 - public function getCateProperty(array $params); 18 + public function productListV2(array $params);
22 19
23 /** 20 /**
  21 + * 发布商品
24 * @link https://op.jinritemai.com/docs/api-docs/14/249 22 * @link https://op.jinritemai.com/docs/api-docs/14/249
25 * @param array $params 23 * @param array $params
26 * @return ResultSet 24 * @return ResultSet
27 */ 25 */
28 - public function addV2(array $params); 26 + public function productAddV2(array $params);
29 27
30 /** 28 /**
  29 + * 编辑商品
31 * @link https://op.jinritemai.com/docs/api-docs/14/250 30 * @link https://op.jinritemai.com/docs/api-docs/14/250
32 * @param array $params 31 * @param array $params
33 * @return ResultSet 32 * @return ResultSet
34 */ 33 */
35 - public function editV2(array $params); 34 + public function productEditV2(array $params);
36 35
37 /** 36 /**
  37 + * 商品查询
38 * @link https://op.jinritemai.com/docs/api-docs/14/56 38 * @link https://op.jinritemai.com/docs/api-docs/14/56
39 * @param array $params 39 * @param array $params
40 * @return ResultSet 40 * @return ResultSet
41 */ 41 */
42 - public function detail(array $params); 42 + public function productDetail(array $params);
43 43
44 /** 44 /**
  45 + * 删除商品
45 * @link https://op.jinritemai.com/docs/api-docs/14/61 46 * @link https://op.jinritemai.com/docs/api-docs/14/61
46 * @param array $params 47 * @param array $params
47 * @return ResultSet 48 * @return ResultSet
48 */ 49 */
49 - public function del(array $params); 50 + public function productDel(array $params);
50 51
51 /** 52 /**
  53 + * 获取商品sku详情
52 * @link https://op.jinritemai.com/docs/api-docs/14/566 54 * @link https://op.jinritemai.com/docs/api-docs/14/566
53 * @param array $params 55 * @param array $params
54 * @return ResultSet 56 * @return ResultSet
@@ -56,13 +58,7 @@ interface ProductInterface @@ -56,13 +58,7 @@ interface ProductInterface
56 public function skuDetail(array $params); 58 public function skuDetail(array $params);
57 59
58 /** 60 /**
59 - * @link https://op.jinritemai.com/docs/api-docs/14/565  
60 - * @param array $params  
61 - * @return ResultSet  
62 - */  
63 - public function freightTemplateList(array $params);  
64 -  
65 - /** 61 + * 根据类目id获取可选品牌
66 * @link https://op.jinritemai.com/docs/api-docs/14/1267 62 * @link https://op.jinritemai.com/docs/api-docs/14/1267
67 * @param array $params 63 * @param array $params
68 * @return ResultSet 64 * @return ResultSet
@@ -70,20 +66,23 @@ interface ProductInterface @@ -70,20 +66,23 @@ interface ProductInterface
70 public function brandList(array $params); 66 public function brandList(array $params);
71 67
72 /** 68 /**
  69 + * 根据商品分类获取对应的属性列表
73 * @link https://op.jinritemai.com/docs/api-docs/14/1373 70 * @link https://op.jinritemai.com/docs/api-docs/14/1373
74 * @param array $params 71 * @param array $params
75 * @return ResultSet 72 * @return ResultSet
76 */ 73 */
77 - public function getCatePropertyV2(array $params); 74 + public function productGetCatePropertyV2(array $params);
78 75
79 /** 76 /**
  77 + * 商品上架
80 * @link https://op.jinritemai.com/docs/api-docs/14/251 78 * @link https://op.jinritemai.com/docs/api-docs/14/251
81 * @param array $params 79 * @param array $params
82 * @return ResultSet 80 * @return ResultSet
83 */ 81 */
84 - public function setOnline(array $params); 82 + public function productSetOnline(array $params);
85 83
86 /** 84 /**
  85 + * 获取商品sku列表
87 * @link https://op.jinritemai.com/docs/api-docs/14/82 86 * @link https://op.jinritemai.com/docs/api-docs/14/82
88 * @param array $params 87 * @param array $params
89 * @return ResultSet 88 * @return ResultSet
@@ -91,150 +90,226 @@ interface ProductInterface @@ -91,150 +90,226 @@ interface ProductInterface
91 public function skuList(array $params); 90 public function skuList(array $params);
92 91
93 /** 92 /**
94 - * @link https://op.jinritemai.com/docs/api-docs/14/298 93 + * 商品下架
  94 + * @link https://op.jinritemai.com/docs/api-docs/14/252
95 * @param array $params 95 * @param array $params
96 * @return ResultSet 96 * @return ResultSet
97 */ 97 */
98 - public function skuSyncStockBatch(array $params); 98 + public function productSetOffline(array $params);
99 99
100 /** 100 /**
101 - * @link https://op.jinritemai.com/docs/api-docs/14/252 101 + * 店铺商品质量查询API
  102 + * @link https://op.jinritemai.com/docs/api-docs/14/938
102 * @param array $params 103 * @param array $params
103 * @return ResultSet 104 * @return ResultSet
104 */ 105 */
105 - public function setOffline(array $params); 106 + public function productQualityList(array $params);
106 107
107 /** 108 /**
108 - * @link https://op.jinritemai.com/docs/api-docs/14/938 109 + * 修改sku编码
  110 + * @link https://op.jinritemai.com/docs/api-docs/14/86
109 * @param array $params 111 * @param array $params
110 * @return ResultSet 112 * @return ResultSet
111 */ 113 */
112 - public function qualityList(array $params); 114 + public function skuEditCode(array $params);
113 115
114 /** 116 /**
115 - * @link https://op.jinritemai.com/docs/api-docs/14/84 117 + * 获取类目下需要填写的资质列表
  118 + * @link https://op.jinritemai.com/docs/api-docs/14/1382
116 * @param array $params 119 * @param array $params
117 * @return ResultSet 120 * @return ResultSet
118 */ 121 */
119 - public function editSkuPrice(array $params); 122 + public function productQualificationConfig(array $params);
120 123
121 /** 124 /**
122 - * @link https://op.jinritemai.com/docs/api-docs/14/939 125 + * 新增跨境/海南商品
  126 + * @link https://op.jinritemai.com/docs/api-docs/14/499
123 * @param array $params 127 * @param array $params
124 * @return ResultSet 128 * @return ResultSet
125 */ 129 */
126 - public function qualityDetail(array $params); 130 + public function productAddCbProduct(array $params);
127 131
128 /** 132 /**
129 - * @link https://op.jinritemai.com/docs/api-docs/14/262 133 + * 通过前缀匹配召回品牌信息
  134 + * @link https://op.jinritemai.com/docs/api-docs/14/1436
130 * @param array $params 135 * @param array $params
131 * @return ResultSet 136 * @return ResultSet
132 */ 137 */
133 - public function editBuyerLimit(array $params); 138 + public function brandGetSug(array $params);
134 139
135 /** 140 /**
136 - * @link https://op.jinritemai.com/docs/api-docs/14/937 141 + * 编辑一个跨境/海南商品
  142 + * @link https://op.jinritemai.com/docs/api-docs/14/553
137 * @param array $params 143 * @param array $params
138 * @return ResultSet 144 * @return ResultSet
139 */ 145 */
140 - public function qualityTask(array $params); 146 + public function productEditCbProduct(array $params);
141 147
142 /** 148 /**
143 - * @link https://op.jinritemai.com/docs/api-docs/14/642 149 + * 查询商品发布规则
  150 + * @link https://op.jinritemai.com/docs/api-docs/14/1614
144 * @param array $params 151 * @param array $params
145 * @return ResultSet 152 * @return ResultSet
146 */ 153 */
147 - public function getSpuKeyPropertyByCid(array $params); 154 + public function productGetProductUpdateRule(array $params);
148 155
149 /** 156 /**
150 - * @link https://op.jinritemai.com/docs/api-docs/14/86 157 + * 商家发货时效配置推荐
  158 + * @link https://op.jinritemai.com/docs/api-docs/14/1529
  159 + * @param array $params
  160 + * @return ResultSet
  161 + */
  162 + public function promiseDeliveryList(array $params);
  163 +
  164 + /**
  165 + * 兼容老品牌id转为新品牌id
  166 + * @link https://op.jinritemai.com/docs/api-docs/14/1500
151 * @param array $params 167 * @param array $params
152 * @return ResultSet 168 * @return ResultSet
153 */ 169 */
154 - public function editSkuCode(array $params); 170 + public function brandConvert(array $params);
155 171
156 /** 172 /**
157 - * @link https://op.jinritemai.com/docs/api-docs/14/643 173 + * 二段码推送(仅用于兼容老物流网关)
  174 + * @link https://op.jinritemai.com/docs/api-docs/14/1484
158 * @param array $params 175 * @param array $params
159 * @return ResultSet 176 * @return ResultSet
160 */ 177 */
161 - public function getSpuInfoBySpuId(array $params); 178 + public function powerPushSecondSortCode(array $params);
162 179
163 /** 180 /**
164 - * @link https://op.jinritemai.com/docs/api-docs/14/644 181 + * 编辑一个跨境/海南商品
  182 + * @link https://op.jinritemai.com/docs/api-docs/14/1684
165 * @param array $params 183 * @param array $params
166 * @return ResultSet 184 * @return ResultSet
167 */ 185 */
168 - public function getSpuTpl(array $params); 186 + public function productEditCbProductV2(array $params);
169 187
170 /** 188 /**
171 - * @link https://op.jinritemai.com/docs/api-docs/14/645 189 + * 审核记录列表
  190 + * @link https://op.jinritemai.com/docs/api-docs/14/1748
172 * @param array $params 191 * @param array $params
173 * @return ResultSet 192 * @return ResultSet
174 */ 193 */
175 - public function addShopSpu(array $params); 194 + public function productAuditList(array $params);
176 195
  196 + /**
  197 + * 机会品提报进度查询
  198 + * @link https://op.jinritemai.com/docs/api-docs/14/1796
  199 + * @param array $params
  200 + * @return ResultSet
  201 + */
  202 + public function opptyProductGetApplyProgress(array $params);
177 203
178 /** 204 /**
179 - * @link https://op.jinritemai.com/docs/api-docs/14/738 205 + * 机会品提报
  206 + * @link https://op.jinritemai.com/docs/api-docs/14/1798
180 * @param array $params 207 * @param array $params
181 * @return ResultSet 208 * @return ResultSet
182 */ 209 */
183 public function opptyProductApply(array $params); 210 public function opptyProductApply(array $params);
184 211
185 /** 212 /**
186 - * @link https://op.jinritemai.com/docs/api-docs/14/739 213 + * 商品信息质量分查询API
  214 + * @link https://op.jinritemai.com/docs/api-docs/14/1830
  215 + * @param array $params
  216 + * @return ResultSet
  217 + */
  218 + public function productQualityDetail(array $params);
  219 +
  220 + /**
  221 + * 商品每日诊断任务查询API
  222 + * @link https://op.jinritemai.com/docs/api-docs/14/1829
  223 + * @param array $params
  224 + * @return ResultSet
  225 + */
  226 + public function productQualityTask(array $params);
  227 +
  228 + /**
  229 + * 设置商品限购
  230 + * @link https://op.jinritemai.com/docs/api-docs/14/1823
  231 + * @param array $params
  232 + * @return ResultSet
  233 + */
  234 + public function productEditBuyerLimit(array $params);
  235 +
  236 + /**
  237 + * 机会品线索触达
  238 + * @link https://op.jinritemai.com/docs/api-docs/14/1828
187 * @param array $params 239 * @param array $params
188 * @return ResultSet 240 * @return ResultSet
189 */ 241 */
190 public function opptyProductClue(array $params); 242 public function opptyProductClue(array $params);
191 243
192 /** 244 /**
193 - * @link https://op.jinritemai.com/docs/api-docs/14/740 245 + * 店铺新增SPU
  246 + * @link https://op.jinritemai.com/docs/api-docs/14/1827
194 * @param array $params 247 * @param array $params
195 * @return ResultSet 248 * @return ResultSet
196 */ 249 */
197 - public function getOpptyProductApplyProgress(array $params); 250 + public function spuAddShopSpu(array $params);
198 251
199 /** 252 /**
200 - * @link https://op.jinritemai.com/docs/api-docs/14/637 253 + * 获取spu模板
  254 + * @link https://op.jinritemai.com/docs/api-docs/14/1826
201 * @param array $params 255 * @param array $params
202 * @return ResultSet 256 * @return ResultSet
203 */ 257 */
204 - public function allianceMaterialsProductCategory(array $params); 258 + public function spuGetSpuTpl(array $params);
205 259
206 /** 260 /**
207 - * @link https://op.jinritemai.com/docs/api-docs/14/1382 261 + * SPU信息查看
  262 + * @link https://op.jinritemai.com/docs/api-docs/14/1825
208 * @param array $params 263 * @param array $params
209 * @return ResultSet 264 * @return ResultSet
210 */ 265 */
211 - public function qualificationConfig(array $params); 266 + public function spuGetSpuInfoBySpuId(array $params);
212 267
213 /** 268 /**
214 - * @link https://op.jinritemai.com/docs/api-docs/14/1436 269 + * 关键属性查询接口
  270 + * @link https://op.jinritemai.com/docs/api-docs/14/1824
215 * @param array $params 271 * @param array $params
216 * @return ResultSet 272 * @return ResultSet
217 */ 273 */
218 - public function getBrandSug(array $params); 274 + public function spuGetKeyPropertyByCid(array $params);
219 275
220 /** 276 /**
221 - * @link https://op.jinritemai.com/docs/api-docs/14/1529 277 + * 编辑sku价格
  278 + * @link https://op.jinritemai.com/docs/api-docs/14/1822
222 * @param array $params 279 * @param array $params
223 * @return ResultSet 280 * @return ResultSet
224 */ 281 */
225 - public function promiseDeliveryList(array $params); 282 + public function skuEditPrice(array $params);
226 283
227 /** 284 /**
228 - * @link https://op.jinritemai.com/docs/api-docs/14/1500 285 + * 商品类目预测
  286 + * @link https://op.jinritemai.com/docs/api-docs/14/2004
229 * @param array $params 287 * @param array $params
230 * @return ResultSet 288 * @return ResultSet
231 */ 289 */
232 - public function brandConvert(array $params); 290 + public function productGetRecommendCategory(array $params);
  291 +
  292 + /**
  293 + * 编辑尺码模板
  294 + * @link https://op.jinritemai.com/docs/api-docs/14/1993
  295 + * @param array $params
  296 + * @return ResultSet
  297 + */
  298 + public function productEditComponentTemplate(array $params);
  299 +
  300 + /**
  301 + * 创建尺码模板
  302 + * @link https://op.jinritemai.com/docs/api-docs/14/1992
  303 + * @param array $params
  304 + * @return ResultSet
  305 + */
  306 + public function productCreateComponentTemplateV2(array $params);
233 307
234 /** 308 /**
235 - * @link https://op.jinritemai.com/docs/api-docs/61/1770 309 + * 分页查询模板列表
  310 + * @link https://op.jinritemai.com/docs/api-docs/14/1990
236 * @param array $params 311 * @param array $params
237 - * @return mixed 312 + * @return ResultSet
238 */ 313 */
239 - public function distributionLiveProductList(array $params); 314 + public function productGetComponentTemplate(array $params);
240 } 315 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Recycle;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Recycle extends Passage implements RecycleInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function recycleBuyerGetOrderList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('recycle.buyerGetOrderList')
  16 + ->path('/recycle/buyerGetOrderList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function recycleBuyerGetOrderDetail(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('recycle.buyerGetOrderDetail')
  27 + ->path('/recycle/buyerGetOrderDetail')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function shopSetFinalPayment(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('shop.setFinalPayment')
  38 + ->path('/shop/setFinalPayment')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function recycleApplyChangePrice(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('recycle.applyChangePrice')
  49 + ->path('/recycle/applyChangePrice')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function recycleLogisticsBack(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('recycle.logisticsBack')
  60 + ->path('/recycle/logisticsBack')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function recycleSellSucceed(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('recycle.sellSucceed')
  71 + ->path('/recycle/sellSucceed')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function recycleChangePrice(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('recycle.changePrice')
  82 + ->path('/recycle/changePrice')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function recycleQualityTestingResult(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('recycle.qualityTestingResult')
  93 + ->path('/recycle/qualityTestingResult')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function recycleConfirmReceive(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('recycle.confirmReceive')
  104 + ->path('/recycle/confirmReceive')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function recycleCreatePrice(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('recycle.createPrice')
  115 + ->path('/recycle/createPrice')
  116 + ->params($params);
  117 + }
  118 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Recycle;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 回收寄卖API
  9 + */
  10 +interface RecycleInterface
  11 +{
  12 + /**
  13 + * 拉取订单列表接口
  14 + * @link https://op.jinritemai.com/docs/api-docs/68/914
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function recycleBuyerGetOrderList(array $params);
  19 +
  20 + /**
  21 + * 获得订单详情
  22 + * @link https://op.jinritemai.com/docs/api-docs/68/915
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function recycleBuyerGetOrderDetail(array $params);
  27 +
  28 + /**
  29 + * 设置尾款信息
  30 + * @link https://op.jinritemai.com/docs/api-docs/68/1659
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function shopSetFinalPayment(array $params);
  35 +
  36 + /**
  37 + * 回收商申请调价
  38 + * @link https://op.jinritemai.com/docs/api-docs/68/1887
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function recycleApplyChangePrice(array $params);
  43 +
  44 + /**
  45 + * 回收商退货发货
  46 + * @link https://op.jinritemai.com/docs/api-docs/68/1889
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function recycleLogisticsBack(array $params);
  51 +
  52 + /**
  53 + * 寄售成功
  54 + * @link https://op.jinritemai.com/docs/api-docs/68/1888
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function recycleSellSucceed(array $params);
  59 +
  60 + /**
  61 + * 回收商在用户确认前调整报价接口
  62 + * @link https://op.jinritemai.com/docs/api-docs/68/1886
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function recycleChangePrice(array $params);
  67 +
  68 + /**
  69 + * 回传质检通过和价格
  70 + * @link https://op.jinritemai.com/docs/api-docs/68/1885
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function recycleQualityTestingResult(array $params);
  75 +
  76 + /**
  77 + * 回收商确认收货操作
  78 + * @link https://op.jinritemai.com/docs/api-docs/68/1884
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function recycleConfirmReceive(array $params);
  83 +
  84 + /**
  85 + * 上传估价
  86 + * @link https://op.jinritemai.com/docs/api-docs/68/1883
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function recycleCreatePrice(array $params);
  91 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Sms;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Sms extends Passage implements SmsInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + function smsTemplate/apply(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('sms.template/apply')
  16 + ->path('/sms/template/apply')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + function smsPublic/template(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('sms.public/template')
  27 + ->path('/sms/public/template')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + function smsSign/apply(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('sms.sign/apply')
  38 + ->path('/sms/sign/apply')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + function smsTemplate/revoke(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('sms.template/revoke')
  49 + ->path('/sms/template/revoke')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + function smsSign/apply/list(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('sms.sign/apply/list')
  60 + ->path('/sms/sign/apply/list')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + function smsSend(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('sms.send')
  71 + ->path('/sms/send')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + function smsBatchSend(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('sms.batchSend')
  82 + ->path('/sms/batchSend')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + function smsSign/delete(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('sms.sign/delete')
  93 + ->path('/sms/sign/delete')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + function smsSign/apply/revoke(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('sms.sign/apply/revoke')
  104 + ->path('/sms/sign/apply/revoke')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + function smsTemplate/delete(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('sms.template/delete')
  115 + ->path('/sms/template/delete')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + function smsSendResult(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('sms.sendResult')
  126 + ->path('/sms/sendResult')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + function smsTemplate/apply/list(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('sms.template/apply/list')
  137 + ->path('/sms/template/apply/list')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + function smsSign/search(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('sms.sign/search')
  148 + ->path('/sms/sign/search')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + function smsTemplate/search(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('sms.template/search')
  159 + ->path('/sms/template/search')
  160 + ->params($params);
  161 + }
  162 +}
  1 +<?php
  2 +namespace Lackoxygen\TiktokShop\Passage\Sms;
  3 +
  4 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  5 +
  6 +/**
  7 + * @note 短信API
  8 + */
  9 +interface SmsInterface
  10 +{
  11 + /**
  12 + * 提交短信模板申请单
  13 + * @link https://op.jinritemai.com/docs/api-docs/163/1527
  14 + * @param array $params
  15 + * @return ResultSet
  16 + */
  17 + function smsTemplate/apply(array $params);
  18 +
  19 + /**
  20 + * 公共模版查询接口
  21 + * @link https://op.jinritemai.com/docs/api-docs/163/1526
  22 + * @param array $params
  23 + * @return ResultSet
  24 + */
  25 + function smsPublic/template(array $params);
  26 +
  27 + /**
  28 + * 提交短信签名申请单
  29 + * @link https://op.jinritemai.com/docs/api-docs/163/1525
  30 + * @param array $params
  31 + * @return ResultSet
  32 + */
  33 + function smsSign/apply(array $params);
  34 +
  35 + /**
  36 + * 撤销短信模板申请单
  37 + * @link https://op.jinritemai.com/docs/api-docs/163/1524
  38 + * @param array $params
  39 + * @return ResultSet
  40 + */
  41 + function smsTemplate/revoke(array $params);
  42 +
  43 + /**
  44 + * 查看短信签名申请单
  45 + * @link https://op.jinritemai.com/docs/api-docs/163/1523
  46 + * @param array $params
  47 + * @return ResultSet
  48 + */
  49 + function smsSign/apply/list(array $params);
  50 +
  51 + /**
  52 + * 短信发送
  53 + * @link https://op.jinritemai.com/docs/api-docs/163/1522
  54 + * @param array $params
  55 + * @return ResultSet
  56 + */
  57 + function smsSend(array $params);
  58 +
  59 + /**
  60 + * 批量短信发送
  61 + * @link https://op.jinritemai.com/docs/api-docs/163/1521
  62 + * @param array $params
  63 + * @return ResultSet
  64 + */
  65 + function smsBatchSend(array $params);
  66 +
  67 + /**
  68 + * 删除短信签名
  69 + * @link https://op.jinritemai.com/docs/api-docs/163/1520
  70 + * @param array $params
  71 + * @return ResultSet
  72 + */
  73 + function smsSign/delete(array $params);
  74 +
  75 + /**
  76 + * 撤销短信签名申请单
  77 + * @link https://op.jinritemai.com/docs/api-docs/163/1519
  78 + * @param array $params
  79 + * @return ResultSet
  80 + */
  81 + function smsSign/apply/revoke(array $params);
  82 +
  83 + /**
  84 + * 删除短信模板
  85 + * @link https://op.jinritemai.com/docs/api-docs/163/1518
  86 + * @param array $params
  87 + * @return ResultSet
  88 + */
  89 + function smsTemplate/delete(array $params);
  90 +
  91 + /**
  92 + * 查询短信发送结果
  93 + * @link https://op.jinritemai.com/docs/api-docs/163/1517
  94 + * @param array $params
  95 + * @return ResultSet
  96 + */
  97 + function smsSendResult(array $params);
  98 +
  99 + /**
  100 + * 查询短信模板申请单
  101 + * @link https://op.jinritemai.com/docs/api-docs/163/1516
  102 + * @param array $params
  103 + * @return ResultSet
  104 + */
  105 + function smsTemplate/apply/list(array $params);
  106 +
  107 + /**
  108 + * 查看短信签名
  109 + * @link https://op.jinritemai.com/docs/api-docs/163/1515
  110 + * @param array $params
  111 + * @return ResultSet
  112 + */
  113 + function smsSign/search(array $params);
  114 +
  115 + /**
  116 + * 查询短信模板
  117 + * @link https://op.jinritemai.com/docs/api-docs/163/1514
  118 + * @param array $params
  119 + * @return ResultSet
  120 + */
  121 + function smsTemplate/search(array $params);
  122 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\SupplyChain;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class SupplyChain extends Passage implements SupplyChainInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function supplyChainGetOrderByOrderNo(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('supplyChain.getOrderByOrderNo')
  16 + ->path('/supplyChain/getOrderByOrderNo')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function supplyChainUpdateConsign(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('supplyChain.updateConsign')
  27 + ->path('/supplyChain/updateConsign')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function supplyChainSupplyConsign(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('supplyChain.supplyConsign')
  38 + ->path('/supplyChain/supplyConsign')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function supplyChainGetSupplyOrderList(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('supplyChain.getSupplyOrderList')
  49 + ->path('/supplyChain/getSupplyOrderList')
  50 + ->params($params);
  51 + }
  52 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\SupplyChain;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 供销平台API
  9 + */
  10 +interface SupplyChainInterface
  11 +{
  12 + /**
  13 + * 根据供货单号查询详情
  14 + * @link https://op.jinritemai.com/docs/api-docs/172/1738
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function supplyChainGetOrderByOrderNo(array $params);
  19 +
  20 + /**
  21 + * 供货单更新发货物流
  22 + * @link https://op.jinritemai.com/docs/api-docs/172/1735
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function supplyChainUpdateConsign(array $params);
  27 +
  28 + /**
  29 + * 供货单发货
  30 + * @link https://op.jinritemai.com/docs/api-docs/172/1733
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function supplyChainSupplyConsign(array $params);
  35 +
  36 + /**
  37 + * 供货单列表查询
  38 + * @link https://op.jinritemai.com/docs/api-docs/172/1732
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function supplyChainGetSupplyOrderList(array $params);
  43 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Token;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Token extends Passage implements TokenInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function rightsInfo(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('rights.info')
  16 + ->path('/rights/info')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function tokenRefresh(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('token.refresh')
  27 + ->path('/token/refresh')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function tokenCreate(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('token.create')
  38 + ->path('/token/create')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function securityBatchReportOrderSecurityEvent(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('security.batchReportOrderSecurityEvent')
  49 + ->path('/security/batchReportOrderSecurityEvent')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function openAppIpWhiteListAdd(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('open.appIpWhiteListAdd')
  60 + ->path('/open/appIpWhiteListAdd')
  61 + ->params($params);
  62 + }
  63 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Token;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 工具API
  9 + */
  10 +interface TokenInterface
  11 +{
  12 + /**
  13 + * 查询用户的应用权益
  14 + * @link https://op.jinritemai.com/docs/api-docs/162/352
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function rightsInfo(array $params);
  19 +
  20 + /**
  21 + * 刷新 token API
  22 + * @link https://op.jinritemai.com/docs/api-docs/162/1601
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function tokenRefresh(array $params);
  27 +
  28 + /**
  29 + * 生成token API
  30 + * @link https://op.jinritemai.com/docs/api-docs/162/1600
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function tokenCreate(array $params);
  35 +
  36 + /**
  37 + * 批量上报订单安全事件接口
  38 + * @link https://op.jinritemai.com/docs/api-docs/162/1655
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function securityBatchReportOrderSecurityEvent(array $params);
  43 +
  44 + /**
  45 + * 新增应用ip白名单
  46 + * @link https://op.jinritemai.com/docs/api-docs/162/1818
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function openAppIpWhiteListAdd(array $params);
  51 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Topup;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Topup extends Passage implements TopupInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function topupResult(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('topup.result')
  16 + ->path('/topup/result')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function topupAccountTemplateList(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('topup.accountTemplateList')
  27 + ->path('/topup/accountTemplateList')
  28 + ->params($params);
  29 + }
  30 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Topup;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 虚拟充值API
  9 + */
  10 +interface TopupInterface
  11 +{
  12 + /**
  13 + * 商家充值结果回调
  14 + * @link https://op.jinritemai.com/docs/api-docs/164/1639
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function topupResult(array $params);
  19 +
  20 + /**
  21 + * 获取叶子类目可选的账号模板id
  22 + * @link https://op.jinritemai.com/docs/api-docs/164/1638
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function topupAccountTemplateList(array $params);
  27 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Warehouse;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Warehouse extends Passage implements WarehouseInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + function skuStockNum(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('sku.stockNum')
  16 + ->path('/sku/stockNum')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + function skuSyncStock(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('sku.syncStock')
  27 + ->path('/sku/syncStock')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + function /warehouse/adjustInventory(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('/warehouse/adjustInventory')
  38 + ->path('/warehouse/adjustInventory')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + function skuSyncStockBatch(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('sku.syncStockBatch')
  49 + ->path('/sku/syncStockBatch')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + function warehouseSetFence(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('warehouse.setFence')
  60 + ->path('/warehouse/setFence')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + function warehouseGetFences(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('warehouse.getFences')
  71 + ->path('/warehouse/getFences')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + function warehouseCreateFence(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('warehouse.createFence')
  82 + ->path('/warehouse/createFence')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + function warehouseUnbindFences(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('warehouse.unbindFences')
  93 + ->path('/warehouse/unbindFences')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + function warehouseRemoveAddr(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('warehouse.removeAddr')
  104 + ->path('/warehouse/removeAddr')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + function promiseSetSkuShipTime(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('promise.setSkuShipTime')
  115 + ->path('/promise/setSkuShipTime')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + function warehouseInfo(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('warehouse.info')
  126 + ->path('/warehouse/info')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + function warehouseEdit(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('warehouse.edit')
  137 + ->path('/warehouse/edit')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + function warehouseCreate(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('warehouse.create')
  148 + ->path('/warehouse/create')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + function warehouseSetAddr(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('warehouse.setAddr')
  159 + ->path('/warehouse/setAddr')
  160 + ->params($params);
  161 + }
  162 +
  163 + /**
  164 + * @inheritDoc
  165 + */
  166 + function warehouseList(array $params)
  167 + {
  168 + $this->builder->method('POST')
  169 + ->service('warehouse.list')
  170 + ->path('/warehouse/list')
  171 + ->params($params);
  172 + }
  173 +
  174 + /**
  175 + * @inheritDoc
  176 + */
  177 + function warehouseSetAddrBatch(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('warehouse.setAddrBatch')
  181 + ->path('/warehouse/setAddrBatch')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + function warehouseCreateBatch(array $params)
  189 + {
  190 + $this->builder->method('POST')
  191 + ->service('warehouse.createBatch')
  192 + ->path('/warehouse/createBatch')
  193 + ->params($params);
  194 + }
  195 +
  196 + /**
  197 + * @inheritDoc
  198 + */
  199 + function warehouseSetPriority(array $params)
  200 + {
  201 + $this->builder->method('POST')
  202 + ->service('warehouse.setPriority')
  203 + ->path('/warehouse/setPriority')
  204 + ->params($params);
  205 + }
  206 +
  207 + /**
  208 + * @inheritDoc
  209 + */
  210 + function warehouseDelFence(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('warehouse.delFence')
  214 + ->path('/warehouse/delFence')
  215 + ->params($params);
  216 + }
  217 +
  218 + /**
  219 + * @inheritDoc
  220 + */
  221 + function warehouseBindFences(array $params)
  222 + {
  223 + $this->builder->method('POST')
  224 + ->service('warehouse.bindFences')
  225 + ->path('/warehouse/bindFences')
  226 + ->params($params);
  227 + }
  228 +}
  1 +<?php
  2 +namespace Lackoxygen\TiktokShop\Passage\Warehouse;
  3 +
  4 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  5 +
  6 +/**
  7 + * @note 库存API
  8 + */
  9 +interface WarehouseInterface
  10 +{
  11 + /**
  12 + * 查询库存
  13 + * @link https://op.jinritemai.com/docs/api-docs/34/936
  14 + * @param array $params
  15 + * @return ResultSet
  16 + */
  17 + function skuStockNum(array $params);
  18 +
  19 + /**
  20 + * 修改sku库存
  21 + * @link https://op.jinritemai.com/docs/api-docs/34/155
  22 + * @param array $params
  23 + * @return ResultSet
  24 + */
  25 + function skuSyncStock(array $params);
  26 +
  27 + /**
  28 + * 库存调整(盘点和转移)
  29 + * @link https://op.jinritemai.com/docs/api-docs/34/760
  30 + * @param array $params
  31 + * @return ResultSet
  32 + */
  33 + function /warehouse/adjustInventory(array $params);
  34 +
  35 + /**
  36 + * 批量同步接口
  37 + * @link https://op.jinritemai.com/docs/api-docs/34/298
  38 + * @param array $params
  39 + * @return ResultSet
  40 + */
  41 + function skuSyncStockBatch(array $params);
  42 +
  43 + /**
  44 + * 修改围栏信息
  45 + * @link https://op.jinritemai.com/docs/api-docs/34/1784
  46 + * @param array $params
  47 + * @return ResultSet
  48 + */
  49 + function warehouseSetFence(array $params);
  50 +
  51 + /**
  52 + * 获取电子围栏信息/列表
  53 + * @link https://op.jinritemai.com/docs/api-docs/34/1783
  54 + * @param array $params
  55 + * @return ResultSet
  56 + */
  57 + function warehouseGetFences(array $params);
  58 +
  59 + /**
  60 + * 创建电子围栏
  61 + * @link https://op.jinritemai.com/docs/api-docs/34/1778
  62 + * @param array $params
  63 + * @return ResultSet
  64 + */
  65 + function warehouseCreateFence(array $params);
  66 +
  67 + /**
  68 + * 接绑电子围栏
  69 + * @link https://op.jinritemai.com/docs/api-docs/34/1913
  70 + * @param array $params
  71 + * @return ResultSet
  72 + */
  73 + function warehouseUnbindFences(array $params);
  74 +
  75 + /**
  76 + * 地址与区域仓解绑
  77 + * @link https://op.jinritemai.com/docs/api-docs/34/1899
  78 + * @param array $params
  79 + * @return ResultSet
  80 + */
  81 + function warehouseRemoveAddr(array $params);
  82 +
  83 + /**
  84 + * 设置sku发货时效
  85 + * @link https://op.jinritemai.com/docs/api-docs/34/1864
  86 + * @param array $params
  87 + * @return ResultSet
  88 + */
  89 + function promiseSetSkuShipTime(array $params);
  90 +
  91 + /**
  92 + * 查询区域仓
  93 + * @link https://op.jinritemai.com/docs/api-docs/34/1857
  94 + * @param array $params
  95 + * @return ResultSet
  96 + */
  97 + function warehouseInfo(array $params);
  98 +
  99 + /**
  100 + * 编辑区域仓
  101 + * @link https://op.jinritemai.com/docs/api-docs/34/1856
  102 + * @param array $params
  103 + * @return ResultSet
  104 + */
  105 + function warehouseEdit(array $params);
  106 +
  107 + /**
  108 + * 创建单个区域仓
  109 + * @link https://op.jinritemai.com/docs/api-docs/34/1855
  110 + * @param array $params
  111 + * @return ResultSet
  112 + */
  113 + function warehouseCreate(array $params);
  114 +
  115 + /**
  116 + * 绑定单个地址到区域仓
  117 + * @link https://op.jinritemai.com/docs/api-docs/34/1859
  118 + * @param array $params
  119 + * @return ResultSet
  120 + */
  121 + function warehouseSetAddr(array $params);
  122 +
  123 + /**
  124 + * 批量查询区域仓
  125 + * @link https://op.jinritemai.com/docs/api-docs/34/1858
  126 + * @param array $params
  127 + * @return ResultSet
  128 + */
  129 + function warehouseList(array $params);
  130 +
  131 + /**
  132 + * 批量绑定地址与区域仓
  133 + * @link https://op.jinritemai.com/docs/api-docs/34/1861
  134 + * @param array $params
  135 + * @return ResultSet
  136 + */
  137 + function warehouseSetAddrBatch(array $params);
  138 +
  139 + /**
  140 + * 批量创建区域仓
  141 + * @link https://op.jinritemai.com/docs/api-docs/34/1862
  142 + * @param array $params
  143 + * @return ResultSet
  144 + */
  145 + function warehouseCreateBatch(array $params);
  146 +
  147 + /**
  148 + * 设置指定地址下的仓的优先级
  149 + * @link https://op.jinritemai.com/docs/api-docs/34/1863
  150 + * @param array $params
  151 + * @return ResultSet
  152 + */
  153 + function warehouseSetPriority(array $params);
  154 +
  155 + /**
  156 + * 删除电子围栏
  157 + * @link https://op.jinritemai.com/docs/api-docs/34/2065
  158 + * @param array $params
  159 + * @return ResultSet
  160 + */
  161 + function warehouseDelFence(array $params);
  162 +
  163 + /**
  164 + * 仓绑定电子围栏
  165 + * @link https://op.jinritemai.com/docs/api-docs/34/2062
  166 + * @param array $params
  167 + * @return ResultSet
  168 + */
  169 + function warehouseBindFences(array $params);
  170 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Yunc;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Yunc extends Passage implements YuncInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function yuncShopWarehouseRefQuery(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('yunc.shopWarehouseRefQuery')
  16 + ->path('/yunc/shopWarehouseRefQuery')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function wmsOutboundDetailNotify(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('wms.outboundDetailNotify')
  27 + ->path('/wms/outboundDetailNotify')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function yuncErpCargoSinglePush(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('yunc.erpCargoSinglePush')
  38 + ->path('/yunc/erpCargoSinglePush')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function yuncWmsInboundCallback(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('yunc.wmsInboundCallback')
  49 + ->path('/yunc/wmsInboundCallback')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function yuncCreateOutboundOrderToB(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('yunc.createOutboundOrderToB')
  60 + ->path('/yunc/createOutboundOrderToB')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function yuncErpInboundCreate(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('yunc.erpInboundCreate')
  71 + ->path('/yunc/erpInboundCreate')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function yuncCloudCreateOutboundOrder(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('yunc.cloudCreateOutboundOrder')
  82 + ->path('/yunc/cloudCreateOutboundOrder')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function yuncCloudCancelOutboundOrder(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('yunc.cloudCancelOutboundOrder')
  93 + ->path('/yunc/cloudCancelOutboundOrder')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function yuncCloudCreateInboundOrder(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('yunc.cloudCreateInboundOrder')
  104 + ->path('/yunc/cloudCreateInboundOrder')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function yuncCancelOutboundOrderToB(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('yunc.cancelOutboundOrderToB')
  115 + ->path('/yunc/cancelOutboundOrderToB')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function wmsDeliveryInfoNotify(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('wms.deliveryInfoNotify')
  126 + ->path('/wms/deliveryInfoNotify')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function wmsInboundDetailNotify(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('wms.inboundDetailNotify')
  137 + ->path('/wms/inboundDetailNotify')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function yuncCloudCreateOutboundOrderToB(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('yunc.CloudCreateOutboundOrderToB')
  148 + ->path('/yunc/CloudCreateOutboundOrderToB')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + public function yuncCloudCreateInboundOrderToB(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('yunc.CloudCreateInboundOrderToB')
  159 + ->path('/yunc/CloudCreateInboundOrderToB')
  160 + ->params($params);
  161 + }
  162 +
  163 + /**
  164 + * @inheritDoc
  165 + */
  166 + public function yuncCloudCancelOutboundOrderToB(array $params)
  167 + {
  168 + $this->builder->method('POST')
  169 + ->service('yunc.CloudCancelOutboundOrderToB')
  170 + ->path('/yunc/CloudCancelOutboundOrderToB')
  171 + ->params($params);
  172 + }
  173 +
  174 + /**
  175 + * @inheritDoc
  176 + */
  177 + public function yuncCloudCancelInboundOrderToB(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('yunc.CloudCancelInboundOrderToB')
  181 + ->path('/yunc/CloudCancelInboundOrderToB')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + public function yuncAdjustInventory(array $params)
  189 + {
  190 + $this->builder->method('POST')
  191 + ->service('yunc.adjustInventory')
  192 + ->path('/yunc/adjustInventory')
  193 + ->params($params);
  194 + }
  195 +
  196 + /**
  197 + * @inheritDoc
  198 + */
  199 + public function yuncCloudCancelInboundOrder(array $params)
  200 + {
  201 + $this->builder->method('POST')
  202 + ->service('yunc.cloudCancelInboundOrder')
  203 + ->path('/yunc/cloudCancelInboundOrder')
  204 + ->params($params);
  205 + }
  206 +
  207 + /**
  208 + * @inheritDoc
  209 + */
  210 + public function yuncPushOutboundFeedback(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('yunc.pushOutboundFeedback')
  214 + ->path('/yunc/pushOutboundFeedback')
  215 + ->params($params);
  216 + }
  217 +
  218 + /**
  219 + * @inheritDoc
  220 + */
  221 + public function storageNotifySaleReturnStatus(array $params)
  222 + {
  223 + $this->builder->method('POST')
  224 + ->service('storage.notifySaleReturnStatus')
  225 + ->path('/storage/notifySaleReturnStatus')
  226 + ->params($params);
  227 + }
  228 +
  229 + /**
  230 + * @inheritDoc
  231 + */
  232 + public function yuncErpInboundCancel(array $params)
  233 + {
  234 + $this->builder->method('POST')
  235 + ->service('yunc.erpInboundCancel')
  236 + ->path('/yunc/erpInboundCancel')
  237 + ->params($params);
  238 + }
  239 +
  240 + /**
  241 + * @inheritDoc
  242 + */
  243 + public function yuncSyncInventorySnapshot(array $params)
  244 + {
  245 + $this->builder->method('POST')
  246 + ->service('yunc.syncInventorySnapshot')
  247 + ->path('/yunc/syncInventorySnapshot')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + public function yuncSyncCollectInfo(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('yunc.syncCollectInfo')
  258 + ->path('/yunc/syncCollectInfo')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + public function logisticsIndTrackPush(array $params)
  266 + {
  267 + $this->builder->method('POST')
  268 + ->service('logistics.indTrackPush')
  269 + ->path('/logistics/indTrackPush')
  270 + ->params($params);
  271 + }
  272 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Yunc;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 仓库作业API
  9 + */
  10 +interface YuncInterface
  11 +{
  12 + /**
  13 + * 商家入驻仓关系查询
  14 + * @link https://op.jinritemai.com/docs/api-docs/50/925
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function yuncShopWarehouseRefQuery(array $params);
  19 +
  20 + /**
  21 + * WMS出库明细回传
  22 + * @link https://op.jinritemai.com/docs/api-docs/50/941
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function wmsOutboundDetailNotify(array $params);
  27 +
  28 + /**
  29 + * 货品推送接口-ERP(单个)
  30 + * @link https://op.jinritemai.com/docs/api-docs/50/932
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function yuncErpCargoSinglePush(array $params);
  35 +
  36 + /**
  37 + * wms入库单回告
  38 + * @link https://op.jinritemai.com/docs/api-docs/50/929
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function yuncWmsInboundCallback(array $params);
  43 +
  44 + /**
  45 + * toB出库单
  46 + * @link https://op.jinritemai.com/docs/api-docs/50/927
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function yuncCreateOutboundOrderToB(array $params);
  51 +
  52 + /**
  53 + * erp创建入库单
  54 + * @link https://op.jinritemai.com/docs/api-docs/50/899
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function yuncErpInboundCreate(array $params);
  59 +
  60 + /**
  61 + * 云仓出库接单
  62 + * @link https://op.jinritemai.com/docs/api-docs/50/898
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function yuncCloudCreateOutboundOrder(array $params);
  67 +
  68 + /**
  69 + * 云仓出库取消
  70 + * @link https://op.jinritemai.com/docs/api-docs/50/873
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function yuncCloudCancelOutboundOrder(array $params);
  75 +
  76 + /**
  77 + * 销退单入库
  78 + * @link https://op.jinritemai.com/docs/api-docs/50/872
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function yuncCloudCreateInboundOrder(array $params);
  83 +
  84 + /**
  85 + * toB场景取消出库单
  86 + * @link https://op.jinritemai.com/docs/api-docs/50/745
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function yuncCancelOutboundOrderToB(array $params);
  91 +
  92 + /**
  93 + * 仓储系统回传发货信息
  94 + * @link https://op.jinritemai.com/docs/api-docs/50/1374
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function wmsDeliveryInfoNotify(array $params);
  99 +
  100 + /**
  101 + * 入库明细回传,WMS回传入库数据时,使用该接口回传
  102 + * @link https://op.jinritemai.com/docs/api-docs/50/1357
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function wmsInboundDetailNotify(array $params);
  107 +
  108 + /**
  109 + * 云仓出库接单toB
  110 + * @link https://op.jinritemai.com/docs/api-docs/50/1198
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function yuncCloudCreateOutboundOrderToB(array $params);
  115 +
  116 + /**
  117 + * erp创建入库单
  118 + * @link https://op.jinritemai.com/docs/api-docs/50/1197
  119 + * @param array $params
  120 + * @return ResultSet
  121 + */
  122 + public function yuncCloudCreateInboundOrderToB(array $params);
  123 +
  124 + /**
  125 + * 云仓出库取消toB
  126 + * @link https://op.jinritemai.com/docs/api-docs/50/1196
  127 + * @param array $params
  128 + * @return ResultSet
  129 + */
  130 + public function yuncCloudCancelOutboundOrderToB(array $params);
  131 +
  132 + /**
  133 + * 普通入库取消
  134 + * @link https://op.jinritemai.com/docs/api-docs/50/1195
  135 + * @param array $params
  136 + * @return ResultSet
  137 + */
  138 + public function yuncCloudCancelInboundOrderToB(array $params);
  139 +
  140 + /**
  141 + * 库存调整(盘点和转移)
  142 + * @link https://op.jinritemai.com/docs/api-docs/50/1870
  143 + * @param array $params
  144 + * @return ResultSet
  145 + */
  146 + public function yuncAdjustInventory(array $params);
  147 +
  148 + /**
  149 + * 销退入库取消
  150 + * @link https://op.jinritemai.com/docs/api-docs/50/1867
  151 + * @param array $params
  152 + * @return ResultSet
  153 + */
  154 + public function yuncCloudCancelInboundOrder(array $params);
  155 +
  156 + /**
  157 + * 给外部WMS调用的推送出库信息回传
  158 + * @link https://op.jinritemai.com/docs/api-docs/50/1868
  159 + * @param array $params
  160 + * @return ResultSet
  161 + */
  162 + public function yuncPushOutboundFeedback(array $params);
  163 +
  164 + /**
  165 + * 回告销退单状态
  166 + * @link https://op.jinritemai.com/docs/api-docs/50/1866
  167 + * @param array $params
  168 + * @return ResultSet
  169 + */
  170 + public function storageNotifySaleReturnStatus(array $params);
  171 +
  172 + /**
  173 + * 取消入库单
  174 + * @link https://op.jinritemai.com/docs/api-docs/50/1869
  175 + * @param array $params
  176 + * @return ResultSet
  177 + */
  178 + public function yuncErpInboundCancel(array $params);
  179 +
  180 + /**
  181 + * 库存快照回传
  182 + * @link https://op.jinritemai.com/docs/api-docs/50/2160
  183 + * @param array $params
  184 + * @return ResultSet
  185 + */
  186 + public function yuncSyncInventorySnapshot(array $params);
  187 +
  188 + /**
  189 + * 货品数据采集接口
  190 + * @link https://op.jinritemai.com/docs/api-docs/50/2159
  191 + * @param array $params
  192 + * @return ResultSet
  193 + */
  194 + public function yuncSyncCollectInfo(array $params);
  195 +
  196 + /**
  197 + * 即时配轨迹推送接口
  198 + * @link https://op.jinritemai.com/docs/api-docs/50/2109
  199 + * @param array $params
  200 + * @return ResultSet
  201 + */
  202 + public function logisticsIndTrackPush(array $params);
  203 +}
@@ -4,23 +4,34 @@ namespace Lackoxygen\TiktokShop; @@ -4,23 +4,34 @@ namespace Lackoxygen\TiktokShop;
4 4
5 use Illuminate\Support\Arr; 5 use Illuminate\Support\Arr;
6 use Lackoxygen\TiktokShop\Attribute\Config; 6 use Lackoxygen\TiktokShop\Attribute\Config;
7 -use Lackoxygen\TiktokShop\Passage\Alliance\Alliance;  
8 -use Lackoxygen\TiktokShop\Passage\Authorize;  
9 -use Lackoxygen\TiktokShop\Passage\Order\OrderInterface;  
10 use Lackoxygen\TiktokShop\Passage\PassageProxy; 7 use Lackoxygen\TiktokShop\Passage\PassageProxy;
11 -use Lackoxygen\TiktokShop\Passage\Product\ProductInterface;  
12 -use Lackoxygen\TiktokShop\Passage\Shop\ShopInterface;  
13 use Lackoxygen\TiktokShop\Passage\Verify; 8 use Lackoxygen\TiktokShop\Passage\Verify;
14 -use Lackoxygen\TiktokShop\Passage\Logistics\Logistics;  
15 9
16 /** 10 /**
17 - * @method OrderInterface order()  
18 - * @method ShopInterface shop()  
19 - * @method ProductInterface product()  
20 - * @method Authorize authorize()  
21 - * @method Verify verify()  
22 - * @method Alliance alliance()  
23 - * @method Logistics logistics() 11 + *@method Verify verify()
  12 + * @method Passage\Pigeon\PigeonInterface pigeon()
  13 + * @method Passage\Sms\SmsInterface sms()
  14 + * @method Passage\SupplyChain\SupplyChainInterface supplyChain()
  15 + * @method Passage\Topup\TopupInterface topup()
  16 + * @method Passage\OpenCloud\OpenCloudInterface openCloud()
  17 + * @method Passage\Btas\BtasInterface btas()
  18 + * @method Passage\Recycle\RecycleInterface recycle()
  19 + * @method Passage\Member\MemberInterface member()
  20 + * @method Passage\Buyin\BuyinInterface buyin()
  21 + * @method Passage\Yunc\YuncInterface yunc()
  22 + * @method Passage\OrderCode\OrderCodeInterface orderCode()
  23 + * @method Passage\Coupons\CouponsInterface coupons()
  24 + * @method Passage\Crossborder\CrossborderInterface crossborder()
  25 + * @method Passage\Iop\IopInterface iop()
  26 + * @method Passage\Antispam\AntispamInterface antispam()
  27 + * @method Passage\Token\TokenInterface token()
  28 + * @method Passage\Order\OrderInterface order()
  29 + * @method Passage\AfterSale\AfterSaleInterface afterSale()
  30 + * @method Passage\Logistics\LogisticsInterface logistics()
  31 + * @method Passage\Warehouse\WarehouseInterface warehouse()
  32 + * @method Passage\Product\ProductInterface product()
  33 + * @method Passage\Material\MaterialInterface material()
  34 + * @method Passage\Address\AddressInterface address()
24 */ 35 */
25 class TiktokShop 36 class TiktokShop
26 { 37 {
@@ -32,14 +43,8 @@ class TiktokShop @@ -32,14 +43,8 @@ class TiktokShop
32 /** 43 /**
33 * @var array|string[] 44 * @var array|string[]
34 */ 45 */
35 - protected static array $passages = [  
36 - 'order' => Passage\Order\Order::class,  
37 - 'shop' => Passage\Shop\Shop::class,  
38 - 'product' => Passage\Product\Product::class,  
39 - 'authorize' => Authorize::class,  
40 - 'verify' => Verify::class,  
41 - 'alliance' => Alliance::class,  
42 - 'logistics' => Passage\Logistics\Logistics::class 46 + protected array $fixedPassages = [
  47 + 'verify' => Verify::class
43 ]; 48 ];
44 49
45 /** 50 /**
@@ -107,6 +112,27 @@ class TiktokShop @@ -107,6 +112,27 @@ class TiktokShop
107 } 112 }
108 113
109 /** 114 /**
  115 + * @param string $name
  116 + * @return string
  117 + */
  118 + private function guide(string $name): string
  119 + {
  120 + if (isset($this->fixedPassages[$name])) {
  121 + return $this->fixedPassages[$name];
  122 + }
  123 +
  124 + $name = ucfirst($name);
  125 +
  126 + $target = 'Passage\\' . $name . '\\' . $name . '::class';
  127 +
  128 + if (!class_exists($target)) {
  129 + throw new \OverflowException('class file(' . $target . ') not found');
  130 + }
  131 +
  132 + return $target;
  133 + }
  134 +
  135 + /**
110 * @param $name 136 * @param $name
111 * @param array $arguments 137 * @param array $arguments
112 * 138 *
@@ -114,8 +140,7 @@ class TiktokShop @@ -114,8 +140,7 @@ class TiktokShop
114 */ 140 */
115 public function __call($name, array $arguments = []) 141 public function __call($name, array $arguments = [])
116 { 142 {
117 - $passage = static::$passages[$name];  
118 - 143 + $passage = $this->guide($name);
119 try { 144 try {
120 return PassageProxy::proxy($passage, $this->config); 145 return PassageProxy::proxy($passage, $this->config);
121 } finally { 146 } finally {
@@ -4,6 +4,7 @@ namespace Lackoxygen\TiktokShop; @@ -4,6 +4,7 @@ namespace Lackoxygen\TiktokShop;
4 4
5 use Illuminate\Support\ServiceProvider; 5 use Illuminate\Support\ServiceProvider;
6 use Lackoxygen\TiktokShop\Command\RefreshToken; 6 use Lackoxygen\TiktokShop\Command\RefreshToken;
  7 +use Release;
7 8
8 class TiktokShopProvider extends ServiceProvider 9 class TiktokShopProvider extends ServiceProvider
9 { 10 {
@@ -12,6 +13,9 @@ class TiktokShopProvider extends ServiceProvider @@ -12,6 +13,9 @@ class TiktokShopProvider extends ServiceProvider
12 */ 13 */
13 public static string $name = 'tiktok.shop'; 14 public static string $name = 'tiktok.shop';
14 15
  16 + /**
  17 + * @var array|string[]
  18 + */
15 protected array $commands = [ 19 protected array $commands = [
16 RefreshToken::class 20 RefreshToken::class
17 ]; 21 ];