-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPSDK-136: Remove PluginDetails as mandatory from the Order Request …
…(#338)
- Loading branch information
1 parent
bb6bc01
commit c41f012
Showing
3 changed files
with
42 additions
and
5 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
29 changes: 29 additions & 0 deletions
29
tests/Fixtures/OrderRequest/OrderRequestWithoutPluginDetails.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,29 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* Copyright © MultiSafepay, Inc. All rights reserved. | ||
* See DISCLAIMER.md for disclaimer details. | ||
*/ | ||
|
||
namespace MultiSafepay\Tests\Fixtures\OrderRequest; | ||
|
||
use MultiSafepay\Api\Transactions\OrderRequest; | ||
|
||
/** | ||
* Trait GenericOrderRequestFixture | ||
* @package MultiSafepay\Tests\Fixtures\OrderRequest | ||
*/ | ||
trait OrderRequestWithoutPluginDetails | ||
{ | ||
/** | ||
* @return OrderRequest | ||
*/ | ||
public function createOrderRequestWithoutPluginDetails(): OrderRequest | ||
{ | ||
$customer = $this->createCustomerDetailsFixture(); | ||
return (new OrderRequest()) | ||
->addOrderId((string)time()) | ||
->addDescription($this->createDescriptionFixture()) | ||
->addCustomer($customer) | ||
->addDelivery($customer); | ||
} | ||
} |
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