/* Options: Date: 2024-11-24 13:45:27 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: GetSalesPackagesRequest.* //ExcludeTypes: //DefaultImports: */ 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); } } export class GetSalesPackagesRequestDto extends ApiDtoBase { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/sales/packages", "GET") export class GetSalesPackagesRequest extends GetSalesPackagesRequestDto implements 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 store to get packages for */ // @ApiMember(DataType="string", Description="ID # of store to get packages for", IsRequired=true, Name="StoreId", ParameterType="query") public StoreId: number; /** * ID # of the user to get packages for */ // @ApiMember(DataType="integer", Description="ID # of the user to get packages for", Name="UserId", ParameterType="query") public UserId?: number; /** * The filter type which will used for packages credit (Class = 1, ClassSchedule = 2, SessionSize = 3) */ // @ApiMember(DataType="integer", Description="The filter type which will used for packages credit (Class = 1, ClassSchedule = 2, SessionSize = 3)", Name="CreditFilterType", ParameterType="query") public CreditFilterType?: number; /** * ClassId or ClassScheduleId or SessionSizeId packages which drop credits */ // @ApiMember(DataType="integer", Description="ClassId or ClassScheduleId or SessionSizeId packages which drop credits", Name="CreditFilterId", ParameterType="query") public CreditFilterId?: number; public RestrictedId?: number; public RestrictedResourceType: RestrictedResourceType; /** * Show packages enabled for In App purchase. True or False */ // @ApiMember(DataType="string", Description="Show packages enabled for In App purchase. True or False", Name="InApp", ParameterType="query") public InApp: boolean; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'GetSalesPackagesRequest'; } public getMethod() { return 'GET'; } public createResponse() {} }