420 Commits

Author SHA1 Message Date
Nicolas Dorier
a914d798f3 Fix CI: Unsupported repository version 1. Only versions up to 0 are supported. 2025-11-14 16:34:59 +09:00
nicolas.dorier
b1cba47adf [Features] Subscriptions 2025-10-28 15:33:23 +09:00
Nicolas Dorier
cd42f1a53d Fix: Improve the responsivity of the Reporting page (#6846) (#6841) 2025-07-17 15:43:32 +09:00
Nicolas Dorier
89c836e5f9 Add wallet policy support (#6765) 2025-07-16 09:06:11 +09:00
Israel Ulelu
b445f32b65 feat: exposed invoice accounting endpoint to facilitate refund on btcpayserver app project (#6818)
* feat: exposed invoice accounting endpoint to facilitate refund on btcpayserver app project

* merge from master

* refactor: optimizations

* refactor: added documentation, test assertions and renamed endpoint

* refactor: updated documentation based on code rabbit improvement suggestions

* refactor: updated refund properties terminology
2025-07-14 09:46:28 +09:00
nicolas.dorier
db063ec9ac Remove unused class 2025-06-26 17:51:29 +09:00
rockstardev
9454a272c0 Merge pull request #6752 from btcpayserver/bugfix/flag-skip-email
Adding flag on Greenfield API Create User method to skip email invitation
2025-05-29 12:04:38 -05:00
Dennis Reimann
5b2b6d6994 Update email invite flag 2025-05-28 13:59:16 +02:00
Chukwuleta Tobechi
c483705761 Include amount paid on greenfield invoice (#6747)
* Include amount paid on greenfield invoice

* revert changes in invoice watcher

* Round up currency and include changes in swagger docs

* Add test

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2025-05-24 21:44:35 +09:00
rockstardev
49653c3388 Adding flag on Greenfield create user call to skip email invitation 2025-05-23 22:50:15 -05:00
nicolas.dorier
291ac888e9 Bump deps 2025-05-23 16:39:23 +09:00
Nicolas Dorier
932d313dee Can apply tax rates to PoS items (#6724) 2025-05-19 10:35:46 +09:00
rockstardev
54ad2a6790 Switching to using simple base WebhookInvoiceEvent class 2025-05-15 23:59:14 -05:00
rockstardev
2b86d4c9dc InvoiceExpiredPaidPartial and InvoicePaidAfterExpiration webhooks 2025-05-15 22:39:54 -05:00
Nicolas Dorier
1e79730c6e Implement store templates (#6704)
* Implement store templates

* Use the template for the default rate rules

* Polish messages

* Do not show exchange selection if template has a script
2025-05-09 15:58:24 +09:00
nicolas.dorier
9dc1aeda72 [Feature] Can configure fallback rates 2025-05-08 19:05:55 +09:00
nicolas.dorier
5c380e9419 Add support for wallet policy (BIP388) 2025-04-20 22:15:23 +09:00
rockstardev
c3998fdf34 Addressing PR review issues 2025-04-16 10:49:08 +09:00
rockstardev
967ec3460e Providing Payment Request completed webhook 2025-04-16 10:38:28 +09:00
rockstardev
d2debaa842 Adding Reference Number to Payment Requests 2025-04-16 09:39:29 +09:00
nicolas.dorier
b7524e3587 Improve doc of payment requests 2025-04-09 19:22:44 +09:00
Nicolas Dorier
ce83e4d96d Fix: PaymentRequests created via API never expires (#6657) 2025-04-08 14:17:31 +09:00
nicolas.dorier
ead74a985f Remove deprecated properties 2025-04-04 16:28:44 +09:00
d11n
a916ae81be Greenfield: Expand user data (#6649) 2025-04-04 16:15:33 +09:00
Nicolas Dorier
658ddd1f27 Fix: Refunds through API were ignoring BOLT11 expiration at store level (#6644) 2025-03-31 09:32:12 +09:00
rockstardev
42878f23a6 Code cleanup and commenting 2025-03-26 23:08:48 -05:00
nicolas.dorier
be8ecb823e Refactor email endpoints 2025-03-05 22:49:06 -06:00
rockstardev
a7e3cbb105 Adding endpoint to set server email settings (#6601)
* Adding endpoint in Greenfield to allow server email settings

* Adding related swagger file

* Refactoring EmailSettingsData to be more readable

* Adding server email masking

* Adding tests

* Update BTCPayServer/wwwroot/swagger/v1/swagger.template.serveremail.json

Co-authored-by: d11n <mail@dennisreimann.de>

* Masking smtp server email returned over greenfield api and test

* Retaining password if password mask is used

* Remove magic string *****

* Flatten request for server's settings. Fix bug on shared setting instances

* Remove useless doc

* Simplify code

* Fix Store Email settings page

---------

Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2025-02-27 15:59:17 +09:00
d11n
4e2684b917 Remove app models and hub classes from client lib (#6567) 2025-01-21 15:42:30 +09:00
d11n
ef8071ba93 App: SignalR-related updates (#6537)
Adds Newtonsoft JSON converters for the SignalR connection, which we need to pass data back and forth.
2025-01-16 14:36:23 +09:00
d11n
2e458af4fb App: Authentication updates (#6536)
- Updates API key extraction to also accept "Bearer" auth header. This is necessary for non-cookie based SignalR connections.
- Adds authentication related models to the client lib
- Succeeds and replaces #6484.
2025-01-16 14:34:57 +09:00
Nicolas Dorier
92a92a7fff Rename and add to greenfield HtmlTags and HtmlMetaTags for apps (#6557) 2025-01-15 23:48:10 +09:00
Nicolas Dorier
5a8c959b6b Server hanging in debug mode if altcoin node is unavailable (#6545) 2025-01-11 00:15:04 +09:00
d11n
898f0f4481 Greenfield: Improve store users API (#6427)
* Greenfield: Improve store users API

- Adds an endpoint to update store users (before they had to be removed ad re-added)
- Checks for the existance of a user and responds with 404 in that case (fixes #6423)
- Allows retrieval of user by user id or email for add and update (consistent with the other endpoints)
- Improves the API docs for the store users endpoints

* Swagger: Reuse UserIdOrEmail parameter component

* Add details to store user data
2024-12-02 15:35:33 +01:00
rockstardev
9fce9fcb7b Bumping Lightning.Common and NBitcoin 2024-11-29 20:47:26 -06:00
d11n
d3315c2fa6 Integrate mobile-working-branch part 1 (#6428) 2024-11-26 14:17:40 +09:00
nicolas.dorier
558f45a48c Bump btcpay lib 2024-11-14 22:21:06 +09:00
nicolas.dorier
6a76167637 Bump NBitcoin libraries 2024-11-14 22:19:10 +09:00
nicolas.dorier
8e688b7f28 Fix: Getting notifications via API would crash 2024-11-14 21:53:37 +09:00
nicolas.dorier
6d737ce119 Bump Libraries 2024-11-14 21:46:15 +09:00
nicolas.dorier
2075e16767 bump libs 2024-11-14 21:17:55 +09:00
nicolas.dorier
bbba7551b7 Minor forgotten dispose in tests 2024-11-07 10:47:02 +09:00
d11n
a129114603 Greenfield: Add image upload for app items (#6226)
Upload endpoints for app item images. Follow-up to #6075.
Tested to work with the app item editor.

Uses UploadImage consistently in API and UI.
2024-11-07 10:43:22 +09:00
d11n
641bdcff31 Histograms: Add Lightning data and API endpoints (#6217)
* Histograms: Add Lightning data and API endpoints

Ported over from the mobile-working-branch.

Adds histogram data for Lightning and exposes the wallet/lightning histogram data via the API. It also add a dashboard graph for the Lightning balance.

Caveat: The Lightning histogram is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. The "start" of the LN graph data might not be accurate though. That's because we don't track (and not even have) the LN onchain data. It is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. So the historic graph data for LN is basically a best effort of trying to reconstruct it with what we have: The LN channel transactions.

* More timeframes

* Refactoring: Remove redundant WalletHistogram types

* Remove store property from dashboard tile view models

* JS error fixes
2024-11-05 21:40:37 +09:00
d11n
ff79a31066 Refactoring: Move AppItem to Client lib and use the class for item list (#6258)
* Refactoring: Move AppItem to Client lib and use the class for item list

This makes it available for the app, which would otherwise have to replicate the model. Also uses the proper class for the item/perk list of the app models.

* Remove unused app item payment methods property

* Do not ignore nullable values in JSON

* Revert to use Newtonsoft types
2024-11-05 11:49:30 +09:00
nicolas.dorier
d7fd90c4c3 Bump client lib 2024-10-17 16:41:36 +09:00
nicolas.dorier
e4f79f046a Remove unused field from automated payout settings 2024-10-09 13:13:10 +09:00
nicolas.dorier
c0aa9a8bd4 Prevent double BOLT11 payment with LNUrlWithdraw 2024-10-09 13:10:04 +09:00
Nicolas Dorier
2e114d7c29 Remove references to cryptoCode in SyncStatus (#6275) 2024-10-04 16:58:31 +09:00
Nicolas Dorier
9ba4b030ed Fix: Do not expose xpub without modify store permission (#6212) 2024-09-27 15:27:04 +09:00