UNPKG
yookassa
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.1
YooKassa API for Node.js
github.com/olegpolyakov/yookassa
olegpolyakov/yookassa
yookassa
/
lib
/
refund.js
15 lines
(13 loc)
•
343 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class
Refund
{
constructor
(instance,
data
) { Object.assign(
this
,
data
, { _instance: instance }); } reload() {
return
this
._instance.getRefund(
this
.id) .then(
data
=> { Object.assign(
this
,
data
);
return
true
; }); } } module.exports = Refund;