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] 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.

+ * @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 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.

* @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this subscription belongs to. * @property null|\Stripe\StripeObject $transfer_data The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. * @property null|int $trial_end If the subscription has a trial, the end of that trial. diff --git a/lib/TaxId.php b/lib/TaxId.php index d71a979ef..314a07974 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -16,7 +16,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string|\Stripe\Customer $customer ID of the customer. * @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 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';