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.
Files changed (94) hide show
  1. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/PKG-INFO +1 -1
  2. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/fields.py +20 -1
  3. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/resources.py +8 -1
  4. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/utils.py +14 -0
  5. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/PKG-INFO +1 -1
  6. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/setup.py +1 -1
  7. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_cards.py +1 -0
  8. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_deposits.py +1 -0
  9. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_payins.py +14 -10
  10. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_payouts.py +1 -0
  11. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_preauthorizations.py +2 -1
  12. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/DESCRIPTION.md +0 -0
  13. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/LICENSE +0 -0
  14. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/MANIFEST.in +0 -0
  15. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/Makefile +0 -0
  16. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/README.md +0 -0
  17. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/__init__.py +0 -0
  18. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/api.py +0 -0
  19. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/auth.py +0 -0
  20. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/base.py +0 -0
  21. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/compat.py +0 -0
  22. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/constants.py +0 -0
  23. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/exceptions.py +0 -0
  24. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/page.py +0 -0
  25. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/query.py +0 -0
  26. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/ratelimit.py +0 -0
  27. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay/signals.py +0 -0
  28. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/SOURCES.txt +0 -0
  29. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/dependency_links.txt +0 -0
  30. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/entry_points.txt +0 -0
  31. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/requires.txt +0 -0
  32. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/mangopay4_python_sdk.egg-info/top_level.txt +0 -0
  33. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/setup.cfg +0 -0
  34. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/__init__.py +0 -0
  35. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/card.json +0 -0
  36. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/cardregistrations.json +0 -0
  37. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/cardregistrations_update.json +0 -0
  38. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/declarative_user.json +0 -0
  39. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user.json +0 -0
  40. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet.json +0 -0
  41. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_89.json +0 -0
  42. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/legal_user_wallet_99.json +0 -0
  43. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/list_ubo_declarations.json +0 -0
  44. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user.json +0 -0
  45. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user_wallet.json +0 -0
  46. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/natural_user_wallet_9.json +0 -0
  47. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo.json +0 -0
  48. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_declaration.json +0 -0
  49. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_declaration_submit.json +0 -0
  50. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/ubo_update.json +0 -0
  51. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_2_per_page.json +0 -0
  52. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_2_per_page_page1.json +0 -0
  53. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_3_per_page_page2.json +0 -0
  54. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_full.json +0 -0
  55. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_list_page1.json +0 -0
  56. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/fixtures/user_wallet.json +0 -0
  57. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/images/image.jpg +0 -0
  58. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/mocks.py +0 -0
  59. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/TestKycPageFile.png +0 -0
  60. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/settlement_sample.csv +0 -0
  61. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources/settlement_sample_bad.csv +0 -0
  62. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/resources.py +0 -0
  63. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/settings.py +0 -0
  64. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_bankaccounts.py +0 -0
  65. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_banking_aliases.py +0 -0
  66. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_base.py +0 -0
  67. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_client_wallets.py +0 -0
  68. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_clients.py +0 -0
  69. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_conversion.py +0 -0
  70. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_country_authorizations.py +0 -0
  71. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_disputes.py +0 -0
  72. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_documentconsult.py +0 -0
  73. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_emoney.py +0 -0
  74. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_idempotency.py +0 -0
  75. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_identity_verification.py +0 -0
  76. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_kyc_document.py +0 -0
  77. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_kycs.py +0 -0
  78. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_mandates.py +0 -0
  79. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_notifications.py +0 -0
  80. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_rate_limit.py +0 -0
  81. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_recipients.py +0 -0
  82. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_refunds.py +0 -0
  83. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_reports.py +0 -0
  84. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_reports_v2.py +0 -0
  85. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_repudiations.py +0 -0
  86. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_settlements.py +0 -0
  87. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_tokens.py +0 -0
  88. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_transactions.py +0 -0
  89. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_transfers.py +0 -0
  90. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_ubos.py +0 -0
  91. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_users.py +0 -0
  92. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_utils.py +0 -0
  93. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_virtual_account.py +0 -0
  94. {mangopay4_python_sdk-3.54.0 → mangopay4_python_sdk-3.54.1}/tests/test_wallets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mangopay4-python-sdk
3
- Version: 3.54.0
3
+ Version: 3.54.1
4
4
  Summary: A client library written in python to work with mangopay v2 api
5
5
  Home-page: https://github.com/Mangopay/mangopay2-python-sdk
6
6
  Author: Mangopay (www.mangopay.com)
@@ -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
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mangopay4-python-sdk
3
- Version: 3.54.0
3
+ Version: 3.54.1
4
4
  Summary: A client library written in python to work with mangopay v2 api
5
5
  Home-page: https://github.com/Mangopay/mangopay2-python-sdk
6
6
  Author: Mangopay (www.mangopay.com)
@@ -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.0',
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()
@@ -11,6 +11,7 @@ class DepositsTest(BaseTestLive):
11
11
  def test_create(self):
12
12
  deposit = self.create_new_deposit()
13
13
  self.assertIsNotNone(deposit)
14
+ self.assertIsNotNone(deposit.authentication_result)
14
15
 
15
16
  def test_get(self):
16
17
  deposit = self.create_new_deposit()
@@ -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
- cit_id = created_cit.get('id')
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
- got_cit = RecurringPayInCIT.get(cit_id)
966
- self.assertIsNotNone(got_cit)
967
- # self.assertIsInstance(got_cit, RecurringPayInCIT)
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'])