' Options: 'Date: 2024-05-12 08:05:10 'Version: 6.50 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://www.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.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 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