-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECO-3656: Computop PayPal Express. (#2)
ECO-3656 COMPUTOP Paypal Express
- Loading branch information
1 parent
c94aff4
commit b8bdf66
Showing
44 changed files
with
1,400 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.bat] | ||
end_of_line = crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Define the line ending behavior of the different file extensions | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text text=auto eol=lf | ||
*.php diff=php | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.jpeg binary | ||
*.zip binary | ||
*.phar binary | ||
*.ttf binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.eot binary | ||
*.ico binary | ||
*.mo binary | ||
*.pdf binary | ||
*.xsd binary | ||
*.exe binary | ||
|
||
# Remove files for archives generated using `git archive` | ||
architecture-baseline.json export-ignore | ||
dependency.json export-ignore | ||
phpstan.json export-ignore | ||
phpstan.neon export-ignore | ||
psalm-report.json export-ignore linguist-generated=true | ||
tooling.yml export-ignore | ||
.coveralls.yml export-ignore | ||
.travis.yml export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.github/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
validation: | ||
name: "Validation" | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php: '7.4' | ||
|
||
env: | ||
APPLICATION_ENV: devtest | ||
APPLICATION_STORE: DE | ||
PROJECT: computop-shipment | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Composer get cache directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Composer cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Composer validate | ||
run: composer validate | ||
|
||
- name: Composer install | ||
run: | | ||
composer --version | ||
composer install | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring, intl | ||
tools: composer:v2 | ||
|
||
- name: Run CodeStyle checks | ||
run: composer cs-check | ||
|
||
- name: PHPStan setup | ||
run: composer stan-setup | ||
|
||
- name: Run PHPStan | ||
run: composer stan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# IDEs | ||
/.idea | ||
/.project | ||
/nbproject | ||
/.buildpath | ||
/.settings | ||
*.sublime-* | ||
*.AppleDouble | ||
*.AppleDB | ||
*.AppleDesktop | ||
/vendor/ | ||
composer.lock | ||
composer.phar | ||
phpunit.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* MIT License | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
build: | ||
environment: | ||
php: '7.4' | ||
|
||
tests: | ||
override: | ||
- true # disable test execution on scrutinizer | ||
|
||
nodes: | ||
analysis: | ||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
|
||
filter: | ||
excluded_paths: | ||
- config/* | ||
- tests/* | ||
- src/Generated/* | ||
- src/Pyz/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016-present Spryker Systems GmbH | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# computop-shipment | ||
# ComputopShipment Module | ||
|
||
[![CI](https://github.com/spryker-eco/computop-shipment/actions/workflows/ci.yml/badge.svg)](https://github.com/spryker-eco/computop-shipment/actions/workflows/ci.yml) | ||
[![Latest Stable Version](https://poser.pugx.org/spryker-eco/computop-shipment/v/stable.svg)](https://packagist.org/packages/spryker-eco/computop-shipment) | ||
[![License](https://img.shields.io/github/license/spryker-eco/computop-shipment.svg?b=master)](https://github.com/spryker-eco/computop-shipment) | ||
|
||
[![CI](https://scrutinizer-ci.com/g/spryker-eco/computop-shipment/badges/build.png?b=master)](https://scrutinizer-ci.com/g/spryker-eco/computop-shipment/build-status/master) | ||
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF.svg)](https://php.net/) | ||
|
||
ComputopShipment module provides a connection betweeen Computop and Shipment modules. | ||
|
||
## Installation | ||
|
||
``` | ||
composer require spryker-eco/computop-shipment | ||
``` | ||
|
||
## Documentation | ||
|
||
[Documentation](https://documentation.spryker.com/industry_partners/payment/computop/computop.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace: ComputopShipment | ||
|
||
include: | ||
- tests/SprykerEcoTest/Zed/ComputopShipment | ||
|
||
paths: | ||
tests: tests | ||
support: . | ||
log: tests/_output | ||
data: tests/_data | ||
envs: tests/_envs | ||
|
||
settings: | ||
suite_class: \PHPUnit_Framework_TestSuite | ||
colors: true | ||
memory_limit: 1024M | ||
log: true | ||
|
||
coverage: | ||
enabled: true | ||
whitelist: { include: ['src/*'] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "spryker-eco/computop-shipment", | ||
"type": "library", | ||
"description": "ComputopShipment module", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=7.4", | ||
"spryker-eco/computop-extension": "^1.0.0", | ||
"spryker/kernel": "^3.30.0", | ||
"spryker/shipment": "^8.0.0", | ||
"spryker/zed-request": "^3.0.0" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "^0.12", | ||
"spryker/code-sniffer": "^0.16", | ||
"spryker/propel": "^3.0.0", | ||
"spryker/quote": "^2.0.0", | ||
"spryker/store": "^1.0.0", | ||
"spryker/testify": "^3.0.0" | ||
}, | ||
"suggest": { | ||
"spryker/quote": "If you want to use DefaultShippingMethodQuoteTransferExpanderPlugin. Minimum required version 1.2.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SprykerEco\\": "src/SprykerEco/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"SprykerEcoTest\\": "tests/SprykerEcoTest/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"cs-check": "phpcs -p -s --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml src/ tests/", | ||
"cs-fix": "phpcbf -p --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml src/ tests/", | ||
"stan": "phpstan analyse -c phpstan.neon -l 8 src/", | ||
"stan-setup": "cp composer.json composer.backup && COMPOSER_MEMORY_LIMIT=-1 composer require --dev phpstan/phpstan:^0.12 && mv composer.backup composer.json" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/spryker-eco/computop-extension" | ||
} | ||
], | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
}, | ||
"config": { | ||
"preferred-install": "dist", | ||
"sort-packages": true, | ||
"process-timeout": 600 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
/** | ||
* Copy over the following configs to your config | ||
*/ | ||
|
||
use SprykerEco\Shared\ComputopShipment\ComputopShipmentConstants; | ||
|
||
$config[ComputopShipmentConstants::PAYPAL_EXPRESS_DEFAULT_SHIPMENT_METHOD_KEY] = 'spryker_dummy_shipment-standard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parameters: | ||
checkGenericClassInNonGenericObjectType: false | ||
checkMissingIterableValueType: false | ||
excludePaths: | ||
ignoreErrors: | ||
- '#Parameter \$.+ of method .+ has invalid typehint type.+#' | ||
- '#Return typehint of method .+ has invalid type.+#' | ||
- '#Call to method.+on an unknown class.+AutoCompletion#' | ||
- '#Call to method .+ on an unknown class Generated\\Shared\\Transfer\\.+#' | ||
- '#Instantiated class Generated\\Shared\\Transfer\\.+ not found.#' | ||
- '#PHPDoc tag @var for variable .+ contains unknown class Generated\\Shared\\Transfer\\.+#' | ||
- '#Parameter .+ expects .+ Generated\\Shared\\Transfer\\.+ given.#' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.