Skip to content

Commit bce099a

Browse files
renzonrenzon
authored andcommitted
Tagged user with refused payment
close #2635
1 parent 38cac7a commit bce099a

File tree

4 files changed

+51
-6
lines changed

4 files changed

+51
-6
lines changed

Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pythonpro/domain/tests/test_checkout/test_credit_card_payment_data_science.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,22 @@ def transaction_json(data_science_item):
126126
'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura',
127127
'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES',
128128
'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227'
129-
}
129+
},
130+
'customer': {
131+
'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual',
132+
'country': 'br',
133+
'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com',
134+
'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None,
135+
'date_created': '2020-01-21T01:45:57.228Z', 'documents': [
136+
{'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}]
137+
}, 'billing': {
138+
'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': {
139+
'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56',
140+
'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP',
141+
'zipcode': '12223770',
142+
'country': 'br', 'id': 2559019
143+
}
144+
}, 'shipping': None,
130145
}
131146

132147

pythonpro/domain/tests/test_checkout/test_credit_card_payment_member.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,22 @@ def transaction_json(membership_item):
137137
'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura',
138138
'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES',
139139
'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227'
140-
}
140+
},
141+
'customer': {
142+
'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual',
143+
'country': 'br',
144+
'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com',
145+
'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None,
146+
'date_created': '2020-01-21T01:45:57.228Z', 'documents': [
147+
{'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}]
148+
}, 'billing': {
149+
'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': {
150+
'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56',
151+
'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP',
152+
'zipcode': '12223770',
153+
'country': 'br', 'id': 2559019
154+
}
155+
}, 'shipping': None,
141156
}
142157

143158

pythonpro/domain/tests/test_checkout/test_credit_card_payment_webdev.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,22 @@ def transaction_json(webdev_item):
124124
'date_updated': '2020-01-21T01:45:57.789Z', 'brand': 'visa', 'holder_name': 'agora captura',
125125
'first_digits': '411111', 'last_digits': '1111', 'country': 'UNITED STATES',
126126
'fingerprint': 'cj5bw4cio00000j23jx5l60cq', 'valid': True, 'expiration_date': '1227'
127-
}
127+
},
128+
'customer': {
129+
'object': 'customer', 'id': 2601905, 'external_id': 'captura@gmail.com', 'type': 'individual',
130+
'country': 'br',
131+
'document_number': None, 'document_type': 'cpf', 'name': 'Agora Captura', 'email': 'captura@gmail.com',
132+
'phone_numbers': ['+5512997411854'], 'born_at': None, 'birthday': None, 'gender': None,
133+
'date_created': '2020-01-21T01:45:57.228Z', 'documents': [
134+
{'object': 'document', 'id': 'doc_ck5n7vta0010nr36d01k1zzzw', 'type': 'cpf', 'number': '29770166863'}]
135+
}, 'billing': {
136+
'object': 'billing', 'id': 1135539, 'name': 'Agora Captura', 'address': {
137+
'object': 'address', 'street': 'Rua Bahamas', 'complementary': 'Sem complemento', 'street_number': '56',
138+
'neighborhood': 'Cidade Vista Verde', 'city': 'São José dos Campos', 'state': 'SP',
139+
'zipcode': '12223770',
140+
'country': 'br', 'id': 2559019
141+
}
142+
}, 'shipping': None,
128143
}
129144

130145

0 commit comments

Comments
 (0)