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 #1578

Merged
merged 19 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5a29196
Enhancement: Use PHP 8.2 as leading PHP version
localheinz Aug 30, 2023
9ca4013
Enhancement: Reference phpunit.xsd as installed with composer
localheinz Aug 31, 2023
ce9445f
Update generated code (#1577)
stripe-openapi[bot] Sep 15, 2023
260aad0
Bump version to 12.3.0
richardm-stripe Sep 15, 2023
efadc30
Merge upstream and update generated code for v532
stripe-openapi[bot] Sep 15, 2023
862861c
Merge branch 'master' into feature/php8.2
richardm-stripe Sep 15, 2023
b449e42
Merge pull request #1565 from localheinz/feature/php8.2
richardm-stripe Sep 15, 2023
f6322f9
Merge branch 'master' into feature/schema
richardm-stripe Sep 15, 2023
9b387b8
Merge pull request #1568 from localheinz/feature/schema
richardm-stripe Sep 15, 2023
0de6154
Merge upstream and update generated code for v533
stripe-openapi[bot] Sep 15, 2023
d48d70a
Fix: Remove squizlabs/php_codesniffer (#1566)
localheinz Sep 18, 2023
39f578b
Merge upstream and update generated code for v533
stripe-openapi[bot] Sep 18, 2023
a38ff29
Update generated code for v535
stripe-openapi[bot] Sep 19, 2023
f7fed04
Update generated code for v536
stripe-openapi[bot] Sep 19, 2023
eedc4ae
Update generated code for v537
stripe-openapi[bot] Sep 20, 2023
2b99592
Update generated code for v538
stripe-openapi[bot] Sep 20, 2023
d7975d8
Update generated code for v539
stripe-openapi[bot] Sep 20, 2023
e17b0aa
Update generated code for v540
stripe-openapi[bot] Sep 21, 2023
9ee8dea
Update generated code for v540
stripe-openapi[bot] Sep 21, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.1"
- "8.2"

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:

- name: Coveralls
run: vendor/bin/php-coveralls -v --coverage_clover='clover.xml' --json_path='coveralls-upload.json'
if: env.COVERALLS_REPO_TOKEN && matrix.php-version == '8.1' && matrix.env == 'AUTOLOAD=1'
if: env.COVERALLS_REPO_TOKEN && matrix.php-version == '8.2' && matrix.env == 'AUTOLOAD=1'
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v532
v540
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^9.0",
"squizlabs/php_codesniffer": "^3.3",
"friendsofphp/php-cs-fixer": "3.5.0",
"phpstan/phpstan": "^1.2",
"php-coveralls/php-coveralls": "^2.5"
Expand Down
2 changes: 1 addition & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @property null|string $email An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.
* @property null|\Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> $external_accounts External accounts (bank accounts and debit cards) currently attached to this account
* @property null|\Stripe\StripeObject $future_requirements
* @property null|\Stripe\Person $individual <p>This is an object representing a person associated with a Stripe account.</p><p>A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform prefilling and account onboarding steps.</p><p>Related guide: <a href="https://stripe.com/docs/connect/identity-verification-api#person-information">Handling identity verification with the API</a></p>
* @property null|\Stripe\Person $individual <p>This is an object representing a person associated with a Stripe account.</p><p>A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform prefilling and account onboarding steps.</p><p>Related guide: <a href="https://stripe.com/docs/connect/handling-api-verification#person-information">Handling identity verification with the API</a></p>
* @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 Stripe can send payouts to this account.
* @property null|\Stripe\StripeObject $requirements
Expand Down
1 change: 0 additions & 1 deletion lib/ConfirmationToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* @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 $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string $customer ID of the Customer this ConfirmationToken belongs to.
* @property null|int $expires_at Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent. This is set to null once this ConfirmationToken has been used.
* @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 null|\Stripe\StripeObject $mandate_data Data used for generating a Mandate.
Expand Down
1 change: 1 addition & 0 deletions lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class Event extends ApiResource
const IDENTITY_VERIFICATION_SESSION_VERIFIED = 'identity.verification_session.verified';
const INVOICEITEM_CREATED = 'invoiceitem.created';
const INVOICEITEM_DELETED = 'invoiceitem.deleted';
const INVOICEITEM_UPDATED = 'invoiceitem.updated';
const INVOICE_CREATED = 'invoice.created';
const INVOICE_DELETED = 'invoice.deleted';
const INVOICE_FINALIZATION_FAILED = 'invoice.finalization_failed';
Expand Down
20 changes: 10 additions & 10 deletions lib/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
namespace Stripe;

/**
* This is an object representing a file hosted on Stripe's servers. The
* file may have been uploaded by yourself using the <a href="https://stripe.com/docs/api#create_file">create file</a>
* request (for example, when uploading dispute evidence) or it may have
* been created by Stripe (for example, the results of a <a href="#scheduled_queries">Sigma scheduled
* This object represents files hosted on Stripe's servers. You can upload
* files with the <a href="https://stripe.com/docs/api#create_file">create file</a> request
* (for example, when uploading dispute evidence). Stripe also
* creates files independetly (for example, the results of a <a href="#scheduled_queries">Sigma scheduled
* query</a>).
*
* Related guide: <a href="https://stripe.com/docs/file-upload">File upload guide</a>
*
* @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 $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds.
* @property null|string $filename A filename for the file, suitable for saving to a filesystem.
* @property null|int $expires_at The file expires and isn't available at this time in epoch seconds.
* @property null|string $filename The suitable name for saving the file to a filesystem.
* @property null|\Stripe\Collection<\Stripe\FileLink> $links A list of <a href="https://stripe.com/docs/api#file_links">file links</a> that point at this file.
* @property string $purpose The <a href="https://stripe.com/docs/file-upload#uploading-a-file">purpose</a> of the uploaded file.
* @property int $size The size in bytes of the file object.
* @property null|string $title A user friendly title for the document.
* @property null|string $type The type of the file returned (e.g., <code>csv</code>, <code>pdf</code>, <code>jpg</code>, or <code>png</code>).
* @property null|string $url The URL from which the file can be downloaded using your live secret API key.
* @property int $size The size of the file object in bytes.
* @property null|string $title A suitable title for the document.
* @property null|string $type The returned file type (for example, <code>csv</code>, <code>pdf</code>, <code>jpg</code>, or <code>png</code>).
* @property null|string $url Use your live secret API key to download the file from this URL.
*/
class File extends ApiResource
{
Expand Down
6 changes: 3 additions & 3 deletions lib/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

/**
* To share the contents of a <code>File</code> object with non-Stripe users, you can
* create a <code>FileLink</code>. <code>FileLink</code>s contain a URL that can be used to
* create a <code>FileLink</code>. <code>FileLink</code>s contain a URL that you can use to
* retrieve the contents of the file without authentication.
*
* @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 $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property bool $expired Whether this link is already expired.
* @property null|int $expires_at Time at which the link expires.
* @property bool $expired Returns if the link is already expired.
* @property null|int $expires_at Time that the link expires.
* @property string|\Stripe\File $file The file object this link points to.
* @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.
Expand Down
1 change: 1 addition & 0 deletions lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
* @property null|\Stripe\StripeObject $from_invoice Details of the invoice that was cloned. See the <a href="https://stripe.com/docs/invoicing/invoice-revisions">revision documentation</a> for more details.
* @property null|string $hosted_invoice_url The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
* @property null|string $invoice_pdf The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
* @property null|\Stripe\StripeObject $issuer The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
* @property null|\Stripe\StripeObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
* @property null|string|\Stripe\Invoice $latest_revision The ID of the most recent non-draft revision of this invoice
* @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. <code>lines</code> is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
Expand Down
2 changes: 1 addition & 1 deletion lib/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
* See the <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform prefilling and account onboarding steps.
*
* Related guide: <a href="https://stripe.com/docs/connect/identity-verification-api#person-information">Handling identity verification with the API</a>
* Related guide: <a href="https://stripe.com/docs/connect/handling-api-verification#person-information">Handling identity verification with the API</a>
*
* @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.
Expand Down
1 change: 1 addition & 0 deletions lib/QuotePreviewInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
* @property null|int $ending_balance Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
* @property null|string $footer Footer displayed on the invoice.
* @property null|\Stripe\StripeObject $from_invoice Details of the invoice that was cloned. See the <a href="https://stripe.com/docs/invoicing/invoice-revisions">revision documentation</a> for more details.
* @property null|\Stripe\StripeObject $issuer The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
* @property null|\Stripe\StripeObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
* @property null|string|\Stripe\Invoice $latest_revision The ID of the most recent non-draft revision of this invoice
* @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. <code>lines</code> is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
Expand Down
13 changes: 6 additions & 7 deletions lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
class FileService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of the files that your account has access to. The files are
* returned sorted by creation date, with the most recently created files appearing
* first.
* Returns a list of the files that your account has access to. Stripe sorts and
* returns the files by their creation dates, placing the most recently created
* files at the top.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
Expand All @@ -24,10 +24,9 @@ public function all($params = null, $opts = null)
}

/**
* Retrieves the details of an existing file object. Supply the unique file ID from
* a file, and Stripe will return the corresponding file object. To access file
* contents, see the <a href="/docs/file-upload#download-file-contents">File Upload
* Guide</a>.
* Retrieves the details of an existing file object. After you supply a unique file
* ID, Stripe returns the corresponding file object. Learn how to <a
* href="/docs/file-upload#download-file-contents">access file contents</a>.
*
* @param string $id
* @param null|array $params
Expand Down
20 changes: 10 additions & 10 deletions lib/Service/Issuing/AuthorizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public function all($params = null, $opts = null)
}

/**
* Approves a pending Issuing <code>Authorization</code> object. This request
* should be made within the timeout window of the <a
* [Deprecated] Approves a pending Issuing <code>Authorization</code> object. This
* request should be made within the timeout window of the <a
* href="/docs/issuing/controls/real-time-authorizations">real-time
* authorization</a> flow. You can also respond directly to the webhook request to
* approve an authorization (preferred). More details can be found <a
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
* authorization</a> flow. This method is deprecated. Instead, <a
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond
* directly to the webhook request to approve an authorization</a>.
*
* @param string $id
* @param null|array $params
Expand All @@ -45,12 +45,12 @@ public function approve($id, $params = null, $opts = null)
}

/**
* Declines a pending Issuing <code>Authorization</code> object. This request
* should be made within the timeout window of the <a
* [Deprecated] Declines a pending Issuing <code>Authorization</code> object. This
* request should be made within the timeout window of the <a
* href="/docs/issuing/controls/real-time-authorizations">real time
* authorization</a> flow. You can also respond directly to the webhook request to
* decline an authorization (preferred). More details can be found <a
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
* authorization</a> flow. This method is deprecated. Instead, <a
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond
* directly to the webhook request to decline an authorization</a>.
*
* @param string $id
* @param null|array $params
Expand Down
8 changes: 4 additions & 4 deletions lib/Service/PaymentIntentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ public function search($params = null, $opts = null)
/**
* Updates properties on a PaymentIntent object without confirming.
*
* Depending on which properties you update, you may need to confirm the
* PaymentIntent again. For example, updating the <code>payment_method</code> will
* always require you to confirm the PaymentIntent again. If you prefer to update
* and confirm at the same time, we recommend updating properties via the <a
* Depending on which properties you update, you might need to confirm the
* PaymentIntent again. For example, updating the <code>payment_method</code>
* always requires you to confirm the PaymentIntent again. If you prefer to update
* and confirm at the same time, we recommend updating properties through the <a
* href="/docs/api/payment_intents/confirm">confirm API</a> instead.
*
* @param string $id
Expand Down
6 changes: 3 additions & 3 deletions lib/TaxId.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
namespace Stripe;

/**
* You can add one or multiple tax IDs to a <a href="https://stripe.com/docs/api/customers">customer</a>.
* A customer's tax IDs are displayed on invoices and credit notes issued for the customer.
* You can add one or multiple tax IDs to a <a href="https://stripe.com/docs/api/customers">customer</a> or account.
* Customer and account tax IDs get displayed on related invoices and credit notes.
*
* Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-ids">Customer tax identification numbers</a>
* Related guides: <a href="https://stripe.com/docs/billing/taxes/tax-ids">Customer tax identification numbers</a>, <a href="https://stripe.com/docs/invoicing/connect#account-tax-ids">Account tax IDs</a>
*
* @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.
Expand Down
2 changes: 1 addition & 1 deletion lib/Util/ApiVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
class ApiVersion
{
const CURRENT = '2023-08-16';
const PREVIEW = '2023-08-11.preview-v2';
const PREVIEW = '2023-09-15.preview-v2';
}
7 changes: 6 additions & 1 deletion phpunit.no_autoload.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<phpunit bootstrap="tests/bootstrap.no_autoload.php" colors="true">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.no_autoload.php"
colors="true"
>
<php>
<env name="IS_RUNNING_PHPUNIT" value="true"/>
</php>
Expand Down
7 changes: 6 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
>
<php>
<env name="IS_RUNNING_PHPUNIT" value="true"/>
</php>
Expand Down