Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API

Services (Dart)

Le module MultiServiceServiceModule permet de gérer les services proposés.

Accès : applite.app.multiService.service

Méthodes

list

final response = await applite.app.multiService.service.list( ListServicesParams(apiKey: 'api_key', appId: 'app_id'), );

create

final response = await applite.app.multiService.service.create( CreateServiceParams( apiKey: 'api_key', appId: 'app_id', name: 'Massage Relaxant', basePrice: 15000, duration: 60, description: 'Massage complet du corps', companyId: 'company_id', // Optionnel, utilise l'entreprise par défaut fields: [ ServiceField( name: 'intensity', label: 'Intensité', type: FieldType.select, required: true, options: [ FieldOption(value: 'light', label: 'Léger'), FieldOption(value: 'medium', label: 'Moyen'), FieldOption(value: 'deep', label: 'Profond'), ], ), ], ), );

get

final response = await applite.app.multiService.service.get( GetServiceParams(apiKey: 'api_key', appId: 'app_id', id: 'service_id'), );

update

final response = await applite.app.multiService.service.update( UpdateServiceParams( apiKey: 'api_key', appId: 'app_id', id: 'service_id', basePrice: 18000, duration: 75, ), );

delete

final response = await applite.app.multiService.service.delete( DeleteServiceParams(apiKey: 'api_key', appId: 'app_id', id: 'service_id'), );

Types

FieldType

enum FieldType { text, number, select, multipleSelect, email, phone, date, }
Last updated on