Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed phpdoc/constants for Customer, Invoice and TaxID #639

Merged
merged 1 commit into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @property string $id
* @property string $object
* @property int $account_balance
* @property mixed $address
* @property string $created
* @property string $currency
* @property string $default_source
Expand All @@ -19,11 +20,13 @@
* @property mixed $invoice_settings
* @property bool $livemode
* @property StripeObject $metadata
* @property string $name
* @property string $phone
* @property string[] preferred_locales
* @property mixed $shipping
* @property Collection $sources
* @property Collection $subscriptions
* @property mixed $tax_info
* @property mixed $tax_info_verification
* @property Collection $tax_ids
*
* @package Stripe
*/
Expand Down
14 changes: 13 additions & 1 deletion lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
* @property string $id
* @property string $object
* @property string $account_country
* @property string $account_name
* @property int $amount_due
* @property int $amount_paid
* @property int $amount_remaining
Expand All @@ -19,8 +21,15 @@
* @property string $charge
* @property int $created
* @property string $currency
* @property mixed $custom_fields
* @property array $custom_fields
* @property string $customer
* @property mixed $customer_address
* @property string $customer_email
* @property string $customer_name
* @property string $customer_phone
* @property mixed $customer_shipping
* @property array $customer_tax_ids
* @property string $default_payment_method
* @property string $default_source
* @property string $description
* @property Discount $discount
Expand All @@ -35,8 +44,11 @@
* @property int $next_payment_attempt
* @property string $number
* @property bool $paid
* @property string $payment_intent
* @property int $period_end
* @property int $period_start
* @property int $post_payment_credit_notes_amount
* @property int $pre_payment_credit_notes_amount
* @property string $receipt_number
* @property int $starting_balance
* @property string $statement_descriptor
Expand Down
11 changes: 10 additions & 1 deletion lib/TaxId.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @property string $customer
* @property bool $deleted
* @property bool $livemode
* @property type $type
* @property string $type
* @property string $value
* @property mixed $verification
*/
Expand All @@ -34,6 +34,15 @@ class TaxId extends ApiResource
const TYPE_NZ_GST = 'nz_gst';
const TYPE_UNKNOWN = 'unknown';

/**
* Possible string representations of the verification status.
* @link https://stripe.com/docs/api/customer_tax_ids/object#tax_id_object-verification
*/
const VERIFICATION_STATUS_PENDING = 'pending';
const VERIFICATION_STATUS_UNAVAILABLE = 'unavailable';
const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
const VERIFICATION_STATUS_VERIFIED = 'verified';

/**
* @return string The API URL for this tax id.
*/
Expand Down