diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-15 22:54:39 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-15 22:54:39 +0530 |
commit | 49f362ba6d3f3b99be1dba9ba1fe50fe49856d75 (patch) | |
tree | f5bf4ba0e7a9c6a60fae8f86ff41c133ec223134 /src/operations/transactions.ts | |
parent | 59178331a46467e0eb6f4dc0331f8d52d9afcb3c (diff) |
fix some transaction list issues
Diffstat (limited to 'src/operations/transactions.ts')
-rw-r--r-- | src/operations/transactions.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/operations/transactions.ts b/src/operations/transactions.ts index 5602c6b04..c9d48fc01 100644 --- a/src/operations/transactions.ts +++ b/src/operations/transactions.ts @@ -254,8 +254,7 @@ export async function getTransactions( }); for (const rg of pr.refundGroups) { - const pending = Object.keys(pr.refundsDone).length > 0; - + const pending = Object.keys(pr.refundsPending).length > 0; const stats = getRefundStats(pr, rg.refundGroupId); transactions.push({ @@ -263,11 +262,11 @@ export async function getTransactions( pending, info: { fulfillmentUrl: pr.contractData.fulfillmentUrl, - merchant: {}, + merchant: pr.contractData.merchant, orderId: pr.contractData.orderId, - products: [], + products: pr.contractData.products, summary: pr.contractData.summary, - summary_i18n: {}, + summary_i18n: pr.contractData.summaryI18n, }, timestamp: rg.timestampQueried, transactionId: makeEventId( |