| POST | /signup/api/nat/{nationalId}/group/{chapId}/membershipPipeline |
|---|
import 'package:servicestack/servicestack.dart';
class BhWorkflowPropertyDto implements IConvertible
{
String? name;
String? value;
String? propertyNamespace;
BhWorkflowPropertyDto({this.name,this.value,this.propertyNamespace});
BhWorkflowPropertyDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
value = json['value'];
propertyNamespace = json['propertyNamespace'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'value': value,
'propertyNamespace': propertyNamespace
};
getTypeName() => "BhWorkflowPropertyDto";
TypeContext? context = _ctx;
}
class FormBuilderMembershipPipelineRq implements IApiRequest, IConvertible
{
int? nationalId;
int? chapId;
int? workflowTemplateTypeId;
String? workflowCategoryKey;
int? createdBy;
List<BhWorkflowPropertyDto>? properties;
FormBuilderMembershipPipelineRq({this.nationalId,this.chapId,this.workflowTemplateTypeId,this.workflowCategoryKey,this.createdBy,this.properties});
FormBuilderMembershipPipelineRq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
nationalId = json['nationalId'];
chapId = json['chapId'];
workflowTemplateTypeId = json['workflowTemplateTypeId'];
workflowCategoryKey = json['workflowCategoryKey'];
createdBy = json['createdBy'];
properties = JsonConverters.fromJson(json['properties'],'List<BhWorkflowPropertyDto>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'nationalId': nationalId,
'chapId': chapId,
'workflowTemplateTypeId': workflowTemplateTypeId,
'workflowCategoryKey': workflowCategoryKey,
'createdBy': createdBy,
'properties': JsonConverters.toJson(properties,'List<BhWorkflowPropertyDto>',context!)
};
getTypeName() => "FormBuilderMembershipPipelineRq";
TypeContext? context = _ctx;
}
class BhWorkflowOutputDto implements IConvertible
{
String? name;
String? value;
BhWorkflowOutputDto({this.name,this.value});
BhWorkflowOutputDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
value = json['value'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'value': value
};
getTypeName() => "BhWorkflowOutputDto";
TypeContext? context = _ctx;
}
class BhWorkflowComponentDto implements IConvertible
{
String? ComponentName;
bool? HasServerError;
bool? HasClientError;
bool? HasWarningError;
List<String>? Warnings;
BhWorkflowComponentDto({this.ComponentName,this.HasServerError,this.HasClientError,this.HasWarningError,this.Warnings});
BhWorkflowComponentDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ComponentName = json['ComponentName'];
HasServerError = json['HasServerError'];
HasClientError = json['HasClientError'];
HasWarningError = json['HasWarningError'];
Warnings = JsonConverters.fromJson(json['Warnings'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ComponentName': ComponentName,
'HasServerError': HasServerError,
'HasClientError': HasClientError,
'HasWarningError': HasWarningError,
'Warnings': JsonConverters.toJson(Warnings,'List<String>',context!)
};
getTypeName() => "BhWorkflowComponentDto";
TypeContext? context = _ctx;
}
class FormBuilderMembershipPipelineRs implements IConvertible
{
int? workflowId;
bool? isValid;
bool? hasServerError;
bool? hasClientError;
bool? hasWarningError;
String? clientErrors;
String? warningErrors;
List<BhWorkflowOutputDto>? outputs;
List<BhWorkflowComponentDto>? components;
FormBuilderMembershipPipelineRs({this.workflowId,this.isValid,this.hasServerError,this.hasClientError,this.hasWarningError,this.clientErrors,this.warningErrors,this.outputs,this.components});
FormBuilderMembershipPipelineRs.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
workflowId = json['workflowId'];
isValid = json['isValid'];
hasServerError = json['hasServerError'];
hasClientError = json['hasClientError'];
hasWarningError = json['hasWarningError'];
clientErrors = json['clientErrors'];
warningErrors = json['warningErrors'];
outputs = JsonConverters.fromJson(json['outputs'],'List<BhWorkflowOutputDto>',context!);
components = JsonConverters.fromJson(json['components'],'List<BhWorkflowComponentDto>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'workflowId': workflowId,
'isValid': isValid,
'hasServerError': hasServerError,
'hasClientError': hasClientError,
'hasWarningError': hasWarningError,
'clientErrors': clientErrors,
'warningErrors': warningErrors,
'outputs': JsonConverters.toJson(outputs,'List<BhWorkflowOutputDto>',context!),
'components': JsonConverters.toJson(components,'List<BhWorkflowComponentDto>',context!)
};
getTypeName() => "FormBuilderMembershipPipelineRs";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'BhWorkflowPropertyDto': TypeInfo(TypeOf.Class, create:() => BhWorkflowPropertyDto()),
'FormBuilderMembershipPipelineRq': TypeInfo(TypeOf.Class, create:() => FormBuilderMembershipPipelineRq()),
'List<BhWorkflowPropertyDto>': TypeInfo(TypeOf.Class, create:() => <BhWorkflowPropertyDto>[]),
'BhWorkflowOutputDto': TypeInfo(TypeOf.Class, create:() => BhWorkflowOutputDto()),
'BhWorkflowComponentDto': TypeInfo(TypeOf.Class, create:() => BhWorkflowComponentDto()),
'FormBuilderMembershipPipelineRs': TypeInfo(TypeOf.Class, create:() => FormBuilderMembershipPipelineRs()),
'List<BhWorkflowOutputDto>': TypeInfo(TypeOf.Class, create:() => <BhWorkflowOutputDto>[]),
'List<BhWorkflowComponentDto>': TypeInfo(TypeOf.Class, create:() => <BhWorkflowComponentDto>[]),
});
Dart FormBuilderMembershipPipelineRq DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /signup/api/nat/{nationalId}/group/{chapId}/membershipPipeline HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"nationalId":0,"chapId":0,"workflowTemplateTypeId":0,"workflowCategoryKey":"String","createdBy":0,"properties":[{"name":"String","value":"String","propertyNamespace":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"workflowId":0,"isValid":false,"hasServerError":false,"hasClientError":false,"hasWarningError":false,"clientErrors":"String","warningErrors":"String","outputs":[{"name":"String","value":"String"}],"components":[{"ComponentName":"String","HasServerError":false,"HasClientError":false,"HasWarningError":false,"Warnings":["String"]}]}