|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 16.7.0-beta.1 - 2025-03-18 |
| 4 | +* [#1820](https://github.com/stripe/stripe-php/pull/1820) Beta SDK updates between Open API versions 1473 and 1505 |
| 5 | + Codegen for openapi 1505. |
| 6 | + |
| 7 | + * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader` |
| 8 | +* [#1825](https://github.com/stripe/stripe-php/pull/1825) Results of running formatter |
| 9 | +* [#1823](https://github.com/stripe/stripe-php/pull/1823) Merge from stripe-php master |
| 10 | +* [#1821](https://github.com/stripe/stripe-php/pull/1821) Merge from stripe-php master |
| 11 | +* [#1808](https://github.com/stripe/stripe-php/pull/1808) Update generated code for beta |
| 12 | + |
| 13 | +* [#1803](https://github.com/stripe/stripe-php/pull/1803) Update generated code for beta |
| 14 | + * V2 Events now are subclass of `\Stripe\V2\Event`. |
| 15 | +* [#1796](https://github.com/stripe/stripe-php/pull/1796) Update generated code for beta |
| 16 | + * Add support for `close` method on resource `Treasury.FinancialAccount` |
| 17 | + * Add support for `advice_code` on `StripeError` |
| 18 | + * Add support for `brand_product` on `Card` |
| 19 | + * Add support for `is_default` and `nickname` on `Treasury.FinancialAccount` |
| 20 | +* [#1794](https://github.com/stripe/stripe-php/pull/1794) Improved php type hints |
| 21 | + |
| 22 | + ### Adds Create/Update/Retrieve/Delete/All/Search parameters |
| 23 | + |
| 24 | + You will now be able to get type hints of the keys that can passed without switching out of your IDE. Eg. |
| 25 | + ```php |
| 26 | + * @param null|array{customer:string, components: array} $params |
| 27 | + ``` |
| 28 | + |
| 29 | + <img width="417" alt="PHPStorm IDE with array type hints" src="https://github.com/user-attachments/assets/e914dcda-354f-4df2-b82e-217ad931e71d"> |
| 30 | + |
| 31 | + ### Updated StripeObject class properties |
| 32 | + We changed the type of class properties from `StripeObject` to something more specific. |
| 33 | + |
| 34 | + For example: Invoice settings was defined as a StripeObject in Customer resource. |
| 35 | + |
| 36 | + https://github.com/stripe/stripe-php/blob/bae10cd799404f0f4862ec03810c5ff8ca634b30/lib/Customer.php#L25 |
| 37 | + |
| 38 | + Now you will be able to reference `custom_fields` and `rendering_options` on `customer->invoice_settings` without PHPStan complaining. |
| 39 | + ```php |
| 40 | + * @property object{custom_fields: null|object{name: string, value: string}&\Stripe\StripeObject&\stdClass[], default_payment_method: null|string|\Stripe\PaymentMethod, footer: null|string, rendering_options: null|object{amount_tax_display: null|string, template: null|string}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $invoice_settings |
| 41 | + */ |
| 42 | + ``` |
| 43 | +* [#1792](https://github.com/stripe/stripe-php/pull/1792) Update generated code for beta |
| 44 | + * Add support for `allow_redisplay` on `Card` and `Source` |
| 45 | + * Remove support for `amount_refunded` on `PaymentRecord` |
| 46 | +* [#1790](https://github.com/stripe/stripe-php/pull/1790) Update generated code for beta |
| 47 | + * Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type` |
| 48 | +* [#1788](https://github.com/stripe/stripe-php/pull/1788) Update generated code for beta |
| 49 | + * Add support for `network_advice_code` and `network_decline_code` on `StripeError` |
| 50 | + * Add support for new value `invoice.overpaid` on enum `Event.type` |
| 51 | + * Add support for `adjustable_quantity`, `display`, and `metadata` on `LineItem` |
| 52 | + * Change type of `LineItem.description` from `string` to `nullable(string)` |
| 53 | +* [#1784](https://github.com/stripe/stripe-php/pull/1784) Update generated code for beta |
| 54 | + |
| 55 | +* [#1783](https://github.com/stripe/stripe-php/pull/1783) Update generated code for beta |
| 56 | + * Add support for new resources `Issuing.FraudLiabilityDebit`, `PaymentAttemptRecord`, and `PaymentRecord` |
| 57 | + * Add support for `all` and `retrieve` methods on resources `FraudLiabilityDebit` and `PaymentAttemptRecord` |
| 58 | + * Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt`, `report_payment`, and `retrieve` methods on resource `PaymentRecord` |
| 59 | + * Add support for `adaptive_pricing` on `Checkout.Session` |
| 60 | + * Add support for new values `invoice.payment_attempt_required` and `issuing_fraud_liability_debit.created` on enum `Event.type` |
| 61 | + * Add support for `amount_overpaid` on `Invoice` |
| 62 | + * Add support for new value `li_vat` on enum `TaxId.type` |
| 63 | + * Add support for new value `service_tax` on enum `TaxRate.tax_type` |
| 64 | + * Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `nullable(string)` |
| 65 | +* [#1780](https://github.com/stripe/stripe-php/pull/1780) Update generated code for beta |
| 66 | + * Add support for `trigger_action` method on resource `PaymentIntent` |
| 67 | + * Remove support for value `payout_statement_descriptor_profanity` from enum `StripeError.code` |
| 68 | + * Add support for `id_bank_transfer` on `PaymentMethodConfiguration` and `PaymentMethod` |
| 69 | + * Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethodConfiguration` |
| 70 | +* [#1774](https://github.com/stripe/stripe-php/pull/1774) Update generated code for beta |
| 71 | + * Remove support for value `expired` from enum `Issuing.Authorization.status` |
| 72 | + * Add support for new values `alma`, `gopay`, `qris`, and `shopeepay` on enum `PaymentLink.payment_method_types[]` |
| 73 | + * Add support for `alma` on `PaymentMethodConfiguration` and `PaymentMethod` |
| 74 | + * Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethod` |
| 75 | + * Add support for new values `alma`, `gopay`, `qris`, and `shopeepay` on enum `PaymentMethod.type` |
| 76 | + * Add support for `amazon_pay` on `PaymentMethodDomain` |
| 77 | + * Add support for `au_serr`, `ca_mrdp`, `eu_dac7`, `gb_mrdp`, and `nz_mrdp` on `Tax.Form` |
| 78 | + * Add support for new values `au_serr`, `ca_mrdp`, `eu_dac7`, `gb_mrdp`, and `nz_mrdp` on enum `Tax.Form.type` |
| 79 | +* [#1749](https://github.com/stripe/stripe-php/pull/1749) Update generated code for beta |
| 80 | + * Add support for `submit_card` test helper method on resource `Issuing.Card` |
| 81 | + * Add support for `groups` on `Account` |
| 82 | + * Add support for new value `payout_statement_descriptor_profanity` on enum `StripeError.code` |
| 83 | + * Add support for new value `refund.failed` on enum `Event.type` |
| 84 | + * Add support for `metadata` on `Forwarding.Request` |
| 85 | + * Add support for new value `expired` on enum `Issuing.Authorization.status` |
| 86 | + * Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on `PaymentMethod` |
| 87 | + * Add support for new values `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enum `PaymentMethod.type` |
| 88 | + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enum `TaxId.type` |
| 89 | + * Add support for `flat_amount` and `rate_type` on `TaxRate` |
| 90 | + * Add support for new value `retail_delivery_fee` on enum `TaxRate.tax_type` |
| 91 | +* [#1770](https://github.com/stripe/stripe-php/pull/1770) Merge into beta using the merge script |
| 92 | +* [#1766](https://github.com/stripe/stripe-php/pull/1766) Merge updates from stripe-php master to beta |
| 93 | + |
| 94 | + * The `Preview` class has been removed. Please use [rawRequest](https://github.com/stripe/stripe-php?tab=readme-ov-file#custom-requests) instead which accepts |
| 95 | + * the http method as parameter instead of the dedicated methods in the `Preview` class |
| 96 | + * an `apiMode` of `v1` instead of `standard` and `v2` instead of `preview`. |
| 97 | +* [#1748](https://github.com/stripe/stripe-php/pull/1748) Update generated code for beta |
| 98 | + * Remove support for resource `QuotePhase` |
| 99 | + * Remove support for `list_line_items` and `retrieve` methods on resource `QuotePhase` |
| 100 | + * Add support for new value `rechnung` on enum `PaymentLink.payment_method_types[]` |
| 101 | +* [#1743](https://github.com/stripe/stripe-php/pull/1743) Update generated code for beta |
| 102 | + * Add support for new resources `Issuing.DisputeSettlementDetail` and `Issuing.Settlement` |
| 103 | + * Add support for `all` and `retrieve` methods on resource `DisputeSettlementDetail` |
| 104 | + * Remove support for `all` method on resource `QuotePhase` |
| 105 | + * Add support for new values `issuing_dispute_settlement_detail.created`, `issuing_dispute_settlement_detail.updated`, `issuing_settlement.created`, and `issuing_settlement.updated` on enum `Event.type` |
| 106 | + * Add support for `settlement` on `Issuing.Transaction` |
| 107 | +* [#1738](https://github.com/stripe/stripe-php/pull/1738) Update generated code for beta |
| 108 | + * Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData` |
| 109 | + * Add support for `retrieve` method on resource `ReaderCollectedData` |
| 110 | + * Add support for new value `terminal_reader_collected_data_invalid` on enum `StripeError.code` |
| 111 | + * Add support for new value `billing.meter_error_report.triggered` on enum `Event.type` |
| 112 | + * Add support for `regulatory_reporting_file` on `Issuing.CreditUnderwritingRecord` |
| 113 | + * Add support for new value `mb_way` on enum `PaymentLink.payment_method_types[]` |
| 114 | + * Add support for `mb_way` on `PaymentMethod` |
| 115 | + * Add support for new value `mb_way` on enum `PaymentMethod.type` |
| 116 | +* [#1735](https://github.com/stripe/stripe-php/pull/1735) Update generated code for beta |
| 117 | + * Add support for `collected_information` and `permissions` on `Checkout.Session` |
| 118 | +* [#1730](https://github.com/stripe/stripe-php/pull/1730) Update generated code for beta |
| 119 | + * Add support for new value `custom` on enum `Checkout.Session.ui_mode` |
| 120 | + * Add support for new value `payto` on enum `PaymentLink.payment_method_types[]` |
| 121 | +* [#1728](https://github.com/stripe/stripe-php/pull/1728) Update generated code for beta |
| 122 | + * Add support for `attach_payment` method on resource `Invoice` |
| 123 | + * Add support for `last_price_migration_error` on `SubscriptionSchedule` and `Subscription` |
| 124 | +* [#1723](https://github.com/stripe/stripe-php/pull/1723) Update generated code for beta |
| 125 | + * Add support for new resources `Billing.AlertTriggered`, `Billing.Alert`, and `Tax.Association` |
| 126 | + * Add support for `activate`, `all`, `archive`, `create`, `deactivate`, and `retrieve` methods on resource `Alert` |
| 127 | + * Add support for `find` method on resource `Association` |
| 128 | + * Add support for new values `issuing.account_closed_for_not_providing_business_model_clarification`, `issuing.account_closed_for_not_providing_url_clarification`, and `issuing.account_closed_for_not_providing_use_case_clarification` on enum `AccountNotice.reason` |
| 129 | + * Add support for `async_workflows` on `PaymentIntent` |
| 130 | + * Add support for `payto` on `PaymentMethodConfiguration` |
| 131 | + * Add support for `display_name` on `Treasury.FinancialAccount` |
| 132 | +* [#1720](https://github.com/stripe/stripe-php/pull/1720) Update generated code for beta |
| 133 | + |
| 134 | +* [#1719](https://github.com/stripe/stripe-php/pull/1719) Update generated code for beta |
| 135 | + * Add support for new resource `FinancialConnections.Institution` |
| 136 | + * Add support for `all` and `retrieve` methods on resource `Institution` |
| 137 | + * Add support for new value `balance` on enum `FinancialConnections.Account.subscriptions[]` |
| 138 | +* [#1712](https://github.com/stripe/stripe-php/pull/1712) Update generated code for beta |
| 139 | + |
| 140 | + |
3 | 141 | ## 16.6.0-beta.1 - 2025-02-07
|
4 | 142 | * [#1808](https://github.com/stripe/stripe-php/pull/1808) Update generated code for beta
|
5 | 143 |
|
|
0 commit comments