From 56f5a904aa576ab54e5f92b013a7b6ad95859f0f Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Tue, 30 Jul 2024 13:27:46 +0200 Subject: [PATCH] Moving RecurringPayment to new namespace --- src/Api/{ => v3}/RecurringPayment.php | 31 +++++++++--------- .../{ => v3}/RecurringPaymentInterface.php | 32 +++++++++---------- .../RecurringPayment/{ => v3}/Agreement.php | 14 ++++---- .../{ => v3}/AgreementInterval.php | 2 +- .../{ => v3}/CampaignRequest.php | 2 +- .../RecurringPayment/{ => v3}/Charge.php | 6 ++-- .../{ => v3}/InitialCharge.php | 2 +- .../RecurringPayment/{ => v3}/Interval.php | 2 +- .../RecurringPayment/{ => v3}/Pricing.php | 2 +- .../{ => v3}/RequestCreateAgreement.php | 18 +++++------ .../{ => v3}/RequestCreateCharge.php | 2 +- .../{ => v3}/RequestRefundCharge.php | 2 +- .../{ => v3}/RequestUpdateAgreement.php | 6 ++-- .../{ => v3}/ResponseCaptureCharge.php | 4 +-- .../{ => v3}/ResponseCreateAgreement.php | 2 +- .../{ => v3}/ResponseCreateCharge.php | 2 +- .../{ => v3}/ResponseGetAgreement.php | 4 +-- .../{ => v3}/ResponseGetCharge.php | 4 +-- .../{ => v3}/ResponseUpdateAgreement.php | 2 +- .../RecurringPayment/{ => v3}/Status.php | 2 +- .../RecurringPayment/{ => v3}/Summary.php | 2 +- .../{ => v3}/TransactionType.php | 2 +- .../{ => v3}/CancelCharge.php | 6 +--- .../{ => v3}/CaptureCharge.php | 6 +--- .../{ => v3}/CreateAgreement.php | 12 +++---- .../{ => v3}/CreateCharge.php | 13 ++++---- .../{ => v3}/GetAgreement.php | 8 ++--- .../{ => v3}/GetAgreements.php | 8 ++--- .../RecurringPayment/{ => v3}/GetCharge.php | 8 ++--- .../RecurringPayment/{ => v3}/GetCharges.php | 8 ++--- .../{ => v3}/RecurringPaymentResourceBase.php | 2 +- .../{ => v3}/RefundCharge.php | 10 ++---- .../{ => v3}/UpdateAgreement.php | 9 +++--- .../Integration/Api/RecurringPaymentsTest.php | 30 ++++++++--------- 34 files changed, 123 insertions(+), 142 deletions(-) rename src/Api/{ => v3}/RecurringPayment.php (80%) rename src/Api/{ => v3}/RecurringPaymentInterface.php (54%) rename src/Model/RecurringPayment/{ => v3}/Agreement.php (87%) rename src/Model/RecurringPayment/{ => v3}/AgreementInterval.php (96%) rename src/Model/RecurringPayment/{ => v3}/CampaignRequest.php (95%) rename src/Model/RecurringPayment/{ => v3}/Charge.php (93%) rename src/Model/RecurringPayment/{ => v3}/InitialCharge.php (97%) rename src/Model/RecurringPayment/{ => v3}/Interval.php (87%) rename src/Model/RecurringPayment/{ => v3}/Pricing.php (96%) rename src/Model/RecurringPayment/{ => v3}/RequestCreateAgreement.php (86%) rename src/Model/RecurringPayment/{ => v3}/RequestCreateCharge.php (97%) rename src/Model/RecurringPayment/{ => v3}/RequestRefundCharge.php (93%) rename src/Model/RecurringPayment/{ => v3}/RequestUpdateAgreement.php (89%) rename src/Model/RecurringPayment/{ => v3}/ResponseCaptureCharge.php (56%) rename src/Model/RecurringPayment/{ => v3}/ResponseCreateAgreement.php (95%) rename src/Model/RecurringPayment/{ => v3}/ResponseCreateCharge.php (88%) rename src/Model/RecurringPayment/{ => v3}/ResponseGetAgreement.php (59%) rename src/Model/RecurringPayment/{ => v3}/ResponseGetCharge.php (57%) rename src/Model/RecurringPayment/{ => v3}/ResponseUpdateAgreement.php (89%) rename src/Model/RecurringPayment/{ => v3}/Status.php (88%) rename src/Model/RecurringPayment/{ => v3}/Summary.php (93%) rename src/Model/RecurringPayment/{ => v3}/TransactionType.php (88%) rename src/Resource/RecurringPayment/{ => v3}/CancelCharge.php (81%) rename src/Resource/RecurringPayment/{ => v3}/CaptureCharge.php (81%) rename src/Resource/RecurringPayment/{ => v3}/CreateAgreement.php (75%) rename src/Resource/RecurringPayment/{ => v3}/CreateCharge.php (76%) rename src/Resource/RecurringPayment/{ => v3}/GetAgreement.php (79%) rename src/Resource/RecurringPayment/{ => v3}/GetAgreements.php (71%) rename src/Resource/RecurringPayment/{ => v3}/GetCharge.php (80%) rename src/Resource/RecurringPayment/{ => v3}/GetCharges.php (79%) rename src/Resource/RecurringPayment/{ => v3}/RecurringPaymentResourceBase.php (96%) rename src/Resource/RecurringPayment/{ => v3}/RefundCharge.php (77%) rename src/Resource/RecurringPayment/{ => v3}/UpdateAgreement.php (79%) diff --git a/src/Api/RecurringPayment.php b/src/Api/v3/RecurringPayment.php similarity index 80% rename from src/Api/RecurringPayment.php rename to src/Api/v3/RecurringPayment.php index 51d98b5..a06d311 100644 --- a/src/Api/RecurringPayment.php +++ b/src/Api/v3/RecurringPayment.php @@ -1,22 +1,23 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\ResponseCreateAgreement $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\ResponseCreateAgreement $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/CreateCharge.php b/src/Resource/RecurringPayment/v3/CreateCharge.php similarity index 76% rename from src/Resource/RecurringPayment/CreateCharge.php rename to src/Resource/RecurringPayment/v3/CreateCharge.php index 377dba3..1675a14 100644 --- a/src/Resource/RecurringPayment/CreateCharge.php +++ b/src/Resource/RecurringPayment/v3/CreateCharge.php @@ -1,12 +1,11 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\ResponseCreateCharge $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\ResponseCreateCharge $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/GetAgreement.php b/src/Resource/RecurringPayment/v3/GetAgreement.php similarity index 79% rename from src/Resource/RecurringPayment/GetAgreement.php rename to src/Resource/RecurringPayment/v3/GetAgreement.php index 30f5079..06f42a7 100644 --- a/src/Resource/RecurringPayment/GetAgreement.php +++ b/src/Resource/RecurringPayment/v3/GetAgreement.php @@ -1,8 +1,8 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\ResponseGetAgreement $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\ResponseGetAgreement $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/GetAgreements.php b/src/Resource/RecurringPayment/v3/GetAgreements.php similarity index 71% rename from src/Resource/RecurringPayment/GetAgreements.php rename to src/Resource/RecurringPayment/v3/GetAgreements.php index 622d3d0..7447685 100644 --- a/src/Resource/RecurringPayment/GetAgreements.php +++ b/src/Resource/RecurringPayment/v3/GetAgreements.php @@ -1,8 +1,8 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\ResponseGetAgreement[] $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\ResponseGetAgreement[] $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/GetCharge.php b/src/Resource/RecurringPayment/v3/GetCharge.php similarity index 80% rename from src/Resource/RecurringPayment/GetCharge.php rename to src/Resource/RecurringPayment/v3/GetCharge.php index 9df81e7..da9abff 100644 --- a/src/Resource/RecurringPayment/GetCharge.php +++ b/src/Resource/RecurringPayment/v3/GetCharge.php @@ -1,8 +1,8 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\Charge $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\Charge $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/GetCharges.php b/src/Resource/RecurringPayment/v3/GetCharges.php similarity index 79% rename from src/Resource/RecurringPayment/GetCharges.php rename to src/Resource/RecurringPayment/v3/GetCharges.php index 210f87a..74dffcc 100644 --- a/src/Resource/RecurringPayment/GetCharges.php +++ b/src/Resource/RecurringPayment/v3/GetCharges.php @@ -1,8 +1,8 @@ makeCall(); $body = $response->getBody()->getContents(); - /** @var \zaporylie\Vipps\Model\RecurringPayment\Charge[] $responseObject */ + /** @var \zaporylie\Vipps\Model\RecurringPayment\v3\Charge[] $responseObject */ $responseObject = $this ->getSerializer() ->deserialize( diff --git a/src/Resource/RecurringPayment/RecurringPaymentResourceBase.php b/src/Resource/RecurringPayment/v3/RecurringPaymentResourceBase.php similarity index 96% rename from src/Resource/RecurringPayment/RecurringPaymentResourceBase.php rename to src/Resource/RecurringPayment/v3/RecurringPaymentResourceBase.php index 7af5980..8ab403f 100644 --- a/src/Resource/RecurringPayment/RecurringPaymentResourceBase.php +++ b/src/Resource/RecurringPayment/v3/RecurringPaymentResourceBase.php @@ -1,6 +1,6 @@