Skip to content

Upgrade project #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 167 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
0b16a1a
Namespace `CashierProvider` renamed to `Cashbox`
andrey-helldar Jul 13, 2023
247aec2
Update README.md
andrey-helldar Jul 13, 2023
e9743d1
Added links to telegram channels
andrey-helldar Jul 13, 2023
73126d3
The word "Ukrainian" is translated into Ukrainian
andrey-helldar Jul 13, 2023
1e6e887
Added template presets for forwarding to drivers
andrey-helldar Jul 13, 2023
ff52f8d
Installed dev dependency
andrey-helldar Jul 13, 2023
4f8caf0
Подготовка файлов к реализации обновления
andrey-helldar Jul 13, 2023
eec6911
Added update of license files
andrey-helldar Jul 13, 2023
54f013d
Added updating README.md files according to a given template
andrey-helldar Jul 13, 2023
62c7a73
Added synchronization of `composer.json` files
andrey-helldar Jul 13, 2023
cdec77d
Update `composer.json` files
andrey-helldar Jul 13, 2023
8520264
Fixed: The workflow is not valid
andrey-helldar Jul 13, 2023
fc5ff28
Fixed permission denied
andrey-helldar Jul 13, 2023
a9c41fb
Fixed command not found
andrey-helldar Jul 13, 2023
9b02197
Error: Process completed with exit code 1
andrey-helldar Jul 13, 2023
fe165fa
Error: Process completed with exit code 1
andrey-helldar Jul 13, 2023
0782297
Error: Process completed with exit code 1
andrey-helldar Jul 13, 2023
efdea4b
Fixed branch name to push changes
andrey-helldar Jul 13, 2023
d39472b
Updated license files
actions-user Jul 13, 2023
1478690
Updated readme files
actions-user Jul 13, 2023
8a6d90a
Updated `composer.json` files
actions-user Jul 13, 2023
1864ba0
Update `.gitignore`
andrey-helldar Jul 13, 2023
0518f2c
Merge remote-tracking branch 'origin/4.x' into 4.x
andrey-helldar Jul 13, 2023
a12b6a3
Fixed error: IS_DIRTY_0: command not found
andrey-helldar Jul 13, 2023
6dc796e
Removed synchronization of `composer.json` files from GitHub Actions
andrey-helldar Jul 13, 2023
a3b1593
Normalize `composer.json`
andrey-helldar Jul 13, 2023
8df5b25
Bump dependencies
andrey-helldar Jul 13, 2023
6f4b8c5
Fixed code-style
andrey-helldar Jul 13, 2023
b748158
Technical classes moved to secure namespace
andrey-helldar Jul 13, 2023
ce4a0c8
Added filtering and sorting of the `Thanks` block
andrey-helldar Jul 13, 2023
72541b9
The `Thanks` blocks has been filtered and sorted
andrey-helldar Jul 13, 2023
1f1b9a6
Testing started
andrey-helldar Jul 13, 2023
36015ee
Created TestServiceProvider.php
andrey-helldar Jul 13, 2023
c60f15e
Added link to Telegram folder of news channels
andrey-helldar Jul 14, 2023
6aa1f86
Updated readme files
actions-user Jul 14, 2023
218b016
Added runner to quickly run tests from phpStorm
andrey-helldar Jul 14, 2023
d5caa8e
Updated phpunit.xml file
andrey-helldar Jul 14, 2023
6590e2b
Updated startup test file in GitHub Actions
andrey-helldar Jul 14, 2023
1c6046e
Removed the limit on the number of processes in parallel testing
andrey-helldar Jul 14, 2023
a97bbf9
Merge remote-tracking branch 'origin/4.x' into 4.x
andrey-helldar Jul 14, 2023
ad78760
Added a preset for testing the application on different databases
andrey-helldar Jul 14, 2023
bce1ca6
Removed `OS` prefix from tests
andrey-helldar Jul 14, 2023
193f33c
Removed testing on macos
andrey-helldar Jul 14, 2023
0f6ea68
Bump `psr/http-message`
andrey-helldar Jul 14, 2023
8be8f5a
Renaming `cashier` to `cashbox`
andrey-helldar Jul 14, 2023
8cadb25
Updated tests
andrey-helldar Jul 14, 2023
f7e7bd5
Updated tests.yml
andrey-helldar Jul 14, 2023
6cf1940
Removed tests due to namespace conflict
andrey-helldar Jul 14, 2023
bd60f09
Fixed DTO binding
andrey-helldar Jul 14, 2023
d3e1fa9
Removed compact output option when run from phpStorm
andrey-helldar Jul 14, 2023
caac87e
Added configuration tests
andrey-helldar Jul 14, 2023
5eff6a0
Added tests for checking queue names
andrey-helldar Jul 15, 2023
27ecb98
Cast tests added
andrey-helldar Jul 15, 2023
e24ece8
WIP
andrey-helldar Jul 15, 2023
6f01d30
Removed unnecessary
andrey-helldar Jul 15, 2023
938fe63
Minor fixes
andrey-helldar Jul 15, 2023
5e88287
Completed tests for undefined payment types
andrey-helldar Jul 15, 2023
6198e35
WIP
andrey-helldar Jul 15, 2023
73c7d37
Split tests
andrey-helldar Jul 15, 2023
b6d4daf
Removed unnecessary, including code duplication
andrey-helldar Jul 15, 2023
e417ce7
Removed running parallel tests due to the impossibility of debugging …
andrey-helldar Jul 16, 2023
1493956
Test fixed
andrey-helldar Jul 16, 2023
09c91bb
Fixed tests
andrey-helldar Jul 16, 2023
6c6bfd9
Fixed a bug in migrations
andrey-helldar Jul 16, 2023
e3e4412
Added a check before activating the mechanism for publishing internal…
andrey-helldar Jul 16, 2023
6f72da9
Removed unnecessary service provider
andrey-helldar Jul 16, 2023
7b54b31
Test migrations moved to common test namespace
andrey-helldar Jul 16, 2023
3254c8f
`.env` file added to git exceptions
andrey-helldar Jul 16, 2023
8640f9a
Fixed check for the existence of a model for payments when initializi…
andrey-helldar Jul 16, 2023
dbd047c
Fixed bug when initializing configuration
andrey-helldar Jul 16, 2023
38e5bf6
Migration optimization
andrey-helldar Jul 16, 2023
1fec12b
Method name conflict issue fixed
andrey-helldar Jul 16, 2023
9819e6f
Added `doctrine/dbal` dependency
andrey-helldar Jul 16, 2023
a847e2c
Fixed error when getting driver configuration
andrey-helldar Jul 16, 2023
276cb1a
Cash payment driver ready to go
andrey-helldar Jul 16, 2023
97830e1
Fixed code-style
andrey-helldar Jul 16, 2023
5fa6059
Added data hash test
andrey-helldar Jul 16, 2023
cf7e210
Update README.md
andrey-helldar Jul 16, 2023
7f70ea3
Update README.md
andrey-helldar Jul 16, 2023
528a07b
Updated readme files
actions-user Jul 16, 2023
c065056
Small refactoring
andrey-helldar Jul 16, 2023
0baf636
Merge remote-tracking branch 'origin/4.x' into 4.x
andrey-helldar Jul 16, 2023
011179f
Added a link to the donation system
andrey-helldar Jul 16, 2023
6e634dc
Fixed placement of Tinkoff authorization test file
andrey-helldar Jul 16, 2023
e7bcafa
Console commands renamed
andrey-helldar Jul 16, 2023
4a58f6f
Added tests for the verification console command
andrey-helldar Jul 16, 2023
205cd0e
Removed verification timing block
andrey-helldar Jul 16, 2023
6d16788
Fixed auto-refund
andrey-helldar Jul 16, 2023
89510f6
Added refund verification tests
andrey-helldar Jul 16, 2023
2a4b2c5
Fixed handling of console command arguments
andrey-helldar Jul 16, 2023
f4db1df
Added tests for verification and refund of payments by ID
andrey-helldar Jul 16, 2023
b95ca93
Renamed hash test headers
andrey-helldar Jul 16, 2023
095dddc
Normalized `composer.json`
andrey-helldar Jul 16, 2023
cc018dc
Disabled extra trait
andrey-helldar Jul 16, 2023
1017f75
Added `config` suffix to trait methods to eliminate possible collision
andrey-helldar Jul 16, 2023
26e23b8
Removed `--compact` option when running tests in GitHub Actions
andrey-helldar Jul 16, 2023
86f53a6
Fixed refund processing
andrey-helldar Jul 16, 2023
ee92b72
Preparing to implement the Tinkoff Credit driver
andrey-helldar Jul 16, 2023
1ca5365
Fixed tests.yml
andrey-helldar Jul 17, 2023
3644893
Updated templates for GitHub
andrey-helldar Jul 17, 2023
5b44556
Fixed tests
andrey-helldar Jul 17, 2023
43731d6
Tinkoff Credit driver prepared
andrey-helldar Jul 17, 2023
3021af9
Added case ignoring when checking statuses
andrey-helldar Jul 17, 2023
5e5dc10
Minor changes in tests
andrey-helldar Jul 17, 2023
247414a
Separated helpers
andrey-helldar Jul 17, 2023
0429526
Added resources to the Tinkoff Credit driver
andrey-helldar Jul 17, 2023
2ffb790
Added a test for creating a loan application in Tinkoff
andrey-helldar Jul 18, 2023
922e5d1
Added driver order template
andrey-helldar Jul 24, 2023
d4d0fef
Updated templates for creating issues
andrey-helldar Jul 24, 2023
cb3340b
Connected additional dependencies for testing
andrey-helldar Jul 25, 2023
c3d14ee
Updated tests
andrey-helldar Jul 29, 2023
7e18318
Fixed Cannot assign null to property InfoData::$extra of type array
andrey-helldar Jul 29, 2023
af1faa0
Added CNAME file for documentation
andrey-helldar Aug 1, 2023
b63b3ea
Refactored RefundedEvent
andrey-helldar Aug 2, 2023
3201333
Documentation link changed
andrey-helldar Aug 2, 2023
11b414b
Refactored Verify and Refund tests
andrey-helldar Aug 2, 2023
e68aba8
Expanded message output
andrey-helldar Aug 2, 2023
ce1e80d
Fixed verification and refund core tests
andrey-helldar Aug 2, 2023
2fd1232
Refactored Tinkoff Credit driver
andrey-helldar Aug 2, 2023
7122b98
Updated readme files
actions-user Aug 2, 2023
68593ba
Tests are divided into groups
andrey-helldar Aug 2, 2023
681cfc7
Fixed The "--ansi" option does not exist
andrey-helldar Aug 2, 2023
2b0ce65
Separated unit tests and database tests
andrey-helldar Aug 2, 2023
2314175
Removed services from windows tests
andrey-helldar Aug 2, 2023
69f4a4e
Removed redis service from tests
andrey-helldar Aug 2, 2023
d78f44b
Check the feature
andrey-helldar Aug 2, 2023
ff555f0
Removed parallel testing
andrey-helldar Aug 2, 2023
4c9e445
Updated "thanks" blocks
andrey-helldar Aug 2, 2023
4b15025
Fixed code-style
andrey-helldar Aug 2, 2023
b535540
Tinkoff Online driver upgrade started
andrey-helldar Aug 3, 2023
cdcacfb
Update copyrights
andrey-helldar Aug 3, 2023
cf9d6e7
Added tests for the Tinkoff Online driver
andrey-helldar Aug 3, 2023
444c687
Fixed tests
andrey-helldar Aug 3, 2023
90fd318
Refactored Tinkoff QR Code driver
andrey-helldar Aug 3, 2023
d154146
Added Sber Auth driver
andrey-helldar Aug 3, 2023
8476f29
Adding tests for the Sber Auth driver
andrey-helldar Aug 3, 2023
0c01442
Fixed code-style
andrey-helldar Aug 3, 2023
87ee434
Fixed a request processing error when the bank returns status code 20…
andrey-helldar Aug 4, 2023
2486006
Fixed Tinkoff QR Code driver
andrey-helldar Aug 4, 2023
9ef12f2
Exceptions renamed
andrey-helldar Aug 4, 2023
c701d3c
Added new exceptions
andrey-helldar Aug 4, 2023
df1fa94
Prepare Sber QR Driver
andrey-helldar Aug 4, 2023
0b735c0
Refactored Template Driver Auth
andrey-helldar Aug 4, 2023
86dd7f8
Fixed tests
andrey-helldar Aug 4, 2023
abc1e99
Updated test
andrey-helldar Aug 5, 2023
19944f4
Test was divided
andrey-helldar Aug 5, 2023
ee20429
[WIP] Template Driver
andrey-helldar Aug 5, 2023
2e9b2f5
Separation of hashing methods
andrey-helldar Aug 10, 2023
557f168
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
e65bf77
Optimized test migration
andrey-helldar Sep 9, 2023
502f337
Removed unnecessary dock blocks. Laravel Idea can provide hints witho…
andrey-helldar Sep 9, 2023
745fec0
Fixed error
andrey-helldar Sep 9, 2023
ce685ed
Internal errors fixed
andrey-helldar Sep 9, 2023
e20434a
Reduced test configuration size
andrey-helldar Sep 9, 2023
b4ebfa7
Simplified method name
andrey-helldar Sep 9, 2023
c026752
Adding a `thanks` block to plugins
andrey-helldar Sep 9, 2023
a21b898
Something has definitely changed 😁
andrey-helldar Sep 9, 2023
a533dcf
Fixed tests
andrey-helldar Sep 9, 2023
f8ccbe2
Upgrade documentation skeleton
andrey-helldar Dec 5, 2023
289e2ae
Update version.json link
andrey-helldar Dec 5, 2023
bab5365
Update cashbox.tree
andrey-helldar Dec 5, 2023
ec15734
Bump dependencies
andrey-helldar Dec 19, 2023
15c74a0
Update docs
andrey-helldar Dec 19, 2023
06fc3e3
Update workflows
andrey-helldar Dec 19, 2023
8f4722c
Added `composer test` command
andrey-helldar Dec 20, 2023
0a364c1
Updated link to author's homepage
andrey-helldar Dec 20, 2023
27e5a07
Small refactoring
andrey-helldar Dec 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

