/* Options: Date: 2024-11-24 13:56:34 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WalletTokenCreateEndpoint.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/sales/wallet/wallettokencreate", Verbs="GET") open class WalletTokenCreateEndpoint : WalletTokenCreateRequestDto(), IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") var ApiKey:String? = null /** * ID # of the owner to create the URL for */ @ApiMember(DataType="integer", Description="ID # of the owner to create the URL for", IsRequired=true, Name="OwnerId", ParameterType="query") var OwnerId:Int? = null /** * Type of owner to create the URL for */ @ApiMember(Description="Type of owner to create the URL for", IsRequired=true, Name="OwnerType", ParameterType="query") var OwnerType:OwnerType? = null /** * Person creating the profile. Can be same as OwnerId. */ @ApiMember(Description="Person creating the profile. Can be same as OwnerId.", IsRequired=true, Name="CreatorId", ParameterType="query") var CreatorId:Int? = null /** * Page to display when calling the Payment Profile iFrame */ @ApiMember(Description="Page to display when calling the Payment Profile iFrame", IsRequired=true, Name="Page", ParameterType="query") var Page:WalletPage? = null /** * CSS Theme */ @ApiMember(Description="CSS Theme", ParameterType="query") var Theme:String? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null /** * Allows for a payment profile to be deleted */ @ApiMember(Description="Allows for a payment profile to be deleted", Name="AllowDeleteProfile", ParameterType="query") var AllowDeleteProfile:Boolean? = null /** * Allows for a payment profile to be disabled */ @ApiMember(Description="Allows for a payment profile to be disabled", Name="AllowDisableProfile", ParameterType="query") var AllowDisableProfile:Boolean? = null companion object { private val responseType = WalletTokenCreateResponse::class.java } override fun getResponseType(): Any? = WalletTokenCreateEndpoint.responseType } open class WalletTokenCreateResponse : WalletTokenCreateResponseDto() { var Success:Boolean? = null var Message:String? = null var WalletToken:String? = null var WalletOrigin:String? = null var WalletUrl:String? = null } enum class RestrictedResourceType { Store, Chain, User, Undefined, } open interface IRestrictedApiRequest : IApiKeyEndpoint { var RestrictedId:Int? var RestrictedResourceType:RestrictedResourceType? } open interface IApiKeyEndpoint { var ApiKey:String? } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } @DataContract enum class OwnerType(val value:Int) { Unknown(0), User(1), ConvUser(2), TempCart(3), TempAgmt(4), Store(5), Chain(6), Division(7), District(8), AdminType(9), TempStUser(10), VaultApi(11), Company(12), BackOfficeStore(13), OrgUser(14), CartItem(15), Testing(99), System(100), Error(-1), } enum class WalletPage { Uninitialized, Manage, Add, AddCard, AddBank, AddMini, AddCardMini, AddBankMini, } open class WalletTokenCreateRequestDto : ApiDtoBase() { var OwnerId:Int? = null var OwnerType:OwnerType? = null var CreatorId:Int? = null var Page:WalletPage? = null var Theme:String? = null var AllowDeleteProfile:Boolean? = null var AllowDisableProfile:Boolean? = null } open class WalletTokenCreateResponseDto : ApiResponseBase() { var WalletToken:String? = null var WalletOrigin:String? = null var WalletUrl:String? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }