' Options: 'Date: 2024-11-24 14:22:41 'Version: 6.50 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://clubready.com/api/current ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: True '''ExportValueTypes: False 'IncludeTypes: PaymentProfileImportEndpoint.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports ClubReady.Web.Api Imports ClubReady.Payments Imports ClubReady.Payments.PaymentsDb Imports ClubReady.Web.Api.Sales Namespace Global Namespace ClubReady.Payments Public Partial Class PaymentProfileImportRequest Public Overridable Property AcctToken As String Public Overridable Property ProfileToken As String Public Overridable Property DoNotUpdatePaymentTypePreference As Boolean Public Overridable Property NewOwner As Nullable(Of ValueTuple(Of Int32,OwnerType)) End Class Public Partial Class PaymentProfileImportResponse Public Overridable Property Success As Boolean Public Overridable Property Message As String Public Overridable Property PaymentProfile As PaymentProfile End Class End Namespace Namespace ClubReady.Payments.PaymentsDb Public Partial Class PaymentProfile Public Overridable Property PaymentProfileId As Integer Public Overridable Property AcctToken As String Public Overridable Property OwnerId As Integer Public Overridable Property OwnerTypeId As Short Public Overridable Property AcctTypeId As Short Public Overridable Property AcctClassId As Short Public Overridable Property PrefixName As String Public Overridable Property FirstName As String Public Overridable Property MiddleName As String Public Overridable Property LastName As String Public Overridable Property SuffixName As String Public Overridable Property Address1 As String Public Overridable Property Address2 As String Public Overridable Property Urbanization As String Public Overridable Property City As String Public Overridable Property State As String Public Overridable Property PostalCode As String Public Overridable Property CountryCode As String Public Overridable Property Last4 As String Public Overridable Property CcExpMonth As Nullable(Of Byte) Public Overridable Property CcExpYear As Nullable(Of Byte) Public Overridable Property IsTemp As Boolean Public Overridable Property IsDisabled As Boolean Public Overridable Property OnHoldUtc As Nullable(Of Date) Public Overridable Property OnHoldReasonCode As Nullable(Of Byte) Public Overridable Property OnHoldReasonDetail As String Public Overridable Property AcctUpdaterFlagUtc As Nullable(Of Date) Public Overridable Property CreatedBy As Integer Public Overridable Property CreatedUtc As Date Public Overridable Property ModifiedBy As Integer Public Overridable Property ModifiedUtc As Date Public Overridable Property AcctUpdaterFlag As Boolean Public Overridable Property EntryModeId As Short Public Overridable Property ExcludeFromAcctUpdater As Boolean End Class End Namespace Namespace ClubReady.Web.Api Public Interface IApiKeyEndpoint Property ApiKey As String End Interface End Namespace Namespace ClubReady.Web.Api.Sales Public Partial Class PaymentProfileImportEndpoint Inherits PaymentProfileImportRequest Implements IReturn(Of PaymentProfileImportResponse) Implements IApiKeyEndpoint ''' '''Api Authentication Key ''' Public Overridable Property ApiKey As String ''' '''Encoded data uniquely identifying the payment profile. Long term storage of AcctToken is not recommended, as the token may change over time (for example, by processes like Account Updater). The length is usually 80 characters. ''' Public Overridable Property AcctToken As String ''' '''Encoded data containing non-PCI information about the Payment Profile. ProfileTokens contain a timestamp. If the ClubReady API does not process the token within 5 minutes,it cannot be accepted and a new profile will have to be created with a new AcctToken. The timevalidation is to prevent old tokens from be re-played at a later time. The length is variable, but generally around 1,000 characters. ''' Public Overridable Property ProfileToken As String ''' '''When adding a Payment Profile that is 'on-file', the default behavior is to update the user's Payment TypePreference to the AcctClass of the new profile. If you wish to not update the preference, you can set`DoNotUpdatePaymentTypePreference` to `true`. Otherwise, this can be omitted or `false`. For `IsTemp == true` profiles, `DoNotUpdatePaymentTypePreference` is ignored. ''' Public Overridable Property DoNotUpdatePaymentTypePreference As Boolean ''' '''**Conditionally Required** When adding a Payment Profile that has an OwnerType of `TempStUser`, the ownership will be changed to OwnerType of `User`with the `UserId` of the supplied `NewOwnerId`. ''' Public Overridable Property NewOwnerId As Nullable(Of Integer) End Class End Namespace End Namespace