From 2093285d0765c6143d5421442f5981f1cee8794d Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Tue, 30 Jul 2024 12:56:49 +0200 Subject: [PATCH] Move PaymentResourceBase --- src/Resource/Checkout/v3/CreateCheckoutSession.php | 2 +- src/Resource/Checkout/v3/GetCheckoutSession.php | 4 +--- src/Resource/EPayment/v1/CancelPayment.php | 5 +---- src/Resource/EPayment/v1/CapturePayment.php | 6 +----- src/Resource/EPayment/v1/CreatePayment.php | 3 +-- src/Resource/EPayment/v1/GetPayment.php | 2 +- src/Resource/EPayment/v1/GetPaymentEvents.php | 2 +- src/Resource/EPayment/v1/RefundPayment.php | 6 +----- 8 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/Resource/Checkout/v3/CreateCheckoutSession.php b/src/Resource/Checkout/v3/CreateCheckoutSession.php index cb34166..52a2769 100644 --- a/src/Resource/Checkout/v3/CreateCheckoutSession.php +++ b/src/Resource/Checkout/v3/CreateCheckoutSession.php @@ -5,7 +5,7 @@ use zaporylie\Vipps\Model\Checkout\v3\CreateCheckoutSessionRequest; use zaporylie\Vipps\Model\Checkout\v3\CreateCheckoutSessionResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /** diff --git a/src/Resource/Checkout/v3/GetCheckoutSession.php b/src/Resource/Checkout/v3/GetCheckoutSession.php index b48d094..62d1c28 100644 --- a/src/Resource/Checkout/v3/GetCheckoutSession.php +++ b/src/Resource/Checkout/v3/GetCheckoutSession.php @@ -2,11 +2,9 @@ namespace zaporylie\Vipps\Resource\Checkout\v3; -use zaporylie\Vipps\Model\Checkout\v3\CreateCheckoutSessionRequest; -use zaporylie\Vipps\Model\Checkout\v3\CreateCheckoutSessionResponse; use zaporylie\Vipps\Model\Checkout\v3\GetCheckoutSessionResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /** diff --git a/src/Resource/EPayment/v1/CancelPayment.php b/src/Resource/EPayment/v1/CancelPayment.php index dae823d..1f05af0 100644 --- a/src/Resource/EPayment/v1/CancelPayment.php +++ b/src/Resource/EPayment/v1/CancelPayment.php @@ -3,12 +3,9 @@ namespace zaporylie\Vipps\Resource\EPayment\v1; use zaporylie\Vipps\Model\EPayment\v1\CancelModificationRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentResponse; use zaporylie\Vipps\Model\EPayment\v1\PaymentAdjustResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\IdempotencyKeyFactory; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /** diff --git a/src/Resource/EPayment/v1/CapturePayment.php b/src/Resource/EPayment/v1/CapturePayment.php index a2091c5..5b354fb 100644 --- a/src/Resource/EPayment/v1/CapturePayment.php +++ b/src/Resource/EPayment/v1/CapturePayment.php @@ -2,14 +2,10 @@ namespace zaporylie\Vipps\Resource\EPayment\v1; -use zaporylie\Vipps\Model\EPayment\v1\CancelModificationRequest; use zaporylie\Vipps\Model\EPayment\v1\CaptureModificationRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentResponse; use zaporylie\Vipps\Model\EPayment\v1\PaymentAdjustResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\IdempotencyKeyFactory; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /** diff --git a/src/Resource/EPayment/v1/CreatePayment.php b/src/Resource/EPayment/v1/CreatePayment.php index 7e75123..a640720 100644 --- a/src/Resource/EPayment/v1/CreatePayment.php +++ b/src/Resource/EPayment/v1/CreatePayment.php @@ -5,8 +5,7 @@ use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentRequest; use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\IdempotencyKeyFactory; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /** diff --git a/src/Resource/EPayment/v1/GetPayment.php b/src/Resource/EPayment/v1/GetPayment.php index 7895e3e..1f71179 100644 --- a/src/Resource/EPayment/v1/GetPayment.php +++ b/src/Resource/EPayment/v1/GetPayment.php @@ -4,7 +4,7 @@ use zaporylie\Vipps\Model\EPayment\v1\GetPaymentResponse; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; class GetPayment extends PaymentResourceBase diff --git a/src/Resource/EPayment/v1/GetPaymentEvents.php b/src/Resource/EPayment/v1/GetPaymentEvents.php index 72e653a..62149a5 100644 --- a/src/Resource/EPayment/v1/GetPaymentEvents.php +++ b/src/Resource/EPayment/v1/GetPaymentEvents.php @@ -4,7 +4,7 @@ use zaporylie\Vipps\Model\EPayment\v1\EventLog; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; class GetPaymentEvents extends PaymentResourceBase diff --git a/src/Resource/EPayment/v1/RefundPayment.php b/src/Resource/EPayment/v1/RefundPayment.php index 5fa3020..2e20343 100644 --- a/src/Resource/EPayment/v1/RefundPayment.php +++ b/src/Resource/EPayment/v1/RefundPayment.php @@ -2,14 +2,10 @@ namespace zaporylie\Vipps\Resource\EPayment\v1; -use zaporylie\Vipps\Model\EPayment\v1\CancelModificationRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentRequest; -use zaporylie\Vipps\Model\EPayment\v1\CreatePaymentResponse; use zaporylie\Vipps\Model\EPayment\v1\PaymentAdjustResponse; use zaporylie\Vipps\Model\EPayment\v1\RefundModificationRequest; use zaporylie\Vipps\Resource\HttpMethod; -use zaporylie\Vipps\Resource\IdempotencyKeyFactory; -use zaporylie\Vipps\Resource\Payment\PaymentResourceBase; +use zaporylie\Vipps\Resource\PaymentResourceBase; use zaporylie\Vipps\VippsInterface; /**