expresscheckout-nodejs-sdk
Version:
-----------------------
36 lines (31 loc) • 725 B
JavaScript
import { JuspayEntity } from './JuspayEntity';
/**
* Class Refund
*
* @property string id
* @property string uniqueRequestId
* @property string ref
* @property float amount
* @property DateTime created
* @property string status
*
* @package Juspay\Model
*/
export class Refund extends JuspayEntity {
/**
* Constructor
*
* @param array params
*/
constructor(params) {
super();
for (var key of Object.values(Object.keys(params))) {
var newKey = this.camelize(key);
if (newKey == "created") {
this[newKey] = new Date(params[key]);
} else {
this[newKey] = params[key];
}
}
}
};