From 6a9237021195e23c6ed9255c26e81e3b61e10548 Mon Sep 17 00:00:00 2001
From: "stripe-openapi[bot]"
<105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 29 Jun 2023 16:19:41 -0700
Subject: [PATCH 1/9] Update generated code (#1517)
* Update generated code for v393
* Update generated code for v394
* Update generated code for v395
* Update generated code for v397
* Update generated code for v398
* Update generated code for v399
* Update generated code for v400
---------
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
---
OPENAPI_VERSION | 2 +-
init.php | 129 +++++++++++++++-----------------
lib/CreditNote.php | 1 +
lib/ErrorObject.php | 1 +
lib/Invoice.php | 1 +
lib/Mandate.php | 1 +
lib/Service/CustomerService.php | 6 +-
lib/Subscription.php | 2 +-
lib/TaxId.php | 16 +++-
9 files changed, 86 insertions(+), 73 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index f135f6e0f..f9b8d63d2 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v387
\ No newline at end of file
+v400
\ No newline at end of file
diff --git a/init.php b/init.php
index 315f70a22..1245ac502 100644
--- a/init.php
+++ b/init.php
@@ -77,7 +77,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/ApplePayDomain.php';
@@ -147,58 +146,21 @@
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/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/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/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';
@@ -207,18 +169,21 @@
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/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/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/PaymentIntentService.php';
@@ -231,21 +196,25 @@
require __DIR__ . '/lib/Service/PromotionCodeService.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/TaxServiceFactory.php';
require __DIR__ . '/lib/Service/Tax/TransactionService.php';
require __DIR__ . '/lib/Service/TaxCodeService.php';
require __DIR__ . '/lib/Service/TaxRateService.php';
@@ -253,16 +222,21 @@
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/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';
@@ -274,28 +248,49 @@
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/Checkout/CheckoutServiceFactory.php';
-require __DIR__ . '/lib/Service/CoreServiceFactory.php';
-require __DIR__ . '/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.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/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/ErrorObject.php b/lib/ErrorObject.php
index 78c379461..b15a86a8a 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/Invoice.php b/lib/Invoice.php
index 9ff53894e..a5fed7b93 100644
--- a/lib/Invoice.php
+++ b/lib/Invoice.php
@@ -74,6 +74,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/Mandate.php b/lib/Mandate.php
index 3be3b4bcf..55bc75839 100644
--- a/lib/Mandate.php
+++ b/lib/Mandate.php
@@ -12,6 +12,7 @@
* @property \Stripe\StripeObject $customer_acceptance
* @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.
* @property null|\Stripe\StripeObject $multi_use
+ * @property null|string $on_behalf_of The account (if any) for which the mandate is intended.
* @property string|\Stripe\PaymentMethod $payment_method ID of the payment method associated with this mandate.
* @property \Stripe\StripeObject $payment_method_details
* @property null|\Stripe\StripeObject $single_use
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/Subscription.php b/lib/Subscription.php
index a067de417..a993d76ce 100644
--- a/lib/Subscription.php
+++ b/lib/Subscription.php
@@ -46,7 +46,7 @@
* @property null|\Stripe\StripeObject $pending_update If specified, pending updates that will be applied to the subscription once the latest_invoice
has been paid.
* @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';
From ea863a92102a8e8dbdeddf79b4535c355ec62d91 Mon Sep 17 00:00:00 2001
From: Richard Marmorstein tax_behavior=inclusive
, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
* @property int $amount_tax The amount of tax calculated for this line item, in integer cents.
* @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.
- * @property null|string $product A Product ID.
+ * @property null|string $product The ID of an existing Product.
* @property int $quantity The number of units of the item being purchased. For reversals, this is the quantity reversed.
* @property null|string $reference A custom identifier for this line item.
* @property string $tax_behavior Specifies whether the amount
includes taxes. If tax_behavior=inclusive
, then the amount includes taxes.
diff --git a/lib/Tax/TransactionLineItem.php b/lib/Tax/TransactionLineItem.php
index f5db49205..546518a59 100644
--- a/lib/Tax/TransactionLineItem.php
+++ b/lib/Tax/TransactionLineItem.php
@@ -11,6 +11,7 @@
* @property int $amount_tax The amount of tax calculated for this line item, in integer cents.
* @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.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs 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 $product The ID of an existing Product.
* @property int $quantity The number of units of the item being purchased. For reversals, this is the quantity reversed.
* @property string $reference A custom identifier for this line item in the transaction.
* @property null|\Stripe\StripeObject $reversal If type=reversal
, contains information about what was reversed.
From 8061205b9434b2edbd333dd62382eb9c602ae9d9 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 11 Jul 2023 21:51:27 +0000
Subject: [PATCH 5/9] Update generated code for v414
---
OPENAPI_VERSION | 2 +-
lib/PaymentIntent.php | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index bd34c2c9b..70c5c0294 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v412
\ No newline at end of file
+v414
\ No newline at end of file
diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php
index 824595084..4f90077fe 100644
--- a/lib/PaymentIntent.php
+++ b/lib/PaymentIntent.php
@@ -44,6 +44,7 @@
* @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents use case for connected accounts for details.
* @property null|\Stripe\StripeObject $payment_details
* @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used in this PaymentIntent.
+ * @property null|\Stripe\StripeObject $payment_method_configuration_details Information about the payment method configuration used for this PaymentIntent.
* @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this PaymentIntent.
* @property string[] $payment_method_types The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
* @property null|\Stripe\StripeObject $processing If present, this property tells you about the processing state of the payment.
From afc0c28ebb0d277049ace0a736da171a6ea20d47 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 12 Jul 2023 14:00:43 +0000
Subject: [PATCH 6/9] Update generated code for v415
---
OPENAPI_VERSION | 2 +-
lib/Util/ApiVersion.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 70c5c0294..8d7d5298d 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v414
\ No newline at end of file
+v415
\ No newline at end of file
diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index e091d9f05..6184c2d8f 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -7,5 +7,5 @@
class ApiVersion
{
const CURRENT = '2022-11-15';
- const PREVIEW = '2023-06-08.preview-v2';
+ const PREVIEW = '20230630T012332';
}
From f13c3ff51a404fadf899118c4f4a7a2929d7e5f7 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 13 Jul 2023 16:05:01 +0000
Subject: [PATCH 7/9] Update generated code for v417
---
OPENAPI_VERSION | 2 +-
lib/Util/ApiVersion.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 8d7d5298d..bfd5e01b8 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v415
\ No newline at end of file
+v417
\ No newline at end of file
diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index 6184c2d8f..e091d9f05 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -7,5 +7,5 @@
class ApiVersion
{
const CURRENT = '2022-11-15';
- const PREVIEW = '20230630T012332';
+ const PREVIEW = '2023-06-08.preview-v2';
}
From d61fc1a71d1868bc5c0f5c59f9df8135d5665190 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 13 Jul 2023 19:22:55 +0000
Subject: [PATCH 8/9] Update generated code for v417
---
lib/Util/ApiVersion.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index e091d9f05..78e2e53f5 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -7,5 +7,5 @@
class ApiVersion
{
const CURRENT = '2022-11-15';
- const PREVIEW = '2023-06-08.preview-v2';
+ const PREVIEW = '20230712T200515';
}
From 5700dad3370f567920aa38acfd97957ee48b434a Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 13 Jul 2023 20:23:24 +0000
Subject: [PATCH 9/9] Update generated code for v417
---
init.php | 2 +-
lib/Service/Tax/{SettingService.php => SettingsService.php} | 2 +-
lib/Service/Tax/TaxServiceFactory.php | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
rename lib/Service/Tax/{SettingService.php => SettingsService.php} (94%)
diff --git a/init.php b/init.php
index cb23c61cb..58833a392 100644
--- a/init.php
+++ b/init.php
@@ -246,7 +246,7 @@
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/SettingService.php';
+require __DIR__ . '/lib/Service/Tax/SettingsService.php';
require __DIR__ . '/lib/Service/Tax/TaxServiceFactory.php';
require __DIR__ . '/lib/Service/Tax/TransactionService.php';
require __DIR__ . '/lib/Service/TaxCodeService.php';
diff --git a/lib/Service/Tax/SettingService.php b/lib/Service/Tax/SettingsService.php
similarity index 94%
rename from lib/Service/Tax/SettingService.php
rename to lib/Service/Tax/SettingsService.php
index 77c153e7e..90eebbfef 100644
--- a/lib/Service/Tax/SettingService.php
+++ b/lib/Service/Tax/SettingsService.php
@@ -4,7 +4,7 @@
namespace Stripe\Service\Tax;
-class SettingService extends \Stripe\Service\AbstractService
+class SettingsService 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 da4874770..2aeeb64f1 100644
--- a/lib/Service/Tax/TaxServiceFactory.php
+++ b/lib/Service/Tax/TaxServiceFactory.php
@@ -9,7 +9,7 @@
*
* @property CalculationService $calculations
* @property RegistrationService $registrations
- * @property SettingService $settings
+ * @property SettingsService $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' => SettingService::class,
+ 'settings' => SettingsService::class,
'transactions' => TransactionService::class,
];