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

Closed
wants to merge 9 commits into from
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
* 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`
* Add support for `settlement` on `Issuing.Transaction`

## 15.9.0 - 2024-09-12
* [#1737](https://github.com/stripe/stripe-php/pull/1737) Update generated code
* Add support for new resource `InvoiceRenderingTemplate`
* Add support for `all`, `archive`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`

## 15.9.0-beta.1 - 2024-09-05
* [#1738](https://github.com/stripe/stripe-php/pull/1738) Update generated code for beta
* Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1260
v1267
2 changes: 0 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
require __DIR__ . '/lib/PromotionCode.php';
require __DIR__ . '/lib/Quote.php';
require __DIR__ . '/lib/QuoteLine.php';
require __DIR__ . '/lib/QuotePhase.php';
require __DIR__ . '/lib/QuotePreviewInvoice.php';
require __DIR__ . '/lib/QuotePreviewSubscriptionSchedule.php';
require __DIR__ . '/lib/Radar/EarlyFraudWarning.php';
Expand Down Expand Up @@ -278,7 +277,6 @@
require __DIR__ . '/lib/Service/PriceService.php';
require __DIR__ . '/lib/Service/ProductService.php';
require __DIR__ . '/lib/Service/PromotionCodeService.php';
require __DIR__ . '/lib/Service/QuotePhaseService.php';
require __DIR__ . '/lib/Service/QuoteService.php';
require __DIR__ . '/lib/Service/Radar/EarlyFraudWarningService.php';
require __DIR__ . '/lib/Service/Radar/RadarServiceFactory.php';
Expand Down
1 change: 1 addition & 0 deletions lib/ErrorObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class ErrorObject extends StripeObject
const CODE_TERMINAL_READER_BUSY = 'terminal_reader_busy';
const CODE_TERMINAL_READER_COLLECTED_DATA_INVALID = 'terminal_reader_collected_data_invalid';
const CODE_TERMINAL_READER_HARDWARE_FAULT = 'terminal_reader_hardware_fault';
const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_ACTIVATION = 'terminal_reader_invalid_location_for_activation';
const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_PAYMENT = 'terminal_reader_invalid_location_for_payment';
const CODE_TERMINAL_READER_OFFLINE = 'terminal_reader_offline';
const CODE_TERMINAL_READER_TIMEOUT = 'terminal_reader_timeout';
Expand Down
1 change: 1 addition & 0 deletions lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the <code>invoice.created</code> webhook, for example, so you might not want to display that invoice as unpaid to your users.
* @property null|bool $auto_advance Controls whether Stripe performs <a href="https://stripe.com/docs/invoicing/integration/automatic-advancement-collection">automatic collection</a> of the invoice. If <code>false</code>, the invoice's state doesn't automatically advance without an explicit action.
* @property \Stripe\StripeObject $automatic_tax
* @property null|int $automatically_finalizes_at The time when this invoice is currently scheduled to be automatically finalized. The field will be <code>null</code> if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be <code>null</code> - see <code>finalized_at</code> for the time when an already-finalized invoice was finalized.
* @property null|string $billing_reason <p>Indicates the reason why the invoice was created.</p><p>* <code>manual</code>: Unrelated to a subscription, for example, created via the invoice editor. * <code>subscription</code>: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * <code>subscription_create</code>: A new subscription was created. * <code>subscription_cycle</code>: A subscription advanced into a new period. * <code>subscription_threshold</code>: A subscription reached a billing threshold. * <code>subscription_update</code>: A subscription was updated. * <code>upcoming</code>: Reserved for simulated invoices, per the upcoming invoice endpoint.</p>
* @property null|string|\Stripe\Charge $charge ID of the latest charge generated for this invoice, if any.
* @property string $collection_method Either <code>charge_automatically</code>, or <code>send_invoice</code>. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
Expand Down
3 changes: 3 additions & 0 deletions lib/InvoiceRenderingTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
namespace Stripe;

/**
* Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the PDF. Invoice Rendering Templates
* can be created from within the Dashboard, and they can be used over the API when creating invoices.
*
* @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.
Expand Down
76 changes: 0 additions & 76 deletions lib/QuotePhase.php

This file was deleted.

1 change: 1 addition & 0 deletions lib/QuotePreviewInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* @property int $attempt_count Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
* @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the <code>invoice.created</code> webhook, for example, so you might not want to display that invoice as unpaid to your users.
* @property \Stripe\StripeObject $automatic_tax
* @property null|int $automatically_finalizes_at The time when this invoice is currently scheduled to be automatically finalized. The field will be <code>null</code> if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be <code>null</code> - see <code>finalized_at</code> for the time when an already-finalized invoice was finalized.
* @property null|string $billing_reason <p>Indicates the reason why the invoice was created.</p><p>* <code>manual</code>: Unrelated to a subscription, for example, created via the invoice editor. * <code>subscription</code>: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * <code>subscription_create</code>: A new subscription was created. * <code>subscription_cycle</code>: A subscription advanced into a new period. * <code>subscription_threshold</code>: A subscription reached a billing threshold. * <code>subscription_update</code>: A subscription was updated. * <code>upcoming</code>: Reserved for simulated invoices, per the upcoming invoice endpoint.</p>
* @property string $collection_method Either <code>charge_automatically</code>, or <code>send_invoice</code>. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CoreServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
* @property PriceService $prices
* @property ProductService $products
* @property PromotionCodeService $promotionCodes
* @property QuotePhaseService $quotePhases
* @property QuoteService $quotes
* @property Radar\RadarServiceFactory $radar
* @property RefundService $refunds
Expand Down Expand Up @@ -140,7 +139,6 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'prices' => PriceService::class,
'products' => ProductService::class,
'promotionCodes' => PromotionCodeService::class,
'quotePhases' => QuotePhaseService::class,
'quotes' => QuoteService::class,
'radar' => Radar\RadarServiceFactory::class,
'refunds' => RefundService::class,
Expand Down
47 changes: 0 additions & 47 deletions lib/Service/QuotePhaseService.php

This file was deleted.

1 change: 0 additions & 1 deletion lib/StripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
* @property \Stripe\Service\PriceService $prices
* @property \Stripe\Service\ProductService $products
* @property \Stripe\Service\PromotionCodeService $promotionCodes
* @property \Stripe\Service\QuotePhaseService $quotePhases
* @property \Stripe\Service\QuoteService $quotes
* @property \Stripe\Service\Radar\RadarServiceFactory $radar
* @property \Stripe\Service\RefundService $refunds
Expand Down
1 change: 1 addition & 0 deletions lib/Treasury/ReceivedDebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ReceivedDebit extends \Stripe\ApiResource
const FAILURE_CODE_ACCOUNT_CLOSED = 'account_closed';
const FAILURE_CODE_ACCOUNT_FROZEN = 'account_frozen';
const FAILURE_CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
const FAILURE_CODE_INTERNATIONAL_TRANSACTION = 'international_transaction';
const FAILURE_CODE_OTHER = 'other';

const NETWORK_ACH = 'ach';
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 = '2024-06-20';
const PREVIEW = '2024-09-05.preview-v2';
const PREVIEW = 'cs_ubb_launch';
}
1 change: 0 additions & 1 deletion lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class ObjectTypes
\Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class,
\Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class,
\Stripe\QuoteLine::OBJECT_NAME => \Stripe\QuoteLine::class,
\Stripe\QuotePhase::OBJECT_NAME => \Stripe\QuotePhase::class,
\Stripe\QuotePreviewInvoice::OBJECT_NAME => \Stripe\QuotePreviewInvoice::class,
\Stripe\QuotePreviewSubscriptionSchedule::OBJECT_NAME => \Stripe\QuotePreviewSubscriptionSchedule::class,
\Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class,
Expand Down
Loading