Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 7bc49cd

Browse files
author
Joan He
authored
Merge pull request #2045 from magento-arcticfoxes/MAGETWO-72487-signifyd
[arcticfoxes] MAGETWO-72487 [2.3] - Move Signifyd to CE
2 parents 225d00b + 33b25e6 commit 7bc49cd

File tree

199 files changed

+16623
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+16623
-266
lines changed

app/code/Magento/Shipping/view/adminhtml/web/js/packages.js

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Signifyd\Api;
7+
8+
/**
9+
* Signifyd case creation interface
10+
*
11+
* Interface of service for new Signifyd case creation and registering it on Magento side.
12+
* Implementation should send request to Signifyd API and create new entity in Magento.
13+
*
14+
* @api
15+
* @since 100.2.0
16+
*/
17+
interface CaseCreationServiceInterface
18+
{
19+
/**
20+
* Create new case for order with specified id.
21+
*
22+
* @param int $orderId
23+
* @return bool
24+
* @throws \Magento\Framework\Exception\NotFoundException If order does not exists
25+
* @throws \Magento\Framework\Exception\AlreadyExistsException If case for $orderId already exists
26+
* @since 100.2.0
27+
*/
28+
public function createForOrder($orderId);
29+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Signifyd\Api;
7+
8+
/**
9+
* Signifyd management interface
10+
* Allows to performs operations with Signifyd cases.
11+
*
12+
* @api
13+
* @since 100.2.0
14+
*/
15+
interface CaseManagementInterface
16+
{
17+
/**
18+
* Creates new Case entity linked to order id.
19+
*
20+
* @param int $orderId
21+
* @return \Magento\Signifyd\Api\Data\CaseInterface
22+
* @throws \Magento\Framework\Exception\NotFoundException If order does not exists
23+
* @throws \Magento\Framework\Exception\AlreadyExistsException If case for $orderId already exists
24+
* @since 100.2.0
25+
*/
26+
public function create($orderId);
27+
28+
/**
29+
* Gets Case entity associated with order id.
30+
*
31+
* @param int $orderId
32+
* @return \Magento\Signifyd\Api\Data\CaseInterface|null
33+
* @since 100.2.0
34+
*/
35+
public function getByOrderId($orderId);
36+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Signifyd\Api;
7+
8+
/**
9+
* Signifyd Case repository interface
10+
*
11+
* @api
12+
* @since 100.2.0
13+
*/
14+
interface CaseRepositoryInterface
15+
{
16+
/**
17+
* Saves case entity.
18+
*
19+
* @param \Magento\Signifyd\Api\Data\CaseInterface $case
20+
* @return \Magento\Signifyd\Api\Data\CaseInterface
21+
* @since 100.2.0
22+
*/
23+
public function save(\Magento\Signifyd\Api\Data\CaseInterface $case);
24+
25+
/**
26+
* Gets case entity by order id.
27+
*
28+
* @param int $id
29+
* @return \Magento\Signifyd\Api\Data\CaseInterface
30+
* @since 100.2.0
31+
*/
32+
public function getById($id);
33+
34+
/**
35+
* Gets entity by Signifyd case id.
36+
*
37+
* @param int $caseId
38+
* @return \Magento\Signifyd\Api\Data\CaseInterface|null
39+
* @since 100.2.0
40+
*/
41+
public function getByCaseId($caseId);
42+
43+
/**
44+
* Deletes case entity.
45+
*
46+
* @param \Magento\Signifyd\Api\Data\CaseInterface $case
47+
* @return bool
48+
* @since 100.2.0
49+
*/
50+
public function delete(\Magento\Signifyd\Api\Data\CaseInterface $case);
51+
52+
/**
53+
* Gets list of case entities.
54+
*
55+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
56+
* @return \Magento\Signifyd\Api\Data\CaseSearchResultsInterface
57+
* @since 100.2.0
58+
*/
59+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
60+
}

0 commit comments

Comments
 (0)