Skip to content

Commit ca86295

Browse files
author
Pedro Gonçalves
authored
Merge pull request #170 from mercadopago/bugfix/transactionDetails
Add transactions details object on payment model
2 parents e5e7efd + ee0c78c commit ca86295

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

lib/models/paymentModel.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,44 @@ module.exports = {
215215
}
216216
}
217217
}
218+
},
219+
transaction_details: {
220+
type: 'object',
221+
properties:{
222+
acquirer_reference: {
223+
type: 'string'
224+
},
225+
bank_transfer_id: {
226+
type: 'integer'
227+
},
228+
external_resource_url: {
229+
type: 'string'
230+
},
231+
financial_institution: {
232+
type: 'string'
233+
},
234+
installment_amount: {
235+
type: 'number'
236+
},
237+
net_received_amount: {
238+
type: 'number'
239+
},
240+
overpaid_amount: {
241+
type: 'number'
242+
},
243+
payable_deferral_period: {
244+
type: 'string'
245+
},
246+
payment_method_reference_id: {
247+
type: 'string'
248+
},
249+
total_paid_amount: {
250+
type: 'number'
251+
},
252+
transaction_cicle: {
253+
type: 'string'
254+
}
255+
}
218256
}
219257
}
220258
};

0 commit comments

Comments
 (0)