Vendeurs (Dart)
Le module StoreSellerModule permet de gérer les vendeurs/marchands.
Accès : applite.app.store.seller
Méthodes
list
final response = await applite.app.store.seller.list(
ListSellersParams(apiKey: 'api_key', appId: 'app_id'),
);
for (final seller in response.data) {
print('${seller.fullname} - ${seller.productCount} produits');
}create
final response = await applite.app.store.seller.create(
CreateSellerParams(
apiKey: 'api_key',
appId: 'app_id',
fullname: 'Nouvelle Boutique',
telephone: '+225070000000',
email: 'contact@boutique.com',
isDefault: false,
),
);get
final response = await applite.app.store.seller.get(
GetSellerParams(apiKey: 'api_key', appId: 'app_id', id: 'seller_id'),
);update
final response = await applite.app.store.seller.update(
UpdateSellerParams(
apiKey: 'api_key',
appId: 'app_id',
id: 'seller_id',
fullname: 'Boutique Pro Updated',
telephone: '+225070000000',
email: 'new@boutique.com',
),
);delete
final response = await applite.app.store.seller.delete(
DeleteSellerParams(apiKey: 'api_key', appId: 'app_id', id: 'seller_id'),
);La suppression d’un vendeur supprime tous ses produits, catégories et commandes.
Last updated on