diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36b38b470..877717c91 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog
+## 10.16.0 - 2023-06-29
+* [#1517](https://github.com/stripe/stripe-php/pull/1517) Update generated code
+ * Add support for new value `application_fees_not_allowed` on enum `StripeError.code`
+ * Add support for `effective_at` on `CreditNote` and `Invoice`
+ * Add support for `on_behalf_of` on `Mandate`
+* [#1514](https://github.com/stripe/stripe-php/pull/1514) Update generated code
+ * Release specs are identical.
+* [#1512](https://github.com/stripe/stripe-php/pull/1512) Update generated code
+ * Change type of `Checkout.Session.success_url` from `string` to `nullable(string)`
+
## 10.16.0-beta.1 - 2023-06-22
* [#1515](https://github.com/stripe/stripe-php/pull/1515) Update generated code for beta
* Add support for new resource `CustomerSession`
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 252569fdf..103b9dcfb 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v393
\ No newline at end of file
+v406
\ No newline at end of file
diff --git a/init.php b/init.php
index 7a0779168..e69f13a0e 100644
--- a/init.php
+++ b/init.php
@@ -78,7 +78,6 @@
require __DIR__ . '/lib/BaseStripeClient.php';
require __DIR__ . '/lib/StripeClient.php';
-// Stripe API Resources
require __DIR__ . '/lib/Account.php';
require __DIR__ . '/lib/AccountLink.php';
require __DIR__ . '/lib/AccountSession.php';
@@ -162,64 +161,26 @@
require __DIR__ . '/lib/Reporting/ReportType.php';
require __DIR__ . '/lib/Review.php';
require __DIR__ . '/lib/SearchResult.php';
-require __DIR__ . '/lib/SetupAttempt.php';
-require __DIR__ . '/lib/SetupIntent.php';
-require __DIR__ . '/lib/ShippingRate.php';
-require __DIR__ . '/lib/Sigma/ScheduledQueryRun.php';
-require __DIR__ . '/lib/Source.php';
-require __DIR__ . '/lib/SourceTransaction.php';
-require __DIR__ . '/lib/Subscription.php';
-require __DIR__ . '/lib/SubscriptionItem.php';
-require __DIR__ . '/lib/SubscriptionSchedule.php';
-require __DIR__ . '/lib/Tax/Calculation.php';
-require __DIR__ . '/lib/Tax/CalculationLineItem.php';
-require __DIR__ . '/lib/Tax/Registration.php';
-require __DIR__ . '/lib/Tax/Settings.php';
-require __DIR__ . '/lib/Tax/Transaction.php';
-require __DIR__ . '/lib/Tax/TransactionLineItem.php';
-require __DIR__ . '/lib/TaxCode.php';
-require __DIR__ . '/lib/TaxId.php';
-require __DIR__ . '/lib/TaxRate.php';
-require __DIR__ . '/lib/Terminal/Configuration.php';
-require __DIR__ . '/lib/Terminal/ConnectionToken.php';
-require __DIR__ . '/lib/Terminal/Location.php';
-require __DIR__ . '/lib/Terminal/Reader.php';
-require __DIR__ . '/lib/TestHelpers/TestClock.php';
-require __DIR__ . '/lib/Token.php';
-require __DIR__ . '/lib/Topup.php';
-require __DIR__ . '/lib/Transfer.php';
-require __DIR__ . '/lib/TransferReversal.php';
-require __DIR__ . '/lib/Treasury/CreditReversal.php';
-require __DIR__ . '/lib/Treasury/DebitReversal.php';
-require __DIR__ . '/lib/Treasury/FinancialAccount.php';
-require __DIR__ . '/lib/Treasury/FinancialAccountFeatures.php';
-require __DIR__ . '/lib/Treasury/InboundTransfer.php';
-require __DIR__ . '/lib/Treasury/OutboundPayment.php';
-require __DIR__ . '/lib/Treasury/OutboundTransfer.php';
-require __DIR__ . '/lib/Treasury/ReceivedCredit.php';
-require __DIR__ . '/lib/Treasury/ReceivedDebit.php';
-require __DIR__ . '/lib/Treasury/Transaction.php';
-require __DIR__ . '/lib/Treasury/TransactionEntry.php';
-require __DIR__ . '/lib/UsageRecord.php';
-require __DIR__ . '/lib/UsageRecordSummary.php';
-require __DIR__ . '/lib/WebhookEndpoint.php';
-
-// Services
-require __DIR__ . '/lib/Service/AccountService.php';
require __DIR__ . '/lib/Service/AccountLinkService.php';
+require __DIR__ . '/lib/Service/AccountService.php';
require __DIR__ . '/lib/Service/AccountSessionService.php';
require __DIR__ . '/lib/Service/ApplePayDomainService.php';
require __DIR__ . '/lib/Service/ApplicationFeeService.php';
+require __DIR__ . '/lib/Service/Apps/AppsServiceFactory.php';
require __DIR__ . '/lib/Service/Apps/SecretService.php';
require __DIR__ . '/lib/Service/BalanceService.php';
require __DIR__ . '/lib/Service/BalanceTransactionService.php';
+require __DIR__ . '/lib/Service/BillingPortal/BillingPortalServiceFactory.php';
require __DIR__ . '/lib/Service/BillingPortal/ConfigurationService.php';
require __DIR__ . '/lib/Service/BillingPortal/SessionService.php';
+require __DIR__ . '/lib/Service/Capital/CapitalServiceFactory.php';
require __DIR__ . '/lib/Service/Capital/FinancingOfferService.php';
require __DIR__ . '/lib/Service/Capital/FinancingSummaryService.php';
require __DIR__ . '/lib/Service/Capital/FinancingTransactionService.php';
require __DIR__ . '/lib/Service/ChargeService.php';
+require __DIR__ . '/lib/Service/Checkout/CheckoutServiceFactory.php';
require __DIR__ . '/lib/Service/Checkout/SessionService.php';
+require __DIR__ . '/lib/Service/CoreServiceFactory.php';
require __DIR__ . '/lib/Service/CountrySpecService.php';
require __DIR__ . '/lib/Service/CouponService.php';
require __DIR__ . '/lib/Service/CreditNoteService.php';
@@ -229,23 +190,27 @@
require __DIR__ . '/lib/Service/EphemeralKeyService.php';
require __DIR__ . '/lib/Service/EventService.php';
require __DIR__ . '/lib/Service/ExchangeRateService.php';
-require __DIR__ . '/lib/Service/FileService.php';
require __DIR__ . '/lib/Service/FileLinkService.php';
+require __DIR__ . '/lib/Service/FileService.php';
require __DIR__ . '/lib/Service/FinancialConnections/AccountService.php';
+require __DIR__ . '/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php';
require __DIR__ . '/lib/Service/FinancialConnections/SessionService.php';
require __DIR__ . '/lib/Service/FinancialConnections/TransactionService.php';
require __DIR__ . '/lib/Service/GiftCards/CardService.php';
+require __DIR__ . '/lib/Service/GiftCards/GiftCardsServiceFactory.php';
require __DIR__ . '/lib/Service/GiftCards/TransactionService.php';
+require __DIR__ . '/lib/Service/Identity/IdentityServiceFactory.php';
require __DIR__ . '/lib/Service/Identity/VerificationReportService.php';
require __DIR__ . '/lib/Service/Identity/VerificationSessionService.php';
-require __DIR__ . '/lib/Service/InvoiceService.php';
require __DIR__ . '/lib/Service/InvoiceItemService.php';
+require __DIR__ . '/lib/Service/InvoiceService.php';
require __DIR__ . '/lib/Service/Issuing/AuthorizationService.php';
-require __DIR__ . '/lib/Service/Issuing/CardService.php';
require __DIR__ . '/lib/Service/Issuing/CardBundleService.php';
require __DIR__ . '/lib/Service/Issuing/CardDesignService.php';
+require __DIR__ . '/lib/Service/Issuing/CardService.php';
require __DIR__ . '/lib/Service/Issuing/CardholderService.php';
require __DIR__ . '/lib/Service/Issuing/DisputeService.php';
+require __DIR__ . '/lib/Service/Issuing/IssuingServiceFactory.php';
require __DIR__ . '/lib/Service/Issuing/TransactionService.php';
require __DIR__ . '/lib/Service/MandateService.php';
require __DIR__ . '/lib/Service/OrderService.php';
@@ -257,26 +222,30 @@
require __DIR__ . '/lib/Service/PriceService.php';
require __DIR__ . '/lib/Service/ProductService.php';
require __DIR__ . '/lib/Service/PromotionCodeService.php';
-require __DIR__ . '/lib/Service/QuoteService.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/ValueListService.php';
+require __DIR__ . '/lib/Service/Radar/RadarServiceFactory.php';
require __DIR__ . '/lib/Service/Radar/ValueListItemService.php';
+require __DIR__ . '/lib/Service/Radar/ValueListService.php';
require __DIR__ . '/lib/Service/RefundService.php';
require __DIR__ . '/lib/Service/Reporting/ReportRunService.php';
require __DIR__ . '/lib/Service/Reporting/ReportTypeService.php';
+require __DIR__ . '/lib/Service/Reporting/ReportingServiceFactory.php';
require __DIR__ . '/lib/Service/ReviewService.php';
require __DIR__ . '/lib/Service/SetupAttemptService.php';
require __DIR__ . '/lib/Service/SetupIntentService.php';
require __DIR__ . '/lib/Service/ShippingRateService.php';
require __DIR__ . '/lib/Service/Sigma/ScheduledQueryRunService.php';
+require __DIR__ . '/lib/Service/Sigma/SigmaServiceFactory.php';
require __DIR__ . '/lib/Service/SourceService.php';
-require __DIR__ . '/lib/Service/SubscriptionService.php';
require __DIR__ . '/lib/Service/SubscriptionItemService.php';
require __DIR__ . '/lib/Service/SubscriptionScheduleService.php';
+require __DIR__ . '/lib/Service/SubscriptionService.php';
require __DIR__ . '/lib/Service/Tax/CalculationService.php';
require __DIR__ . '/lib/Service/Tax/RegistrationService.php';
-require __DIR__ . '/lib/Service/Tax/SettingsService.php';
+require __DIR__ . '/lib/Service/Tax/SettingService.php';
+require __DIR__ . '/lib/Service/Tax/TaxServiceFactory.php';
require __DIR__ . '/lib/Service/Tax/TransactionService.php';
require __DIR__ . '/lib/Service/TaxCodeService.php';
require __DIR__ . '/lib/Service/TaxRateService.php';
@@ -284,17 +253,22 @@
require __DIR__ . '/lib/Service/Terminal/ConnectionTokenService.php';
require __DIR__ . '/lib/Service/Terminal/LocationService.php';
require __DIR__ . '/lib/Service/Terminal/ReaderService.php';
+require __DIR__ . '/lib/Service/Terminal/TerminalServiceFactory.php';
require __DIR__ . '/lib/Service/TestHelpers/CustomerService.php';
-require __DIR__ . '/lib/Service/TestHelpers/Issuing/CardService.php';
require __DIR__ . '/lib/Service/TestHelpers/Issuing/CardDesignService.php';
+require __DIR__ . '/lib/Service/TestHelpers/Issuing/CardService.php';
+require __DIR__ . '/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php';
require __DIR__ . '/lib/Service/TestHelpers/RefundService.php';
require __DIR__ . '/lib/Service/TestHelpers/Terminal/ReaderService.php';
+require __DIR__ . '/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php';
require __DIR__ . '/lib/Service/TestHelpers/TestClockService.php';
+require __DIR__ . '/lib/Service/TestHelpers/TestHelpersServiceFactory.php';
require __DIR__ . '/lib/Service/TestHelpers/Treasury/InboundTransferService.php';
require __DIR__ . '/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php';
require __DIR__ . '/lib/Service/TestHelpers/Treasury/OutboundTransferService.php';
require __DIR__ . '/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php';
require __DIR__ . '/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php';
+require __DIR__ . '/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php';
require __DIR__ . '/lib/Service/TokenService.php';
require __DIR__ . '/lib/Service/TopupService.php';
require __DIR__ . '/lib/Service/TransferService.php';
@@ -306,30 +280,51 @@
require __DIR__ . '/lib/Service/Treasury/OutboundTransferService.php';
require __DIR__ . '/lib/Service/Treasury/ReceivedCreditService.php';
require __DIR__ . '/lib/Service/Treasury/ReceivedDebitService.php';
-require __DIR__ . '/lib/Service/Treasury/TransactionService.php';
require __DIR__ . '/lib/Service/Treasury/TransactionEntryService.php';
-require __DIR__ . '/lib/Service/WebhookEndpointService.php';
-
-// Service factories
-require __DIR__ . '/lib/Service/Apps/AppsServiceFactory.php';
-require __DIR__ . '/lib/Service/BillingPortal/BillingPortalServiceFactory.php';
-require __DIR__ . '/lib/Service/Capital/CapitalServiceFactory.php';
-require __DIR__ . '/lib/Service/Checkout/CheckoutServiceFactory.php';
-require __DIR__ . '/lib/Service/CoreServiceFactory.php';
-require __DIR__ . '/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php';
-require __DIR__ . '/lib/Service/GiftCards/GiftCardsServiceFactory.php';
-require __DIR__ . '/lib/Service/Identity/IdentityServiceFactory.php';
-require __DIR__ . '/lib/Service/Issuing/IssuingServiceFactory.php';
-require __DIR__ . '/lib/Service/Radar/RadarServiceFactory.php';
-require __DIR__ . '/lib/Service/Reporting/ReportingServiceFactory.php';
-require __DIR__ . '/lib/Service/Sigma/SigmaServiceFactory.php';
-require __DIR__ . '/lib/Service/Tax/TaxServiceFactory.php';
-require __DIR__ . '/lib/Service/Terminal/TerminalServiceFactory.php';
-require __DIR__ . '/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php';
-require __DIR__ . '/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php';
-require __DIR__ . '/lib/Service/TestHelpers/TestHelpersServiceFactory.php';
-require __DIR__ . '/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php';
+require __DIR__ . '/lib/Service/Treasury/TransactionService.php';
require __DIR__ . '/lib/Service/Treasury/TreasuryServiceFactory.php';
+require __DIR__ . '/lib/Service/WebhookEndpointService.php';
+require __DIR__ . '/lib/SetupAttempt.php';
+require __DIR__ . '/lib/SetupIntent.php';
+require __DIR__ . '/lib/ShippingRate.php';
+require __DIR__ . '/lib/Sigma/ScheduledQueryRun.php';
+require __DIR__ . '/lib/Source.php';
+require __DIR__ . '/lib/SourceTransaction.php';
+require __DIR__ . '/lib/Subscription.php';
+require __DIR__ . '/lib/SubscriptionItem.php';
+require __DIR__ . '/lib/SubscriptionSchedule.php';
+require __DIR__ . '/lib/Tax/Calculation.php';
+require __DIR__ . '/lib/Tax/CalculationLineItem.php';
+require __DIR__ . '/lib/Tax/Registration.php';
+require __DIR__ . '/lib/Tax/Settings.php';
+require __DIR__ . '/lib/Tax/Transaction.php';
+require __DIR__ . '/lib/Tax/TransactionLineItem.php';
+require __DIR__ . '/lib/TaxCode.php';
+require __DIR__ . '/lib/TaxId.php';
+require __DIR__ . '/lib/TaxRate.php';
+require __DIR__ . '/lib/Terminal/Configuration.php';
+require __DIR__ . '/lib/Terminal/ConnectionToken.php';
+require __DIR__ . '/lib/Terminal/Location.php';
+require __DIR__ . '/lib/Terminal/Reader.php';
+require __DIR__ . '/lib/TestHelpers/TestClock.php';
+require __DIR__ . '/lib/Token.php';
+require __DIR__ . '/lib/Topup.php';
+require __DIR__ . '/lib/Transfer.php';
+require __DIR__ . '/lib/TransferReversal.php';
+require __DIR__ . '/lib/Treasury/CreditReversal.php';
+require __DIR__ . '/lib/Treasury/DebitReversal.php';
+require __DIR__ . '/lib/Treasury/FinancialAccount.php';
+require __DIR__ . '/lib/Treasury/FinancialAccountFeatures.php';
+require __DIR__ . '/lib/Treasury/InboundTransfer.php';
+require __DIR__ . '/lib/Treasury/OutboundPayment.php';
+require __DIR__ . '/lib/Treasury/OutboundTransfer.php';
+require __DIR__ . '/lib/Treasury/ReceivedCredit.php';
+require __DIR__ . '/lib/Treasury/ReceivedDebit.php';
+require __DIR__ . '/lib/Treasury/Transaction.php';
+require __DIR__ . '/lib/Treasury/TransactionEntry.php';
+require __DIR__ . '/lib/UsageRecord.php';
+require __DIR__ . '/lib/UsageRecordSummary.php';
+require __DIR__ . '/lib/WebhookEndpoint.php';
// OAuth
require __DIR__ . '/lib/OAuth.php';
diff --git a/lib/CreditNote.php b/lib/CreditNote.php
index d0987e366..736fe1b2a 100644
--- a/lib/CreditNote.php
+++ b/lib/CreditNote.php
@@ -19,6 +19,7 @@
* @property null|string|\Stripe\CustomerBalanceTransaction $customer_balance_transaction Customer balance transaction related to this credit note.
* @property int $discount_amount The integer amount in %s representing the total amount of discount that was credited.
* @property \Stripe\StripeObject[] $discount_amounts The aggregate amounts calculated per discount for all line items.
+ * @property null|int $effective_at The date when this credit note is in effect. Same as created
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
* @property string|\Stripe\Invoice $invoice ID of the invoice.
* @property \Stripe\Collection<\Stripe\CreditNoteLineItem> $lines Line items that make up the credit note
* @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.
diff --git a/lib/CustomerSession.php b/lib/CustomerSession.php
index ebe24b114..6635238fb 100644
--- a/lib/CustomerSession.php
+++ b/lib/CustomerSession.php
@@ -5,7 +5,7 @@
namespace Stripe;
/**
- * A customer session allows you to grant client access to Stripe's frontend SDKs (like BillingJs)
+ * A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
* control over a customer.
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
diff --git a/lib/ErrorObject.php b/lib/ErrorObject.php
index dbd329df5..4e549d77b 100644
--- a/lib/ErrorObject.php
+++ b/lib/ErrorObject.php
@@ -54,6 +54,7 @@ class ErrorObject extends StripeObject
const CODE_AMOUNT_TOO_LARGE = 'amount_too_large';
const CODE_AMOUNT_TOO_SMALL = 'amount_too_small';
const CODE_API_KEY_EXPIRED = 'api_key_expired';
+ const CODE_APPLICATION_FEES_NOT_ALLOWED = 'application_fees_not_allowed';
const CODE_AUTHENTICATION_REQUIRED = 'authentication_required';
const CODE_BALANCE_INSUFFICIENT = 'balance_insufficient';
const CODE_BANK_ACCOUNT_BAD_ROUTING_NUMBERS = 'bank_account_bad_routing_numbers';
diff --git a/lib/FinancialConnections/AccountOwner.php b/lib/FinancialConnections/AccountOwner.php
index 53a7f1a4c..57d0a7b60 100644
--- a/lib/FinancialConnections/AccountOwner.php
+++ b/lib/FinancialConnections/AccountOwner.php
@@ -5,6 +5,8 @@
namespace Stripe\FinancialConnections;
/**
+ * Describes an owner of an account.
+ *
* @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 $email The email address of the owner.
diff --git a/lib/Invoice.php b/lib/Invoice.php
index 23c9380b0..878d2d20c 100644
--- a/lib/Invoice.php
+++ b/lib/Invoice.php
@@ -75,6 +75,7 @@
* @property null|\Stripe\Discount $discount Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.
* @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use expand[]=discounts
to expand each discount.
* @property null|int $due_date The date on which payment for this invoice is due. This value will be null
for invoices where collection_method=charge_automatically
.
+ * @property null|int $effective_at The date when this invoice is in effect. Same as finalized_at
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
* @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 revision documentation for more details.
diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php
index c934503cf..978844253 100644
--- a/lib/Service/CustomerService.php
+++ b/lib/Service/CustomerService.php
@@ -235,7 +235,7 @@ public function deleteDiscount($id, $params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source
*/
public function deleteSource($parentId, $id, $params = null, $opts = null)
{
@@ -468,7 +468,7 @@ public function updateCashBalance($parentId, $params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source
*/
public function updateSource($parentId, $id, $params = null, $opts = null)
{
@@ -483,7 +483,7 @@ public function updateSource($parentId, $id, $params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ * @return \Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source
*/
public function verifySource($parentId, $id, $params = null, $opts = null)
{
diff --git a/lib/Service/Tax/SettingsService.php b/lib/Service/Tax/SettingService.php
similarity index 94%
rename from lib/Service/Tax/SettingsService.php
rename to lib/Service/Tax/SettingService.php
index 90eebbfef..77c153e7e 100644
--- a/lib/Service/Tax/SettingsService.php
+++ b/lib/Service/Tax/SettingService.php
@@ -4,7 +4,7 @@
namespace Stripe\Service\Tax;
-class SettingsService extends \Stripe\Service\AbstractService
+class SettingService extends \Stripe\Service\AbstractService
{
/**
* Retrieves Tax Settings
for a merchant.
diff --git a/lib/Service/Tax/TaxServiceFactory.php b/lib/Service/Tax/TaxServiceFactory.php
index 2aeeb64f1..da4874770 100644
--- a/lib/Service/Tax/TaxServiceFactory.php
+++ b/lib/Service/Tax/TaxServiceFactory.php
@@ -9,7 +9,7 @@
*
* @property CalculationService $calculations
* @property RegistrationService $registrations
- * @property SettingsService $settings
+ * @property SettingService $settings
* @property TransactionService $transactions
*/
class TaxServiceFactory extends \Stripe\Service\AbstractServiceFactory
@@ -20,7 +20,7 @@ class TaxServiceFactory extends \Stripe\Service\AbstractServiceFactory
private static $classMap = [
'calculations' => CalculationService::class,
'registrations' => RegistrationService::class,
- 'settings' => SettingsService::class,
+ 'settings' => SettingService::class,
'transactions' => TransactionService::class,
];
diff --git a/lib/Subscription.php b/lib/Subscription.php
index 738fc84c8..5cdd9c03c 100644
--- a/lib/Subscription.php
+++ b/lib/Subscription.php
@@ -48,7 +48,7 @@
* @property null|\Stripe\StripeObject $prebilling Time period and invoice for a Subscription billed in advance.
* @property null|string|\Stripe\SubscriptionSchedule $schedule The schedule attached to the subscription
* @property int $start_date Date when the subscription was first created. The date might differ from the created
date due to backdating.
- * @property string $status
Possible values are incomplete
, incomplete_expired
, trialing
, active
, past_due
, canceled
, or unpaid
.
For collection_method=charge_automatically
a subscription moves into incomplete
if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active
state. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired
. This is a terminal state, the open invoice will be voided and no further invoices will be generated.
A subscription that is currently in a trial period is trialing
and moves to active
when the trial period is over.
If subscription collection_method=charge_automatically
it becomes past_due
when payment to renew it fails and canceled
or unpaid
(depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts.
If subscription collection_method=send_invoice
it becomes past_due
when its invoice is not paid by the due date, and canceled
or unpaid
if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid
, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
Possible values are incomplete
, incomplete_expired
, trialing
, active
, past_due
, canceled
, or unpaid
.
For collection_method=charge_automatically
a subscription moves into incomplete
if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active
state. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired
. This is a terminal state, the open invoice will be voided and no further invoices will be generated.
A subscription that is currently in a trial period is trialing
and moves to active
when the trial period is over.
If subscription collection_method=charge_automatically
, it becomes past_due
when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become canceled
or unpaid
(depending on your subscriptions settings).
If subscription collection_method=send_invoice
it becomes past_due
when its invoice is not paid by the due date, and canceled
or unpaid
if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid
, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property string $type Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, bg_uic
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, eg_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ph_tin
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, th_vat
, tr_tin
, tw_vat
, ua_vat
, us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
+ * @property string $type Type of the tax ID, one of ad_nrt
, ae_trn
, ar_cuit
, au_abn
, au_arn
, bg_uic
, bo_tin
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, cn_tin
, co_nit
, cr_tin
, do_rcn
, ec_ruc
, eg_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, pe_ruc
, ph_tin
, rs_pib
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, sv_nit
, th_vat
, tr_tin
, tw_vat
, ua_vat
, us_ein
, uy_ruc
, ve_rif
, vn_tin
, or za_vat
. Note that some legacy tax IDs have type unknown
* @property string $value Value of the tax ID.
* @property null|\Stripe\StripeObject $verification Tax ID verification information.
*/
@@ -26,10 +26,13 @@ class TaxId extends ApiResource
use ApiOperations\Delete;
+ const TYPE_AD_NRT = 'ad_nrt';
const TYPE_AE_TRN = 'ae_trn';
+ const TYPE_AR_CUIT = 'ar_cuit';
const TYPE_AU_ABN = 'au_abn';
const TYPE_AU_ARN = 'au_arn';
const TYPE_BG_UIC = 'bg_uic';
+ const TYPE_BO_TIN = 'bo_tin';
const TYPE_BR_CNPJ = 'br_cnpj';
const TYPE_BR_CPF = 'br_cpf';
const TYPE_CA_BN = 'ca_bn';
@@ -40,6 +43,11 @@ class TaxId extends ApiResource
const TYPE_CA_QST = 'ca_qst';
const TYPE_CH_VAT = 'ch_vat';
const TYPE_CL_TIN = 'cl_tin';
+ const TYPE_CN_TIN = 'cn_tin';
+ const TYPE_CO_NIT = 'co_nit';
+ const TYPE_CR_TIN = 'cr_tin';
+ const TYPE_DO_RCN = 'do_rcn';
+ const TYPE_EC_RUC = 'ec_ruc';
const TYPE_EG_TIN = 'eg_tin';
const TYPE_ES_CIF = 'es_cif';
const TYPE_EU_OSS_VAT = 'eu_oss_vat';
@@ -64,19 +72,25 @@ class TaxId extends ApiResource
const TYPE_MY_SST = 'my_sst';
const TYPE_NO_VAT = 'no_vat';
const TYPE_NZ_GST = 'nz_gst';
+ const TYPE_PE_RUC = 'pe_ruc';
const TYPE_PH_TIN = 'ph_tin';
+ const TYPE_RS_PIB = 'rs_pib';
const TYPE_RU_INN = 'ru_inn';
const TYPE_RU_KPP = 'ru_kpp';
const TYPE_SA_VAT = 'sa_vat';
const TYPE_SG_GST = 'sg_gst';
const TYPE_SG_UEN = 'sg_uen';
const TYPE_SI_TIN = 'si_tin';
+ const TYPE_SV_NIT = 'sv_nit';
const TYPE_TH_VAT = 'th_vat';
const TYPE_TR_TIN = 'tr_tin';
const TYPE_TW_VAT = 'tw_vat';
const TYPE_UA_VAT = 'ua_vat';
const TYPE_UNKNOWN = 'unknown';
const TYPE_US_EIN = 'us_ein';
+ const TYPE_UY_RUC = 'uy_ruc';
+ const TYPE_VE_RIF = 've_rif';
+ const TYPE_VN_TIN = 'vn_tin';
const TYPE_ZA_VAT = 'za_vat';
const VERIFICATION_STATUS_PENDING = 'pending';