Commit Graph

194 Commits

Author SHA1 Message Date
David Bomba 067c3cad62 Fixes for Stripe Connect 2021-04-22 21:22:55 +10:00
David Bomba f62518f63b Stripe Connect 2021-04-22 20:38:22 +10:00
Benjamin Beganović bdc564092e wip 2021-04-21 16:36:08 +02:00
David Bomba d879d1080b Fixes for stripe connecT 2021-04-21 08:38:50 +10:00
Benjamin Beganović eef9065f08 wip 2021-04-20 16:08:33 +02:00
David Bomba 68ddc6e7b1 Tests for ClientGatewayToken routes 2021-04-20 16:03:14 +10:00
David Bomba d0b4175442 Add sort route 2021-04-17 08:30:19 +10:00
David Bomba 4ede6bd41e Add subscription delete routes 2021-04-11 13:52:37 +10:00
David Bomba abd3a89bc9
Subscriptions (#5248)
* Fixes for converting quote to invoice

* Fixes for naming PDFs

* Refresh entity prior to sending

* Fixes for subscriptions

* Add in required use

* Fixes for notifications

* Fixes for notifications

* Add with trasheD

* Rename BillingSubscriptions to Subscriptions

* Refactoring subscriptions
2021-03-25 21:55:59 +11:00
David Bomba 3ebe533fc8 include Account clas 2021-03-23 07:09:42 +11:00
David Bomba 32b8575ce1 Connected Gmail Account 2021-03-22 08:06:26 +11:00
David Bomba fdc4b266c0 Minor fix for route name 2021-03-10 20:16:44 +11:00
David Bomba ed8c880750 add reconfirm route 2021-03-10 20:15:24 +11:00
David Bomba 00eefcd781 Client Subscription scaffolding 2021-03-10 11:08:58 +11:00
David Bomba 053c1ca5fa billing_subscriptions cleanup 2021-03-09 08:29:59 +11:00
Benjamin Beganović 2de12ea973 Routes for billing subscriptions 2021-03-08 15:17:40 +01:00
= 616dea2c9d Add webcron support 2021-03-07 17:45:48 +11:00
David Bomba 1780db52bd Invite user route 2021-03-04 09:39:24 +11:00
David Bomba bfbde2ba51 Fixes 2021-03-03 21:04:10 +11:00
= c23b9b147d Fixes for attaching a user to different companies 2021-03-03 18:22:14 +11:00
= aa290172ae One Time Token Requests 2021-03-02 19:03:01 +11:00
= 18fa537791 Add one time token functionality 2021-03-02 18:52:25 +11:00
David Bomba c063aee812 enums for email delivery 2021-02-26 08:06:43 +11:00
David Bomba d1044a861e Bug fix for TwoFactorController 2021-02-24 10:00:51 +11:00
David Bomba 67d0f525af Postmark webhooks 2021-02-22 20:46:01 +11:00
David Bomba 53f79440c0 Connected accounts 2021-02-22 08:27:00 +11:00
= 087129788b Working on 2FA 2021-02-20 11:45:20 +11:00
David Bomba 4612379811 Fixes for file upload on dedicated routes 2021-02-16 20:02:33 +11:00
David Bomba 6edaf5d557 Entity upload routes + reorder api.php routes file 2021-02-16 08:14:30 +11:00
David Bomba 292c7b8068 Invoice upload document route 2021-02-15 22:34:05 +11:00
David Bomba dedc7c2cb3 Expense document uploads 2021-02-15 22:07:47 +11:00
David Bomba afb2306598 Credit upload route 2021-02-15 22:00:02 +11:00
David Bomba 7bf6d7c48a Document route for clients / company 2021-02-15 21:52:50 +11:00
David Bomba 269f83f317 Translations 2021-01-25 11:57:49 +11:00
Benjamin Beganović 92d2a514ca Supprot Stripe for webhooks 2020-12-19 13:11:42 +01:00
Benjamin Beganović 6fa90c7060 Change webhook order 2020-12-17 12:47:46 +01:00
Benjamin Beganović 942652b668 Update webhooks to support Checkout.com & apply php-cs-fixer 2020-12-17 12:27:15 +01:00
Benjamin Beganović d3033c902d wip 2020-12-16 15:25:42 +01:00
Benjamin Beganović 9662d9af92 Update webhooks for Checkout:
- Update api.php -> gateway_key => company_gateway_id
- Pass correct reference to url in CreditCard.php
- Update PaymentWebhookController.php to support new company_gateway_id
- Update PaymentWebhookRequest.php to resolve company gateway from correct input
2020-12-16 13:47:10 +01:00
David Bomba 8df553c4cc Working on CSV imports 2020-12-16 11:01:15 +11:00
David Bomba 584bef52fc Working on import 2020-12-12 21:01:53 +11:00
Benjamin Beganović 4a4a974a8d update matching on payment_webhook route 2020-12-07 14:48:58 +01:00
Benjamin Beganović d84f5bc5bb Fixes for Checkout.com refunding 2020-12-03 13:38:57 +01:00
Benjamin Beganović d503f1ee58 Refactor accepting new migrations:
- Remove {company} parameter from /migration/start
- Refactor logic for startMigration
2020-11-11 18:26:17 +01:00
David Bomba c995ac5f44 Add API Documentation to repo 2020-11-04 12:27:07 +11:00
= 6479b2fd3e Fix for laravel 8 route file regression + psalm cleanup 2020-11-01 16:09:09 +11:00
David Bomba 6c1b952111
Refactor requests to use generics (#41)
* Validation rules for expenses

* Tests

* Tests
2020-10-22 17:46:02 +11:00
David Bomba 2b839f2ce1 Fixes for password reset route 2020-10-21 08:04:19 +11:00
David Bomba f0e4a94bee Task Statuses 2020-10-20 10:01:59 +11:00
David Bomba 05caec8aef expense categories 2020-10-13 15:08:56 +11:00
David Bomba 71535c0e41 Add tasks to API 2020-10-13 07:42:02 +11:00
David Bomba dd4d14d128 Implement Projects API 2020-10-08 09:25:39 +11:00
David Bomba ba75a44eb8
Laravel 7.x Shift (#40)
* Adopt Laravel coding style

The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style by
adding your own [PHP CS Fixer][1] `.php_cs` config to your project.

You may use [Shift's .php_cs][2] file as a base.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Add laravel/ui dependency

* Unindent vendor mail templates

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

* Shift Laravel dependencies

* Shift cleanup

* Upgrade to Laravel 7

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-09-06 19:38:10 +10:00
David Bomba 66499a9a31 System Logs 2020-08-24 15:08:49 +10:00
David Bomba bcd69dadc8 Change invoice -> entity 2020-08-12 10:41:26 +10:00
David Bomba 928a9d46af Download historical invoice 2020-08-12 10:01:27 +10:00
David Bomba c195f5b8a5 Add middleware to destroy document 2020-08-11 13:21:43 +10:00
David Bomba a6967892ea system health route 2020-07-30 10:30:49 +10:00
David Bomba a8a0c7695c Shop routes 2020-07-28 21:30:11 +10:00
David Bomba 2e165c11ca Bulk actions for tokens 2020-07-13 09:31:07 +10:00
David Bomba b96e2aa78b Bulk actions for tax rates 2020-07-13 09:29:44 +10:00
David Bomba 4c321d41c3 Change subscriptions to webhooks 2020-07-06 21:22:36 +10:00
David Bomba d3775fd059 Change PING route response 2020-07-02 20:14:19 +10:00
David Bomba 7a02938bd9 Route to check status of scheduler 2020-07-02 10:26:43 +10:00
David Bomba 302c98e08b Fixes for demo data 2020-07-01 21:33:42 +10:00
Benjamin Beganović 1b06fb99b1 payment webhooks wip 2020-06-27 15:53:12 +02:00
David Bomba 06413da090 Document behind route 2020-06-24 22:12:43 +10:00
David Bomba 889ac65f26 Bulk actions on groups 2020-06-24 09:39:49 +10:00
David Bomba afc8537a2f Add document routes 2020-06-23 21:05:41 +10:00
David Bomba 6b7db63e66 Design repository 2020-06-22 08:34:02 +10:00
David Bomba cd6ea87232 Add bulk actions to company gateway 2020-06-04 08:18:27 +10:00
David Bomba 4e84d83db1 Api routes upate 2020-06-01 09:59:26 +10:00
David Bomba c339c25d9c
Bulk actions for Payment Terms (#3752)
* Fixes for tests

* payment terms policies and repo

* Bulk actions for payment terms

* Fixes for documentation

* working on payment failure mailer
2020-05-26 18:20:50 +10:00
David Bomba 970c9bb87d
Payment Terms (#3737)
* Fixes for converting a quote to invoice

* Fixes for deleting an invoice

* Payment Terms CRUD

* Payment Terms

* Push PaymentTerms back into the DB

* Payment Terms

* Payment Terms

* Create api docs for payment terms
2020-05-23 13:28:24 +10:00
David Bomba 84a64773a6
Adjustments for OAuth (#3707)
* Fixes for null values in custom values

* Refactor mailing

* Working on send emails from GMail API

* Fixes for tests

* Test for GMail

* Adjustments for storing oauth token
2020-05-16 20:26:16 +10:00
David Bomba ba55cc32e1
v5.0.4 (#3620)
* Version bump

* Refactors for refunds / credits

* Working on Company Ledger

* Company Ledger OpenAPI Documentation

* Version Bump

* Fixes for internal composer update
2020-04-11 21:19:05 +10:00
David Bomba 05443d69ec
Implement CompanyToken and Subscriptions CRUD (#3609)
* Working on Tokens CRUD

* Fixes for company filters

* Working on Token CRUD

* Tests for tokens

* Fixes for OPENApi

* Subscriptions

* Subscriptions
2020-04-09 20:48:04 +10:00
David Bomba 6d7b7ca9a3
Invoice Deletion - Ledger (#3590)
* Fixes when implementing

* php_cs

* Clean up

* Clean up

* Working on adjusting ledger when an invoice is deleted
2020-04-04 21:32:42 +11:00
David Bomba 6df62faa82
Fixes for Invoice Designs (#3559)
* fixes for tests

* Working on Invoice Designs

* Update phpunit.yml

* Update phpunit.yml

* Working on sending an individual email

* Update phpunit.yml

* Fixes for designs

* Update phpunit.yml

* Working on sending entity email - individual

* Fixes for account creation

* Remove Laravel Horizon

* remove logging
2020-03-28 22:34:04 +11:00
David Bomba 1d11358215
Ping route (#3541)
* minor fixes

* minor fixes

* Fixes for self update

* fixes for template previews

* Add report_errors variable

* Ping route
2020-03-25 19:36:47 +11:00
David Bomba 374a44aa55
Laravel Horizon. (#3517)
* Fixes for white label

* Include Laravel Horizon
2020-03-24 04:15:56 +11:00
David Bomba 43e57d0117
Fixes for self-update (#3514)
* minor fix for payment notifications

* styleci

* Limit Self updating to self hosters only
:

* Fixes for designs

* Minor fixes for self-update
2020-03-21 16:37:30 +11:00
David Bomba 4c23d43138
Working on Setup workflow (#3509)
* Refactor designs to remove whitespace

* enable dummy data for templating

* Insert faker data into templates

* Fixes for user deletion

* Documentation on User controller:

* Working on app setup

* Files for app setup

* Working on Setup

* Final fixes for setup controller

* Fixes for setup

* Fixes for first install

* Minor fixes
2020-03-18 20:40:15 +11:00
David Bomba 58803d37f4
Serve tailwind locally (#3505)
* Fixes for tests

* Working on PDF tables

* Fixes for null values in designs

* Refactoring entity variables for PDF

* Fixes for pdf variables

* Minor fixes for designs

* Working on variable replacement for tables

* Refactoring designs

* Refactoring designs

* Refactoring design implementation

* Working on refactoring designs

* Serve tailwind locally

* Design changes

* refactor white labelling

* refactors for white label

* Fixes for payment type id nulls
2020-03-17 19:40:10 +11:00
David Bomba a8c15ef1c9
Version checking (#3451)
* Ensure NINJA_ENVIRONMENT variable is present  in .env file

* Implement version checking in app

* Remove password protection from check version route
2020-03-08 09:15:11 +11:00
David Bomba 7acc6ee300
Repeating header and footers on Invoice PDFs (#3424)
* remove jobs table

* Working on notifications

* Working on notifications

* Fixes for setting group level currency id on new client

* Working on repeating headers

* Use CSS to force headers and footers

* recurring headers and footers

* Preview PDF

* Working on PDF Preview
2020-03-05 18:14:57 +11:00
David Bomba db88d6a50d
Fixes for V2 (#3408)
* Refactor for user

* payment notifications

* Fixes for contact request

* Fix validation for contacts

* Fixes for base repo

* Fixes for Invoice Repo

* hide password field on clientcontact
2020-03-02 21:22:37 +11:00
David Bomba f8ea4c0d0f
Implement Design API (#3400)
* Working on CompanyUser route

* CompanyUser update route

* tests for updating a company user

* Fixes for exchange currency rate

* Move slack and google analytics fields into company table

* implement Design API
2020-02-29 08:57:47 +11:00
David Bomba 0061da2600
Update Company User Route (#3398)
* Working on CompanyUser route

* CompanyUser update route

* tests for updating a company user
2020-02-28 23:11:56 +11:00
Benjamin Beganović 8121a0166d
Importing migration data via HTTP (#3365)
* Accept migration over HTTP

* Comment wip tests
2020-02-25 08:15:07 +11:00
David Bomba 9e9cd37b87
Modifications to Designs (#3353)
* Working on Quotes

* Naming refactor for Quotes

* Quote Actions

* Quote Pdfs

* Quote PDFs

* Refunds in Stripe

* Fixes tests

* Company Ledger work
2020-02-20 07:44:12 +11:00
David Bomba 4a3d37a42b
Flutter Client ! (#3325)
* Working on emailing invoices

* Working on emailing and displaying email

* Working on emailing and displaying email

* Email invoices

* Fixes for html emails

* Restart queue after self-update

* Email Invoices

* Push Flutter Web Clientgit statusgit status!
2020-02-13 22:27:42 +11:00
David Bomba f04f2b15fd
OpenAPI Docs and additional password protection on self update route: (#3320) 2020-02-12 21:06:59 +11:00
David Bomba 9a19f7fd4c Fixes for invoice update and invoice designs (#3302)
* BaseController cleanup

* Working on invoice designs

* Working on invoice designs

* working on invoice designs

* working on invoice designs

* invoice designs

* Working on Invoice Designs

* Fixes for user settings object

* Working on invoice designs

* Fixes for encoded user settings

* Working on contact localized invoice pdfs

* working on invoice designs

* Fix for invoice update 500 error
2020-02-10 20:53:02 +11:00
David Bomba 84461858f2
Tests for payments (#3277) 2020-02-02 18:54:52 +11:00
Benjamin Beganović 67c6ac1bc2
Test fixes & code improvements (#3267)
- Updated rules for storing credits
- Fixed route controller
- Added test for crud operations
- Added new $invoice object in MockAccountData
- Added & registered CreditPolicy
2020-01-30 14:02:25 +11:00
Benjamin Beganović 0f661495db
Create 'Credits' module (#3263)
* Create 'Credits' module

* Various fixes on Credit module

* Fix MarkCreditPaid factory
2020-01-30 12:27:22 +11:00
Benjamin Beganović 01c47d7c5d (Sync) beganovich:v2 to invoiceninja:v2 (#3254)
* Add more checks to invoice test

* Uploading migration file & test

* Comment redundant tests

* Improve tests with smaller sample files. (#3250)

* Reduce migration file size to improve test velocity

* minor fixes

* remove xhprof ext

* Tests for templates

* Remove commented tests

* Fix invoices testing & importing

* Sending e-mail when migration fails

* Uploading & storing the migration file
- Added Swagger notation
- Added MigrationTest.php method

Co-authored-by: David Bomba <turbo124@gmail.com>
2020-01-28 07:56:48 +11:00
Benjamin Beganović 11cc40d23a Migrate commits from 2-migration-with-json into v2 (#3241)
* Scaffold test case

* Import.php tests:
- Basic test scaffold
- Test if exception is thrown when unknown resource
- Company update test

* Migration importer & exception classes

* Company migration test
- Added 3rd parameter for accepting custom resources
- Wip tax_rates migration

* Tax rate migration

* Tax rate update
- Added company_id & user_id property modifiers

* Users migration

* Save IDs for users importing

* Add 'transformIds' method

* Importing clients
- An exception for resource not migration
- Dependency logic
- Removing id on insert

* Exception for unresolved dependency

* Import clients

* Method for inspecting user_id

* Importing invoices

* Importing quotes

* Fix tests & wrap with try-catch

* Fix tax_rates user_id transform

* Working on migration

* Tests for migration

* fixes for test

* Tests for Import.php
- Added ext-json to composer.json

* Tests for Import.php
- Added ext-json to composer.json

* Change migration exceptions to MigrationValidatorFailed

* Fixes for tests and counters

* Unzipping the migration archive
- Changed .gitignore to ignore all local migrations

* Comparing local data with inserted

* Ignore verification - wip

* Fix formatting for api.php

* Uploading file test (wip)

* Fix typo

Co-authored-by: David Bomba <turbo124@gmail.com>
2020-01-24 07:35:00 +11:00
David Bomba a70b024d94
Payment refunds, Projects, Expenses and Vendors. (#3228)
* OpenAPI Documentation for Vendors and Expenses

* Rules for refunds

* Rules for Payment Refunds

* Fixes for quote invitation link

* Project
2020-01-20 21:10:33 +11:00