Skip to content

Commit

Permalink
Merge pull request #11 from Adyen/develop
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
peterojo authored Dec 23, 2022
2 parents 73b0bf7 + 0aa9d4b commit c9dfe40
Show file tree
Hide file tree
Showing 118 changed files with 6,630 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Adyen/php
21 changes: 21 additions & 0 deletions .github/stale.yml
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
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
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
11 changes: 11 additions & 0 deletions .gitignore
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/
44 changes: 44 additions & 0 deletions Api/Data/AdyenPaymentMethodsInterface.php
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;
}
62 changes: 62 additions & 0 deletions Api/Data/ExpressDataInterface.php
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;
}
44 changes: 44 additions & 0 deletions Api/Data/ExtraDetail/AmountInterface.php
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;
}
44 changes: 44 additions & 0 deletions Api/Data/ExtraDetail/ConfigurationInterface.php
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;
}
62 changes: 62 additions & 0 deletions Api/Data/ExtraDetail/IconInterface.php
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;
}
Loading

0 comments on commit c9dfe40

Please sign in to comment.