PUT | /sales/wallet/paymentprofileupdate | Update the personal information of a Payment Profile | Omitting fields or providing `null` will not update that field. Providing an empty or whitespace string will remove the data from the field. To update the account information (Account Number, Last4, Country, etc), create a new Payment Profile. |
---|
namespace ClubReady.Core.Api.Models
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ApiResponseBase() =
member val Success:Boolean = new Boolean() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type PaymentProfileUpdateResponseDto() =
inherit ApiResponseBase()
[<AllowNullLiteral>]
type PaymentProfileUpdateResponse() =
inherit PaymentProfileUpdateResponseDto()
[<AllowNullLiteral>]
type ApiDtoBase() =
member val ApiKey:String = null with get,set
member val StoreId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ChainId:Nullable<Int32> = new Nullable<Int32>() with get,set
[<AllowNullLiteral>]
type PaymentProfileUpdateRequestDto() =
inherit ApiDtoBase()
member val AcctToken:String = null with get,set
member val ModifiedBy:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CcExpMonth:Nullable<Byte> = new Nullable<Byte>() with get,set
member val CcExpYear:Nullable<Byte> = new Nullable<Byte>() with get,set
member val FullName:String = null with get,set
member val PrefixName:String = null with get,set
member val FirstName:String = null with get,set
member val MiddleName:String = null with get,set
member val LastName:String = null with get,set
member val SuffixName:String = null with get,set
member val Address1:String = null with get,set
member val Address2:String = null with get,set
member val Urbanization:String = null with get,set
member val City:String = null with get,set
member val State:String = null with get,set
member val PostalCode:String = null with get,set
member val IsDisabled:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val ExcludeFromAcctUpdater:Nullable<Boolean> = new Nullable<Boolean>() with get,set
[<AllowNullLiteral>]
type PaymentProfileUpdateEndpoint() =
inherit PaymentProfileUpdateRequestDto()
///<summary>
///Grants access to resources
///</summary>
[<ApiMember(Description="Grants access to resources", IsRequired=true)>]
member val ApiKey:String = null with get,set
///<summary>
///AcctToken to update
///</summary>
[<ApiMember(Description="AcctToken to update", IsRequired=true)>]
member val AcctToken:String = null with get,set
///<summary>
///UserId that is updating profile
///</summary>
[<ApiMember(Description="UserId that is updating profile", IsRequired=true)>]
member val ModifiedBy:Nullable<Int32> = new Nullable<Int32>() with get,set
///<summary>
///Expiry Month: 1 = January, 12 = December
///</summary>
[<ApiMember(Description="Expiry Month: 1 = January, 12 = December")>]
member val CcExpMonth:Nullable<Byte> = new Nullable<Byte>() with get,set
///<summary>
///Expiry Year: Two digit year
///</summary>
[<ApiMember(Description="Expiry Year: Two digit year")>]
member val CcExpYear:Nullable<Byte> = new Nullable<Byte>() with get,set
///<summary>
///The name can be provided with FullName OR as separate fields (PrefixName, FirstName, MiddleName, LastName, SuffixName).<br />Providing both will cause an error.
///</summary>
[<ApiMember(Description="The name can be provided with FullName OR as separate fields (PrefixName, FirstName, MiddleName, LastName, SuffixName).<br />Providing both will cause an error.")>]
member val FullName:String = null with get,set
[<ApiMember>]
member val PrefixName:String = null with get,set
[<ApiMember>]
member val FirstName:String = null with get,set
[<ApiMember>]
member val MiddleName:String = null with get,set
[<ApiMember>]
member val LastName:String = null with get,set
[<ApiMember>]
member val SuffixName:String = null with get,set
[<ApiMember>]
member val Address1:String = null with get,set
[<ApiMember>]
member val Address2:String = null with get,set
[<ApiMember>]
member val Urbanization:String = null with get,set
[<ApiMember>]
member val City:String = null with get,set
[<ApiMember>]
member val State:String = null with get,set
[<ApiMember>]
member val PostalCode:String = null with get,set
///<summary>
///Disable (or Enabled) the Payment Profile
///</summary>
[<ApiMember(Description="Disable (or Enabled) the Payment Profile")>]
member val IsDisabled:Nullable<Boolean> = new Nullable<Boolean>() with get,set
///<summary>
///Exclude (or Include) from Account Updater
///</summary>
[<ApiMember(Description="Exclude (or Include) from Account Updater")>]
member val ExcludeFromAcctUpdater:Nullable<Boolean> = new Nullable<Boolean>() with get,set
F# PaymentProfileUpdateEndpoint DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /sales/wallet/paymentprofileupdate HTTP/1.1
Host: clubready.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ApiKey: String,
AcctToken: String,
ModifiedBy: 0,
CcExpMonth: 0,
CcExpYear: 0,
FullName: String,
PrefixName: String,
FirstName: String,
MiddleName: String,
LastName: String,
SuffixName: String,
Address1: String,
Address2: String,
Urbanization: String,
City: String,
State: String,
PostalCode: String,
IsDisabled: False,
ExcludeFromAcctUpdater: False,
StoreId: 0,
ChainId: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Success: False, Message: String }