From a804984da1e668b80940ff8496d298921769762b Mon Sep 17 00:00:00 2001 From: Nicolai Cornelis Date: Thu, 25 Apr 2019 15:09:19 +0200 Subject: [PATCH] Added phpdocs for tax_rates Fixed percent_off on Coupon --- lib/Coupon.php | 2 +- lib/Invoice.php | 3 ++- lib/InvoiceItem.php | 1 + lib/InvoiceLineItem.php | 2 ++ lib/Subscription.php | 2 ++ lib/SubscriptionItem.php | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/Coupon.php b/lib/Coupon.php index 9d97e3a9a..51d4fd865 100644 --- a/lib/Coupon.php +++ b/lib/Coupon.php @@ -16,7 +16,7 @@ * @property int $max_redemptions * @property StripeObject $metadata * @property string $name - * @property int $percent_off + * @property float $percent_off * @property int $redeem_by * @property int $times_redeemed * @property bool $valid diff --git a/lib/Invoice.php b/lib/Invoice.php index cc6a6479b..6e0ec9d6b 100644 --- a/lib/Invoice.php +++ b/lib/Invoice.php @@ -31,6 +31,7 @@ * @property array $customer_tax_ids * @property string $default_payment_method * @property string $default_source + * @property array $default_tax_rates * @property string $description * @property Discount $discount * @property int $due_date @@ -58,9 +59,9 @@ * @property int $subscription_proration_date * @property int $subtotal * @property int $tax - * @property float $tax_percent * @property mixed $threshold_reason * @property int $total + * @property array $total_tax_amounts * @property int $webhooks_delivered_at * * @package Stripe diff --git a/lib/InvoiceItem.php b/lib/InvoiceItem.php index 1401564bc..02ca0f2d7 100644 --- a/lib/InvoiceItem.php +++ b/lib/InvoiceItem.php @@ -22,6 +22,7 @@ * @property int $quantity * @property string $subscription * @property string $subscription_item + * @property array $tax_rates * @property int $unit_amount * * @package Stripe diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php index e69c6bbb5..e8e8c881d 100644 --- a/lib/InvoiceLineItem.php +++ b/lib/InvoiceLineItem.php @@ -20,6 +20,8 @@ * @property int $quantity * @property string $subscription * @property string $subscription_item + * @property array $tax_amounts + * @property array $tax_rates * @property string $type * * @package Stripe diff --git a/lib/Subscription.php b/lib/Subscription.php index 4357e932f..8b57d46b6 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -18,7 +18,9 @@ * @property int $current_period_start * @property string $customer * @property int $days_until_due + * @property string $default_payment_method * @property string $default_source + * @property array $default_tax_rates * @property Discount $discount * @property int $ended_at * @property Collection $items diff --git a/lib/SubscriptionItem.php b/lib/SubscriptionItem.php index 22ed8a1d9..5baa540fe 100644 --- a/lib/SubscriptionItem.php +++ b/lib/SubscriptionItem.php @@ -13,6 +13,7 @@ * @property Plan $plan * @property int $quantity * @property string $subscription + * @property array $tax_rates * * @package Stripe */