|
30 | 30 | interface ResourceServiceInterface
|
31 | 31 | {
|
32 | 32 | /**
|
33 |
| - * Retrieves an Payout resource via the API using the corresponding Payment or paymentId. |
| 33 | + * Retrieves a Payout resource via the API using the corresponding Payment or paymentId. |
34 | 34 | * The Payout resource can not be fetched using its id since they are unique only within the Payment.
|
35 | 35 | * A Payment can have zero or one Payouts.
|
36 | 36 | *
|
@@ -162,7 +162,7 @@ public function createBasket(Basket $basket): Basket;
|
162 | 162 | public function fetchBasket($basket): Basket;
|
163 | 163 |
|
164 | 164 | /**
|
165 |
| - * Update the a basket resource with the given basket object (id must be set). |
| 165 | + * Update a basket resource with the given basket object (id must be set). |
166 | 166 | *
|
167 | 167 | * @param Basket $basket
|
168 | 168 | *
|
@@ -195,12 +195,12 @@ public function createPaymentType(BasePaymentType $paymentType): BasePaymentType
|
195 | 195 | * @return BasePaymentType|AbstractUnzerResource The updated PaymentType object.
|
196 | 196 | *
|
197 | 197 | * @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
|
198 |
| - * @throws RuntimeException A RuntimeException is thrown when there is a error while using the SDK. |
| 198 | + * @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK. |
199 | 199 | */
|
200 | 200 | public function updatePaymentType(BasePaymentType $paymentType): BasePaymentType;
|
201 | 201 |
|
202 | 202 | /**
|
203 |
| - * Fetch the payment type with the given Id from the API. |
| 203 | + * Fetch the payment type with the given ID from the API. |
204 | 204 | *
|
205 | 205 | * @param string $typeId
|
206 | 206 | *
|
@@ -257,7 +257,7 @@ public function fetchCustomer($customer): Customer;
|
257 | 257 | * @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
|
258 | 258 | * @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK.
|
259 | 259 | */
|
260 |
| - public function fetchCustomerByExtCustomerId(string $customerId): Customer; |
| 260 | + public function fetchCustomerByExtCustomerId(string $customerId, int $version): Customer; |
261 | 261 |
|
262 | 262 | /**
|
263 | 263 | * Update and return a Customer object via API.
|
@@ -325,8 +325,8 @@ public function fetchCharge(Charge $charge): Charge;
|
325 | 325 | * Fetch a chargeback object by combination of payment id, chargeback id and charge id.
|
326 | 326 | * Chargeback ids are not unique to a merchant but to the payment.
|
327 | 327 | *
|
328 |
| - * @param Payment|string $payment The payment object or payment id to fetch the authorization from. |
329 |
| - * @param string $chargebackId The id of the chargeback to fetch. |
| 328 | + * @param string $paymentId The payment object or payment id to fetch the authorization from. |
| 329 | + * @param string $chargebackId The id of the chargeback to fetch. |
330 | 330 | *
|
331 | 331 | * @return Chargeback|AbstractUnzerResource The fetched chargeback.
|
332 | 332 | *
|
|
0 commit comments