-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/* | ||
* This file is part of tiktokshop-client. | ||
* | ||
* (c) Jin <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace NVuln\TiktokShop\Resources; | ||
|
||
use GuzzleHttp\RequestOptions; | ||
use NVuln\TiktokShop\Resource; | ||
|
||
class Supplychain extends Resource | ||
{ | ||
public function packageFulfillmentDataSync($warehouse_provider_id, $package) | ||
{ | ||
return $this->call('POST', 'supply_chain/package_shipment_confirmation', [ | ||
RequestOptions::JSON => [ | ||
'warehouse_provider_id' => $warehouse_provider_id, | ||
'package' => $package, | ||
] | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/* | ||
* This file is part of tiktokshop-client. | ||
* | ||
* Copyright (c) 2023 Jin <[email protected]> All rights reserved. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace NVuln\TiktokShop\Tests\Resources; | ||
|
||
use NVuln\TiktokShop\Tests\TestResource; | ||
|
||
class SupplychainTest extends TestResource | ||
{ | ||
public function testPackageFulfillmentDataSync() | ||
{ | ||
$this->caller->packageFulfillmentDataSync(1, []); | ||
$this->assertPreviousRequest('POST', 'supply_chain/package_shipment_confirmation'); | ||
} | ||
} |