const { collection } = require('forest-express-mongoose');
collection('razorpayPayments', {
actions: [],
fields: [
{
field: 'amount',
type: 'Number',
},
{
field: 'entity',
type: 'String',
},
{
field: 'method',
type: 'String',
},
{
field: 'international',
type: 'Boolean',
},
{
field: 'currency',
type: 'String',
},
{
field: 'method',
type: 'String',
},
{
field: 'amount_refunded',
type: 'Number',
},
{
field: 'refund_status',
type: 'String',
},
{
field: 'captured',
type: 'Boolean',
},
{
field: 'description',
type: 'String',
},
{
field: 'card_id',
type: 'String',
},
{
field: 'bank',
type: 'String',
},
{
field: 'wallet',
type: 'String',
},
{
field: 'vpa',
type: 'String',
},
{
field: 'email',
type: 'String',
},
{
field: 'contact',
type: 'String',
},
{
field: 'fee',
type: 'Number',
},
{
field: 'tax',
type: 'Number',
},
{
field: 'error_code',
type: 'String',
},
{
field: 'error_description',
type: 'String',
},
{
field: 'status',
type: 'String',
},
{
field: 'created_at',
type: 'Date',
},
],
segments: [],
});