incognia-python 3.3.0__tar.gz → 3.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {incognia_python-3.3.0 → incognia_python-3.4.1}/PKG-INFO +1 -1
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/api.py +3 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/models.py +2 -1
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/PKG-INFO +1 -1
- {incognia_python-3.3.0 → incognia_python-3.4.1}/tests/test_api.py +3 -1
- {incognia_python-3.3.0 → incognia_python-3.4.1}/.github/dependabot.yml +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/.github/workflows/codeql.yaml +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/.github/workflows/continuous.yaml +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/.gitignore +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/CODEOWNERS +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/LICENSE.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/MANIFEST.in +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/README.md +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/__init__.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/base_request.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/datetime_util.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/endpoints.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/exceptions.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/feedback_events.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/json_util.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/singleton.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia/token_manager.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/SOURCES.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/dependency_links.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/not-zip-safe +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/requires.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/top_level.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/pyproject.toml +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/requirements.txt +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/setup.cfg +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/tests/__init__.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/tests/test_base_request.py +0 -0
- {incognia_python-3.3.0 → incognia_python-3.4.1}/tests/test_token_manager.py +0 -0
|
@@ -207,7 +207,9 @@ class IncogniaAPI(metaclass=Singleton):
|
|
|
207
207
|
policy_id: Optional[str] = None,
|
|
208
208
|
device_os: Optional[str] = None,
|
|
209
209
|
app_version: Optional[str] = None,
|
|
210
|
+
custom_properties: Optional[dict] = None,
|
|
210
211
|
person_id: Optional[PersonID] = None) -> dict:
|
|
212
|
+
|
|
211
213
|
if not request_token:
|
|
212
214
|
raise IncogniaError('request_token is required.')
|
|
213
215
|
if not account_id:
|
|
@@ -236,6 +238,7 @@ class IncogniaAPI(metaclass=Singleton):
|
|
|
236
238
|
'policy_id': policy_id,
|
|
237
239
|
'device_os': device_os.lower() if device_os is not None else None,
|
|
238
240
|
'app_version': app_version,
|
|
241
|
+
'custom_properties': custom_properties,
|
|
239
242
|
'person_id': person_id,
|
|
240
243
|
}
|
|
241
244
|
data = encode(body)
|
|
@@ -49,7 +49,8 @@ class CardInfo(TypedDict, total=False):
|
|
|
49
49
|
class PaymentMethod(TypedDict, total=False):
|
|
50
50
|
type: Literal['account_balance', 'apple_pay', 'bancolombia',
|
|
51
51
|
'boleto_bancario', 'cash', 'credit_card', 'debit_card',
|
|
52
|
-
'google_pay', 'meal_voucher', 'nu_pay', 'paypal', 'pix'
|
|
52
|
+
'google_pay', 'meal_voucher', 'nu_pay', 'paypal', 'pix',
|
|
53
|
+
'credit_card_pos']
|
|
53
54
|
credit_card_info: CardInfo
|
|
54
55
|
debit_card_info: CardInfo
|
|
55
56
|
|
|
@@ -243,7 +243,8 @@ class TestIncogniaAPI(TestCase):
|
|
|
243
243
|
'policy_id': f'{POLICY_ID}',
|
|
244
244
|
'device_os': f'{DEVICE_OS.lower()}',
|
|
245
245
|
'app_version': f'{APP_VERSION}',
|
|
246
|
-
'
|
|
246
|
+
'custom_properties': CUSTOM_PROPERTIES,
|
|
247
|
+
'person_id': PERSON_ID,
|
|
247
248
|
})
|
|
248
249
|
REGISTER_VALID_WEB_LOGIN_DATA: Final[bytes] = encode({
|
|
249
250
|
'type': 'login',
|
|
@@ -771,6 +772,7 @@ class TestIncogniaAPI(TestCase):
|
|
|
771
772
|
policy_id=self.POLICY_ID,
|
|
772
773
|
device_os=self.DEVICE_OS,
|
|
773
774
|
app_version=self.APP_VERSION,
|
|
775
|
+
custom_properties=self.CUSTOM_PROPERTIES,
|
|
774
776
|
person_id=self.PERSON_ID)
|
|
775
777
|
|
|
776
778
|
mock_token_manager_get.assert_called()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{incognia_python-3.3.0 → incognia_python-3.4.1}/incognia_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|