Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
fix: use refund date for refund transactions
Browse files Browse the repository at this point in the history
BREAKING CHANGE: refund transaction hashes changed
  • Loading branch information
starsprung committed Aug 8, 2022
1 parent 24b11bb commit d083789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/__snapshots__/amazon.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ Array [
Object {
"amount": 75980,
"cleared": "cleared",
"date": "2020-01-14",
"import_id": "9b026229af8f0894ddcd8b575d28859e7357",
"date": "2020-01-25",
"import_id": "adbc2ff9b8e772ce931d07a7a07db1f0b53c",
"memo": "2 x Some kind of coat",
"payee_name": "A Seller",
},
Object {
"amount": 80180,
"cleared": "cleared",
"date": "2020-01-14",
"import_id": "4f484429095417d3008b7854534c723fc0b0",
"date": "2020-01-25",
"import_id": "24b8b315a1a244e481ada50682431b720245",
"memo": "2 x Some kind of coat",
"payee_name": "A Seller",
},
Expand Down
2 changes: 1 addition & 1 deletion src/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const getAmazonTransactions = async function* (): AsyncGenerator<AmazonTr
if (item.refundAmount) {
yield createTransation(seenIds, 'refund', {
orderId: item.orderId,
date: item.orderDate,
date: item.refundDate,
asinIsbn: item.asinIsbn,
title: item.title,
seller: item.seller,
Expand Down

0 comments on commit d083789

Please sign in to comment.