Bridge

<back to all web services

ETSRegistration

ETS
The following routes are available for this service:
GET/ETS/Registration
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

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

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

class CompanyViewModel implements IConvertible
{
    String? Guid;
    String? Name;
    String? EmailAddressPromptTextNewUser;
    String? InitialChatMessage;
    String? NewEnquiryEmailTopText;
    String? NewEnquiryEmailBottomText;
    String? NewEnquiryEmailTopTextToBuyer;
    String? NewEnquiryEmailBottomTextToBuyer;
    String? EmailServerName;
    String? FromEmailAddress;
    String? LoginPassword;
    int? PortNumber;
    String? BridgeDomain;
    String? PortalDomain;
    String? SendGridAPIKey;
    String? NewEnquiryButtonText;
    bool? EmailDocuments;
    String? ETSOrderInfoTextNonFinanced;
    String? ETSOrderInfoTextFinanced;
    String? ETSRegistrationEmailAddress;
    String? ETSNotRegisteredHeaderText;
    String? ETSKYCHeaderText;
    String? OrderConfirmationTCS;
    int? MAX_ORDER_QTY;

    CompanyViewModel({this.Guid,this.Name,this.EmailAddressPromptTextNewUser,this.InitialChatMessage,this.NewEnquiryEmailTopText,this.NewEnquiryEmailBottomText,this.NewEnquiryEmailTopTextToBuyer,this.NewEnquiryEmailBottomTextToBuyer,this.EmailServerName,this.FromEmailAddress,this.LoginPassword,this.PortNumber,this.BridgeDomain,this.PortalDomain,this.SendGridAPIKey,this.NewEnquiryButtonText,this.EmailDocuments,this.ETSOrderInfoTextNonFinanced,this.ETSOrderInfoTextFinanced,this.ETSRegistrationEmailAddress,this.ETSNotRegisteredHeaderText,this.ETSKYCHeaderText,this.OrderConfirmationTCS,this.MAX_ORDER_QTY});
    CompanyViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['Guid'];
        Name = json['Name'];
        EmailAddressPromptTextNewUser = json['EmailAddressPromptTextNewUser'];
        InitialChatMessage = json['InitialChatMessage'];
        NewEnquiryEmailTopText = json['NewEnquiryEmailTopText'];
        NewEnquiryEmailBottomText = json['NewEnquiryEmailBottomText'];
        NewEnquiryEmailTopTextToBuyer = json['NewEnquiryEmailTopTextToBuyer'];
        NewEnquiryEmailBottomTextToBuyer = json['NewEnquiryEmailBottomTextToBuyer'];
        EmailServerName = json['EmailServerName'];
        FromEmailAddress = json['FromEmailAddress'];
        LoginPassword = json['LoginPassword'];
        PortNumber = json['PortNumber'];
        BridgeDomain = json['BridgeDomain'];
        PortalDomain = json['PortalDomain'];
        SendGridAPIKey = json['SendGridAPIKey'];
        NewEnquiryButtonText = json['NewEnquiryButtonText'];
        EmailDocuments = json['EmailDocuments'];
        ETSOrderInfoTextNonFinanced = json['ETSOrderInfoTextNonFinanced'];
        ETSOrderInfoTextFinanced = json['ETSOrderInfoTextFinanced'];
        ETSRegistrationEmailAddress = json['ETSRegistrationEmailAddress'];
        ETSNotRegisteredHeaderText = json['ETSNotRegisteredHeaderText'];
        ETSKYCHeaderText = json['ETSKYCHeaderText'];
        OrderConfirmationTCS = json['OrderConfirmationTCS'];
        MAX_ORDER_QTY = json['MAX_ORDER_QTY'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Guid': Guid,
        'Name': Name,
        'EmailAddressPromptTextNewUser': EmailAddressPromptTextNewUser,
        'InitialChatMessage': InitialChatMessage,
        'NewEnquiryEmailTopText': NewEnquiryEmailTopText,
        'NewEnquiryEmailBottomText': NewEnquiryEmailBottomText,
        'NewEnquiryEmailTopTextToBuyer': NewEnquiryEmailTopTextToBuyer,
        'NewEnquiryEmailBottomTextToBuyer': NewEnquiryEmailBottomTextToBuyer,
        'EmailServerName': EmailServerName,
        'FromEmailAddress': FromEmailAddress,
        'LoginPassword': LoginPassword,
        'PortNumber': PortNumber,
        'BridgeDomain': BridgeDomain,
        'PortalDomain': PortalDomain,
        'SendGridAPIKey': SendGridAPIKey,
        'NewEnquiryButtonText': NewEnquiryButtonText,
        'EmailDocuments': EmailDocuments,
        'ETSOrderInfoTextNonFinanced': ETSOrderInfoTextNonFinanced,
        'ETSOrderInfoTextFinanced': ETSOrderInfoTextFinanced,
        'ETSRegistrationEmailAddress': ETSRegistrationEmailAddress,
        'ETSNotRegisteredHeaderText': ETSNotRegisteredHeaderText,
        'ETSKYCHeaderText': ETSKYCHeaderText,
        'OrderConfirmationTCS': OrderConfirmationTCS,
        'MAX_ORDER_QTY': MAX_ORDER_QTY
    };

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

class GetETSPriceDayChangeViewModel implements IConvertible
{
    int? Id;
    DateTime? Today;
    double? PreviousClose;
    double? ClosePrice;
    double? PercentageChange;
    double? EURChange;
    String? LabelDescription;
    bool? ShowGetQuoteButton;
    bool? ShowPriceSection;
    int? MinutesRemaining;
    String? MarketCountdownLabel;
    String? IsRegistered;

