Bridge

<back to all web services

GetBuyingTermsForEnquiryAndEntity

Buying Terms
The following routes are available for this service:
GET/Buying-Terms/Get-Buying-Terms-For-Enquiry-And-Entity
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class GetBuyingTermsForEnquiryAndEntity implements IConvertible
{
    int? EnquiryId;
    int? EntityContactId;

    GetBuyingTermsForEnquiryAndEntity({this.EnquiryId,this.EntityContactId});
    GetBuyingTermsForEnquiryAndEntity.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class GetBuyingTermsForEnquiryAndEntityViewModel implements IConvertible
{
    List<String>? Information;

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

    fromMap(Map<String, dynamic> json) {
        Information = JsonConverters.fromJson(json['Information'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Information': JsonConverters.toJson(Information,'List<String>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'GetBuyingTermsForEnquiryAndEntity': TypeInfo(TypeOf.Class, create:() => GetBuyingTermsForEnquiryAndEntity()),
    'GetBuyingTermsForEnquiryAndEntityViewModel': TypeInfo(TypeOf.Class, create:() => GetBuyingTermsForEnquiryAndEntityViewModel()),
});

Dart GetBuyingTermsForEnquiryAndEntity 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.

GET /Buying-Terms/Get-Buying-Terms-For-Enquiry-And-Entity HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Information: 
	[
		String
	]
}