Skip to content

Commit

Permalink
refactor: rename paymentMethod to method
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Feb 17, 2025
1 parent a14ad6b commit f9752c0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Http/Requests/CreateCustomerPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
?Address $billingAddress = null,
?Address $shippingAddress = null,
?string $locale = null,
?string $paymentMethod = null,
?string $method = null,
?string $issuer = null,
?string $restrictPaymentMethodsToCountry = null,
?Metadata $metadata = null,
Expand All @@ -49,7 +49,7 @@ public function __construct(
$billingAddress,
$shippingAddress,
$locale,
$paymentMethod,
$method,
$issuer,
$restrictPaymentMethodsToCountry,
$metadata,
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Requests/CreateMandateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CreateMandateRequest extends ResourceHydratableRequest implements HasPaylo

public function __construct(
string $customerId,
string $paymentMethod,
string $method,
string $consumerName,
?string $consumerAccount = null,
?string $consumerBic = null,
Expand All @@ -53,7 +53,7 @@ public function __construct(
?string $paypalBillingAgreementId = null
) {
$this->customerId = $customerId;
$this->paymentMethod = $paymentMethod;
$this->paymentMethod = $method;
$this->consumerName = $consumerName;
$this->consumerAccount = $consumerAccount;
$this->consumerBic = $consumerBic;
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Requests/CreatePaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct(
?Address $billingAddress = null,
?Address $shippingAddress = null,
?string $locale = null,
?string $paymentMethod = null,
?string $method = null,
?string $issuer = null,
?string $restrictPaymentMethodsToCountry = null,
?Metadata $metadata = null,
Expand All @@ -121,7 +121,7 @@ public function __construct(
$this->billingAddress = $billingAddress;
$this->shippingAddress = $shippingAddress;
$this->locale = $locale;
$this->paymentMethod = $paymentMethod;
$this->paymentMethod = $method;
$this->issuer = $issuer;
$this->restrictPaymentMethodsToCountry = $restrictPaymentMethodsToCountry;
$this->metadata = $metadata;
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Requests/CreateSubscriptionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(
?string $status = null,
?int $times = null,
?DateTimeInterface $startDate = null,
?string $paymentMethod = null,
?string $method = null,
?ApplicationFee $applicationFee = null,
?Metadata $metadata = null,
?string $webhookUrl = null,
Expand All @@ -74,7 +74,7 @@ public function __construct(
$this->status = $status;
$this->times = $times;
$this->startDate = $startDate;
$this->paymentMethod = $paymentMethod;
$this->paymentMethod = $method;
$this->applicationFee = $applicationFee;
$this->metadata = $metadata;
$this->webhookUrl = $webhookUrl;
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Requests/UpdatePaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
?string $cancelUrl = null,
?string $webhookUrl = null,
?Metadata $metadata = null,
?string $paymentMethod = null,
?string $method = null,
?string $locale = null,
?string $restrictPaymentMethodsToCountry = null,
array $additional = []
Expand All @@ -63,7 +63,7 @@ public function __construct(
$this->cancelUrl = $cancelUrl;
$this->webhookUrl = $webhookUrl;
$this->metadata = $metadata;
$this->paymentMethod = $paymentMethod;
$this->paymentMethod = $method;
$this->locale = $locale;
$this->restrictPaymentMethodsToCountry = $restrictPaymentMethodsToCountry;
$this->additional = $additional;
Expand All @@ -77,7 +77,7 @@ protected function defaultPayload(): array
'cancelUrl' => $this->cancelUrl,
'webhookUrl' => $this->webhookUrl,
'metadata' => $this->metadata,
'paymentMethod' => $this->paymentMethod,
'method' => $this->paymentMethod,
'locale' => $this->locale,
'restrictPaymentMethodsToCountry' => $this->restrictPaymentMethodsToCountry,
], $this->additional);
Expand Down

0 comments on commit f9752c0

Please sign in to comment.