Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='unit-python-sdk',
packages=['unit', 'unit.api', 'unit.models', 'unit.utils'],
version="1.1.0",
version="1.1.1",
license='Mozilla Public License 2.0',
description='This library provides a python wrapper to http://unit.co API. See https://docs.unit.co/',
author='unit.co',
Expand Down
24 changes: 12 additions & 12 deletions unit/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def __init__(self, id: str, status: ApplicationStatus, message: str, created_at:
ein: Optional[str], dba: Optional[str], archived: Optional[bool],
id_theft_score: Optional[int], tags: Optional[Dict[str, str]],
account_purpose: Optional[ThreadApplicationIndividualAccountPurpose],
account_purpose_description: Optional[str],
account_purpose_detail: Optional[str],
source_of_funds: Optional[ThreadApplicationIndividualSourceOfFunds],
transaction_volume: Optional[ThreadApplicationIndividualTransactionVolume],
profession: Optional[ThreadApplicationProfession],
Expand All @@ -203,7 +203,7 @@ def __init__(self, id: str, status: ApplicationStatus, message: str, created_at:
"soleProprietorship": sole_proprietorship, "ein": ein, "dba": dba,
"idTheftScore": id_theft_score,
"accountPurpose": account_purpose,
"accountPurposeDescription": account_purpose_description,
"accountPurposeDetail": account_purpose_detail,
"sourceOfFunds": source_of_funds,
"transactionVolume": transaction_volume,
"profession": profession})
Expand All @@ -220,7 +220,7 @@ def from_json_api(_id, _type, attributes, relationships):
attributes["email"], attributes.get("ip"),
attributes.get("soleProprietorship"), attributes.get("ein"), attributes.get("dba"),
attributes.get("archived"), attributes.get("idTheftScore"), attributes.get("tags"),
attributes.get("accountPurpose"), attributes.get("accountPurposeDescription"),
attributes.get("accountPurpose"), attributes.get("accountPurposeDetail"),
attributes.get("sourceOfFunds"), attributes.get("transactionVolume"),
attributes.get("profession"),
relationships)
Expand Down Expand Up @@ -267,7 +267,7 @@ def __init__(self, id: str, status: ApplicationStatus, message: str, created_at:
is_regulated: Optional[bool], regulator_name: Optional[str],
us_nexus: Optional[List[ThreadApplicationUSNexus]],
account_purpose: Optional[ThreadApplicationBusinessAccountPurpose],
account_purpose_description: Optional[str],
account_purpose_detail: Optional[str],
transaction_volume: Optional[ThreadApplicationBusinessTransactionVolume],
stock_exchange_name: Optional[str], stock_symbol: Optional[str],
countries_of_operation: Optional[List[str]], year_of_incorporation: Optional[str],
Expand All @@ -287,7 +287,7 @@ def __init__(self, id: str, status: ApplicationStatus, message: str, created_at:
"isRegulated": is_regulated, "regulatorName": regulator_name,
"usNexus": us_nexus,
"accountPurpose": account_purpose,
"accountPurposeDescription": account_purpose_description,
"accountPurposeDetail": account_purpose_detail,
"transactionVolume": transaction_volume,
"stockExchangeName": stock_exchange_name, "stockSymbol": stock_symbol,
"countriesOfOperation": countries_of_operation,
Expand All @@ -312,7 +312,7 @@ def from_json_api(_id, _type, attributes, relationships):
attributes.get("businessIndustry"), attributes.get("businessDescription"),
attributes.get("isRegulated"), attributes.get("regulatorName"),
attributes.get("usNexus"),
attributes.get("accountPurpose"), attributes.get("accountPurposeDescription"),
attributes.get("accountPurpose"), attributes.get("accountPurposeDetail"),
attributes.get("transactionVolume"),
attributes.get("stockExchangeName"), attributes.get("stockSymbol"),
attributes.get("countriesOfOperation"), attributes.get("yearOfIncorporation"),
Expand Down Expand Up @@ -376,7 +376,7 @@ def __init__(self, ssn: Optional[str], passport: Optional[str], nationality: Opt
device_fingerprints: Optional[List[DeviceFingerprint]] = None,
jwt_subject: Optional[str] = None, banks: Optional[List[str]] = None,
account_purpose: Optional[ThreadApplicationIndividualAccountPurpose] = None,
account_purpose_description: Optional[str] = None,
account_purpose_detail: Optional[str] = None,
source_of_funds: Optional[ThreadApplicationIndividualSourceOfFunds] = None,
transaction_volume: Optional[ThreadApplicationIndividualTransactionVolume] = None,
transaction_volume_description: Optional[str] = None,
Expand All @@ -397,7 +397,7 @@ def __init__(self, ssn: Optional[str], passport: Optional[str], nationality: Opt
self.jwt_subject = jwt_subject
self.banks = banks
self.account_purpose = account_purpose
self.account_purpose_description = account_purpose_description
self.account_purpose_detail = account_purpose_detail
self.source_of_funds = source_of_funds
self.transaction_volume = transaction_volume
self.transaction_volume_description = transaction_volume_description
Expand All @@ -419,7 +419,7 @@ def __init__(self, ssn: Optional[str], passport: Optional[str], nationality: Opt
device_fingerprints: Optional[List[DeviceFingerprint]] = None,
jwt_subject: Optional[str] = None, banks: Optional[List[str]] = None,
account_purpose: Optional[ThreadApplicationBusinessAccountPurpose] = None,
account_purpose_description: Optional[str] = None,
account_purpose_detail: Optional[str] = None,
source_of_funds: Optional[ThreadApplicationBusinessSourceOfFunds] = None,
transaction_volume: Optional[ThreadApplicationSoleProprietorTransactionVolume] = None,
transaction_volume_description: Optional[str] = None,
Expand All @@ -443,7 +443,7 @@ def __init__(self, ssn: Optional[str], passport: Optional[str], nationality: Opt
self.jwt_subject = jwt_subject
self.banks = banks
self.account_purpose = account_purpose
self.account_purpose_description = account_purpose_description
self.account_purpose_detail = account_purpose_detail
self.source_of_funds = source_of_funds
self.transaction_volume = transaction_volume
self.transaction_volume_description = transaction_volume_description
Expand All @@ -468,7 +468,7 @@ def __init__(self, name: str, address: Address, phone: Phone, state_of_incorpora
device_fingerprints: Optional[List[DeviceFingerprint]] = None,
jwt_subject: Optional[str] = None, banks: Optional[List[str]] = None,
account_purpose: Optional[ThreadApplicationBusinessAccountPurpose] = None,
account_purpose_description: Optional[str] = None,
account_purpose_detail: Optional[str] = None,
source_of_funds: Optional[ThreadApplicationBusinessSourceOfFunds] = None,
transaction_volume: Optional[ThreadApplicationBusinessTransactionVolume] = None,
transaction_volume_description: Optional[str] = None):
Expand All @@ -494,7 +494,7 @@ def __init__(self, name: str, address: Address, phone: Phone, state_of_incorpora
self.jwt_subject = jwt_subject
self.banks = banks
self.account_purpose = account_purpose
self.account_purpose_description = account_purpose_description
self.account_purpose_detail = account_purpose_detail
self.source_of_funds = source_of_funds
self.transaction_volume = transaction_volume
self.transaction_volume_description = transaction_volume_description
Expand Down
2 changes: 1 addition & 1 deletion unit/utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_headers(self):
return {
"content-type": "application/vnd.api+json",
"authorization": f"Bearer {self.token}",
"X-UNIT-SDK": f"unit-python-sdk@v1.1.0"
"X-UNIT-SDK": f"unit-python-sdk@v1.1.1"
}

def set_api_url(self, api_url):
Expand Down