Skip to content

Commit c0e7ebb

Browse files
author
Simon Schurter
committed
Release 1.0.17
1 parent 5e5e523 commit c0e7ebb

File tree

202 files changed

+18050
-2
lines changed

Some content is hidden

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

202 files changed

+18050
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
<?php
2+
/**
3+
* PostFinance Checkout Magento 2
4+
*
5+
* This Magento 2 extension enables to process payments with PostFinance Checkout (https://www.postfinance.ch/).
6+
*
7+
* @package PostFinanceCheckout_Payment
8+
* @author customweb GmbH (http://www.customweb.com/)
9+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
10+
*/
11+
namespace PostFinanceCheckout\Payment\Api\Data;
12+
13+
use Magento\Framework\Api\ExtensibleDataInterface;
14+
15+
/**
16+
* Payment method configuration is an entity that holds information about a PostFinance Checkout payment method.
17+
*
18+
* @api
19+
*/
20+
interface PaymentMethodConfigurationInterface extends ExtensibleDataInterface
21+
{
22+
23+
/**
24+
* Constants for keys of data array.
25+
* Identical to the name of the getter in snake case.
26+
*/
27+
/**
28+
* Configuration ID.
29+
*/
30+
const CONFIGURATION_ID = 'configuration_id';
31+
32+
/**
33+
* Configuration name.
34+
*/
35+
const CONFIGURATION_NAME = 'configuration_name';
36+
37+
/**
38+
* Create-at timestamp.
39+
*/
40+
const CREATED_AT = 'created_at';
41+
42+
/**
43+
* Description.
44+
*/
45+
const DESCRIPTION = 'description';
46+
47+
/**
48+
* Entity ID.
49+
*/
50+
const ENTITY_ID = 'entity_id';
51+
52+
/**
53+
* Image.
54+
*/
55+
const IMAGE = 'image';
56+
57+
/**
58+
* Sort order.
59+
*/
60+
const SORT_ORDER = 'sort_order';
61+
62+
/**
63+
* Space ID.
64+
*/
65+
const SPACE_ID = 'space_id';
66+
67+
/**
68+
* State.
69+
*/
70+
const STATE = 'state';
71+
72+
/**
73+
* Title.
74+
*/
75+
const TITLE = 'title';
76+
77+
/**
78+
* Updated-at timestamp.
79+
*/
80+
const UPDATED_AT = 'updated_at';
81+
82+
/**
83+
* Gets the ID of the payment method configuration.
84+
*
85+
* @return int Configuration ID.
86+
*/
87+
public function getConfigurationId();
88+
89+
/**
90+
* Gets the name of the payment method configuration.
91+
*
92+
* @return string Configuration name.
93+
*/
94+
public function getConfigurationName();
95+
96+
/**
97+
* Gets the created-at timestamp of the payment method configuration.
98+
*
99+
* @return string|null Created-at timestamp.
100+
*/
101+
public function getCreatedAt();
102+
103+
/**
104+
* Gets the translated description of the payment method configuration.
105+
*
106+
* @return array Description.
107+
*/
108+
public function getDescription();
109+
110+
/**
111+
* Gets the ID of the payment method configuration.
112+
*
113+
* @return int Payment method configuration ID.
114+
*/
115+
public function getEntityId();
116+
117+
/**
118+
* Gets the image of the payment method configuration.
119+
*
120+
* @return string Image.
121+
*/
122+
public function getImage();
123+
124+
/**
125+
* Gets the sort order of the payment method configuration.
126+
*
127+
* @return int Sort order.
128+
*/
129+
public function getSortOrder();
130+
131+
/**
132+
* Gets the space ID of the payment method configuration.
133+
*
134+
* @return int Space ID.
135+
*/
136+
public function getSpaceId();
137+
138+
/**
139+
* Gets the state of the payment method configuration.
140+
*
141+
* @return int State.
142+
*/
143+
public function getState();
144+
145+
/**
146+
* Gets the translated title of the payment method configuration.
147+
*
148+
* @return array Title.
149+
*/
150+
public function getTitle();
151+
152+
/**
153+
* Gets the updated-at timestamp of the payment method configuration
154+
*
155+
* @return string Updated-at timestamp.
156+
*/
157+
public function getUpdatedAt();
158+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
/**
3+
* PostFinance Checkout Magento 2
4+
*
5+
* This Magento 2 extension enables to process payments with PostFinance Checkout (https://www.postfinance.ch/).
6+
*
7+
* @package PostFinanceCheckout_Payment
8+
* @author customweb GmbH (http://www.customweb.com/)
9+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
10+
*/
11+
namespace PostFinanceCheckout\Payment\Api\Data;
12+
13+
use Magento\Framework\Api\SearchResultsInterface;
14+
15+
/**
16+
* Interface for PostFinance Checkout payment method configuration search results.
17+
*
18+
* @api
19+
*/
20+
interface PaymentMethodConfigurationSearchResultsInterface extends SearchResultsInterface
21+
{
22+
23+
/**
24+
* Get payment method configurations list.
25+
*
26+
* @return \PostFinanceCheckout\Payment\Api\Data\PaymentMethodConfigurationInterface[]
27+
*/
28+
public function getItems();
29+
30+
/**
31+
* Set payment method configurations list.
32+
*
33+
* @param \PostFinanceCheckout\Payment\Api\Data\PaymentMethodConfigurationInterface[] $items
34+
* @return $this
35+
*/
36+
public function setItems(array $items);
37+
}

Api/Data/RefundJobInterface.php

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?php
2+
/**
3+
* PostFinance Checkout Magento 2
4+
*
5+
* This Magento 2 extension enables to process payments with PostFinance Checkout (https://www.postfinance.ch/).
6+
*
7+
* @package PostFinanceCheckout_Payment
8+
* @author customweb GmbH (http://www.customweb.com/)
9+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
10+
*/
11+
namespace PostFinanceCheckout\Payment\Api\Data;
12+
13+
use Magento\Framework\Api\ExtensibleDataInterface;
14+
15+
/**
16+
* Refund job interface.
17+
*
18+
* A refund job is an entity that holds data about a pending refund to achieve reliability.
19+
*
20+
* @api
21+
*/
22+
interface RefundJobInterface extends ExtensibleDataInterface
23+
{
24+
25+
/**
26+
* Constants for keys of data array.
27+
* Identical to the name of the getter in snake case.
28+
*/
29+
/**
30+
* Create-at timestamp.
31+
*/
32+
const CREATED_AT = 'created_at';
33+
34+
/**
35+
* Entity ID.
36+
*/
37+
const ENTITY_ID = 'entity_id';
38+
39+
/**
40+
* External ID.
41+
*/
42+
const EXTERNAL_ID = 'external_id';
43+
44+
/**
45+
* Order ID.
46+
*/
47+
const ORDER_ID = 'order_id';
48+
49+
/**
50+
* Invoice ID.
51+
*/
52+
const INVOICE_ID = 'invoice_id';
53+
54+
/**
55+
* Payment method ID.
56+
*/
57+
const REFUND = 'refund';
58+
59+
/**
60+
* Space ID.
61+
*/
62+
const SPACE_ID = 'space_id';
63+
64+
/**
65+
* Gets the created-at timestamp of the refund job.
66+
*
67+
* @return string|null Created-at timestamp.
68+
*/
69+
public function getCreatedAt();
70+
71+
/**
72+
* Gets the ID of the refund job.
73+
*
74+
* @return int Refund job ID.
75+
*/
76+
public function getEntityId();
77+
78+
/**
79+
* Gets the external ID of the refund job.
80+
*
81+
* @return string External ID.
82+
*/
83+
public function getExternalId();
84+
85+
/**
86+
* Gets the ID of the order of the refund job.
87+
*
88+
* @return int Order ID.
89+
*/
90+
public function getOrderId();
91+
92+
/**
93+
* Gets the ID of the invoice of the refund job.
94+
*
95+
* @return int Invoice ID.
96+
*/
97+
public function getInvoiceId();
98+
99+
/**
100+
* Gets the refund of the refund job.
101+
*
102+
* @return string Refund.
103+
*/
104+
public function getRefund();
105+
106+
/**
107+
* Gets the space ID of the refund job.
108+
*
109+
* @return int Space ID.
110+
*/
111+
public function getSpaceId();
112+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
/**
3+
* PostFinance Checkout Magento 2
4+
*
5+
* This Magento 2 extension enables to process payments with PostFinance Checkout (https://www.postfinance.ch/).
6+
*
7+
* @package PostFinanceCheckout_Payment
8+
* @author customweb GmbH (http://www.customweb.com/)
9+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
10+
*/
11+
namespace PostFinanceCheckout\Payment\Api\Data;
12+
13+
use Magento\Framework\Api\SearchResultsInterface;
14+
15+
/**
16+
* Interface for PostFinance Checkout refund job search results.
17+
*
18+
* @api
19+
*/
20+
interface RefundJobSearchResultsInterface extends SearchResultsInterface
21+
{
22+
23+
/**
24+
* Get refund jobs list.
25+
*
26+
* @return \PostFinanceCheckout\Payment\Api\Data\RefundJobInterface[]
27+
*/
28+
public function getItems();
29+
30+
/**
31+
* Set refund jobs list.
32+
*
33+
* @param \PostFinanceCheckout\Payment\Api\Data\RefundJobInterface[] $items
34+
* @return $this
35+
*/
36+
public function setItems(array $items);
37+
}

0 commit comments

Comments
 (0)