diff --git a/src/Billable.php b/src/Billable.php index d8e5756..c2ba392 100644 --- a/src/Billable.php +++ b/src/Billable.php @@ -40,9 +40,9 @@ public function stripeAccountOptions(array $options = [], bool $sendAsAccount = if ($sendAsAccount && $this->hasStripeAccountId()) { $options['stripe_account'] = $this->stripeAccountId(); } - - // Workaround for Cashier 12.x - if (version_compare(Cashier::VERSION, '12.15.0', '<=') { + + // Workaround for Cashier 12.x + if (version_compare(Cashier::VERSION, '12.15.0', '<=')) { return array_merge(Cashier::stripeOptions($options)); } diff --git a/src/Concerns/ManagesPayout.php b/src/Concerns/ManagesPayout.php index 535aa68..7d50630 100644 --- a/src/Concerns/ManagesPayout.php +++ b/src/Concerns/ManagesPayout.php @@ -3,7 +3,6 @@ namespace ExpDev07\CashierConnect\Concerns; -use Carbon\Traits\Date; use ExpDev07\CashierConnect\Exceptions\AccountNotFoundException; use Illuminate\Support\Str; use Stripe\Exception\ApiErrorException; @@ -21,13 +20,12 @@ trait ManagesPayout * Pay * * @param int $amount Amount to be transferred to your bank account or debit card. - * @param Date $arrival Date the payout is expected to arrive in the bank. * @param string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @param array $options * @return Payout * @throws AccountNotFoundException|ApiErrorException */ - public function payoutStripeAccount(int $amount, Date $arrival, string $currency = 'USD', array $options = []): Payout + public function payoutStripeAccount(int $amount, string $currency = 'USD', array $options = []): Payout { $this->assertAccountExists(); @@ -35,7 +33,6 @@ public function payoutStripeAccount(int $amount, Date $arrival, string $currency $options = array_merge($options, [ 'amount' => $amount, 'currency' => Str::lower($currency), - 'arrival_date' => $arrival->timestamp, ]); return Payout::create($options, $this->stripeAccountOptions([], true)); diff --git a/src/Concerns/ManagesTransfer.php b/src/Concerns/ManagesTransfer.php index 45674ac..4181520 100644 --- a/src/Concerns/ManagesTransfer.php +++ b/src/Concerns/ManagesTransfer.php @@ -50,7 +50,7 @@ public function transferToStripeAccount(int $amount, string $currency = 'USD', a * @return TransferReversal * @throws AccountNotFoundException|ApiErrorException */ - public function reverseTransferFromStripeAccount(Transfer $transfer, $refundFee = false, ?int $amount, array $options = []): TransferReversal + public function reverseTransferFromStripeAccount(Transfer $transfer, bool $refundFee = false, ?int $amount = null, array $options = []): TransferReversal { $this->assertAccountExists();