Skip to content

Commit

Permalink
Remap AccountHolder & MarketplaceAccountHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ibarra committed May 26, 2022
1 parent d26bd91 commit 84ac5ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
6 changes: 3 additions & 3 deletions checkout_sdk/common/common_four.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ class AccountHolderIdentification:


class AccountHolder:
type: AccountHolderType
first_name: str
last_name: str
billing_address: Address
phone: Phone
type: AccountHolderType
company_name: str
tax_id: str
date_of_birth: str
country_of_birth: Country
residential_status: ResidentialStatusType
billing_address: Address
phone: Phone
identification: AccountHolderIdentification
email: str

Expand Down
21 changes: 18 additions & 3 deletions checkout_sdk/marketplace/marketplace.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from enum import Enum

from checkout_sdk.common.common import Phone, Address
from checkout_sdk.common.common_four import AccountHolder
from checkout_sdk.common.common_four import ResidentialStatusType, AccountHolderIdentification
from checkout_sdk.common.enums import Currency, InstrumentType, Country
from checkout_sdk.common.enums_four import AccountType
from checkout_sdk.common.enums_four import AccountType, AccountHolderType


class ContactDetails:
Expand Down Expand Up @@ -100,6 +100,21 @@ class BankDetails:
address: Address


class MarketplaceAccountHolder:
type: AccountHolderType
first_name: str
last_name: str
company_name: str
tax_id: str
date_of_birth: DateOfBirth
country_of_birth: Country
residential_status: ResidentialStatusType
billing_address: Address
phone: Phone
identification: AccountHolderIdentification
email: str


class MarketplacePaymentInstrument:
type = InstrumentType.BANK_ACCOUNT
label: str
Expand All @@ -113,7 +128,7 @@ class MarketplacePaymentInstrument:
currency: Currency
country: Country
document: InstrumentDocument
account_holder: AccountHolder
account_holder: MarketplaceAccountHolder
bank: BankDetails


Expand Down

0 comments on commit 84ac5ed

Please sign in to comment.