Richemont.Booster2.PublicApi

<back to all web services

GetContactMethods

Requires Authentication
The following routes are available for this service:
GET/contactMethodsGet customer contact methods
import 'package:servicestack/servicestack.dart';

class ContactMethod implements IConvertible
{
    /**
    * Contact method description
    */
    // @ApiMember(Description="Contact method description", IsRequired=true)
    String? contactMethod;

    ContactMethod({this.contactMethod});
    ContactMethod.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        contactMethod = json['contactMethod'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'contactMethod': contactMethod
    };

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

class GetContactMethodsResponse extends ListBase<ContactMethod> implements IConvertible
{
    final List<ContactMethod> l = [];
    set length(int newLength) { l.length = newLength; }
    int get length => l.length;
    ContactMethod operator [](int index) => l[index];
    void operator []=(int index, ContactMethod value) { l[index] = value; }
    GetContactMethodsResponse();
    GetContactMethodsResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetContactMethodsResponse";
    TypeContext? context = _ctx;
}

class GetContactMethods implements IConvertible
{
    GetContactMethods();
    GetContactMethods.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetContactMethods";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
    'ContactMethod': TypeInfo(TypeOf.Class, create:() => ContactMethod()),
    'GetContactMethodsResponse': TypeInfo(TypeOf.Class, create:() => GetContactMethodsResponse()),
    'GetContactMethods': TypeInfo(TypeOf.Class, create:() => GetContactMethods()),
});

Dart GetContactMethods DTOs

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

HTTP + OTHER

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

GET /contactMethods HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]