/* Options:
Date: 2026-08-14 05:57:25
Version: 8.30
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://initiation-pen.sirva.com
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: ConsumerInitiation.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Client_Initiations.ServiceModel;
using Client_Initiations.ServiceModel.Types;
namespace Client_Initiations.ServiceModel
{
public partial class AssignmentLocationDetails
{
///
///Work city
///
[ApiMember(Description="Work city", IsRequired=true)]
public virtual string WorkCity { get; set; }
///
///Current work location state
///
[ApiMember(Description="Current work location state")]
public virtual string CurrentWorkState { get; set; }
///
///Work state or province
///
[ApiMember(Description="Work state or province")]
public virtual string WorkState { get; set; }
///
///Destination work location state
///
[ApiMember(Description="Destination work location state")]
public virtual string DestinationWorkState { get; set; }
///
///Work country
///
[ApiMember(Description="Work country", IsRequired=true)]
public virtual string WorkCountry { get; set; }
///
///Preferred work location state
///
[ApiMember(Description="Preferred work location state")]
public virtual string PreferredWorkState { get; set; }
///
///Preferred work location country
///
[ApiMember(Description="Preferred work location country")]
public virtual string PreferredWorkCountry { get; set; }
}
///
///Consumer Initiation Service
///
[Route("/consumerinitiation", "POST")]
[Api(Description="Consumer Initiation Service")]
[ApiResponse(Description="Returned when the consumer initiation was successfully processed", StatusCode=200)]
[ApiResponse(Description="Returned if the request validation failed", StatusCode=400)]
[ApiResponse(Description="Returned if the client is not authorized", StatusCode=401)]
[ApiResponse(Description="Returned if an error occurred while processing the request", StatusCode=500)]
public partial class ConsumerInitiation
: IReturn, IPost
{
///
///Client identifier
///
[ApiMember(Description="Client identifier", IsRequired=true)]
public virtual string ClientID { get; set; }
///
///Consumer relocation request file details
///
[ApiMember(Description="Consumer relocation request file details", IsRequired=true)]
public virtual RelocationsRequestFile File { get; set; }
}
public partial class ConsumerInitiationResponse
{
public ConsumerInitiationResponse()
{
Errors = new List{};
}
///
///Response message
///
[ApiMember(Description="Response message")]
public virtual string Message { get; set; }
///
///File identifier for the created initiation
///
[ApiMember(Description="File identifier for the created initiation")]
public virtual string FileId { get; set; }
///
///List of validation errors, if any
///
[ApiMember(Description="List of validation errors, if any")]
public virtual List Errors { get; set; }
}
public partial class RelocationsRequestFile
{
public RelocationsRequestFile()
{
Addresses = new RelocationsRequestFileAddress[]{};
Phones = new RelocationsRequestFilePhone[]{};
}
///
///Command type for the request (INITIATE)
///
[ApiMember(Description="Command type for the request (INITIATE)", IsRequired=true)]
public virtual string Command { get; set; }
///
///External identifier for the transferee
///
[ApiMember(Description="External identifier for the transferee", IsRequired=true)]
public virtual string ExternalID { get; set; }
///
///Details about the transferee
///
[ApiMember(Description="Details about the transferee", IsRequired=true)]
public virtual RelocationsRequestFileTransfereeDetails TransfereeDetails { get; set; }
///
///List of addresses associated with the transferee
///
[ApiMember(Description="List of addresses associated with the transferee", IsRequired=true)]
public virtual RelocationsRequestFileAddress[] Addresses { get; set; }
///
///List of phone numbers associated with the transferee
///
[ApiMember(Description="List of phone numbers associated with the transferee", IsRequired=true)]
public virtual RelocationsRequestFilePhone[] Phones { get; set; }
///
///Assignment details for the relocation
///
[ApiMember(Description="Assignment details for the relocation", IsRequired=true)]
public virtual RelocationsRequestFileAssignmentDetails AssignmentDetails { get; set; }
}
public partial class RelocationsRequestFileAssignmentDetails
{
///
///Program name or code
///
[ApiMember(Description="Program name or code", IsRequired=true)]
public virtual string Program { get; set; }
///
///Type of assignment
///
[ApiMember(Description="Type of assignment", IsRequired=true)]
public virtual string AssignmentType { get; set; }
///
///Assignment start date
///
[ApiMember(Description="Assignment start date", IsRequired=true)]
public virtual DateTime? StartDate { get; set; }
///
///Company name
///
[ApiMember(Description="Company name", IsRequired=true)]
public virtual string CompanyName { get; set; }
///
///Contact
///
[ApiMember(Description="Contact", IsRequired=true)]
public virtual string Contact { get; set; }
///
///Current assignment location details
///
[ApiMember(Description="Current assignment location details", IsRequired=true)]
public virtual AssignmentLocationDetails Current { get; set; }
///
///Destination assignment location details
///
[ApiMember(Description="Destination assignment location details", IsRequired=true)]
public virtual AssignmentLocationDetails Destination { get; set; }
}
public partial class RelocationsRequestFileTransfereeDetails
{
///
///First name of the transferee
///
[ApiMember(Description="First name of the transferee", IsRequired=true)]
public virtual string FirstName { get; set; }
///
///Last name of the transferee
///
[ApiMember(Description="Last name of the transferee", IsRequired=true)]
public virtual string LastName { get; set; }
///
///Preferred email address
///
[ApiMember(Description="Preferred email address", IsRequired=true)]
public virtual string PreferredEmail { get; set; }
}
}
namespace Client_Initiations.ServiceModel.Types
{
public partial class ValidateError
{
public virtual string ErrorNumber { get; set; }
public virtual string ErrorDescription { get; set; }
}
}