    GetETSPriceDayChangeViewModel({this.Id,this.Today,this.PreviousClose,this.ClosePrice,this.PercentageChange,this.EURChange,this.LabelDescription,this.ShowGetQuoteButton,this.ShowPriceSection,this.MinutesRemaining,this.MarketCountdownLabel,this.IsRegistered});
    GetETSPriceDayChangeViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Today = JsonConverters.fromJson(json['Today'],'DateTime',context!);
        PreviousClose = JsonConverters.toDouble(json['PreviousClose']);
        ClosePrice = JsonConverters.toDouble(json['ClosePrice']);
        PercentageChange = JsonConverters.toDouble(json['PercentageChange']);
        EURChange = JsonConverters.toDouble(json['EURChange']);
        LabelDescription = json['LabelDescription'];
        ShowGetQuoteButton = json['ShowGetQuoteButton'];
        ShowPriceSection = json['ShowPriceSection'];
        MinutesRemaining = json['MinutesRemaining'];
        MarketCountdownLabel = json['MarketCountdownLabel'];
        IsRegistered = json['IsRegistered'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Today': JsonConverters.toJson(Today,'DateTime',context!),
        'PreviousClose': PreviousClose,
        'ClosePrice': ClosePrice,
        'PercentageChange': PercentageChange,
        'EURChange': EURChange,
        'LabelDescription': LabelDescription,
        'ShowGetQuoteButton': ShowGetQuoteButton,
        'ShowPriceSection': ShowPriceSection,
        'MinutesRemaining': MinutesRemaining,
        'MarketCountdownLabel': MarketCountdownLabel,
        'IsRegistered': IsRegistered
    };

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

class GetETSRegistrationStatusViewModel implements IConvertible
{
    String? Status;
    String? AppliedBy;

    GetETSRegistrationStatusViewModel({this.Status,this.AppliedBy});
    GetETSRegistrationStatusViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class ETSRegistrationViewModel implements IConvertible
{
    CompanyViewModel? Company;
    GetETSPriceDayChangeViewModel? GetETSPriceDayChange;
    GetETSRegistrationStatusViewModel? GetETSRegistrationStatus;

    ETSRegistrationViewModel({this.Company,this.GetETSPriceDayChange,this.GetETSRegistrationStatus});
    ETSRegistrationViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Company = JsonConverters.fromJson(json['Company'],'CompanyViewModel',context!);
        GetETSPriceDayChange = JsonConverters.fromJson(json['GetETSPriceDayChange'],'GetETSPriceDayChangeViewModel',context!);
        GetETSRegistrationStatus = JsonConverters.fromJson(json['GetETSRegistrationStatus'],'GetETSRegistrationStatusViewModel',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Company': JsonConverters.toJson(Company,'CompanyViewModel',context!),
        'GetETSPriceDayChange': JsonConverters.toJson(GetETSPriceDayChange,'GetETSPriceDayChangeViewModel',context!),
        'GetETSRegistrationStatus': JsonConverters.toJson(GetETSRegistrationStatus,'GetETSRegistrationStatusViewModel',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'ETSRegistration': TypeInfo(TypeOf.Class, create:() => ETSRegistration()),
    'CompanyViewModel': TypeInfo(TypeOf.Class, create:() => CompanyViewModel()),
    'GetETSPriceDayChangeViewModel': TypeInfo(TypeOf.Class, create:() => GetETSPriceDayChangeViewModel()),
    'GetETSRegistrationStatusViewModel': TypeInfo(TypeOf.Class, create:() => GetETSRegistrationStatusViewModel()),
    'ETSRegistrationViewModel': TypeInfo(TypeOf.Class, create:() => ETSRegistrationViewModel()),
});

Dart ETSRegistration 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 /ETS/Registration HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Company":{"Guid":"00000000000000000000000000000000","Name":"String","EmailAddressPromptTextNewUser":"String","InitialChatMessage":"String","NewEnquiryEmailTopText":"String","NewEnquiryEmailBottomText":"String","NewEnquiryEmailTopTextToBuyer":"String","NewEnquiryEmailBottomTextToBuyer":"String","EmailServerName":"String","FromEmailAddress":"String","LoginPassword":"String","PortNumber":0,"BridgeDomain":"String","PortalDomain":"String","SendGridAPIKey":"String","NewEnquiryButtonText":"String","EmailDocuments":false,"ETSOrderInfoTextNonFinanced":"String","ETSOrderInfoTextFinanced":"String","ETSRegistrationEmailAddress":"String","ETSNotRegisteredHeaderText":"String","ETSKYCHeaderText":"String","OrderConfirmationTCS":"String","MAX_ORDER_QTY":0},"GetETSPriceDayChange":{"Id":0,"Today":"0001-01-01T00:00:00.0000000","PreviousClose":0,"ClosePrice":0,"PercentageChange":0,"EURChange":0,"LabelDescription":"String","ShowGetQuoteButton":false,"ShowPriceSection":false,"MinutesRemaining":0,"MarketCountdownLabel":"String","IsRegistered":"String"},"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"}}