/* Options: Date: 2024-11-24 13:32:10 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WalletTokenCreateEndpoint.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export enum RestrictedResourceType { Store = 'Store', Chain = 'Chain', User = 'User', Undefined = 'Undefined', } export interface IRestrictedApiRequest extends IApiKeyEndpoint { RestrictedId?: number; RestrictedResourceType: RestrictedResourceType; } export interface IApiKeyEndpoint { ApiKey: string; } export class ApiDtoBase { public ApiKey: string; public StoreId?: number; public ChainId?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export 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, } export enum WalletPage { Uninitialized = 'Uninitialized', Manage = 'Manage', Add = 'Add', AddCard = 'AddCard', AddBank = 'AddBank', AddMini = 'AddMini', AddCardMini = 'AddCardMini', AddBankMini = 'AddBankMini', } export class WalletTokenCreateRequestDto extends ApiDtoBase { public OwnerId: number; public OwnerType: OwnerType; public CreatorId: number; public Page: WalletPage; public Theme?: string; public AllowDeleteProfile?: boolean; public AllowDisableProfile?: boolean; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class ApiResponseBase { public Success: boolean; public Message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class WalletTokenCreateResponseDto extends ApiResponseBase { public WalletToken: string; public WalletOrigin: string; public WalletUrl: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class WalletTokenCreateResponse extends WalletTokenCreateResponseDto { public Success: boolean; public Message: string; public WalletToken: string; public WalletOrigin: string; public WalletUrl: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/sales/wallet/wallettokencreate", "GET") export class WalletTokenCreateEndpoint extends WalletTokenCreateRequestDto implements 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 ApiKey: string; /** * 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 OwnerId: number; /** * 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 OwnerType: OwnerType; /** * 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 CreatorId: number; /** * 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 Page: WalletPage; /** * CSS Theme */ // @ApiMember(Description="CSS Theme", ParameterType="query") public Theme: string; public RestrictedId?: number; public RestrictedResourceType: RestrictedResourceType; /** * Allows for a payment profile to be deleted */ // @ApiMember(Description="Allows for a payment profile to be deleted", Name="AllowDeleteProfile", ParameterType="query") public AllowDeleteProfile?: boolean; /** * Allows for a payment profile to be disabled */ // @ApiMember(Description="Allows for a payment profile to be disabled", Name="AllowDisableProfile", ParameterType="query") public AllowDisableProfile?: boolean; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'WalletTokenCreateEndpoint'; } public getMethod() { return 'GET'; } public createResponse() { return new WalletTokenCreateResponse(); } }