From 0b213fba3c0ea0f70274465a920dc5ea2aa6f5f7 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Wed, 29 Jan 2020 16:40:40 -0800 Subject: [PATCH] Remove remaining `mixed` types in API resources --- lib/ApplicationFeeRefund.php | 2 +- lib/Capability.php | 2 +- lib/Collection.php | 2 +- lib/CustomerBalanceTransaction.php | 2 +- lib/InvoiceLineItem.php | 6 ++--- lib/Person.php | 36 +++++++++++++++--------------- lib/RecipientTransfer.php | 4 ++-- lib/SourceTransaction.php | 2 +- lib/TaxId.php | 2 +- lib/TransferReversal.php | 2 +- lib/UsageRecordSummary.php | 2 +- 11 files changed, 31 insertions(+), 31 deletions(-) diff --git a/lib/ApplicationFeeRefund.php b/lib/ApplicationFeeRefund.php index 9b8c1b7fa..2400a5b87 100644 --- a/lib/ApplicationFeeRefund.php +++ b/lib/ApplicationFeeRefund.php @@ -12,7 +12,7 @@ * @property int $created * @property string $currency * @property string $fee - * @property StripeObject $metadata + * @property \Stripe\StripeObject $metadata * * @package Stripe */ diff --git a/lib/Capability.php b/lib/Capability.php index 85370cc0f..1680616e6 100644 --- a/lib/Capability.php +++ b/lib/Capability.php @@ -12,7 +12,7 @@ * @property string $account * @property bool $requested * @property int $requested_at - * @property mixed $requirements + * @property \Stripe\StripeObject $requirements * @property string $status */ class Capability extends ApiResource diff --git a/lib/Collection.php b/lib/Collection.php index 7f0127909..e99995de7 100644 --- a/lib/Collection.php +++ b/lib/Collection.php @@ -8,7 +8,7 @@ * @property string $object * @property string $url * @property bool $has_more - * @property mixed $data + * @property \Stripe\StripeObject[] $data * * @package Stripe */ diff --git a/lib/CustomerBalanceTransaction.php b/lib/CustomerBalanceTransaction.php index ac2384f7a..c97460f5f 100644 --- a/lib/CustomerBalanceTransaction.php +++ b/lib/CustomerBalanceTransaction.php @@ -18,7 +18,7 @@ * @property int $ending_balance * @property string $invoice * @property bool $livemode - * @property StripeObject $metadata + * @property \Stripe\StripeObject $metadata * @property string $type */ class CustomerBalanceTransaction extends ApiResource diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php index f73dfb425..ddb8cb8f3 100644 --- a/lib/InvoiceLineItem.php +++ b/lib/InvoiceLineItem.php @@ -13,9 +13,9 @@ * @property bool $discountable * @property string $invoice_item * @property bool $livemode - * @property StripeObject $metadata - * @property mixed $period - * @property Plan $plan + * @property \Stripe\StripeObject $metadata + * @property \Stripe\StripeObject $period + * @property \Stripe\Plan $plan * @property bool $proration * @property int $quantity * @property string $subscription diff --git a/lib/Person.php b/lib/Person.php index 33a2af140..a98045871 100644 --- a/lib/Person.php +++ b/lib/Person.php @@ -10,28 +10,28 @@ * @property string $id * @property string $object * @property string $account - * @property mixed $address - * @property mixed $address_kana - * @property mixed $address_kanji + * @property \Stripe\StripeObject $address + * @property \Stripe\StripeObject|null $address_kana + * @property \Stripe\StripeObject|null $address_kanji * @property int $created * @property bool $deleted - * @property mixed $dob - * @property string $email - * @property string $first_name - * @property string $first_name_kana - * @property string $first_name_kanji - * @property string $gender + * @property \Stripe\StripeObject $dob + * @property string|null $email + * @property string|null $first_name + * @property string|null $first_name_kana + * @property string|null $first_name_kanji + * @property string|null $gender * @property bool $id_number_provided - * @property string $last_name - * @property string $last_name_kana - * @property string $last_name_kanji - * @property string $maiden_name - * @property StripeObject $metadata - * @property string $phone - * @property mixed $relationship - * @property mixed $requirements + * @property string|null $last_name + * @property string|null $last_name_kana + * @property string|null $last_name_kanji + * @property string|null $maiden_name + * @property \Stripe\StripeObject $metadata + * @property string|null $phone + * @property \Stripe\StripeObject $relationship + * @property \Stripe\StripeObject|null $requirements * @property bool $ssn_last_4_provided - * @property mixed $verification + * @property \Stripe\StripeObject $verification */ class Person extends ApiResource { diff --git a/lib/RecipientTransfer.php b/lib/RecipientTransfer.php index c9ca46598..8e16f6bf4 100644 --- a/lib/RecipientTransfer.php +++ b/lib/RecipientTransfer.php @@ -20,10 +20,10 @@ * @property string $failure_code * @property string $failure_message * @property bool $livemode - * @property StripeObject $metadata + * @property \Stripe\StripeObject $metadata * @property string $method * @property string $recipient - * @property mixed $reversals + * @property \Stripe\Collection $reversals * @property bool $reversed * @property string $source_type * @property string $statement_descriptor diff --git a/lib/SourceTransaction.php b/lib/SourceTransaction.php index 057a2092d..3f38c082b 100644 --- a/lib/SourceTransaction.php +++ b/lib/SourceTransaction.php @@ -7,12 +7,12 @@ * * @property string $id * @property string $object + * @property \Stripe\StripeObject $ach_credit_transfer * @property int $amount * @property int $created * @property string $customer_data * @property string $currency * @property string $type - * @property mixed $ach_credit_transfer * * @package Stripe */ diff --git a/lib/TaxId.php b/lib/TaxId.php index 5bbfc11be..4b43c4449 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -15,7 +15,7 @@ * @property bool $livemode * @property string $type * @property string $value - * @property mixed $verification + * @property \Stripe\StripeObject $verification */ class TaxId extends ApiResource { diff --git a/lib/TransferReversal.php b/lib/TransferReversal.php index 3a7712a7d..f3b2f6087 100644 --- a/lib/TransferReversal.php +++ b/lib/TransferReversal.php @@ -12,7 +12,7 @@ * @property int $created * @property string $currency * @property string $destination_payment_refund - * @property StripeObject $metadata + * @property \Stripe\StripeObject $metadata * @property string $source_refund * @property string $transfer * diff --git a/lib/UsageRecordSummary.php b/lib/UsageRecordSummary.php index 1b6479cb4..3292b18c7 100644 --- a/lib/UsageRecordSummary.php +++ b/lib/UsageRecordSummary.php @@ -11,7 +11,7 @@ * @property string $object * @property string $invoice * @property bool $livemode - * @property mixed $period + * @property \Stripe\StripeObject $period * @property string $subscription_item * @property int $total_usage */