Evo Voice

<back to all web services

UpdateTrustProfile

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager
The following routes are available for this service:
POST/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 UpdateTrustProfile implements IConvertible
{
    String? accountId;
    String? customerProfileSid;
    String? cnamProductSid;
    String? shakenStirProductSid;

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

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

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

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

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

Dart UpdateTrustProfile 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 /trust-profile HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateTrustProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Trust">
  <AccountId>String</AccountId>
  <CNAMProductSid>String</CNAMProductSid>
  <CustomerProfileSid>String</CustomerProfileSid>
  <ShakenStirProductSid>String</ShakenStirProductSid>
</UpdateTrustProfile>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TrustProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Trust">
  <CNAMProductSid>String</CNAMProductSid>
  <CustomerProfileSid>String</CustomerProfileSid>
  <ShakenStirProductSid>String</ShakenStirProductSid>
</TrustProfile>