diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d845a05b..2b6a7a3a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ * [#1541](https://github.com/stripe/stripe-php/pull/1541) Update generated code for beta * Add support for `submit_card` test helper method on resource `Issuing.Card` +## 10.20.0 - 2023-08-03 +* [#1544](https://github.com/stripe/stripe-php/pull/1544) Update generated code +* [#1539](https://github.com/stripe/stripe-php/pull/1539) Update generated code + * Add support for `subscription_details` on `Invoice` + * Add support for new values `sepa_debit_fingerprint` and `us_bank_account_fingerprint` on enum `Radar.ValueList.item_type` + ## 10.20.0-beta.2 - 2023-07-28 * [#1537](https://github.com/stripe/stripe-php/pull/1537) Update generated code for beta * Release specs are identical. diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dae9a81fb..a21df3b6d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v446 \ No newline at end of file +v458 \ No newline at end of file diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php index 3980138fa..23e4fc32d 100644 --- a/lib/BalanceTransaction.php +++ b/lib/BalanceTransaction.php @@ -24,7 +24,7 @@ * @property string $reporting_category Learn more about how reporting categories can help you understand balance transactions from an accounting perspective. * @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related. * @property string $status If the transaction's net funds are available in the Stripe balance yet. Either available or pending. - * @property string $type Transaction type: adjustment, advance, advance_funding, anticipation_repayment, application_fee, application_fee_refund, charge, connect_collection_transfer, contribution, issuing_authorization_hold, issuing_authorization_release, issuing_dispute, issuing_transaction, payment, payment_failure_refund, payment_refund, payout, payout_cancel, payout_failure, refund, refund_failure, reserve_transaction, reserved_funds, stripe_fee, stripe_fx_fee, tax_fee, topup, topup_reversal, transfer, transfer_cancel, transfer_failure, or transfer_refund. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category instead. + * @property string $type Transaction type: adjustment, advance, advance_funding, anticipation_repayment, application_fee, application_fee_refund, charge, connect_collection_transfer, contribution, issuing_authorization_hold, issuing_authorization_release, issuing_dispute, issuing_transaction, payment, payment_failure_refund, payment_refund, payment_reversal, payout, payout_cancel, payout_failure, refund, refund_failure, reserve_transaction, reserved_funds, stripe_fee, stripe_fx_fee, tax_fee, topup, topup_reversal, transfer, transfer_cancel, transfer_failure, or transfer_refund. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category instead. */ class BalanceTransaction extends ApiResource { @@ -49,6 +49,7 @@ class BalanceTransaction extends ApiResource const TYPE_PAYMENT = 'payment'; const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund'; const TYPE_PAYMENT_REFUND = 'payment_refund'; + const TYPE_PAYMENT_REVERSAL = 'payment_reversal'; const TYPE_PAYOUT = 'payout'; const TYPE_PAYOUT_CANCEL = 'payout_cancel'; const TYPE_PAYOUT_FAILURE = 'payout_failure'; diff --git a/lib/Card.php b/lib/Card.php index e5cfe82c3..38de620fe 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -29,14 +29,11 @@ * @property null|string|\Stripe\Customer $customer The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead. * @property null|string $cvc_check If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see Check if a card is valid without a charge. * @property null|bool $default_for_currency Whether this card is the default external account for its currency. - * @property null|string $description A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) * @property null|string $dynamic_last4 (For tokenized numbers only.) The last four digits of the device account number. * @property int $exp_month Two-digit number representing the card's expiration month. * @property int $exp_year Four-digit number representing the card's expiration year. * @property null|string $fingerprint

Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.

Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.

* @property string $funding Card funding type. Can be credit, debit, prepaid, or unknown. - * @property null|string $iin Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) - * @property null|string $issuer The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) * @property string $last4 The last four digits of the card. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name Cardholder name. diff --git a/lib/CreditNoteLineItem.php b/lib/CreditNoteLineItem.php index 31b90d5b3..1df1f8bb3 100644 --- a/lib/CreditNoteLineItem.php +++ b/lib/CreditNoteLineItem.php @@ -5,6 +5,8 @@ namespace Stripe; /** + * The credit note line item object. + * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property int $amount The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. diff --git a/lib/CustomerCashBalanceTransaction.php b/lib/CustomerCashBalanceTransaction.php index 1793247d3..e7d182348 100644 --- a/lib/CustomerCashBalanceTransaction.php +++ b/lib/CustomerCashBalanceTransaction.php @@ -12,6 +12,7 @@ * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. + * @property null|\Stripe\StripeObject $adjusted_for_overdraft * @property null|\Stripe\StripeObject $applied_to_payment * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. @@ -31,6 +32,7 @@ class CustomerCashBalanceTransaction extends ApiResource use ApiOperations\All; use ApiOperations\Retrieve; + const TYPE_ADJUSTED_FOR_OVERDRAFT = 'adjusted_for_overdraft'; const TYPE_APPLIED_TO_PAYMENT = 'applied_to_payment'; const TYPE_FUNDED = 'funded'; const TYPE_FUNDING_REVERSED = 'funding_reversed'; diff --git a/lib/Event.php b/lib/Event.php index 12894d475..636ec6470 100644 --- a/lib/Event.php +++ b/lib/Event.php @@ -214,6 +214,7 @@ class Event extends ApiResource const PROMOTION_CODE_UPDATED = 'promotion_code.updated'; const QUOTE_ACCEPTED = 'quote.accepted'; const QUOTE_ACCEPTING = 'quote.accepting'; + const QUOTE_ACCEPT_FAILED = 'quote.accept_failed'; const QUOTE_CANCELED = 'quote.canceled'; const QUOTE_CREATED = 'quote.created'; const QUOTE_DRAFT = 'quote.draft'; diff --git a/lib/PaymentMethodConfiguration.php b/lib/PaymentMethodConfiguration.php index 6882d7b6b..e2df26214 100644 --- a/lib/PaymentMethodConfiguration.php +++ b/lib/PaymentMethodConfiguration.php @@ -45,6 +45,7 @@ * @property null|string $parent The configuration's parent configuration. * @property null|\Stripe\StripeObject $pay_by_bank * @property null|\Stripe\StripeObject $paynow + * @property null|\Stripe\StripeObject $paypal * @property null|\Stripe\StripeObject $promptpay * @property null|\Stripe\StripeObject $sepa_debit * @property null|\Stripe\StripeObject $sofort diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 9cc5713df..6ab79a7e0 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -160,8 +160,8 @@ public function createPerson($parentId, $params = null, $opts = null) * zero. * * If you want to delete your own account, use the account information tab in your - * account settings instead. + * href="https://dashboard.stripe.com/settings/account">account information tab in + * your account settings instead. * * @param string $id * @param null|array $params @@ -296,9 +296,9 @@ public function retrievePerson($parentId, $id, $params = null, $opts = null) * Custom Only or Custom and Express below. * * To update your own account, use the Dashboard. Refer to our Connect documentation to learn more - * about updating accounts. + * href="https://dashboard.stripe.com/settings/account">Dashboard. Refer to our + * Connect documentation to learn + * more about updating accounts. * * @param string $id * @param null|array $params diff --git a/lib/TaxRate.php b/lib/TaxRate.php index c0bc90262..b210270de 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -16,7 +16,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $description An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. * @property string $display_name The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page. - * @property null|float $effective_percentage Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage does not include the statutory tax rate of non-taxable jurisdictions. + * @property null|float $effective_percentage Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product's taxability and whether the user is registered to collect taxes in the corresponding jurisdiction. * @property bool $inclusive This specifies if the tax rate is inclusive or exclusive. * @property null|string $jurisdiction The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.