Evo Voice

<back to all web services

GetTrustProfile

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager
The following routes are available for this service:
All Verbs/trust-profile
import 'package:servicestack/servicestack.dart';

class TrustProfile implements IConvertible
{
    String? customerProfileSid;
    String? cnamProductSid;
    String? shakenStirProductSid;

    TrustProfile({this.customerProfileSid,this.cnamProductSid,this.shakenStirProductSid});
    TrustProfile.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'customerProfileSid': customerProfileSid,
        'cnamProductSid': cnamProductSid,
        'shakenStirProductSid': shakenStirProductSid
    };

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

class GetTrustProfile implements IConvertible
{
    String? accountId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'evovoice.io', types: <String, TypeInfo> {
    'TrustProfile': TypeInfo(TypeOf.Class, create:() => TrustProfile()),
    'GetTrustProfile': TypeInfo(TypeOf.Class, create:() => GetTrustProfile()),
});

Dart GetTrustProfile DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /trust-profile HTTP/1.1 
Host: evovoice.io 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"accountId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"customerProfileSid":"String","cnamProductSid":"String","shakenStirProductSid":"String"}