Skip to content

Commit f9752c0

Browse files
committed
refactor: rename paymentMethod to method
1 parent a14ad6b commit f9752c0

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/Http/Requests/CreateCustomerPaymentRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525
?Address $billingAddress = null,
2626
?Address $shippingAddress = null,
2727
?string $locale = null,
28-
?string $paymentMethod = null,
28+
?string $method = null,
2929
?string $issuer = null,
3030
?string $restrictPaymentMethodsToCountry = null,
3131
?Metadata $metadata = null,
@@ -49,7 +49,7 @@ public function __construct(
4949
$billingAddress,
5050
$shippingAddress,
5151
$locale,
52-
$paymentMethod,
52+
$method,
5353
$issuer,
5454
$restrictPaymentMethodsToCountry,
5555
$metadata,

src/Http/Requests/CreateMandateRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CreateMandateRequest extends ResourceHydratableRequest implements HasPaylo
4343

4444
public function __construct(
4545
string $customerId,
46-
string $paymentMethod,
46+
string $method,
4747
string $consumerName,
4848
?string $consumerAccount = null,
4949
?string $consumerBic = null,
@@ -53,7 +53,7 @@ public function __construct(
5353
?string $paypalBillingAgreementId = null
5454
) {
5555
$this->customerId = $customerId;
56-
$this->paymentMethod = $paymentMethod;
56+
$this->paymentMethod = $method;
5757
$this->consumerName = $consumerName;
5858
$this->consumerAccount = $consumerAccount;
5959
$this->consumerBic = $consumerBic;

src/Http/Requests/CreatePaymentRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function __construct(
9797
?Address $billingAddress = null,
9898
?Address $shippingAddress = null,
9999
?string $locale = null,
100-
?string $paymentMethod = null,
100+
?string $method = null,
101101
?string $issuer = null,
102102
?string $restrictPaymentMethodsToCountry = null,
103103
?Metadata $metadata = null,
@@ -121,7 +121,7 @@ public function __construct(
121121
$this->billingAddress = $billingAddress;
122122
$this->shippingAddress = $shippingAddress;
123123
$this->locale = $locale;
124-
$this->paymentMethod = $paymentMethod;
124+
$this->paymentMethod = $method;
125125
$this->issuer = $issuer;
126126
$this->restrictPaymentMethodsToCountry = $restrictPaymentMethodsToCountry;
127127
$this->metadata = $metadata;

src/Http/Requests/CreateSubscriptionRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
?string $status = null,
6161
?int $times = null,
6262
?DateTimeInterface $startDate = null,
63-
?string $paymentMethod = null,
63+
?string $method = null,
6464
?ApplicationFee $applicationFee = null,
6565
?Metadata $metadata = null,
6666
?string $webhookUrl = null,
@@ -74,7 +74,7 @@ public function __construct(
7474
$this->status = $status;
7575
$this->times = $times;
7676
$this->startDate = $startDate;
77-
$this->paymentMethod = $paymentMethod;
77+
$this->paymentMethod = $method;
7878
$this->applicationFee = $applicationFee;
7979
$this->metadata = $metadata;
8080
$this->webhookUrl = $webhookUrl;

src/Http/Requests/UpdatePaymentRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(
5252
?string $cancelUrl = null,
5353
?string $webhookUrl = null,
5454
?Metadata $metadata = null,
55-
?string $paymentMethod = null,
55+
?string $method = null,
5656
?string $locale = null,
5757
?string $restrictPaymentMethodsToCountry = null,
5858
array $additional = []
@@ -63,7 +63,7 @@ public function __construct(
6363
$this->cancelUrl = $cancelUrl;
6464
$this->webhookUrl = $webhookUrl;
6565
$this->metadata = $metadata;
66-
$this->paymentMethod = $paymentMethod;
66+
$this->paymentMethod = $method;
6767
$this->locale = $locale;
6868
$this->restrictPaymentMethodsToCountry = $restrictPaymentMethodsToCountry;
6969
$this->additional = $additional;
@@ -77,7 +77,7 @@ protected function defaultPayload(): array
7777
'cancelUrl' => $this->cancelUrl,
7878
'webhookUrl' => $this->webhookUrl,
7979
'metadata' => $this->metadata,
80-
'paymentMethod' => $this->paymentMethod,
80+
'method' => $this->paymentMethod,
8181
'locale' => $this->locale,
8282
'restrictPaymentMethodsToCountry' => $this->restrictPaymentMethodsToCountry,
8383
], $this->additional);

0 commit comments

Comments
 (0)