CDD Engine Web Service v2.14.0.0

<back to all web services

GetLegalAddressRequest

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

class GetLegalAddressRequest implements IConvertible
{
    String? CompanyNumber;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'wp_cddws_test.worldpay.com', types: <String, TypeInfo> {
    'GetLegalAddressRequest': TypeInfo(TypeOf.Class, create:() => GetLegalAddressRequest()),
});

Dart GetLegalAddressRequest DTOs

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

HTTP + JSV

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

POST /LegalAddress/submit HTTP/1.1 
Host: wp-cddws-test.worldpay.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CompanyNumber: String
}