Commit Graph
335 Commits
Author SHA1 Message Date
Belle Aerni 6548ae92e1 Created a new API key product type (#1272)
* Created a new API key product type

* Make the CI happy + a few minor fixes

* Improvements to the generation options

Plus generalized improvements to the config pages

* Fix my typo

* Final touches

At least, I hope they are the final touches. We will see after reviews :P

* Cleanup and minor improvements

* Minor fix

* Move to HTML email templates + add logo

* This doesn't / shouldn't return the ID anymore

It's no longer used as things were switched to the order ID

* Update the model to reflect DB changes

* Misc. cleanup + added some missing types
2023-06-28 11:14:20 -07:00
FOSSBilling BotandFOSSBilling Bot e0906d15cd Update CKEditor and Related Dependencies (#1381)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-06-28 16:12:23 +03:00
Belle Aerni 3752db5096 Beef up invoice & ticket hash generation (#1309)
* Beef up invoice & ticket hash generation

* Update test for the new length
2023-06-22 09:51:27 +03:00
Avaneesh Kumar 375bb1fe13 Add check for null value in isBirthdayValid invocation (#1354)
* if condition to check for null birthdays in /admin/client/update

* removing redundant null coalescing
2023-06-21 11:12:01 -07:00
Belle Aerni 789e57c89c Prevent deprecation errors when adding products to cart (#1340)
* Prevent deprecation errors when adding products to cart

* Minor fix
2023-06-21 11:10:57 -07:00
Avaneesh Kumar e4c68854f1 Renamed phonestate_cc to city in admin/client/update (#1352) 2023-06-21 10:55:06 -07:00
Belle Aerni ef0200c45a Fix disabling client signups / email changing (#1347)
* Fix disabling client signups / email changing

* Right - I needed to invert these params for the tests
2023-06-20 05:31:00 -07:00
Belle Aerni b9c35a1747 Replace Box_Session and improve session handling (#1332)
* Replace Box_Session and improve session handling

* Improve weights, capitalize class name correctly

* Make the tests pass, update the SQL structure

* Tweak to the fingerprint class, fix more tests

* Regenerate session IDs when logging in

* Improve readability

* Update ServiceTest.php

* Tweak weights and added Huntr badge to the readme

* Improve readability, add PHPDocs, and updated weight

* Update SECURITY.md
2023-06-19 04:14:29 -07:00
Belle Aerni c49beb0eb8 Replace default email templates with HTML ones (#1302)
* Start replacing email templates with HTML ones

* Updated some more

* Spelling

* Completed some more email templates

* Completed the rest of them

* Fix spelling

* Some minor fixes + improvements
2023-06-19 11:46:56 +03:00
Belle Aerni cde0f219f1 Fix order popup breaking Huraga layout (#1339) 2023-06-19 10:30:41 +03:00
Belle Aerni 6df45bab4c Fix & improve formbuilder layout + update last patch (#1324) 2023-06-13 19:07:16 -07:00
Guillaume ARNOUX e154086ec5 fix some input types (#1326) 2023-06-13 19:37:02 +02:00
Belle Aerni 9bf8c6875c Minor fix to the client update API (#1322) 2023-06-12 06:14:01 -07:00
Belle Aerni a02b1b32fe Re-check promo code validity during checkout (#1316)
* Re-check promo code validity during checkout

* Add tools mock to the failing test

* Properly resolve issue with the tests
2023-06-12 06:30:45 +02:00
Belle Aerni b65a75fcf7 Validate add-on configs before adding to cart (#1313)
* Validate addon configs before adding to cart

* Fix spelling mistake
2023-06-12 06:30:20 +02:00
Belle Aerni 64d60e254a Apply discount credits to account balance (#1312) 2023-06-12 06:29:09 +02:00
Belle Aerni b95f92554e Fix logical error in Servicedownloadable module (#1311)
* Fix logical error in Servicedownloadable module

* Fix the tests now
2023-06-12 06:28:36 +02:00
Belle Aerni 56a64fefdd Prevent checkouts with disabled products (#1308) 2023-06-12 06:28:00 +02:00
Belle Aerni 748d93e112 Prevent upgrade requests for invalid upgrades (#1310) 2023-06-11 19:33:20 -07:00
Jaap Marcus 8946f2c4f1 fix/do-not-translate-product_title (#1291)
return __trans(':product_title', [':product_title' => $product->title]);

is the same as 

 return $product->title);

And prevent users from making mistakes
2023-06-08 02:30:39 -07:00
Belle Aerni ddb1a48e7f Fix issues with updating clients (#1288)
* Fix issues with updating clients

* Remove accidentally duplicated line
2023-06-08 02:30:29 -07:00
FOSSBilling BotandFOSSBilling Bot 46b6d34a12 Update CKEditor and Related Dependencies (#1296)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-06-07 05:59:55 -07:00
FOSSBilling BotandFOSSBilling Bot 5f9a7497f5 Update CKEditor and Related Dependencies (#1290)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-06-02 14:47:48 +02:00
Adam Daley 3a37470e30 Improve Central Alerts Error Handling (#1271)
Improve Central Alerts error handling to prevent failure when remote system unavailable and from other potential system errors. Resolves #1270.
2023-05-30 16:46:32 -07:00
Adam Daley 0e5109a0a5 Refactor System Updater (#1252)
* Refactor System Updater

Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.

Also refactor foss-update.php into core class, `UpdatePatcher`.

* Refactor file system actions to use Symfony Filesystem

Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
2023-05-26 15:30:39 +01:00
FOSSBilling BotandFOSSBilling Bot 43874cab1e Update CKEditor and Related Dependencies (#1258)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-05-23 18:58:27 +01:00
FOSSBilling BotandFOSSBilling Bot bf15567cd4 Update CKEditor and Related Dependencies (#1254)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-05-23 14:14:10 +03:00
Belle Aerni 62f6feaef7 Minor improvements to the ticket view (#1251)
* Minor improvements to the ticket view

* Also make those only one table body

Makes the stripes more consistent and imo looks better this way
2023-05-20 14:20:50 +01:00
Adam Daley 8708d9d895 Fix error with PHPUnit tests (#1217)
Fix error with PHPUnit tests introduced by changes to `FOSSBilling\Validate` class.
2023-05-08 14:06:09 -07:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
YağızhanandAdam Daley 4928ebf932 Implemented Monolog (#1155)
* Implemented Monolog

* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.

* Doesn't need to be an array

* -Box_LogStream

* Reverted squash

* Fixed a duplicate

* Type hinting

* This got lost in a merge commit

* Kind of distracted today. Good thing squash and merge exists.

* Cleaning

* Rebased composer.json & lockfile

* Enabled the check again

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-05-02 09:32:40 +01:00
Belle Aerni 9e8d196ebb Prevent float to int conversion warning (#1204)
In recent versions of PHP, converting from a float to an int causes deprecation warnings. This PR cleans up a situation I came across where that was happing.
2023-05-02 00:46:04 +02:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Belle Aerni b3f7e155c3 Fix product order not respecting configured priority (#1195) 2023-05-01 06:03:49 -07:00
Yağızhan 884e66aa4b Removed getSettingsRoutes & hasSettingsRoutes (#1196) 2023-05-01 13:27:39 +03:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
YağızhanandAdam Daley 0392fa8c44 Central Alerts System (#1143)
* +Central Alerts System

* Added a link to the pull request

* Bugfix

* Refactored to use symfony/cache

* Reverted the database patch

* Update foss-update.php

* Reverted the table structure

* Restore src/install/sql/structure.sql

* Fixed the HTTP client

* Restore src/foss-update.php

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-29 13:07:51 -07:00
Yağızhan 03dc677304 Fix for SEF-enabled instances (#1189) 2023-04-29 12:54:09 -07:00
Belle Aerni fbb3478ebb Fix Orderbutton JS error (#1186) 2023-04-29 13:45:15 +01:00
Yağızhan ef7e060525 Implemented symfony/cache (#1184) 2023-04-29 14:38:53 +03:00
Belle Aerni d2e1a6434e A few small fixes (#1185) 2023-04-29 10:43:29 +02:00
Adam Daley e047cd86d9 Fix links to client emails (#1178)
Update Client module template to fix links to emails sent.
2023-04-28 09:17:24 +02:00
Adam Daley 3ec5462c2b Update System update message to link to updater (#1175)
* Update System update message to link to updater

Update the System module to provide a link to the updater in the update available message. Also update admin template to permit passing arbitrary HTML (such as links) in system messages.

* Improve system message handling with optional URL

Update System module message handling, and admin template, to better handle an optional URL for each message.
2023-04-28 01:32:35 +01:00
Adam Daley d4e4207d83 Update locations with extension manager naming (#1169)
Update remaining locations with new `extension_manager` naming.
2023-04-26 02:46:56 +02:00
Adam Daley a3764ea435 Update Product promotion handling to fix various bugs (#1167)
Update the Product service promotion handling to fix various errors. Resolves #1055.
2023-04-25 15:51:07 -07:00
Belle Aerni c5c85d7e97 Fix the MassMailer error (#1166)
* Fix the MassMailer error

* Shh. There was no extra space here
2023-04-25 21:17:43 +02:00
Adam Daley e01c601d6b Fix SQL error on cancelling invoice (#1162)
* Fix SQL error on cancelling invoice

Update Invoice service to check for empty string when setting `gateway_id` to fix SQL error.

* Update Invoice `gateway_id` check

Update Invoice `gateway_id` check to simplify by just checking for `empty()`.
2023-04-25 11:29:51 -07:00