/* Options: Date: 2026-05-19 09:53:13 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateConsents.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/customer/{boosterCustomerId}/updateConsents", "PATCH") class UpdateConsents implements IConvertible, IPatch { /** * Booster customer Id */ // @ApiMember(Description="Booster customer Id") int? boosterCustomerId; /** * Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not.") bool? contactByEmailFlag; /** * Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not.") bool? contactByMailFlag; /** * Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not.") bool? contactByPhoneFlag; /** * Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not.") bool? contactBySMSFlag; /** * Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not.") bool? contactBySocialMediaFlag; /** * Provide 'true' if you want to be contacted at all. Leave empty or 'false' if you do not - if chosen false, all contactBy* will be set to false also */ // @ApiMember(Description="Provide 'true' if you want to be contacted at all. Leave empty or 'false' if you do not - if chosen false, all contactBy* will be set to false also") bool? privacyAcceptance; /** * Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not. */ // @ApiMember(Description="Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not.") bool? allowStoreDataAbroad; UpdateConsents({this.boosterCustomerId,this.contactByEmailFlag,this.contactByMailFlag,this.contactByPhoneFlag,this.contactBySMSFlag,this.contactBySocialMediaFlag,this.privacyAcceptance,this.allowStoreDataAbroad}); UpdateConsents.fromJson(Map json) { fromMap(json); } fromMap(Map json) { boosterCustomerId = json['boosterCustomerId']; contactByEmailFlag = json['contactByEmailFlag']; contactByMailFlag = json['contactByMailFlag']; contactByPhoneFlag = json['contactByPhoneFlag']; contactBySMSFlag = json['contactBySMSFlag']; contactBySocialMediaFlag = json['contactBySocialMediaFlag']; privacyAcceptance = json['privacyAcceptance']; allowStoreDataAbroad = json['allowStoreDataAbroad']; return this; } Map toJson() => { 'boosterCustomerId': boosterCustomerId, 'contactByEmailFlag': contactByEmailFlag, 'contactByMailFlag': contactByMailFlag, 'contactByPhoneFlag': contactByPhoneFlag, 'contactBySMSFlag': contactBySMSFlag, 'contactBySocialMediaFlag': contactBySocialMediaFlag, 'privacyAcceptance': privacyAcceptance, 'allowStoreDataAbroad': allowStoreDataAbroad }; getTypeName() => "UpdateConsents"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'UpdateConsents': TypeInfo(TypeOf.Class, create:() => UpdateConsents()), });