-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Adyen/develop
Release 1.0.0
- Loading branch information
Showing
118 changed files
with
6,630 additions
and
0 deletions.
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 @@ | ||
* @Adyen/php |
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 @@ | ||
# Configuration for probot-stale - https://github.com/probot/stale | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 14 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- Validating request | ||
- Bug report | ||
- Bug | ||
- Enhancement | ||
# Label to use when marking an issue as stale | ||
staleLabel: Stale | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
closeComment: > | ||
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. | ||
only: issues |
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,31 @@ | ||
on: ["push", "pull_request"] | ||
name: Main Workflow | ||
|
||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-version: [ 7.4, 8.0, 8.1 ] | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v1 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: TruffleHog OSS | ||
uses: trufflesecurity/trufflehog@main | ||
with: | ||
path: ./ | ||
base: ${{ github.event.repository.default_branch }} | ||
head: HEAD | ||
extra_args: --debug --only-verified |
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,11 @@ | ||
# OS | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# IDE and local environment | ||
.vscode/ | ||
.vagrant/ | ||
.idea/ | ||
|
||
# Packages | ||
vendor/ |
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,44 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Adyen\ExpressCheckout\Api\Data; | ||
|
||
interface AdyenPaymentMethodsInterface | ||
{ | ||
public const EXTRA_DETAILS = 'extra_details'; | ||
public const METHODS_RESPONSE = 'methods_response'; | ||
|
||
/** | ||
* Get Payment Methods Extra Details | ||
* | ||
* @return \Adyen\ExpressCheckout\Api\Data\ExtraDetailInterface[] | ||
*/ | ||
public function getExtraDetails(): array; | ||
|
||
/** | ||
* Set Payment Methods Extra Details | ||
* | ||
* @param \Adyen\ExpressCheckout\Api\Data\ExtraDetailInterface[] | ||
* @return void | ||
*/ | ||
public function setExtraDetails( | ||
array $extraDetails | ||
): void; | ||
|
||
/** | ||
* Get Payment Methods Response | ||
* | ||
* @return \Adyen\ExpressCheckout\Api\Data\MethodResponseInterface[] | ||
*/ | ||
public function getMethodsResponse(): array; | ||
|
||
/** | ||
* Set Payment Methods Response | ||
* | ||
* @param \Adyen\ExpressCheckout\Api\Data\MethodResponseInterface[] | ||
* @return void | ||
*/ | ||
public function setMethodsResponse( | ||
array $maskedQuoteId | ||
): void; | ||
} |
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,62 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Adyen\ExpressCheckout\Api\Data; | ||
|
||
interface ExpressDataInterface | ||
{ | ||
public const MASKED_QUOTE_ID = 'masked_quote_id'; | ||
public const ADYEN_PAYMENT_METHODS = 'adyen_payment_methods'; | ||
public const TOTALS = 'totals'; | ||
|
||
/** | ||
* Get Masked Quote ID | ||
* | ||
* @return string|null | ||
*/ | ||
public function getMaskedQuoteId(): ?string; | ||
|
||
/** | ||
* Set Masked Quote ID | ||
* | ||
* @param string $maskedQuoteId | ||
* @return void | ||
*/ | ||
public function setMaskedQuoteId( | ||
string $maskedQuoteId | ||
): void; | ||
|
||
/** | ||
* Get Adyen Payment Methods data | ||
* | ||
* @return \Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface|null | ||
*/ | ||
public function getAdyenPaymentMethods(): ?\Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface; | ||
|
||
/** | ||
* Set Adyen Payment Methods data | ||
* | ||
* @param \Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface $adyenPaymentMethods | ||
* @return void | ||
*/ | ||
public function setAdyenPaymentMethods( | ||
\Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface $adyenPaymentMethods | ||
): void; | ||
|
||
/** | ||
* Get Totals For Expres Checkout Data | ||
* | ||
* @return \Magento\Quote\Api\Data\TotalsInterface|null | ||
*/ | ||
public function getTotals(): ?\Magento\Quote\Api\Data\TotalsInterface; | ||
|
||
/** | ||
* Set Totals For Expres Checkout Data | ||
* | ||
* @param \Magento\Quote\Api\Data\TotalsInterface $totals | ||
* @return void | ||
*/ | ||
public function setTotals( | ||
\Magento\Quote\Api\Data\TotalsInterface $totals | ||
): void; | ||
} |
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,44 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail; | ||
|
||
interface AmountInterface | ||
{ | ||
public const VALUE = 'value'; | ||
public const CURRENCY = 'currency'; | ||
|
||
/** | ||
* Get Configuration Value | ||
* | ||
* @return int | ||
*/ | ||
public function getValue(): int; | ||
|
||
/** | ||
* Set Configuration Value | ||
* | ||
* @param int | ||
* @return void | ||
*/ | ||
public function setValue( | ||
int $amount | ||
): void; | ||
|
||
/** | ||
* Get Configuration Currency | ||
* | ||
* @return string|null | ||
*/ | ||
public function getCurrency(): ?string; | ||
|
||
/** | ||
* Set Configuration Currency | ||
* | ||
* @param string | ||
* @return void | ||
*/ | ||
public function setCurrency( | ||
string $currency | ||
): void; | ||
} |
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,44 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail; | ||
|
||
interface ConfigurationInterface | ||
{ | ||
public const AMOUNT = 'amount'; | ||
public const CURRENCY = 'currency'; | ||
|
||
/** | ||
* Get Configuration Amount | ||
* | ||
* @return \Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface|null | ||
*/ | ||
public function getAmount(): ?\Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface; | ||
|
||
/** | ||
* Set Configuration Amount | ||
* | ||
* @param \Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface | ||
* @return void | ||
*/ | ||
public function setAmount( | ||
\Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface $amount | ||
): void; | ||
|
||
/** | ||
* Get Configuration Currency | ||
* | ||
* @return string|null | ||
*/ | ||
public function getCurrency(): ?string; | ||
|
||
/** | ||
* Set Configuration Currency | ||
* | ||
* @param string | ||
* @return void | ||
*/ | ||
public function setCurrency( | ||
string $currency | ||
): void; | ||
} |
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,62 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail; | ||
|
||
interface IconInterface | ||
{ | ||
public const URL = 'url'; | ||
public const WIDTH = 'width'; | ||
public const HEIGHT = 'height'; | ||
|
||
/** | ||
* Get Icon Width | ||
* | ||
* @return int | ||
*/ | ||
public function getWidth(): int; | ||
|
||
/** | ||
* Set Icon Width | ||
* | ||
* @param int | ||
* @return void | ||
*/ | ||
public function setWidth( | ||
int $width | ||
): void; | ||
|
||
/** | ||
* Get Icon Height | ||
* | ||
* @return int | ||
*/ | ||
public function getHeight(): int; | ||
|
||
/** | ||
* Set Icon Height | ||
* | ||
* @param int | ||
* @return void | ||
*/ | ||
public function setHeight( | ||
int $height | ||
): void; | ||
|
||
/** | ||
* Get Icon URL | ||
* | ||
* @return string|null | ||
*/ | ||
public function getUrl(): ?string; | ||
|
||
/** | ||
* Set Icon URL | ||
* | ||
* @param string | ||
* @return void | ||
*/ | ||
public function setUrl( | ||
string $url | ||
): void; | ||
} |
Oops, something went wrong.