/* Options: Date: 2024-11-24 13:34:18 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: AddPaymentAccount.* //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); } } // @DataContract export enum AcctType { Uninitialized = 0, Visa = 1, MC = 2, Disc = 3, Amex = 4, Diners = 5, JCB = 6, enRoute = 7, PayPal = 8, BillMe = 9, PC = 11, PS = 12, BC = 13, BS = 14, Becs = 15, Bacs = 16, Maestro = 20, Solo = 21, VisaElectron = 22, CIBC = 23, RoyalBankCa = 24, TDCaTrust = 25, Scotia = 26, BMO = 27, HSBCCa = 28, UnionPay = 29, InterPayment = 30, Laser = 31, UnknownCredit = 40, TransArmor = 41, Factor4 = 42, XPass = 43, ConnectedAccount = 44, UnknownBank = 45, Error = -1, } export class AddPaymentProfileRequest extends ApiDtoBase { public UserId: number; public AcctToken: string; public Last4: string; public ExpMonth?: number; public ExpYear?: number; public AcctType?: AcctType; public BnkRoute?: number; public FirstName: string; public MiddleName: string; public LastName: string; public Address1: string; public Address2: string; public City: string; public State: string; public PostalCode: string; public CountryCode: string; public Urbanization: string; public DoNotUpdatePaymentTypePreference: boolean; public IsTemp: boolean; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class AddPaymentProfileResponse { public Success: string; public Message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/sales/member/{MemberId}/payment/profile", "POST") // @ApiResponse(Description="", ResponseType="typeof(ClubReady.Core.Api.Models.AddPaymentProfileResponse)", StatusCode=200) export class AddPaymentAccount extends AddPaymentProfileRequest implements IReturn, IRestrictedApiRequest { /** * Api Authentication Key */ // @ApiMember(Description="Api Authentication Key", IsRequired=true, ParameterType="query") public ApiKey: string; /** * Id of the store for the user */ // @ApiMember(Description="Id of the store for the user", IsRequired=true, ParameterType="query") public StoreId: number; /** * Member Id of the user to update their Payment Profile */ // @ApiMember(Description="Member Id of the user to update their Payment Profile", IsRequired=true, ParameterType="path") public MemberId: number; /** * The AcctToken provided by creating a Payment Profile with the Vault Api */ // @ApiMember(Description="The AcctToken provided by creating a Payment Profile with the Vault Api", IsRequired=true) public AcctToken: string; /** * Last 4 digits of the Payment Profile */ // @ApiMember(Description="Last 4 digits of the Payment Profile") public Last4: string; /** * 2 digit expiration month **Required for Credit Card** */ // @ApiMember(Description="2 digit expiration month \n**Required for Credit Card**") public ExpMonth?: number; /** * 2 digit expiration year **Required for Credit Card** */ // @ApiMember(Description="2 digit expiration year \n**Required for Credit Card**") public ExpYear?: number; /** * The Account Type of the Payment Profile **Required when adding Gift Card**
Common Values
TextNumericalAccount Type
VISA1Visa
MC2MasterCard
Disc3Discover
Amex4American Express
PC11Personal Checking
PS12Personal Savings
BC13Business Checking
Factor442Factor4 Gift Card

You may use the Text or the Numerical value.

*/ // @ApiMember(Description="\r\nThe Account Type of the Payment Profile \r\n**Required when adding Gift Card**\r\n\r\n
\r\nCommon Values\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
TextNumericalAccount Type
VISA1Visa
MC2MasterCard
Disc3Discover
Amex4American Express
PC11Personal Checking
PS12Personal Savings
BC13Business Checking
Factor442Factor4 Gift Card
\r\n

You may use the Text or the Numerical value.

\r\n
") public AcctType?: AcctType; /** * Bank Routing Number **Required for Bank Accounts** */ // @ApiMember(Description="Bank Routing Number \n**Required for Bank Accounts**") public BnkRoute?: number; /** * Set to `true` to not set the user's Payment Type Preference when adding an on-file profile */ // @ApiMember(Description="Set to `true` to not set the user's Payment Type Preference when adding an on-file profile") public DoNotUpdatePaymentTypePreference: boolean; /** * Whether the Payment Profile is Temporary (One time transactions and Gift Cards are IsTemp = `true`) */ // @ApiMember(Description="Whether the Payment Profile is Temporary (One time transactions and Gift Cards are IsTemp = `true`)") public IsTemp: boolean; public RestrictedId?: number; public RestrictedResourceType: RestrictedResourceType; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'AddPaymentAccount'; } public getMethod() { return 'POST'; } public createResponse() { return new AddPaymentProfileResponse(); } }