.github/ export-ignore
.idea/ export-ignore
.requests/ export-ignore
.run/ export-ignore

docs/ export-ignore
tests/ export-ignore

.gitattributes export-ignore
Expand Down
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md

This file was deleted.

65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/1_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Bug Report
description: Report something that's broken.
title: "[Bug]: "
labels: [ "bug" ]
body:
- type: markdown
attributes:
value: "Before submitting your report,
[please ensure your Cashbox version is still supported](https://cashbox.city#support-policy)."

- type: input
attributes:
label: Cashbox Version
description: Provide the Cashbox version that you are using.
placeholder: 4.0.0
validations:
required: true

- type: input
attributes:
label: Cashbox Driver
description: If applicable, provide the database driver and version you are using.
placeholder: Cash
validations:
required: false

- type: input
attributes:
label: Laravel Version
description: Provide the Laravel version that you are using.
placeholder: 10.15.0
validations:
required: true

- type: input
attributes:
label: PHP Version
description: Provide the PHP version that you are using.
placeholder: 8.1.4
validations:
required: true

- type: input
attributes:
label: Database Driver & Version
description: If applicable, provide the database driver and version you are using.
placeholder: MySQL 8.0.31 for macOS 13.0 on arm64 (Homebrew)
validations:
required: false

- type: textarea
attributes:
label: Description
description: Provide a detailed description of the issue you are facing.
validations:
required: true

- type: textarea
attributes:
label: Steps To Reproduce
description: "Provide detailed steps to reproduce your issue.
If necessary, please provide a GitHub repository to demonstrate your issue using
`laravel new bug-report --github=\"--public\"`."
validations:
required: true
9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/2_Feature_request.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/2_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Feature request
description: New functionality proposal.
labels: [ "enhancement" ]
body:

- type: textarea
attributes:
label: Description
description: Provide a detailed description of the issue you are facing.
validations:
required: true
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/3_driver_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Driver Request
description: Sending a request to develop a driver for working with the bank's API
title: "[Driver]: "
labels: [ "driver request" ]
body:
- type: markdown
attributes:
value: Before submitting a request, make sure that such a driver has not been previously requested.

- type: input
attributes:
label: Name of the bank
description: Provide the name of the bank for which you want to develop a driver
placeholder: Some Bank
validations:
required: true

- type: input
attributes:
label: Payment processing technology
description: Provide the name of the technology through which the payment will be made
placeholder: QR, Online, Installment, Credit, etc.
validations:
required: true

- type: input
attributes:
label: Link to documentation
description: Provide a link to the documentation for working with the bank
placeholder: https://example.com/docs/...
validations:
required: true

- type: textarea
attributes:
label: Additional information
description: Provide additional information for the request
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Support Questions & Other
url: https://github.com/andrey-helldar/cashier/discussions
url: https://github.com/orgs/cashbox-laravel/discussions
about: Discuss any issues related to the application or templates working with it.
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<!--
Please only send a pull request to branches that are currently supported: https://cashbox.city#support-policy

If you are unsure which branch your pull request should be sent to, please read: https://cashbox.city#which-branch

Pull requests without a descriptive title, thorough description, or tests will be closed.

In addition, please describe the benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
Expand Down
52 changes: 1 addition & 51 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect job name
id: detect
Expand All @@ -24,53 +24,3 @@ jobs:
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

normalize:
needs: style

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
file:
- src/Core
- src/Cash
- src/SberAuth
- src/SberOnline
- src/SberQrCode
- src/TinkoffAuth
- src/TinkoffCredit
- src/TinkoffOnline
- src/TinkoffQrCode
- src/TemplateDriver
- src/TemplateDriverAuth

if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

steps:
- name: Git setup
if: success()
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

- name: Install dependency
run: composer global require ergebnis/composer-normalize

- name: Normalize composer.json
id: normalizer
run: |
IS_DIRTY=1

composer normalize ${{ matrix.file }}/composer.json

{ git add . && git commit -a -m "Normalized \`composer.json\` files"; } || IS_DIRTY_0

echo "is_dirty=${IS_DIRTY}" >> $GITHUB_OUTPUT

- name: Push changes
uses: ad-m/github-push-action@master
if: steps.normalizer.outputs.is_dirty == 1
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
62 changes: 62 additions & 0 deletions .github/workflows/composer_normalize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Normalize composer.json

on: [ push, pull_request ]

permissions: write-all

jobs:
normalize:
needs: style

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
package:
- Core
- Cash
- SberAuth
- SberOnline
- SberQrCode
- TinkoffAuth
- TinkoffCredit
- TinkoffOnline
- TinkoffQrCode
- TemplateDriver
- TemplateDriverAuth

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none

- name: Git setup
if: success()
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

- name: Install dependency
run: composer global require ergebnis/composer-normalize

- name: Normalize composer.json
id: normalizer
run: composer normalize src/${{ matrix.package }}/composer.json

{ git add . && git commit -a -m "Normalized \`composer.json\` files"; }

- name: Create a Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: normalize/package
branch-suffix: random
delete-branch: true
add-paths: src/${{ matrix.package }}/composer.json
title: "[${{ matrix.package }}]: Normalized \`composer.json\`"
commit-message: Normalized \`composer.json\`
Loading