/* Options: Date: 2024-11-24 14:00:06 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //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: WalletTokenCreateEndpoint.* //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 ClubReady.Web.Api; using ClubReady.Core.Api.Models; using ClubReadyGateway.Vault; using ClubReady.Sales.Wallet; using ClubReady.Web.Api.Sales.Wallet; namespace ClubReady.Core.Api.Models { public partial class ApiDtoBase { public virtual string ApiKey { get; set; } public virtual int? StoreId { get; set; } public virtual int? ChainId { get; set; } } public partial class ApiResponseBase { public virtual bool Success { get; set; } public virtual string Message { get; set; } } } namespace ClubReady.Sales.Wallet { public enum WalletPage { Uninitialized, Manage, Add, AddCard, AddBank, AddMini, AddCardMini, AddBankMini, } public partial class WalletTokenCreateRequestDto : ApiDtoBase { public virtual int OwnerId { get; set; } public virtual OwnerType OwnerType { get; set; } public virtual int CreatorId { get; set; } public virtual WalletPage Page { get; set; } public virtual string Theme { get; set; } public virtual bool? AllowDeleteProfile { get; set; } public virtual bool? AllowDisableProfile { get; set; } } public partial class WalletTokenCreateResponseDto : ApiResponseBase { public virtual string WalletToken { get; set; } public virtual string WalletOrigin { get; set; } public virtual string WalletUrl { get; set; } } } namespace ClubReady.Web.Api { public partial interface IApiKeyEndpoint { string ApiKey { get; set; } } public partial interface IRestrictedApiRequest : IApiKeyEndpoint { int? RestrictedId { get; set; } RestrictedResourceType RestrictedResourceType { get; set; } } public enum RestrictedResourceType { Store, Chain, User, Undefined, } } namespace ClubReady.Web.Api.Sales.Wallet { [Route("/sales/wallet/wallettokencreate", "GET")] public partial 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")] public virtual string ApiKey { get; set; } /// ///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")] public virtual int OwnerId { get; set; } /// ///Type of owner to create the URL for /// [ApiMember(Description="Type of owner to create the URL for", IsRequired=true, Name="OwnerType", ParameterType="query")] public virtual OwnerType OwnerType { get; set; } /// ///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")] public virtual int CreatorId { get; set; } /// ///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")] public virtual WalletPage Page { get; set; } /// ///CSS Theme /// [ApiMember(Description="CSS Theme", ParameterType="query")] public virtual string Theme { get; set; } public virtual int? RestrictedId { get; set; } public virtual RestrictedResourceType RestrictedResourceType { get; set; } /// ///Allows for a payment profile to be deleted /// [ApiMember(Description="Allows for a payment profile to be deleted", Name="AllowDeleteProfile", ParameterType="query")] public virtual bool? AllowDeleteProfile { get; set; } /// ///Allows for a payment profile to be disabled /// [ApiMember(Description="Allows for a payment profile to be disabled", Name="AllowDisableProfile", ParameterType="query")] public virtual bool? AllowDisableProfile { get; set; } } public partial class WalletTokenCreateResponse : WalletTokenCreateResponseDto { public virtual bool Success { get; set; } public virtual string Message { get; set; } public virtual string WalletToken { get; set; } public virtual string WalletOrigin { get; set; } public virtual string WalletUrl { get; set; } } } namespace ClubReadyGateway.Vault { [DataContract] public enum OwnerType { 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, } }