""" Options:
Date: 2024-11-24 13:39:33
Version: 6.50
Tip: To override a DTO option, remove "#" prefix before updating
BaseUrl: https://clubready.com/api/current
#GlobalNamespace:
#AddServiceStackTypes: True
#AddResponseStatus: False
#AddImplicitVersion:
#AddDescriptionAsComments: True
IncludeTypes: PaymentProfileUpdateEndpoint.*
#ExcludeTypes:
#DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum
#DataClass:
#DataClassJson:
"""
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ApiDtoBase:
api_key: Optional[str] = None
store_id: Optional[int] = None
chain_id: Optional[int] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PaymentProfileUpdateRequestDto(ApiDtoBase):
acct_token: Optional[str] = None
modified_by: Optional[int] = None
cc_exp_month: Optional[int] = None
cc_exp_year: Optional[int] = None
full_name: Optional[str] = None
prefix_name: Optional[str] = None
first_name: Optional[str] = None
middle_name: Optional[str] = None
last_name: Optional[str] = None
suffix_name: Optional[str] = None
address1: Optional[str] = None
address2: Optional[str] = None
urbanization: Optional[str] = None
city: Optional[str] = None
state: Optional[str] = None
postal_code: Optional[str] = None
is_disabled: Optional[bool] = None
exclude_from_acct_updater: Optional[bool] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ApiResponseBase:
success: bool = False
message: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PaymentProfileUpdateResponseDto(ApiResponseBase):
pass
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PaymentProfileUpdateResponse(PaymentProfileUpdateResponseDto):
pass
# @Route("/sales/wallet/paymentprofileupdate", "PUT")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PaymentProfileUpdateEndpoint(PaymentProfileUpdateRequestDto, IReturn[PaymentProfileUpdateResponse]):
# @ApiMember(Description="Grants access to resources", IsRequired=true)
api_key: Optional[str] = None
"""
Grants access to resources
"""
# @ApiMember(Description="AcctToken to update", IsRequired=true)
acct_token: Optional[str] = None
"""
AcctToken to update
"""
# @ApiMember(Description="UserId that is updating profile", IsRequired=true)
modified_by: Optional[int] = None
"""
UserId that is updating profile
"""
# @ApiMember(Description="Expiry Month: 1 = January, 12 = December")
cc_exp_month: Optional[int] = None
"""
Expiry Month: 1 = January, 12 = December
"""
# @ApiMember(Description="Expiry Year: Two digit year")
cc_exp_year: Optional[int] = None
"""
Expiry Year: Two digit year
"""
# @ApiMember(Description="The name can be provided with FullName OR as separate fields (PrefixName, FirstName, MiddleName, LastName, SuffixName).
Providing both will cause an error.")
full_name: Optional[str] = None
"""
The name can be provided with FullName OR as separate fields (PrefixName, FirstName, MiddleName, LastName, SuffixName).
Providing both will cause an error.
"""
# @ApiMember()
prefix_name: Optional[str] = None
# @ApiMember()
first_name: Optional[str] = None
# @ApiMember()
middle_name: Optional[str] = None
# @ApiMember()
last_name: Optional[str] = None
# @ApiMember()
suffix_name: Optional[str] = None
# @ApiMember()
address1: Optional[str] = None
# @ApiMember()
address2: Optional[str] = None
# @ApiMember()
urbanization: Optional[str] = None
# @ApiMember()
city: Optional[str] = None
# @ApiMember()
state: Optional[str] = None
# @ApiMember()
postal_code: Optional[str] = None
# @ApiMember(Description="Disable (or Enabled) the Payment Profile")
is_disabled: Optional[bool] = None
"""
Disable (or Enabled) the Payment Profile
"""
# @ApiMember(Description="Exclude (or Include) from Account Updater")
exclude_from_acct_updater: Optional[bool] = None
"""
Exclude (or Include) from Account Updater
"""