/* Options: Date: 2025-07-18 19:53:52 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: PaymentProfileImportEndpoint.* //ExcludeTypes: //DefaultImports: */ export interface IApiKeyEndpoint { ApiKey: string; } export class PaymentProfileImportRequest { public ProfileToken?: string; public DoNotUpdatePaymentTypePreference: boolean; public NewOwnerId?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class PaymentProfile implements IFullNameContainer { public PaymentProfileId: number; public AcctToken: string; public OwnerId: number; public OwnerTypeId: number; public AcctTypeId: number; public AcctClassId: number; public PrefixName: string; public FirstName: string; public MiddleName: string; public LastName: string; public SuffixName: string; public Address1: string; public Address2: string; public Urbanization: string; public City: string; public State: string; public PostalCode: string; public CountryCode: string; public Last4: string; public CcExpMonth?: number; public CcExpYear?: number; public IsTemp: boolean; public IsDisabled: boolean; public OnHoldUtc?: string; public OnHoldReasonCode?: number; public OnHoldReasonDetail: string; public AcctUpdaterFlagUtc?: string; public CreatedBy: number; public CreatedUtc: string; public ModifiedBy: number; public ModifiedUtc: string; public AcctUpdaterFlag: boolean; public EntryModeId: number; public ExcludeFromAcctUpdater: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IFullNameContainer { FirstLastName: string; FullName: string; PrefixName?: string; FirstName?: string; MiddleName?: string; LastName?: string; SuffixName?: string; } export class PaymentProfileImportResponse { public Success: boolean; public Message?: string; public PaymentProfile?: PaymentProfile; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/sales/paymentprofile/import", "POST") // @ApiResponse(Description="", ResponseType="typeof(ClubReady.Payments.PaymentProfileImportResponse)", StatusCode=200) export class PaymentProfileImportEndpoint extends PaymentProfileImportRequest implements IReturn, IApiKeyEndpoint { /** * IP address of the end user */ // @ApiMember(Description="IP address of the end user", Name="X-Forwarded-For", ParameterType="header") public XForwardedFor?: string; /** * API Authentication Key */ // @ApiMember(Description="API Authentication Key", IsRequired=true, ParameterType="query") public ApiKey: string; /** * The ProfileToken JWT to import (see description above) */ // @ApiMember(Description="The ProfileToken JWT to import (see description above)", IsRequired=true) public ProfileToken: string; /** * When adding a PaymentMethod that is 'on-file' (`IsTemp == true`), the default behavior is toset this PaymentMethod as the preferred method. If you do not wish this to be the preferredmethod, you can set `DoNotUpdatePaymentTypePreference` to `true`. Otherwise, this can beomitted or `false`.For non 'on-file' PaymentMethods, this setting is ignored. */ // @ApiMember(Description="When adding a PaymentMethod that is 'on-file' (`IsTemp == true`), the default behavior is to\r\nset this PaymentMethod as the preferred method. If you do not wish this to be the preferred\r\nmethod, you can set `DoNotUpdatePaymentTypePreference` to `true`. Otherwise, this can be\r\nomitted or `false`.\r\n\r\nFor non 'on-file' PaymentMethods, this setting is ignored.") public DoNotUpdatePaymentTypePreference: boolean; /** * **Conditionally Required** When importing a ProfileToken with an OwnerType of `TempStUser`, the ownership will be changed toOwnerType of `User` with the userId of the supplied `NewOwnerId`.This is needed when a PaymentMethod is created for a User that has not been selected or created, yet. */ // @ApiMember(Description="**Conditionally Required** \r\n\r\nWhen importing a ProfileToken with an OwnerType of `TempStUser`, the ownership will be changed to\r\nOwnerType of `User` with the userId of the supplied `NewOwnerId`.\r\n\r\nThis is needed when a PaymentMethod is created for a User that has not been selected or created, yet.") public NewOwnerId?: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'PaymentProfileImportEndpoint'; } public getMethod() { return 'POST'; } public createResponse() { return new PaymentProfileImportResponse(); } }