ClubReady Api

<back to all web services

PaymentProfileUpdateEndpoint

The following routes are available for this service:
PUT/sales/wallet/paymentprofileupdateUpdate the personal information of a Payment ProfileOmitting 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.
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PaymentProfileUpdateEndpoint extends PaymentProfileUpdateRequestDto
    {
        /**
        * Grants access to resources
        */
        @ApiMember(Description="Grants access to resources", IsRequired=true)
        public String ApiKey = null;

        /**
        * AcctToken to update
        */
        @ApiMember(Description="AcctToken to update", IsRequired=true)
        public String AcctToken = null;

        /**
        * UserId that is updating profile
        */
        @ApiMember(Description="UserId that is updating profile", IsRequired=true)
        public Integer ModifiedBy = null;

        /**
        * Expiry Month: 1 = January, 12 = December
        */
        @ApiMember(Description="Expiry Month: 1 = January, 12 = December")
        public Short CcExpMonth = null;

        /**
        * Expiry Year: Two digit year
        */
        @ApiMember(Description="Expiry Year: Two digit year")
        public Short CcExpYear = null;

        /**
        * The name can be provided with FullName OR as separate fields (PrefixName, FirstName, MiddleName, LastName, SuffixName).<br />Providing both will cause an error.
        */
        @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.")
        public String FullName = null;

        @ApiMember()
        public String PrefixName = null;

        @ApiMember()
        public String FirstName = null;

        @ApiMember()
        public String MiddleName = null;

        @ApiMember()
        public String LastName = null;

        @ApiMember()
        public String SuffixName = null;

        @ApiMember()
        public String Address1 = null;

        @ApiMember()
        public String Address2 = null;

        @ApiMember()
        public String Urbanization = null;

        @ApiMember()
        public String City = null;

        @ApiMember()
        public String State = null;

        @ApiMember()
        public String PostalCode = null;

        /**
        * Disable (or Enabled) the Payment Profile
        */
        @ApiMember(Description="Disable (or Enabled) the Payment Profile")
        public Boolean IsDisabled = null;

        /**
        * Exclude (or Include) from Account Updater
        */
        @ApiMember(Description="Exclude (or Include) from Account Updater")
        public Boolean ExcludeFromAcctUpdater = null;
        
        public String getApiKey() { return ApiKey; }
        public PaymentProfileUpdateEndpoint setApiKey(String value) { this.ApiKey = value; return this; }
        public String getAcctToken() { return AcctToken; }
        public PaymentProfileUpdateEndpoint setAcctToken(String value) { this.AcctToken = value; return this; }
        public Integer getModifiedBy() { return ModifiedBy; }
        public PaymentProfileUpdateEndpoint setModifiedBy(Integer value) { this.ModifiedBy = value; return this; }
        public Short getCcExpMonth() { return CcExpMonth; }
        public PaymentProfileUpdateEndpoint setCcExpMonth(Short value) { this.CcExpMonth = value; return this; }
        public Short getCcExpYear() { return CcExpYear; }
        public PaymentProfileUpdateEndpoint setCcExpYear(Short value) { this.CcExpYear = value; return this; }
        public String getFullName() { return FullName; }
        public PaymentProfileUpdateEndpoint setFullName(String value) { this.FullName = value; return this; }
        public String getPrefixName() { return PrefixName; }
        public PaymentProfileUpdateEndpoint setPrefixName(String value) { this.PrefixName = value; return this; }
        public String getFirstName() { return FirstName; }
        public PaymentProfileUpdateEndpoint setFirstName(String value) { this.FirstName = value; return this; }
        public String getMiddleName() { return MiddleName; }
        public PaymentProfileUpdateEndpoint setMiddleName(String value) { this.MiddleName = value; return this; }
        public String getLastName() { return LastName; }
        public PaymentProfileUpdateEndpoint setLastName(String value) { this.LastName = value; return this; }
        public String getSuffixName() { return SuffixName; }
        public PaymentProfileUpdateEndpoint setSuffixName(String value) { this.SuffixName = value; return this; }
        public String getAddress1() { return Address1; }
        public PaymentProfileUpdateEndpoint setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public PaymentProfileUpdateEndpoint setAddress2(String value) { this.Address2 = value; return this; }
        public String getUrbanization() { return Urbanization; }
        public PaymentProfileUpdateEndpoint setUrbanization(String value) { this.Urbanization = value; return this; }
        public String getCity() { return City; }
        public PaymentProfileUpdateEndpoint setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public PaymentProfileUpdateEndpoint setState(String value) { this.State = value; return this; }
        public String getPostalCode() { return PostalCode; }
        public PaymentProfileUpdateEndpoint setPostalCode(String value) { this.PostalCode = value; return this; }
        public Boolean getIsDisabled() { return IsDisabled; }
        public PaymentProfileUpdateEndpoint setIsDisabled(Boolean value) { this.IsDisabled = value; return this; }
        public Boolean isExcludeFromAcctUpdater() { return ExcludeFromAcctUpdater; }
        public PaymentProfileUpdateEndpoint setExcludeFromAcctUpdater(Boolean value) { this.ExcludeFromAcctUpdater = value; return this; }
    }

    public static class PaymentProfileUpdateRequestDto extends ApiDtoBase
    {
        public String AcctToken = null;
        public Integer ModifiedBy = null;
        public Short CcExpMonth = null;
        public Short CcExpYear = null;
        public String FullName = null;
        public String PrefixName = null;
        public String FirstName = null;
        public String MiddleName = null;
        public String LastName = null;
        public String SuffixName = null;
        public String Address1 = null;
        public String Address2 = null;
        public String Urbanization = null;
        public String City = null;
        public String State = null;
        public String PostalCode = null;
        public Boolean IsDisabled = null;
        public Boolean ExcludeFromAcctUpdater = null;
        
        public String getAcctToken() { return AcctToken; }
        public PaymentProfileUpdateRequestDto setAcctToken(String value) { this.AcctToken = value; return this; }
        public Integer getModifiedBy() { return ModifiedBy; }
        public PaymentProfileUpdateRequestDto setModifiedBy(Integer value) { this.ModifiedBy = value; return this; }
        public Short getCcExpMonth() { return CcExpMonth; }
        public PaymentProfileUpdateRequestDto setCcExpMonth(Short value) { this.CcExpMonth = value; return this; }
        public Short getCcExpYear() { return CcExpYear; }
        public PaymentProfileUpdateRequestDto setCcExpYear(Short value) { this.CcExpYear = value; return this; }
        public String getFullName() { return FullName; }
        public PaymentProfileUpdateRequestDto setFullName(String value) { this.FullName = value; return this; }
        public String getPrefixName() { return PrefixName; }
        public PaymentProfileUpdateRequestDto setPrefixName(String value) { this.PrefixName = value; return this; }
        public String getFirstName() { return FirstName; }
        public PaymentProfileUpdateRequestDto setFirstName(String value) { this.FirstName = value; return this; }
        public String getMiddleName() { return MiddleName; }
        public PaymentProfileUpdateRequestDto setMiddleName(String value) { this.MiddleName = value; return this; }
        public String getLastName() { return LastName; }
        public PaymentProfileUpdateRequestDto setLastName(String value) { this.LastName = value; return this; }
        public String getSuffixName() { return SuffixName; }
        public PaymentProfileUpdateRequestDto setSuffixName(String value) { this.SuffixName = value; return this; }
        public String getAddress1() { return Address1; }
        public PaymentProfileUpdateRequestDto setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public PaymentProfileUpdateRequestDto setAddress2(String value) { this.Address2 = value; return this; }
        public String getUrbanization() { return Urbanization; }
        public PaymentProfileUpdateRequestDto setUrbanization(String value) { this.Urbanization = value; return this; }
        public String getCity() { return City; }
        public PaymentProfileUpdateRequestDto setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public PaymentProfileUpdateRequestDto setState(String value) { this.State = value; return this; }
        public String getPostalCode() { return PostalCode; }
        public PaymentProfileUpdateRequestDto setPostalCode(String value) { this.PostalCode = value; return this; }
        public Boolean getIsDisabled() { return IsDisabled; }
        public PaymentProfileUpdateRequestDto setIsDisabled(Boolean value) { this.IsDisabled = value; return this; }
        public Boolean isExcludeFromAcctUpdater() { return ExcludeFromAcctUpdater; }
        public PaymentProfileUpdateRequestDto setExcludeFromAcctUpdater(Boolean value) { this.ExcludeFromAcctUpdater = value; return this; }
    }

    public static class ApiDtoBase
    {
        public String ApiKey = null;
        public Integer StoreId = null;
        public Integer ChainId = null;
        
        public String getApiKey() { return ApiKey; }
        public ApiDtoBase setApiKey(String value) { this.ApiKey = value; return this; }
        public Integer getStoreId() { return StoreId; }
        public ApiDtoBase setStoreId(Integer value) { this.StoreId = value; return this; }
        public Integer getChainId() { return ChainId; }
        public ApiDtoBase setChainId(Integer value) { this.ChainId = value; return this; }
    }

    public static class PaymentProfileUpdateResponse extends PaymentProfileUpdateResponseDto
    {
        
    }

    public static class PaymentProfileUpdateResponseDto extends ApiResponseBase
    {
        
    }

    public static class ApiResponseBase
    {
        public Boolean Success = null;
        public String Message = null;
        
        public Boolean isSuccess() { return Success; }
        public ApiResponseBase setSuccess(Boolean value) { this.Success = value; return this; }
        public String getMessage() { return Message; }
        public ApiResponseBase setMessage(String value) { this.Message = value; return this; }
    }

}

Java PaymentProfileUpdateEndpoint DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
Content-Length: length

{"Success":false,"Message":"String"}