backend-manager 2.5.76 → 2.5.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -218,7 +218,7 @@ SubscriptionResolver.prototype.resolve = function (options) {
|
|
|
218
218
|
resolved.payment.completed = !['future'].includes(resource.status);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
// Set last payment
|
|
221
|
+
// Set last payment @@@ TODO
|
|
222
222
|
// if (resource.billing_info && resource.billing_info.last_payment) {
|
|
223
223
|
// resolved.lastPayment.amount = parseFloat(resource.billing_info.last_payment.amount.value);
|
|
224
224
|
// resolved.lastPayment.date.timestamp = moment(resource.billing_info.last_payment.time);
|
|
@@ -331,7 +331,7 @@ SubscriptionResolver.prototype.resolve = function (options) {
|
|
|
331
331
|
|
|
332
332
|
// Set last payment
|
|
333
333
|
if (lastPayment) {
|
|
334
|
-
resolved.lastPayment.amount = parseFloat(lastPayment.local.amount);
|
|
334
|
+
resolved.lastPayment.amount = parseFloat(lastPayment.value.local.amount);
|
|
335
335
|
resolved.lastPayment.date.timestamp = moment(lastPayment.detected_at);
|
|
336
336
|
}
|
|
337
337
|
|