diff --git a/Pipfile.lock b/Pipfile.lock index 2b1b822e..ca40df7c 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -239,11 +239,11 @@ }, "django-pagarme": { "hashes": [ - "sha256:545a75434e1006d7f1409805735090cd22d9baed885ef1aa1ec1eb8be1f79bca", - "sha256:5ce3ae7d77237975f232593ec6530fc7dd8ea982d07ada4ca27ed470bffdf2ae" + "sha256:2202cb2f40e1bf06432e2fd3d6fb0aa31b69fa0e287ba3c85212ac6e25696cb2", + "sha256:d301a46a8f1c1f506a9ebbc2e8c1eb2ba090b1ffab43bbdae7ed69dfbc92363c" ], "index": "pypi", - "version": "==0.17" + "version": "==0.18" }, "django-phonenumber-field": { "extras": [ diff --git a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_data_science.py b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_data_science.py index 8a78c95b..46061b3f 100644 --- a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_data_science.py +++ b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_data_science.py @@ -126,7 +126,22 @@ def transaction_json(data_science_item): 'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura', 'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES', 'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227' - } + }, + 'customer': { + 'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual', + 'country': 'br', + 'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com', + 'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None, + 'date_created': '2020-01-21T01:45:57.228Z', 'documents': [ + {'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}] + }, 'billing': { + 'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': { + 'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56', + 'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP', + 'zipcode': '12223770', + 'country': 'br', 'id': 2559019 + } + }, 'shipping': None, } diff --git a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_member.py b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_member.py index 4772ebb2..7040cc93 100644 --- a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_member.py +++ b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_member.py @@ -137,7 +137,22 @@ def transaction_json(membership_item): 'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura', 'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES', 'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227' - } + }, + 'customer': { + 'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual', + 'country': 'br', + 'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com', + 'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None, + 'date_created': '2020-01-21T01:45:57.228Z', 'documents': [ + {'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}] + }, 'billing': { + 'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': { + 'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56', + 'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP', + 'zipcode': '12223770', + 'country': 'br', 'id': 2559019 + } + }, 'shipping': None, } diff --git a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_webdev.py b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_webdev.py index a9c465d5..d718e684 100644 --- a/pythonpro/domain/tests/test_checkout/test_credit_card_payment_webdev.py +++ b/pythonpro/domain/tests/test_checkout/test_credit_card_payment_webdev.py @@ -124,7 +124,22 @@ def transaction_json(webdev_item): 'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura', 'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES', 'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227' - } + }, + 'customer': { + 'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual', + 'country': 'br', + 'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com', + 'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None, + 'date_created': '2020-01-21T01:45:57.228Z', 'documents': [ + {'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}] + }, 'billing': { + 'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': { + 'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56', + 'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP', + 'zipcode': '12223770', + 'country': 'br', 'id': 2559019 + } + }, 'shipping': None, }