Skip to content

Commit 6b8e482

Browse files
author
Andrey Helldar
authored
Merge pull request #5 from cashier-provider/1.x
[1.x] Changed namespaces when transferring to an organization
2 parents 3267f01 + b500365 commit 6b8e482

22 files changed

+80
-90
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
patreon: andrey_helldar
2-
tidelift: "packagist/andrey-helldar/cashier"
32
open_collective: "laravel-cashier-provider"
43
custom: [ "https://paypal.me/helldar", "https://yoomoney.ru/to/410012608840929" ]

README.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tinkoff Auth Cashier Driver
1+
# Tinkoff Cashier Authorization Driver
22

33
Tinkoff API Authorization Driver.
44

@@ -7,22 +7,22 @@ Tinkoff API Authorization Driver.
77
[![Total Downloads][badge_downloads]][link_packagist]
88
[![License][badge_license]][link_license]
99

10-
> **Note:** This driver doesn't need to be installed in the application. I's needed to implement [Tinkoff](https://www.tinkoff.ru/eng) bank authorization for [Cashier](https://github.com/andrey-helldar/cashier) drivers.
10+
> **Note:** This driver doesn't need to be installed in the application. I's needed to implement [Tinkoff](https://www.tinkoff.ru/eng) bank authorization for [Cashier](https://github.com/cashier-provider/core) drivers.
1111
1212
## Installation
1313

1414
To get the latest version of `Tinkoff Auth Cashier Driver`, simply require the project using [Composer](https://getcomposer.org):
1515

1616
```bash
17-
$ composer require andrey-helldar/cashier-tinkoff-auth
17+
$ composer require cashier-provider/tinkoff-auth
1818
```
1919

2020
Or manually update `require` block of `composer.json` and run `composer update`.
2121

2222
```json
2323
{
2424
"require": {
25-
"andrey-helldar/cashier-tinkoff-auth": "^1.0"
25+
"cashier-provider/tinkoff-auth": "^1.0"
2626
}
2727
}
2828
```
@@ -35,10 +35,10 @@ In some cases, for example, to initialize a payment session, it is necessary to
3535
parameter must be specified in the request.
3636

3737
```php
38-
namespace Helldar\CashierDriver\Tinkoff\QrCode\Requests;
38+
namespace CashierProvider\Tinkoff\QrCode\Requests;
3939

40-
use Helldar\Cashier\Http\Request;
41-
use Helldar\CashierDriver\Tinkoff\Auth\Auth;
40+
use CashierProvider\Core\Http\Request;
41+
use CashierProvider\Tinkoff\Auth\Auth;
4242

4343
class Init extends Request
4444
{
@@ -54,10 +54,10 @@ class Init extends Request
5454
In cases where the request must be signed with a special hashed token, you must set the `$hash` variable to `true`.
5555

5656
```php
57-
namespace Helldar\CashierDriver\Tinkoff\QrCode\Requests;
57+
namespace CashierProvider\Tinkoff\QrCode\Requests;
5858

59-
use Helldar\Cashier\Http\Request;
60-
use Helldar\CashierDriver\Tinkoff\Auth\Auth;
59+
use CashierProvider\Core\Http\Request;
60+
use CashierProvider\Tinkoff\Auth\Auth;
6161

6262
class Get extends Request
6363
{
@@ -67,23 +67,14 @@ class Get extends Request
6767
}
6868
```
6969

70-
## For Enterprise
70+
[badge_downloads]: https://img.shields.io/packagist/dt/cashier-provider/tinkoff-auth.svg?style=flat-square
7171

72-
Available as part of the Tidelift Subscription.
72+
[badge_license]: https://img.shields.io/packagist/l/cashier-provider/tinkoff-auth.svg?style=flat-square
7373

74-
The maintainers of `andrey-helldar/cashier` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you
75-
use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you
76-
use. [Learn more](https://tidelift.com/subscription/pkg/packagist-andrey-helldar-cashier?utm_source=packagist-andrey-helldar-cashier&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
77-
.
78-
79-
[badge_downloads]: https://img.shields.io/packagist/dt/andrey-helldar/cashier-tinkoff-auth.svg?style=flat-square
80-
81-
[badge_license]: https://img.shields.io/packagist/l/andrey-helldar/cashier-tinkoff-auth.svg?style=flat-square
82-
83-
[badge_stable]: https://img.shields.io/github/v/release/andrey-helldar/cashier-tinkoff-auth?label=stable&style=flat-square
74+
[badge_stable]: https://img.shields.io/github/v/release/cashier-provider/tinkoff-auth?label=stable&style=flat-square
8475

8576
[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square
8677

8778
[link_license]: LICENSE
8879

89-
[link_packagist]: https://packagist.org/packages/andrey-helldar/cashier-tinkoff-auth
80+
[link_packagist]: https://packagist.org/packages/cashier-provider/tinkoff-auth

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "andrey-helldar/cashier-tinkoff-auth",
2+
"name": "cashier-provider/tinkoff-auth",
33
"description": "Tinkoff API Authorization Driver",
44
"type": "library",
55
"license": "MIT",
@@ -18,26 +18,26 @@
1818
}
1919
],
2020
"support": {
21-
"issues": "https://github.com/andrey-helldar/cashier-tinkoff-auth/issues",
22-
"source": "https://github.com/andrey-helldar/cashier-tinkoff-auth"
21+
"issues": "https://github.com/cashier-provider/tinkoff-auth/issues",
22+
"source": "https://github.com/cashier-provider/tinkoff-auth"
2323
},
2424
"require": {
2525
"php": "^7.3|^8.0",
2626
"ext-json": "*",
2727
"andrey-helldar/contracts": "^1.14",
2828
"andrey-helldar/simple-data-transfer-object": "^1.0",
2929
"andrey-helldar/support": "^4.0",
30+
"cashier-provider/core": "^1.29",
3031
"illuminate/support": "^6.0|^7.0|^8.0"
3132
},
3233
"require-dev": {
33-
"andrey-helldar/cashier": "^1.16",
3434
"orchestra/testbench": "^4.0|^5.0|^6.0",
3535
"phpunit/phpunit": "^9.0",
3636
"symfony/var-dumper": "^4.3.4|^5.0"
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"Helldar\\CashierDriver\\Tinkoff\\Auth\\": "src"
40+
"CashierProvider\\Tinkoff\\Auth\\": "src"
4141
}
4242
},
4343
"autoload-dev": {

phpunit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,7 +12,7 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
/*

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<!--
4-
~ This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
~ This file is part of the "cashier-provider/tinkoff-auth" project.
55
~
66
~ For the full copyright and license information, please view the LICENSE
77
~ file that was distributed with this source code.
@@ -12,7 +12,7 @@
1212
~
1313
~ @license MIT
1414
~
15-
~ @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
~ @see https://github.com/cashier-provider/tinkoff-auth
1616
-->
1717

1818
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

src/Auth.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,16 +12,16 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

20-
namespace Helldar\CashierDriver\Tinkoff\Auth;
20+
namespace CashierProvider\Tinkoff\Auth;
2121

22-
use Helldar\CashierDriver\Tinkoff\Auth\Constants\Keys;
23-
use Helldar\CashierDriver\Tinkoff\Auth\Resources\AccessToken;
24-
use Helldar\CashierDriver\Tinkoff\Auth\Support\Hash;
22+
use CashierProvider\Tinkoff\Auth\Constants\Keys;
23+
use CashierProvider\Tinkoff\Auth\Resources\AccessToken;
24+
use CashierProvider\Tinkoff\Auth\Support\Hash;
2525
use Helldar\Contracts\Cashier\Auth\Auth as AuthContract;
2626
use Helldar\Contracts\Cashier\Http\Request;
2727
use Helldar\Contracts\Cashier\Resources\Model;

src/Constants/Keys.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,12 +12,12 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

20-
namespace Helldar\CashierDriver\Tinkoff\Auth\Constants;
20+
namespace CashierProvider\Tinkoff\Auth\Constants;
2121

2222
class Keys
2323
{

src/Resources/AccessToken.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,12 +12,12 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

18-
namespace Helldar\CashierDriver\Tinkoff\Auth\Resources;
18+
namespace CashierProvider\Tinkoff\Auth\Resources;
1919

20-
use Helldar\CashierDriver\Tinkoff\Auth\Constants\Keys;
20+
use CashierProvider\Tinkoff\Auth\Constants\Keys;
2121
use Helldar\Contracts\Cashier\Resources\AccessToken as AccessTokenContract;
2222
use Helldar\SimpleDataTransferObject\DataTransferObject;
2323
use Illuminate\Support\Carbon;

src/Support/Hash.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,13 +12,13 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

18-
namespace Helldar\CashierDriver\Tinkoff\Auth\Support;
18+
namespace CashierProvider\Tinkoff\Auth\Support;
1919

20-
use Helldar\CashierDriver\Tinkoff\Auth\Constants\Keys;
21-
use Helldar\CashierDriver\Tinkoff\Auth\Resources\AccessToken;
20+
use CashierProvider\Tinkoff\Auth\Constants\Keys;
21+
use CashierProvider\Tinkoff\Auth\Resources\AccessToken;
2222
use Helldar\Contracts\Cashier\Resources\Model;
2323
use Helldar\Support\Concerns\Makeable;
2424
use Helldar\Support\Facades\Helpers\Ables\Arrayable;

tests/Auth/BodyTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,14 +12,14 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

2020
namespace Tests\Auth;
2121

22-
use Helldar\CashierDriver\Tinkoff\Auth\Auth;
22+
use CashierProvider\Tinkoff\Auth\Auth;
2323
use Tests\TestCase;
2424

2525
class BodyTest extends TestCase

tests/Auth/HeadersTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,14 +12,14 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

2020
namespace Tests\Auth;
2121

22-
use Helldar\CashierDriver\Tinkoff\Auth\Auth;
22+
use CashierProvider\Tinkoff\Auth\Auth;
2323
use Tests\TestCase;
2424

2525
class HeadersTest extends TestCase

tests/Auth/MakeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,14 +12,14 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

2020
namespace Tests\Auth;
2121

22-
use Helldar\CashierDriver\Tinkoff\Auth\Auth;
22+
use CashierProvider\Tinkoff\Auth\Auth;
2323
use Helldar\Contracts\Cashier\Auth\Auth as AuthContract;
2424
use Tests\TestCase;
2525

tests/Fixtures/ModelEloquent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,7 +12,7 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);

tests/Fixtures/ModelResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of the "andrey-helldar/cashier-tinkoff-auth" project.
4+
* This file is part of the "cashier-provider/tinkoff-auth" project.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -12,14 +12,14 @@
1212
*
1313
* @license MIT
1414
*
15-
* @see https://github.com/andrey-helldar/cashier-tinkoff-auth
15+
* @see https://github.com/cashier-provider/tinkoff-auth
1616
*/
1717

1818
declare(strict_types=1);
1919

2020
namespace Tests\Fixtures;
2121

22-
use Helldar\Cashier\Resources\Model;
22+
use CashierProvider\Core\Resources\Model;
2323
use Illuminate\Support\Carbon;
2424
use Tests\TestCase;
2525

0 commit comments

Comments
 (0)