Expose php artisan etsy:mcp as JSON-RPC stdio next to laravel-boost, reuse the stored HickLab3D shop connection, create listings as drafts only, and skip Etsy v3 conversation send because that API does not exist.
22 lines
485 B
PHP
22 lines
485 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EtsyConnection extends Model
|
|
{
|
|
protected $fillable = ['shop_id', 'shop_name', 'access_token', 'refresh_token', 'expires_at', 'scopes'];
|
|
|
|
protected $hidden = ['access_token', 'refresh_token'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'access_token' => 'encrypted',
|
|
'refresh_token' => 'encrypted',
|
|
'expires_at' => 'datetime',
|
|
];
|
|
}
|
|
}
|