Skip to content

fix(api): upsert applies payout settings + WebAPI tests (#134 #105) - #161

Open
xre217 wants to merge 1 commit into
dogecoinfoundation:mainfrom
xre217:test/store-and-api-coverage
Open

fix(api): upsert applies payout settings + WebAPI tests (#134 #105)#161
xre217 wants to merge 1 commit into
dogecoinfoundation:mainfrom
xre217:test/store-and-api-coverage

Conversation

@xre217

@xre217 xre217 commented Jul 11, 2026

Copy link
Copy Markdown

#134 — Account update / upsert ignored settings

CreateAccount(..., upsert=true) returned the existing account without applying payout_address, payout_threshold, or payout_frequency from the JSON body. Merchants calling POST /account/:foreignID again could not update payout config.

Fix

On upsert, if any payout fields changed, UpdateAccount + commit and emit ACC_UPDATED.

#105 — Testing needs work

Adds WebAPI coverage:

  • TestAccountUpsertAppliesPayoutSettings — create then upsert, assert settings stick
  • TestInvoicePublicPaymentFlagsBaseline — new invoice not marked paid/detected

Pairs with open stack #156#160.

DOGE tips / contract

DTRJECKXfxgnSzGbt7TYRikLPDocqvdmo5 · trefongwork@gmail.com

…ndation#134 dogecoinfoundation#105)

POST /account/:id with upsert previously returned the existing account
and ignored body fields. Apply payout_address / threshold / frequency
on update and cover with WebAPI regression tests.

Also assert new invoices start with payment flags false (dogecoinfoundation#105 surface).

Tips DOGE: DTRJECKXfxgnSzGbt7TYRikLPDocqvdmo5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant