Booster.Microservices

<back to all web services

GetBrandPrivacyPolicy

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/GetBrandPrivacyPolicy
import 'package:servicestack/servicestack.dart';

class BaseRequest<TResponse> implements IRequest, IConvertible
{
    String? sid;
    String? app;
    String? _os;
    String? _appVersion;
    String? _searchMethod;

    BaseRequest({this.sid,this.app,this._os,this._appVersion,this._searchMethod});
    BaseRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        sid = json['sid'];
        app = json['app'];
        _os = json['_os'];
        _appVersion = json['_appVersion'];
        _searchMethod = json['_searchMethod'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sid': sid,
        'app': app,
        '_os': _os,
        '_appVersion': _appVersion,
        '_searchMethod': _searchMethod
    };

    getTypeName() => "BaseRequest<$TResponse>";
    TypeContext? context = _ctx;
}

class GetBrandPrivacyPolicy extends BaseRequest<String> implements IConvertible
{
    String? countryId;
    String? languageId;
    String? brandTrigram;
    int? posId;

    GetBrandPrivacyPolicy({this.countryId,this.languageId,this.brandTrigram,this.posId});
    GetBrandPrivacyPolicy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        countryId = json['countryId'];
        languageId = json['languageId'];
        brandTrigram = json['brandTrigram'];
        posId = json['posId'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'countryId': countryId,
        'languageId': languageId,
        'brandTrigram': brandTrigram,
        'posId': posId
    });

    getTypeName() => "GetBrandPrivacyPolicy";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'qp_microservices_booster.richemont.com', types: <String, TypeInfo> {
    'BaseRequest<TResponse>': TypeInfo(TypeOf.Class, create:() => BaseRequest<TResponse>()),
    'GetBrandPrivacyPolicy': TypeInfo(TypeOf.Class, create:() => GetBrandPrivacyPolicy()),
});

Dart GetBrandPrivacyPolicy DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /warranty/v1/GetBrandPrivacyPolicy HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetBrandPrivacyPolicy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
  <_appVersion xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_appVersion>
  <_os xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_os>
  <_searchMethod xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_searchMethod>
  <app xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</app>
  <sid xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</sid>
  <brandTrigram>String</brandTrigram>
  <countryId>String</countryId>
  <languageId>String</languageId>
  <posId>0</posId>
</GetBrandPrivacyPolicy>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

(string)