mangopay4-python-sdk 3.54.0__tar.gz → 3.54.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.
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/PKG-INFO +1 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/fields.py +20 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/resources.py +8 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/utils.py +14 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/PKG-INFO +1 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/setup.py +1 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_cards.py +1 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_deposits.py +1 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_payins.py +14 -10
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_payouts.py +1 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_preauthorizations.py +2 -1
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/DESCRIPTION.md +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/LICENSE +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/MANIFEST.in +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/Makefile +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/README.md +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/__init__.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/api.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/auth.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/base.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/compat.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/constants.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/exceptions.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/page.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/query.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/ratelimit.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/signals.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/SOURCES.txt +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/dependency_links.txt +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/entry_points.txt +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/requires.txt +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/top_level.txt +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/setup.cfg +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/__init__.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/card.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/cardregistrations.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/cardregistrations_update.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/declarative_user.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_89.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_99.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/list_ubo_declarations.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user_wallet.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user_wallet_9.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_declaration.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_declaration_submit.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_update.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_2_per_page.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_2_per_page_page1.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_3_per_page_page2.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_full.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_page1.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_wallet.json +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/images/image.jpg +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/mocks.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/TestKycPageFile.png +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/settlement_sample.csv +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/settlement_sample_bad.csv +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/settings.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_bankaccounts.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_banking_aliases.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_base.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_client_wallets.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_clients.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_conversion.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_country_authorizations.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_disputes.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_documentconsult.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_emoney.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_idempotency.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_identity_verification.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_kyc_document.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_kycs.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_mandates.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_notifications.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_rate_limit.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_recipients.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_refunds.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_reports.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_reports_v2.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_repudiations.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_settlements.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_tokens.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_transactions.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_transfers.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_ubos.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_users.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_utils.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_virtual_account.py +0 -0
- {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_wallets.py +0 -0
|
@@ -15,7 +15,7 @@ from .utils import timestamp_from_datetime, timestamp_from_date, Money, DebitedB
|
|
|
15
15
|
BusinessRecipient, RecipientPropertySchema, IndividualRecipientPropertySchema, BusinessRecipientPropertySchema, \
|
|
16
16
|
CompanyNumberValidation, ReportFilter, PayInIntentExternalData, PayInIntentBuyer, SupportedBank, \
|
|
17
17
|
VerificationOfPayee, PayInIntentRefund, PayInIntentCapture, PayInIntentDispute, CustomFees, MarginsResponse, \
|
|
18
|
-
UserMargin, ConsentScope
|
|
18
|
+
UserMargin, ConsentScope, AuthenticationResult
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class FieldDescriptor(object):
|
|
@@ -1502,3 +1502,22 @@ class ConsentScopeField(Field):
|
|
|
1502
1502
|
return result
|
|
1503
1503
|
|
|
1504
1504
|
return value
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
class AuthenticationResultField(Field):
|
|
1508
|
+
def python_value(self, value):
|
|
1509
|
+
if value is not None:
|
|
1510
|
+
return AuthenticationResult(authentication_type=value.get('AuthenticationType', None))
|
|
1511
|
+
|
|
1512
|
+
return value
|
|
1513
|
+
|
|
1514
|
+
def api_value(self, value):
|
|
1515
|
+
value = super(AuthenticationResultField, self).api_value(value)
|
|
1516
|
+
|
|
1517
|
+
if isinstance(value, AuthenticationResult):
|
|
1518
|
+
result = {}
|
|
1519
|
+
if value.authentication_type is not None:
|
|
1520
|
+
result['AuthenticationType'] = value.authentication_type
|
|
1521
|
+
return result
|
|
1522
|
+
|
|
1523
|
+
return value
|
|
@@ -21,7 +21,7 @@ from .fields import (PrimaryKeyField, EmailField, CharField,
|
|
|
21
21
|
BusinessRecipientPropertySchemaField, CompanyNumberValidationField, ReportFilterField,
|
|
22
22
|
PayInIntentExternalDataField, PayInIntentBuyerField, SupportedBanksField, VerificationOfPayeeField,
|
|
23
23
|
PayInIntentRefundField, PayInIntentCaptureField, PayInIntentDisputeField, CustomFeesField,
|
|
24
|
-
UserMarginField, MarginsResponseField, ConsentScopeField)
|
|
24
|
+
UserMarginField, MarginsResponseField, ConsentScopeField, AuthenticationResultField)
|
|
25
25
|
from .query import InsertQuery, UpdateQuery, SelectQuery, ActionQuery, DeleteQuery
|
|
26
26
|
|
|
27
27
|
|
|
@@ -746,6 +746,7 @@ class CardValidation(BaseModel):
|
|
|
746
746
|
authorization_date = DateTimeField(api_name='AuthorizationDate')
|
|
747
747
|
card_info = CardInfoField(api_name='CardInfo')
|
|
748
748
|
payment_category = CharField(api_name='PaymentCategory')
|
|
749
|
+
authentication_result = AuthenticationResultField(api_name='AuthenticationResult')
|
|
749
750
|
|
|
750
751
|
def validate(self, card_id, **kwargs):
|
|
751
752
|
insert = InsertQuery(self, **kwargs)
|
|
@@ -861,6 +862,7 @@ class PayIn(BaseModel):
|
|
|
861
862
|
payment_type = CharField(api_name='PaymentType', choices=constants.PAYIN_PAYMENT_TYPE, default=None)
|
|
862
863
|
execution_type = CharField(api_name='ExecutionType', choices=constants.EXECUTION_TYPE_CHOICES, default=None)
|
|
863
864
|
profiling_attempt_reference = CharField(api_name='ProfilingAttemptReference')
|
|
865
|
+
authentication_result = AuthenticationResultField(api_name='AuthenticationResult')
|
|
864
866
|
|
|
865
867
|
def get_refunds(self, *args, **kwargs):
|
|
866
868
|
kwargs['id'] = self.id
|
|
@@ -983,6 +985,7 @@ class RecurringPayInCIT(PayIn):
|
|
|
983
985
|
security_info = SecurityInfoField(api_name='SecurityInfo')
|
|
984
986
|
shipping = ShippingField(api_name='Shipping')
|
|
985
987
|
card_info = CardInfoField(api_name='CardInfo')
|
|
988
|
+
payment_category = CharField(api_name='PaymentCategory')
|
|
986
989
|
|
|
987
990
|
def get_read_only_properties(self):
|
|
988
991
|
read_only = ["AuthorId", "Applied3DSVersion", "CardId", "CreationDate", "Culture", "SecureModeNeeded"
|
|
@@ -1020,6 +1023,7 @@ class RecurringPayInMIT(PayIn):
|
|
|
1020
1023
|
security_info = SecurityInfoField(api_name='SecurityInfo')
|
|
1021
1024
|
shipping = ShippingField(api_name='Shipping')
|
|
1022
1025
|
card_info = CardInfoField(api_name='CardInfo')
|
|
1026
|
+
payment_category = CharField(api_name='PaymentCategory')
|
|
1023
1027
|
|
|
1024
1028
|
def get_read_only_properties(self):
|
|
1025
1029
|
read_only = ["AuthorId", "Applied3DSVersion", "CardId", "CreationDate", "Culture", "SecureModeNeeded"
|
|
@@ -1774,6 +1778,7 @@ class PreAuthorization(BaseModel):
|
|
|
1774
1778
|
applied_3ds_version = CharField(api_name='Applied3DSVersion')
|
|
1775
1779
|
card_info = CardInfoField(api_name='CardInfo')
|
|
1776
1780
|
payment_category = CharField(api_name='PaymentCategory')
|
|
1781
|
+
authentication_result = AuthenticationResultField(api_name='AuthenticationResult')
|
|
1777
1782
|
|
|
1778
1783
|
def get_transactions(self, *args, **kwargs):
|
|
1779
1784
|
kwargs['id'] = self.id
|
|
@@ -1998,6 +2003,7 @@ class BankWirePayOut(BaseModel):
|
|
|
1998
2003
|
fallback_reason = FallbackReasonField(api_name='FallbackReason')
|
|
1999
2004
|
recipient_verification_of_payee = VerificationOfPayeeField(api_name='RecipientVerificationOfPayee')
|
|
2000
2005
|
recipient = ForeignKeyField(Recipient, api_name='RecipientId')
|
|
2006
|
+
charge_bearer = CharField(api_name='ChargeBearer')
|
|
2001
2007
|
|
|
2002
2008
|
def get_refunds(self, *args, **kwargs):
|
|
2003
2009
|
kwargs['id'] = self.id
|
|
@@ -2855,6 +2861,7 @@ class Deposit(BaseModel):
|
|
|
2855
2861
|
shipping = ShippingField(api_name='Shipping')
|
|
2856
2862
|
requested_3ds_version = CharField(api_name='Requested3DSVersion')
|
|
2857
2863
|
applied_3ds_version = CharField(api_name='Applied3DSVersion')
|
|
2864
|
+
authentication_result = AuthenticationResultField(api_name='AuthenticationResult')
|
|
2858
2865
|
|
|
2859
2866
|
class Meta:
|
|
2860
2867
|
verbose_name = 'deposit'
|
|
@@ -1721,3 +1721,17 @@ class PayInIntentDispute(object):
|
|
|
1721
1721
|
return {
|
|
1722
1722
|
"Id": self.id
|
|
1723
1723
|
}
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
@add_camelcase_aliases
|
|
1727
|
+
class AuthenticationResult(object):
|
|
1728
|
+
def __init__(self, authentication_type=None):
|
|
1729
|
+
self.authentication_type = authentication_type
|
|
1730
|
+
|
|
1731
|
+
def __str__(self):
|
|
1732
|
+
return 'AuthenticationResult: %s' % self.authentication_type
|
|
1733
|
+
|
|
1734
|
+
def to_api_json(self):
|
|
1735
|
+
return {
|
|
1736
|
+
"AuthenticationType": self.authentication_type
|
|
1737
|
+
}
|
|
@@ -10,7 +10,7 @@ with open(path.join(here, 'DESCRIPTION.md'), encoding='utf-8') as f:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name='mangopay4-python-sdk',
|
|
13
|
-
version='3.54.
|
|
13
|
+
version='3.54.1',
|
|
14
14
|
description='A client library written in python to work with mangopay v2 api',
|
|
15
15
|
long_description='This SDK is a client library for interacting with the Mangopay API.',
|
|
16
16
|
url='https://github.com/Mangopay/mangopay2-python-sdk',
|
|
@@ -317,6 +317,7 @@ class CardsLiveTest(BaseTestLive):
|
|
|
317
317
|
self.assertIsNotNone(validation_response)
|
|
318
318
|
self.assertIsNotNone(validation_response['id'])
|
|
319
319
|
self.assertEqual('TelephoneOrder', validation_response['payment_category'])
|
|
320
|
+
self.assertIsNotNone(validation_response['authentication_result'])
|
|
320
321
|
|
|
321
322
|
def test_getCardValidation(self):
|
|
322
323
|
user = BaseTestLive.get_john()
|
|
@@ -902,6 +902,7 @@ class PayInsTestLive(BaseTestLive):
|
|
|
902
902
|
self.assertIsNotNone(security_info)
|
|
903
903
|
self.assertIsInstance(security_info, SecurityInfo)
|
|
904
904
|
self.assertEqual(security_info.avs_result, "NO_CHECK")
|
|
905
|
+
self.assertIsNotNone(result['authentication_result'])
|
|
905
906
|
|
|
906
907
|
def test_RecurringPayment(self):
|
|
907
908
|
user = self.get_john(True)
|
|
@@ -934,7 +935,6 @@ class PayInsTestLive(BaseTestLive):
|
|
|
934
935
|
|
|
935
936
|
created_recurring = RecurringPayInRegistration.get(result.get('id'))
|
|
936
937
|
self.assertIsNotNone(created_recurring)
|
|
937
|
-
print(created_recurring.id)
|
|
938
938
|
cit = RecurringPayInCIT()
|
|
939
939
|
cit.recurring_payin_registration_id = created_recurring.id
|
|
940
940
|
cit.tag = "custom meta"
|
|
@@ -947,11 +947,13 @@ class PayInsTestLive(BaseTestLive):
|
|
|
947
947
|
|
|
948
948
|
created_cit = cit.save()
|
|
949
949
|
self.assertIsNotNone(created_cit)
|
|
950
|
-
|
|
950
|
+
self.assertIsNotNone(created_cit['payment_category'])
|
|
951
951
|
|
|
952
|
+
cit_id = created_cit.get('id')
|
|
952
953
|
got_cit = RecurringPayInCIT.get(cit_id)
|
|
953
954
|
self.assertIsNotNone(got_cit)
|
|
954
955
|
self.assertIsInstance(got_cit, RecurringPayInCIT)
|
|
956
|
+
self.assertIsNotNone(got_cit.payment_category)
|
|
955
957
|
|
|
956
958
|
mit = RecurringPayInMIT()
|
|
957
959
|
mit.recurring_payin_registration_id = created_recurring.id
|
|
@@ -961,10 +963,13 @@ class PayInsTestLive(BaseTestLive):
|
|
|
961
963
|
mit.fees = Money(1, "EUR")
|
|
962
964
|
created_mit = mit.save()
|
|
963
965
|
self.assertIsNotNone(created_mit)
|
|
966
|
+
self.assertIsNotNone(created_mit['payment_category'])
|
|
964
967
|
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
+
mit_id = created_mit.get('id')
|
|
969
|
+
got_mit = RecurringPayInMIT.get(mit_id)
|
|
970
|
+
self.assertIsNotNone(got_mit)
|
|
971
|
+
self.assertIsInstance(got_mit, RecurringPayInMIT)
|
|
972
|
+
self.assertIsNotNone(got_mit.payment_category)
|
|
968
973
|
|
|
969
974
|
params = {
|
|
970
975
|
"author": user,
|
|
@@ -979,11 +984,6 @@ class PayInsTestLive(BaseTestLive):
|
|
|
979
984
|
self.assertIsInstance(payin_refund, PayInRefund)
|
|
980
985
|
self.assertEqual(payin_refund.status, 'SUCCEEDED')
|
|
981
986
|
|
|
982
|
-
mit_id = created_mit.get('id')
|
|
983
|
-
got_mit = RecurringPayInMIT.get(mit_id)
|
|
984
|
-
self.assertIsNotNone(got_mit)
|
|
985
|
-
self.assertIsInstance(got_mit, RecurringPayInMIT)
|
|
986
|
-
|
|
987
987
|
params = {
|
|
988
988
|
"author": user,
|
|
989
989
|
"payin": got_mit
|
|
@@ -997,6 +997,9 @@ class PayInsTestLive(BaseTestLive):
|
|
|
997
997
|
self.assertIsInstance(payin_refund_mit, PayInRefund)
|
|
998
998
|
self.assertEqual(payin_refund_mit.status, 'SUCCEEDED')
|
|
999
999
|
|
|
1000
|
+
self.assertIsNotNone(created_cit['authentication_result'])
|
|
1001
|
+
self.assertIsNotNone(created_mit['authentication_result'])
|
|
1002
|
+
|
|
1000
1003
|
def test_RecurringPayment_Get(self):
|
|
1001
1004
|
user = self.get_john(True)
|
|
1002
1005
|
wallet = self.get_johns_wallet(True)
|
|
@@ -2528,6 +2531,7 @@ class PayInsTestLive(BaseTestLive):
|
|
|
2528
2531
|
self.assertIsNotNone(extended)
|
|
2529
2532
|
self.assertEqual('CARD', extended.payment_type)
|
|
2530
2533
|
self.assertEqual('WEB', extended.execution_type)
|
|
2534
|
+
self.assertIsNotNone(payin.authentication_result)
|
|
2531
2535
|
|
|
2532
2536
|
def test_create_full_pay_in_intent_dispute(self):
|
|
2533
2537
|
full_capture = BaseTestLive.create_new_pay_in_intent_full_capture()
|
|
@@ -215,6 +215,7 @@ class PayOutsTestLive(BaseTestLive):
|
|
|
215
215
|
def test_PayOut_GetRefunds(self):
|
|
216
216
|
payout = BaseTestLive.get_johns_payout()
|
|
217
217
|
self.assertIsNotNone(payout.recipient_verification_of_payee)
|
|
218
|
+
self.assertIsNotNone(payout.charge_bearer)
|
|
218
219
|
|
|
219
220
|
refunds = payout.get_refunds()
|
|
220
221
|
|
|
@@ -847,4 +847,5 @@ class PreAuthorizationsTestLive(BaseTestLive):
|
|
|
847
847
|
card_info = saved_pre_authorization['card_info']
|
|
848
848
|
self.assertIsNotNone(card_info)
|
|
849
849
|
self.assertIsInstance(card_info, CardInfo)
|
|
850
|
-
self.assertEqual('TelephoneOrder', saved_pre_authorization['payment_category'])
|
|
850
|
+
self.assertEqual('TelephoneOrder', saved_pre_authorization['payment_category'])
|
|
851
|
+
self.assertIsNotNone(saved_pre_authorization['authentication_result'])
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/cardregistrations.json
RENAMED
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/declarative_user.json
RENAMED
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet.json
RENAMED
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_89.json
RENAMED
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_99.json
RENAMED
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user.json
RENAMED
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user_wallet.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_declaration.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_2_per_page.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_full.json
RENAMED
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_page1.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/TestKycPageFile.png
RENAMED
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/settlement_sample.csv
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
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_country_authorizations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_identity_verification.py
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
|
|
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
|