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

Update generated code for beta #1814

Open
wants to merge 58 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
5608fe7
Update generated code (#1793)
stripe-openapi[bot] Dec 18, 2024
4aa8609
Bump version to 16.4.0
jar-stripe Dec 18, 2024
d89ed48
Added pull request template (#1797)
jar-stripe Dec 19, 2024
e2b61e0
Add justfile, remove coveralls, and fix AUTOLOAD in CI (#1801)
xavdid-stripe Jan 9, 2025
1f04972
ensure dependencies are installed for format and test recipes (#1802)
xavdid-stripe Jan 9, 2025
a815f85
Added CONTRIBUTING.md file (#1806)
jar-stripe Jan 16, 2025
9fe9d51
minor justfile fixes (#1807)
xavdid-stripe Jan 16, 2025
e81186f
made v2 event class concrete, and changed convertToStripeObject to us…
jar-stripe Jan 17, 2025
742c0c1
Update generated code (#1804)
stripe-openapi[bot] Jan 27, 2025
3fb2225
Bump version to 16.5.0
helenye-stripe Jan 27, 2025
4dd0463
Make `httpClient()` a public, static method (#1810)
dejagersh Jan 29, 2025
067658d
Raise a more descriptive error if null bytes are found in the path (#…
xavdid-stripe Feb 5, 2025
931c31f
change error thrown for null byte issues (#1813)
xavdid-stripe Feb 5, 2025
05c7c3a
Bump version to 16.5.1
xavdid-stripe Feb 7, 2025
97c9a6e
Merge upstream and update generated code for v1473
stripe-openapi[bot] Feb 7, 2025
6d13fd6
Update generated code for v1479
stripe-openapi[bot] Feb 10, 2025
6d92521
Update generated code for v1481
stripe-openapi[bot] Feb 11, 2025
b37d51d
Update generated code for v1485
stripe-openapi[bot] Feb 12, 2025
0c581d1
Update generated code for v1487
stripe-openapi[bot] Feb 12, 2025
423f222
add codeowners file (#1816)
xavdid-stripe Feb 13, 2025
4f5488f
Merge upstream and update generated code for v1488
stripe-openapi[bot] Feb 13, 2025
880e139
Update generated code for v1490
stripe-openapi[bot] Feb 13, 2025
88291b2
Update generated code for v1491
stripe-openapi[bot] Feb 13, 2025
20f9f78
Update generated code for v1493
stripe-openapi[bot] Feb 14, 2025
98bea26
Update generated code for v1494
stripe-openapi[bot] Feb 14, 2025
a690a2c
Update generated code for v1495
stripe-openapi[bot] Feb 14, 2025
3a9f95e
Update generated code for v1495
stripe-openapi[bot] Feb 14, 2025
7a39415
Update generated code for v1496
stripe-openapi[bot] Feb 19, 2025
2c74e26
Update generated code for v1502
stripe-openapi[bot] Feb 21, 2025
e125ac0
Update generated code for v1504
stripe-openapi[bot] Feb 24, 2025
51537e6
Update generated code for v1505
stripe-openapi[bot] Feb 24, 2025
5adf067
Update generated code for v1505
stripe-openapi[bot] Feb 24, 2025
bbe3bab
Update generated code (#1809)
stripe-openapi[bot] Feb 24, 2025
d6de0a5
Bump version to 16.6.0
prathmesh-stripe Feb 24, 2025
4bd1867
Merge upstream and update generated code for v1506
stripe-openapi[bot] Feb 25, 2025
eec2cb8
Update generated code for v1507
stripe-openapi[bot] Feb 25, 2025
369cc3c
Update generated code for v1508
stripe-openapi[bot] Feb 25, 2025
430d8c0
Update generated code for v1511
stripe-openapi[bot] Feb 27, 2025
643d4f2
Update generated code for v1512
stripe-openapi[bot] Feb 27, 2025
deee68f
Update generated code for v1516
stripe-openapi[bot] Feb 27, 2025
5d40a17
Update generated code for v1517
stripe-openapi[bot] Feb 27, 2025
12be4d3
Update generated code for v1518
stripe-openapi[bot] Feb 28, 2025
ea3f791
Update generated code for v1520
stripe-openapi[bot] Feb 28, 2025
6d4655d
Update generated code for v1520
stripe-openapi[bot] Feb 28, 2025
9fcb147
Update generated code for v1521
stripe-openapi[bot] Feb 28, 2025
219fae0
Fixed changelog (#1819)
prathmesh-stripe Mar 3, 2025
bd20c06
Merge upstream and update generated code for v1522
stripe-openapi[bot] Mar 3, 2025
d05b25b
Update generated code for v1523
stripe-openapi[bot] Mar 3, 2025
15c46dd
Update generated code for v1525
stripe-openapi[bot] Mar 4, 2025
c775ba0
Update generated code for v1527
stripe-openapi[bot] Mar 5, 2025
745cf82
Update generated code for v1528
stripe-openapi[bot] Mar 5, 2025
6861a64
Update generated code for v1529
stripe-openapi[bot] Mar 5, 2025
c5fd0eb
Update generated code for v1532
stripe-openapi[bot] Mar 7, 2025
fa8efd0
Update generated code for v1533
stripe-openapi[bot] Mar 7, 2025
59b8468
Update generated code for v1535
stripe-openapi[bot] Mar 7, 2025
50b4177
Update generated code for v1536
stripe-openapi[bot] Mar 7, 2025
00f9b72
Update generated code for v1538
stripe-openapi[bot] Mar 7, 2025
cf36fcb
Update generated code for v1540
stripe-openapi[bot] Mar 8, 2025
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
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# All files should be reviewed by a member of the SDKs team
* @stripe/api-library-reviewers
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# Changelog

## 16.6.0 - 2025-02-24
* [#1809](https://github.com/stripe/stripe-php/pull/1809) Update generated code
* Add support for `priority` on `Billing.CreditGrant`
* Add support for `collected_information` on `Checkout.Session`
* [#1816](https://github.com/stripe/stripe-php/pull/1816) add codeowners file

## 16.6.0-beta.1 - 2025-02-07
* [#1808](https://github.com/stripe/stripe-php/pull/1808) Update generated code for beta

## 16.5.1 - 2025-02-07
* [#1811](https://github.com/stripe/stripe-php/pull/1811) Include a useful error message when a null byte is found in the URL path
* [#1810](https://github.com/stripe/stripe-php/pull/1810) Make `httpClient()` a public, static method

## 16.5.0 - 2025-01-27
* [#1804](https://github.com/stripe/stripe-php/pull/1804) Update generated code
* Add support for `close` method on resource `Treasury.FinancialAccount`
* Add support for `advice_code` on `StripeError`
* Add support for `discounts` on `Checkout.Session`
* Add support for new value `pay_by_bank` on enum `PaymentLink.payment_method_types[]`
* Add support for `pay_by_bank` on `PaymentMethodConfiguration` and `PaymentMethod`
Expand Down Expand Up @@ -58,7 +66,6 @@

## 16.4.0 - 2024-12-18
* [#1793](https://github.com/stripe/stripe-php/pull/1793) This release changes the pinned API version to `2024-12-18.acacia`.
* Add support for `network_advice_code` and `network_decline_code` on `StripeError`
* Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type`
* Add support for `allow_redisplay` on `Card` and `Source`
* Add support for `regulated_status` on `Card`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1472
v1540
2 changes: 1 addition & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|bool $payouts_enabled Whether the funds in this account can be paid out.
* @property (object{alternatives: null|(object{alternative_fields_due: string[], original_fields_due: string[]}&\Stripe\StripeObject&\stdClass)[], current_deadline: null|int, currently_due: null|string[], disabled_reason: null|string, errors: null|(object{code: string, reason: string, requirement: string}&\Stripe\StripeObject&\stdClass)[], eventually_due: null|string[], past_due: null|string[], pending_verification: null|string[]}&\Stripe\StripeObject&\stdClass) $requirements
* @property null|(object{charges: (object{pause_requested: bool}&\Stripe\StripeObject&\stdClass), payouts: (object{pause_requested: bool}&\Stripe\StripeObject&\stdClass), rejected_reason?: string}&\Stripe\StripeObject&\stdClass) $risk_controls
* @property (object{charges: (object{pause_requested: bool}&\Stripe\StripeObject&\stdClass), payouts: (object{pause_requested: bool}&\Stripe\StripeObject&\stdClass), rejected_reason?: null|string}&\Stripe\StripeObject&\stdClass) $risk_controls
* @property null|(object{bacs_debit_payments?: (object{display_name: null|string, service_user_number: null|string}&\Stripe\StripeObject&\stdClass), bank_bca_onboarding?: (object{account_holder_name?: string, business_account_number?: string}&\Stripe\StripeObject&\stdClass), branding: (object{icon: null|string|\Stripe\File, logo: null|string|\Stripe\File, primary_color: null|string, secondary_color: null|string}&\Stripe\StripeObject&\stdClass), capital?: (object{payout_destination?: \Stripe\StripeObject, payout_destination_selector?: \Stripe\StripeObject}&\Stripe\StripeObject&\stdClass), card_issuing?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass), card_payments: (object{decline_on?: (object{avs_failure: bool, cvc_failure: bool}&\Stripe\StripeObject&\stdClass), statement_descriptor_prefix: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&\Stripe\StripeObject&\stdClass), dashboard: (object{display_name: null|string, timezone: null|string}&\Stripe\StripeObject&\stdClass), invoices?: (object{default_account_tax_ids: null|(string|\Stripe\TaxId)[]}&\Stripe\StripeObject&\stdClass), payments: (object{statement_descriptor: null|string, statement_descriptor_kana: null|string, statement_descriptor_kanji: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&\Stripe\StripeObject&\stdClass), payouts?: (object{debit_negative_balances: bool, schedule: (object{delay_days: int, interval: string, monthly_anchor?: int, weekly_anchor?: string}&\Stripe\StripeObject&\stdClass), statement_descriptor: null|string}&\Stripe\StripeObject&\stdClass), sepa_debit_payments?: (object{creditor_id?: string}&\Stripe\StripeObject&\stdClass), tax_forms?: (object{consented_to_paperless_delivery: bool}&\Stripe\StripeObject&\stdClass), treasury?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass)}&\Stripe\StripeObject&\stdClass) $settings Options for customizing how the account functions within Stripe.
* @property (object{date?: null|int, ip?: null|string, service_agreement?: string, user_agent?: null|string}&\Stripe\StripeObject&\stdClass) $tos_acceptance
* @property null|string $type The Stripe account type. Can be <code>standard</code>, <code>express</code>, <code>custom</code>, or <code>none</code>.
Expand Down
2 changes: 1 addition & 1 deletion lib/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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|string|\Stripe\Account $account The ID of the account that the bank account is associated with.
* @property null|string|\Stripe\Account $account The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an <a href="/api/external_account_bank_accounts/object">External Account</a> where <a href="/api/accounts/object#account_object-controller-is_controller">controller.is_controller</a> is <code>true</code>.
* @property null|string $account_holder_name The name of the person or business that owns the bank account.
* @property null|string $account_holder_type The type of entity that holds the account. This can be either <code>individual</code> or <code>company</code>.
* @property null|string $account_type The bank account type. This can only be <code>checking</code> or <code>savings</code> in most countries. In Japan, this can only be <code>futsu</code> or <code>toza</code>.
Expand Down
3 changes: 2 additions & 1 deletion lib/Billing/CreditGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> 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 A descriptive name shown in dashboard.
* @property null|int $priority The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
* @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this credit grant belongs to.
* @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
* @property null|int $voided_at The time when this credit grant was voided. If not present, the credit grant hasn't been voided.
Expand All @@ -37,7 +38,7 @@ class CreditGrant extends \Stripe\ApiResource
/**
* Creates a credit grant.
*
* @param null|array{amount: array{monetary?: array{currency: string, value: int}, type: string}, applicability_config: array{scope: array{price_type: string, prices?: array{id: string}[]}}, category: string, customer: string, effective_at?: int, expand?: string[], expires_at?: int, metadata?: \Stripe\StripeObject, name?: string} $params
* @param null|array{amount: array{monetary?: array{currency: string, value: int}, type: string}, applicability_config: array{scope: array{price_type?: string, prices?: array{id: string}[]}}, category: string, customer: string, effective_at?: int, expand?: string[], expires_at?: int, metadata?: \Stripe\StripeObject, name?: string, priority?: int} $params
* @param null|array|string $options
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
4 changes: 2 additions & 2 deletions lib/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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|string|\Stripe\Account $account The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts.
* @property null|string|\Stripe\Account $account
* @property null|string $address_city City/District/Suburb/Town/Village.
* @property null|string $address_country Billing address country, if provided when creating card.
* @property null|string $address_line1 Address line 1 (Street address/PO Box/Company name).
Expand All @@ -27,7 +27,7 @@
* @property string $brand Card brand. Can be <code>American Express</code>, <code>Diners Club</code>, <code>Discover</code>, <code>Eftpos Australia</code>, <code>Girocard</code>, <code>JCB</code>, <code>MasterCard</code>, <code>UnionPay</code>, <code>Visa</code>, or <code>Unknown</code>.
* @property null|string $brand_product The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
* @property null|string $country Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
* @property null|string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO code for currency</a> in lowercase. Must be a <a href="https://docs.stripe.com/currencies">supported currency</a>. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts.
* @property null|string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO code for currency</a> in lowercase. Must be a <a href="https://docs.stripe.com/currencies">supported currency</a>. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available when returned as an <a href="/api/external_account_cards/object">External Account</a> where <a href="/api/accounts/object#account_object-controller-is_controller">controller.is_controller</a> is <code>true</code>.
* @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: <code>pass</code>, <code>fail</code>, <code>unavailable</code>, or <code>unchecked</code>. 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 <a href="https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge">Check if a card is valid without a charge</a>.
* @property null|bool $default_for_currency Whether this card is the default external account for its currency. This property is only available for accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts.
Expand Down
Loading