Nicolas Dorier
7e714f1ef8
Refactor how we handle and validate LN ConnectionStrings ( #2314 )
...
* Refactor how we handle and validate LN ConnectionStrings
* Migrate existing connection string to Internal Node if they are the same. Cleanup some obsolete fields
* Fix typos, remove duplicated method
* Add a InternalNodeRef to LightningSupportedPaymentMethod
2021-03-02 11:11:58 +09:00
Andrew Camilleri
e8df010449
Add redirectAutomatically to GreenField Invoice API ( #2321 )
2021-03-01 22:34:07 +09:00
Andrew Camilleri
949136b161
GreenField API: Configure Store Lightning Payment Method v2 ( #2208 )
...
* GreenField API: Configure Store Lightning Payment Method
* Remove internal ln node endpoint and use Auth service to check internal node usage
* fix test
2021-02-26 11:58:51 +09:00
Kukks
e3e65878aa
Allow invoice to be marked even when new
...
fixes #2019
2021-02-26 11:17:03 +09:00
Kukks
ebc46eb7d2
fix swagger docs missing query param
...
fixes #2268
2021-02-15 10:05:54 +01:00
nicolas.dorier
df52d01a1d
Revert "GreenField API: Configure Store Lightning Payment Method"
...
This reverts commit b40095f603
.
2021-01-17 21:40:16 +09:00
nicolas.dorier
07de4af581
Revert "Apply suggestions from code review"
...
This reverts commit 48b2e682bf
.
2021-01-17 21:39:20 +09:00
Andrew Camilleri
48b2e682bf
Apply suggestions from code review
...
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-01-14 09:19:16 +01:00
Kukks
b40095f603
GreenField API: Configure Store Lightning Payment Method
2021-01-12 09:25:35 +01:00
Andrew Camilleri
91cb9129ab
FGreenField: Add DefaultPaymentMethod to Stores API ( #2171 )
2020-12-29 18:33:44 +09:00
Andrew Camilleri
5803512820
Remove Default from OnChainPayment Method ( #2170 )
...
Makes more sense to do it on the Store endpoint after thinking about it.
2020-12-29 17:38:31 +09:00
Nicolas Dorier
623347bc48
Add Label and accountKeyPath to the on chain payment methods ( #2166 )
2020-12-28 13:59:01 +01:00
Andrew Camilleri
69eaaef963
GreenField: Store OnChain Payment Method ( #2157 )
...
* GreenField: Store set payment methods
* add swagger docs
* fix swagger
2020-12-23 14:00:38 +09:00
Nicolas Dorier
282d0abb62
Remove bitpay translator ( #2130 )
2020-12-12 15:17:44 +09:00
Andrew Camilleri
034b732e7c
GreenField: Update invoice metadata ( #2095 )
...
* GreenField: Update invoice metadata
* add swagger
Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2020-12-12 15:15:34 +09:00
Nicolas Dorier
b2855e74ef
Document miscallenous features in the swagger doc ( #2128 )
2020-12-12 14:07:25 +09:00
Andrew Camilleri
0652e30c30
GreenField: Notifications API ( #2055 )
...
* GreenField: Notifications API
This refactors notifications so that we dont have a bunch of duplicated direct access to db contexts in controllers and then introduces new endpoints to fetch/toggle seen/remove notifications of the current user.
* add tests + docs
* fix test
* pr changes
* fix permission json
2020-12-11 23:11:08 +09:00
nicolas.dorier
798cf66e3f
Add checkoutLink and defaultLanguage to GreenField invoice
2020-12-11 12:04:18 +09:00
nicolas.dorier
e65d42bd61
Add redirectURL to create invoice on Greenfield
2020-12-09 23:20:13 +09:00
nicolas.dorier
febf8ac5b3
Fix doc for create invoice request
2020-12-09 22:55:00 +09:00
Andrew Camilleri
c7209df7e2
Fix swagger docs for pull payments ( #2105 )
...
* Fix swagger docs for pull payments
fixes #2097
* Update BTCPayServer/wwwroot/swagger/v1/swagger.template.pull-payments.json
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2020-12-04 12:03:27 +01:00
nicolas.dorier
b12c6289d0
Fix link for webhooks
2020-12-02 20:37:38 +09:00
Andrew Camilleri
88aa34747b
Automatically generate permissions docs for GreenField ( #2043 )
...
* Automatically generate permissions docs for GreenField
* Do a test instead
2020-11-24 10:10:32 +01:00
nicolas.dorier
18e68d04f9
Rename invoice states and payment states
2020-11-23 18:28:35 +09:00
Dennis Reimann
ff87319a74
API: Handle lightning invoice creation errors ( #2070 )
...
Catches LightningClient exceptions and responds with a detailed API error (400) instead of a generic server failure (503).
2020-11-23 06:40:13 +01:00
Nicolas Dorier
f9b86a6b2e
Merge pull request #1901 from btcpayserver/api/invoice-extras
...
GreenField: Add Invoice Payment methods endpoints
2020-11-20 10:25:00 +09:00
Nicolas Dorier
9c5fd1b478
Merge pull request #2058 from NicolasDorier/webhook2
...
Add Webhooks in store's settings
2020-11-19 12:17:34 +09:00
nicolas.dorier
07c5c2972d
Add callback doc
2020-11-16 12:13:27 +09:00
nicolas.dorier
df79c2cf48
Improve tests of webhooks
2020-11-14 13:39:44 +09:00
nicolas.dorier
94bcbeb604
Add Greenfield API
2020-11-13 14:15:03 +09:00
rockstardev
13cb2c695f
Adding onChainWithLnInvoiceFallback parameter to swagger doc
2020-11-09 23:08:07 -06:00
Dennis Reimann
1ba0685596
API Docs: Fix lightning invoice for store payload ( #2052 )
2020-11-06 14:00:10 +01:00
Kukks
1d82c3779b
Remove AwaitingConfirmation
2020-10-27 09:49:35 +01:00
Kukks
abc9d07977
fix swagger format for dates
2020-10-27 09:47:22 +01:00
Kukks
8962bf00f6
GreenField: Add Invoice Payment methods endpoints
...
lets you fetch all active payment methods data + payments made
2020-10-27 09:47:21 +01:00
Kukks
3d2b4cbfa8
Add Created date to user, add verified column in list and make user list use same model as modern lists
2020-10-05 13:00:15 +02:00
Dennis Reimann
7e60328cff
Greenfield: Rename API key redirect params; switch to POST body ( #1898 )
...
* Rename user param to userId in API key redirect
This way it is clearer what to expect and it also make the parameteer easier to consume.
* Post redirect: Allow form url and prettify page
- Form URL as alternative to controller/action for external URLs
- Making it look nice and add explanation for non-JS case
* APIKeys: Minor view updates
fix
* APIKeys: Use POST redirect for confirmation
fix
* UI: Minor update to confirm view
Tidies it up and adapts to the newly added ConfirmAPIKeys view.
* APIKeys: Update delete view
Structures the information in title and description better.
* APIKeys: Distinguish authorize and confirm (reuse)
* Upgrade ChromeDriver
* Test fixes
* Clean up PostRedirect view
By adding missing forgery token
* Re-add tests for callback post values
* Rename key param to apiKey in API key redirect
* Update BTCPayServer/wwwroot/swagger/v1/swagger.template.authorization.json
Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
* Use DEBUG conditional for postredirect-callback-test route
* Remove unnecessary ChromeDriver references
* Add debug flag
* Remove debug flags
Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
2020-09-17 11:37:49 +02:00
Dennis Reimann
8ba852084e
Users API: Add roles ( #1914 )
...
* API: Fix create user response model
* API: Add roles to user data
2020-09-16 14:17:33 +02:00
Kukks
0e07fcc706
fixes and adapt
2020-08-28 09:00:14 +02:00
nicolas.dorier
709b06baa3
Remove invoices/email for this PR
2020-08-27 11:00:04 +09:00
nicolas.dorier
f900d520da
Add InvoiceTime, Expiration and monitoring to Invoice greenfield API
2020-08-26 21:36:32 +09:00
nicolas.dorier
f2e94e6819
Use nicer representation of payment methods in the Greenfield API
2020-08-26 21:36:32 +09:00
nicolas.dorier
be21e7d253
Remove PaymentMethodData from invoice entity
2020-08-26 21:36:32 +09:00
nicolas.dorier
8f0cc9de03
Update swagger
2020-08-26 21:36:32 +09:00
Kukks
8dea7df82a
make individual action items
2020-08-26 21:36:31 +09:00
Kukks
5f6f54db36
Remove old props
2020-08-26 21:36:31 +09:00
Kukks
41bebfedc4
add swagger docs
2020-08-26 21:36:31 +09:00
nicolas.dorier
25d08c1a71
Fix swagger doc for approve payout
2020-07-19 15:56:15 -05:00
Kukks
f1e8b4b6e6
fix json
2020-06-30 08:54:57 +02:00
Kukks
82af723f1f
Enable CORS and fix small doc error
2020-06-30 08:26:19 +02:00