Closed PedroRegisPOAR closed 4 years ago
Merging #104 into master will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #104 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 22 22
Lines 886 886
=======================================
Hits 867 867
Misses 19 19
Impacted Files | Coverage Δ | |
---|---|---|
zoop_wrapper/models/transaction.py | 99.08% <100.00%> (ø) |
Impacted Files | Coverage Δ | |
---|---|---|
zoop_wrapper/models/transaction.py | 99.08% <100.00%> (ø) |
É, aparentemente não funciona com o installment_plan
dentro do source :thinking:
Essas transações geradas dessa forma não estão mostrando o installment_plan.
Será que mesmo sem mostrar funcionou?
Não temos como validar no dashboard da zoop em teste. Apenas em prod!
Esse PR ficará desse jeito até receber um feedback da zoop sobre isso!
{
'id': '6cd5fe06531744179e05b812d2535b05',
'resource': 'transaction',
'status': 'succeeded',
'confirmed': '1',
'amount': '543.21',
'original_amount': '543.21',
'currency': 'BRL',
'description': 'Uma descrição breve da motivação da sua transação',
'payment_type': 'credit',
'transaction_number': 'Z133937-000260004',
'gateway_authorizer': 'cielo',
'app_transaction_uid': None,
'refunds': None,
'rewards': None,
'discounts': None,
'pre_authorization': None,
'sales_receipt': '9cc41c9e2dbd49ab8ed3c14a7c83777c',
'on_behalf_of': '25037b2978b14e7fa5b902d9322e8426',
'customer': '0b05a360f4b749498f74e13004c08024',
'statement_descriptor': 'LOJA DO JOAO',
'payment_method': {
'id': '6408de3a490b4679adfc462810b68a85',
'resource': 'card',
'description': None,
'card_brand': 'MasterCard',
'first4_digits': '3021',
'last4_digits': '2922',
'expiration_month': '5',
'expiration_year': '2030',
'holder_name': 'foo',
'is_active': True,
'is_valid': True,
'is_verified': False,
'customer': '0b05a360f4b749498f74e13004c08024',
'fingerprint': 'a759ce86626c7dd4805409d0384c4cfb3097ee30ab1f631ecf99fb30291ec99e',
'address': None,
'verification_checklist': {
'postal_code_check': 'unchecked',
'security_code_check': 'fail',
'address_line1_check': 'unchecked'
},
'metadata': {},
'uri': '/v1/marketplaces/foo/cards/6408de3a490b4679adfc462810b68a85',
'created_at': '2020-06-08T20:51:58+00:00',
'updated_at': '2020-06-08T20:52:00+00:00'
},
'point_of_sale': {
'entry_mode': 'manually_keyed',
'identification_number': None
},
'installment_plan': None,
'refunded': False,
'voided': False,
'captured': True,
'fees': '21.67',
'fee_details': [
{
'amount': '21.67',
'prepaid': False,
'currency': 'BRL',
'type': 'zoop_fee_brazil',
'is_gateway_fee': False,
'description': 'Zoop card-present transaction fee'
}
],
'location_latitude': None,
'location_longitude': None,
'individual': None,
'business': None,
'uri': '/v1/marketplaces/foo/transactions/6cd5fe06531744179e05b812d2535b05',
'metadata': {},
'expected_on': '2020-10-06T00:00:00+00:00',
'created_at': '2020-09-07T01:05:32+00:00',
'updated_at': '2020-09-07T01:05:35+00:00',
'payment_authorization': {
'authorizer_id': '000260004',
'authorization_code': '133937',
'authorization_nsu': '20180510122911535'
},
'history': [
{
'id': '1be57e0a175a479693c204dd8e0e69ea',
'transaction': '6cd5fe06531744179e05b812d2535b05',
'amount': '543.21',
'operation_type': 'created',
'status': 'succeeded',
'response_code': None,
'response_message': None,
'authorization_code': None,
'authorizer_id': None,
'authorization_nsu': None,
'gatewayResponseTime': None,
'authorizer': None,
'created_at': '2020-09-07 01:05:32'
},
{
'id': 'a80b94cdf999401b9a1160cd2c5f1714',
'transaction': '6cd5fe06531744179e05b812d2535b05',
'amount': '543.21',
'operation_type': 'authorization',
'status': 'succeeded',
'response_code': '00',
'response_message': '',
'authorization_code': '133937',
'authorizer_id': '000260004',
'authorization_nsu': '20180510122911535',
'gatewayResponseTime': '2209',
'authorizer': 'cielo',
'created_at': '2020-09-07 01:05:35'
}
]
}
Novos dados
{
'id': '4183ad116504402a8f69a4d2042ccedf',
'resource': 'transaction',
'status': 'succeeded',
'confirmed': '1',
'amount': '543.21',
'original_amount': '543.21',
'currency': 'BRL',
'description': 'Uma descrição breve da motivação da sua transação',
'payment_type': 'credit',
'transaction_number': 'Z133937-000260004',
'gateway_authorizer': 'cielo',
'app_transaction_uid': None,
'refunds': None,
'rewards': None,
'discounts': None,
'pre_authorization': None,
'sales_receipt': 'dfc86f81df554689b273f9b81f0c1ba9',
'on_behalf_of': '25037b2978b14e7fa5b902d9322e8426',
'customer': '0b05a360f4b749498f74e13004c08024',
'statement_descriptor': 'LOJA DO JOAO',
'payment_method': {
'id': '6408de3a490b4679adfc462810b68a85',
'resource': 'card',
'description': None,
'card_brand': 'MasterCard',
'first4_digits': '3021',
'last4_digits': '2922',
'expiration_month': '5',
'expiration_year': '2030',
'holder_name': 'foo',
'is_active': True,
'is_valid': True,
'is_verified': False,
'customer': '0b05a360f4b749498f74e13004c08024',
'fingerprint': 'a759ce86626c7dd4805409d0384c4cfb3097ee30ab1f631ecf99fb30291ec99e',
'address': None,
'verification_checklist': {
'postal_code_check': 'unchecked',
'security_code_check': 'fail',
'address_line1_check': 'unchecked'
},
'metadata': {},
'uri': '/v1/marketplaces/foo/cards/6408de3a490b4679adfc462810b68a85',
'created_at': '2020-06-08T20:51:58+00:00',
'updated_at': '2020-06-08T20:52:00+00:00'
},
'point_of_sale': {
'entry_mode': 'manually_keyed',
'identification_number': None
},
'installment_plan': {
'number_installments': '12',
'mode': 'interest_free'
},
'refunded': False,
'voided': False,
'captured': True,
'fees': '21.67',
'fee_details': [
{
'amount': '21.67',
'prepaid': False,
'currency': 'BRL',
'type': 'zoop_fee_brazil',
'is_gateway_fee': False,
'description': 'Zoop card-present transaction fee'
}
],
'location_latitude': None,
'location_longitude': None,
'individual': None,
'business': None,
'uri': '/v1/marketplaces/foo/transactions/4183ad116504402a8f69a4d2042ccedf',
'metadata': {},
'expected_on': '2020-10-08T00:00:00+00:00',
'created_at': '2020-09-08T17:31:07+00:00',
'updated_at': '2020-09-08T17:31:10+00:00',
'payment_authorization': {
'authorizer_id': '000260004',
'authorization_code': '133937',
'authorization_nsu': '20180510122911535'
},
'history': [
{
'id': 'c94a75baa76b46f8892a6b39312d15e5',
'transaction': '4183ad116504402a8f69a4d2042ccedf',
'amount': '543.21',
'operation_type': 'created',
'status': 'succeeded',
'response_code': None,
'response_message': None,
'authorization_code': None,
'authorizer_id': None,
'authorization_nsu': None,
'gatewayResponseTime': None,
'authorizer': None,
'created_at': '2020-09-08 17:31:07'
},
{
'id': '1d2bdbc94f104f21856449d8a38bf5d8',
'transaction': '4183ad116504402a8f69a4d2042ccedf',
'amount': '543.21',
'operation_type': 'authorization',
'status': 'succeeded',
'response_code': '00',
'response_message': '',
'authorization_code': '133937',
'authorizer_id': '000260004',
'authorization_nsu': '20180510122911535',
'gatewayResponseTime': '2205',
'authorizer': 'cielo',
'created_at': '2020-09-08 17:31:09'
}
]
}
Closes #103
A briga com os testes foi grande rs