From 1efd36bd62d00a27ebd3d11d05a0f234576fed16 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 00:18:12 +0000 Subject: [PATCH 1/2] Update generated code for v1341 --- OPENAPI_VERSION | 2 +- lib/Billing/CreditGrant.php | 9 ++++----- lib/Checkout/Session.php | 2 ++ lib/File.php | 1 + lib/Identity/VerificationReport.php | 2 +- lib/Identity/VerificationSession.php | 2 +- lib/Issuing/Authorization.php | 4 +++- lib/Issuing/Card.php | 4 ++-- lib/Issuing/Cardholder.php | 2 +- lib/PaymentIntent.php | 2 +- lib/PaymentLink.php | 1 + lib/Payout.php | 1 + lib/Service/SubscriptionService.php | 2 +- .../Issuing/AuthorizationService.php | 17 +++++++++++++++++ lib/SetupIntent.php | 2 +- lib/Subscription.php | 6 +++--- lib/TaxId.php | 3 ++- lib/TaxRate.php | 1 + lib/Treasury/InboundTransfer.php | 2 +- 19 files changed, 45 insertions(+), 20 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd8..071c8a00b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1341 \ No newline at end of file diff --git a/lib/Billing/CreditGrant.php b/lib/Billing/CreditGrant.php index 22d72200a..fcafea33b 100644 --- a/lib/Billing/CreditGrant.php +++ b/lib/Billing/CreditGrant.php @@ -8,17 +8,16 @@ * A credit grant is an API resource that documents the allocation of some billing credits to a customer. * * Related guide: Billing credits - * end * * @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 \Stripe\StripeObject $amount * @property \Stripe\StripeObject $applicability_config - * @property string $category The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. + * @property string $category The category of this credit grant. This is for tracking purposes and isn't displayed to the customer. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. - * @property string|\Stripe\Customer $customer ID of the customer to whom the billing credits are granted. - * @property null|int $effective_at The time when the billing credits become effective i.e when they are eligible to be used. - * @property null|int $expires_at The time when the billing credits will expire. If not present, the billing credits will never expire. + * @property string|\Stripe\Customer $customer ID of the customer receiving the billing credits. + * @property null|int $effective_at The time when the billing credits become effective—when they're eligible for use. + * @property null|int $expires_at The time when the billing credits expire. If not present, the billing credits don't expire. * @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 \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 $name A descriptive name shown in dashboard. diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index d00d5b148..9bf15baf7 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -22,6 +22,7 @@ * * @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|\Stripe\StripeObject $adaptive_pricing Settings for price localization with Adaptive Pricing. * @property null|\Stripe\StripeObject $after_expiration When set, provides configuration for actions to take if this Checkout Session expires. * @property null|bool $allow_promotion_codes Enables user redeemable promotion codes. * @property null|int $amount_subtotal Total of all items before discounts or taxes are applied. @@ -111,6 +112,7 @@ class Session extends \Stripe\ApiResource const SUBMIT_TYPE_BOOK = 'book'; const SUBMIT_TYPE_DONATE = 'donate'; const SUBMIT_TYPE_PAY = 'pay'; + const SUBMIT_TYPE_SUBSCRIBE = 'subscribe'; const UI_MODE_EMBEDDED = 'embedded'; const UI_MODE_HOSTED = 'hosted'; diff --git a/lib/File.php b/lib/File.php index 0748e88c3..0a46fbc85 100644 --- a/lib/File.php +++ b/lib/File.php @@ -37,6 +37,7 @@ class File extends ApiResource const PURPOSE_DISPUTE_EVIDENCE = 'dispute_evidence'; const PURPOSE_DOCUMENT_PROVIDER_IDENTITY_DOCUMENT = 'document_provider_identity_document'; const PURPOSE_FINANCE_REPORT_RUN = 'finance_report_run'; + const PURPOSE_FINANCIAL_ACCOUNT_STATEMENT = 'financial_account_statement'; const PURPOSE_IDENTITY_DOCUMENT = 'identity_document'; const PURPOSE_IDENTITY_DOCUMENT_DOWNLOADABLE = 'identity_document_downloadable'; const PURPOSE_ISSUING_REGULATORY_REPORTING = 'issuing_regulatory_reporting'; diff --git a/lib/Identity/VerificationReport.php b/lib/Identity/VerificationReport.php index 6ecfa3f0d..058ac7f98 100644 --- a/lib/Identity/VerificationReport.php +++ b/lib/Identity/VerificationReport.php @@ -29,7 +29,7 @@ * @property null|\Stripe\StripeObject $phone Result from a phone check * @property null|\Stripe\StripeObject $selfie Result from a selfie check * @property string $type Type of report. - * @property null|string $verification_flow The configuration token of a Verification Flow from the dashboard. + * @property null|string $verification_flow The configuration token of a verification flow from the dashboard. * @property null|string $verification_session ID of the VerificationSession that created this report. */ class VerificationReport extends \Stripe\ApiResource diff --git a/lib/Identity/VerificationSession.php b/lib/Identity/VerificationSession.php index 352b12744..7adf5d0a9 100644 --- a/lib/Identity/VerificationSession.php +++ b/lib/Identity/VerificationSession.php @@ -33,7 +33,7 @@ * @property string $status Status of this VerificationSession. Learn more about the lifecycle of sessions. * @property string $type The type of verification check to be performed. * @property null|string $url The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe. - * @property null|string $verification_flow The configuration token of a Verification Flow from the dashboard. + * @property null|string $verification_flow The configuration token of a verification flow from the dashboard. * @property null|\Stripe\StripeObject $verified_outputs The user’s verified data. */ class VerificationSession extends \Stripe\ApiResource diff --git a/lib/Issuing/Authorization.php b/lib/Issuing/Authorization.php index ed14cd4e8..ec4088b0c 100644 --- a/lib/Issuing/Authorization.php +++ b/lib/Issuing/Authorization.php @@ -18,11 +18,12 @@ * @property bool $approved Whether the authorization has been approved. * @property string $authorization_method How the card details were provided. * @property \Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with this authorization. - * @property \Stripe\Issuing\Card $card You can create physical or virtual cards that are issued to cardholders. + * @property \Stripe\Issuing\Card $card You can create physical or virtual cards that are issued to cardholders. * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this authorization belongs. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency The currency of the cardholder. This currency can be different from the currency presented at authorization and the merchant_currency field on this authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. * @property null|\Stripe\StripeObject $fleet Fleet-specific information for authorizations using Fleet cards. + * @property null|\Stripe\StripeObject[] $fraud_challenges Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. * @property null|\Stripe\StripeObject $fuel Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. * @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 int $merchant_amount The total amount that was authorized or rejected. This amount is in the merchant_currency and in the smallest currency unit. merchant_amount should be the same as amount, unless merchant_currency and currency are different. @@ -37,6 +38,7 @@ * @property \Stripe\Issuing\Transaction[] $transactions List of transactions associated with this authorization. * @property null|\Stripe\StripeObject $treasury Treasury details related to this authorization if it was created on a FinancialAccount. * @property \Stripe\StripeObject $verification_data + * @property null|bool $verified_by_fraud_challenge Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. * @property null|string $wallet The digital wallet used for this transaction. One of apple_pay, google_pay, or samsung_pay. Will populate as null when no digital wallet was utilized. */ class Authorization extends \Stripe\ApiResource diff --git a/lib/Issuing/Card.php b/lib/Issuing/Card.php index 5f21ce58d..a436ba31d 100644 --- a/lib/Issuing/Card.php +++ b/lib/Issuing/Card.php @@ -5,13 +5,13 @@ namespace Stripe\Issuing; /** - * You can create physical or virtual cards that are issued to cardholders. + * You can create physical or virtual cards that are issued to cardholders. * * @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 string $brand The brand of the card. * @property null|string $cancellation_reason The reason why the card was canceled. - * @property \Stripe\Issuing\Cardholder $cardholder

An Issuing Cardholder object represents an individual or business entity who is issued cards.

Related guide: How to create a cardholder

+ * @property \Stripe\Issuing\Cardholder $cardholder

An Issuing Cardholder object represents an individual or business entity who is issued cards.

Related guide: How to create a cardholder

* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Supported currencies are usd in the US, eur in the EU, and gbp in the UK. * @property null|string $cvc The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint. diff --git a/lib/Issuing/Cardholder.php b/lib/Issuing/Cardholder.php index 14de48703..5731c6389 100644 --- a/lib/Issuing/Cardholder.php +++ b/lib/Issuing/Cardholder.php @@ -7,7 +7,7 @@ /** * An Issuing Cardholder object represents an individual or business entity who is issued cards. * - * Related guide: How to create a cardholder + * Related guide: How to create a cardholder * * @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. diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index c0f58f174..c466fed7b 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -43,7 +43,7 @@ * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source. * @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|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_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. diff --git a/lib/PaymentLink.php b/lib/PaymentLink.php index e65546191..c0c59c978 100644 --- a/lib/PaymentLink.php +++ b/lib/PaymentLink.php @@ -64,6 +64,7 @@ class PaymentLink extends ApiResource const SUBMIT_TYPE_BOOK = 'book'; const SUBMIT_TYPE_DONATE = 'donate'; const SUBMIT_TYPE_PAY = 'pay'; + const SUBMIT_TYPE_SUBSCRIBE = 'subscribe'; /** * Creates a payment link. diff --git a/lib/Payout.php b/lib/Payout.php index 5757fcb63..b97bcfa4c 100644 --- a/lib/Payout.php +++ b/lib/Payout.php @@ -38,6 +38,7 @@ * @property string $source_type The source balance this payout came from, which can be one of the following: card, fpx, or bank_account. * @property null|string $statement_descriptor Extra information about a payout that displays on the user's bank statement. * @property string $status Current status of the payout: paid, pending, in_transit, canceled or failed. A payout is pending until it's submitted to the bank, when it becomes in_transit. The status changes to paid if the transaction succeeds, or to failed or canceled (within 5 business days). Some payouts that fail might initially show as paid, then change to failed. + * @property null|\Stripe\StripeObject $trace_id A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. * @property string $type Can be bank_account or card. */ class Payout extends ApiResource diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index 7cbf5b9fe..922be94c9 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -184,7 +184,7 @@ public function search($params = null, $opts = null) * In these cases, we apply a credit for the unused time on the previous price, * immediately charge the customer using the new price, and reset the billing date. * Learn about how Stripe + * href="/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * * If you want to charge for an upgrade immediately, pass diff --git a/lib/Service/TestHelpers/Issuing/AuthorizationService.php b/lib/Service/TestHelpers/Issuing/AuthorizationService.php index 82faeff47..22d3ff8eb 100644 --- a/lib/Service/TestHelpers/Issuing/AuthorizationService.php +++ b/lib/Service/TestHelpers/Issuing/AuthorizationService.php @@ -90,6 +90,23 @@ public function increment($id, $params = null, $opts = null) return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/increment', $id), $params, $opts); } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating + * either a confirmation of fraud or a correction of legitimacy. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Issuing\Authorization + */ + public function respond($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond', $id), $params, $opts); + } + /** * Reverse a test-mode Authorization. * diff --git a/lib/SetupIntent.php b/lib/SetupIntent.php index fb85d1c21..d4010f4a5 100644 --- a/lib/SetupIntent.php +++ b/lib/SetupIntent.php @@ -46,7 +46,7 @@ * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to continue payment setup. * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the setup is intended. * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used with this SetupIntent. If the payment method is card_present and isn't a digital wallet, then the generated_card associated with the latest_attempt is attached to the Customer instead. - * @property null|\Stripe\StripeObject $payment_method_configuration_details Information about the payment method configuration used for this Setup Intent. + * @property null|\Stripe\StripeObject $payment_method_configuration_details Information about the payment method configuration used for this Setup Intent. * @property null|\Stripe\StripeObject $payment_method_options Payment method-specific configuration for this SetupIntent. * @property string[] $payment_method_types The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. * @property null|string|\Stripe\Mandate $single_use_mandate ID of the single_use Mandate generated by the SetupIntent. diff --git a/lib/Subscription.php b/lib/Subscription.php index f041a650a..6d1dc8ca4 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -42,14 +42,14 @@ * @property \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|int $next_pending_invoice_item_invoice Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at pending_invoice_item_interval. * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details. - * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to paused. Learn more about pausing collection. + * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to paused. Learn more about pausing collection. * @property null|\Stripe\StripeObject $payment_settings Payment settings passed on to invoices created by the subscription. * @property null|\Stripe\StripeObject $pending_invoice_item_interval Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval. * @property null|string|\Stripe\SetupIntent $pending_setup_intent You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide. * @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, unpaid, or paused.

For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active status. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal status, 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.

A subscription can only enter a paused status when a trial ends without a payment method. A paused subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The paused status is different from pausing collection, which still generates invoices and leaves the subscription's status unchanged.

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 string $status

Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid, or paused.

For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active status. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal status, 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.

A subscription can only enter a paused status when a trial ends without a payment method. A paused subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The paused status is different from pausing collection, which still generates invoices and leaves the subscription's status unchanged.

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. @@ -172,7 +172,7 @@ public static function retrieve($id, $opts = null) * In these cases, we apply a credit for the unused time on the previous price, * immediately charge the customer using the new price, and reset the billing date. * Learn about how Stripe + * href="/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * * If you want to charge for an upgrade immediately, pass diff --git a/lib/TaxId.php b/lib/TaxId.php index b86befc41..ac759c6e6 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -17,7 +17,7 @@ * @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 null|\Stripe\StripeObject $owner The account or customer the tax ID belongs to. - * @property string $type Type of the tax ID, one of ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, ch_uid, ch_vat, cl_tin, cn_tin, co_nit, cr_tin, de_stn, do_rcn, ec_ruc, eg_tin, es_cif, eu_oss_vat, eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, jp_trn, ke_pin, kr_brn, kz_bin, li_uid, ma_vat, md_vat, mx_rfc, my_frp, my_itn, my_sst, ng_tin, no_vat, no_voec, nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, sv_nit, th_vat, tr_tin, tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, 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, bh_vat, bo_tin, br_cnpj, br_cpf, by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, ch_uid, ch_vat, cl_tin, cn_tin, co_nit, cr_tin, de_stn, do_rcn, ec_ruc, eg_tin, es_cif, eu_oss_vat, eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, jp_trn, ke_pin, kr_brn, kz_bin, li_uid, li_vat, ma_vat, md_vat, mx_rfc, my_frp, my_itn, my_sst, ng_tin, no_vat, no_voec, nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, sv_nit, th_vat, tr_tin, tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, uz_vat, 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. */ @@ -71,6 +71,7 @@ class TaxId extends ApiResource const TYPE_KR_BRN = 'kr_brn'; const TYPE_KZ_BIN = 'kz_bin'; const TYPE_LI_UID = 'li_uid'; + const TYPE_LI_VAT = 'li_vat'; const TYPE_MA_VAT = 'ma_vat'; const TYPE_MD_VAT = 'md_vat'; const TYPE_MX_RFC = 'mx_rfc'; diff --git a/lib/TaxRate.php b/lib/TaxRate.php index bd52b3923..fc564ff10 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -56,6 +56,7 @@ class TaxRate extends ApiResource const TAX_TYPE_RETAIL_DELIVERY_FEE = 'retail_delivery_fee'; const TAX_TYPE_RST = 'rst'; const TAX_TYPE_SALES_TAX = 'sales_tax'; + const TAX_TYPE_SERVICE_TAX = 'service_tax'; const TAX_TYPE_VAT = 'vat'; /** diff --git a/lib/Treasury/InboundTransfer.php b/lib/Treasury/InboundTransfer.php index d39a14a43..5ae219bca 100644 --- a/lib/Treasury/InboundTransfer.php +++ b/lib/Treasury/InboundTransfer.php @@ -22,7 +22,7 @@ * @property \Stripe\StripeObject $linked_flows * @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 \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 string $origin_payment_method The origin payment method to be debited for an InboundTransfer. + * @property null|string $origin_payment_method The origin payment method to be debited for an InboundTransfer. * @property null|\Stripe\StripeObject $origin_payment_method_details Details about the PaymentMethod for an InboundTransfer. * @property null|bool $returned Returns true if the funds for an InboundTransfer were returned after the InboundTransfer went to the succeeded state. * @property string $statement_descriptor Statement descriptor shown when funds are debited from the source. Not all payment networks support statement_descriptor. From 21a59d4efff706088a773de8cf65db468a197385 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:15:30 +0000 Subject: [PATCH 2/2] Update generated code for v1347 --- OPENAPI_VERSION | 2 +- lib/Util/ApiVersion.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 071c8a00b..7ab08411d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1341 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index aaa3c4741..f4f5f4e86 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -6,5 +6,5 @@ class ApiVersion { - const CURRENT = '2024-10-28.acacia'; + const CURRENT = '2024-11-20.acacia'; }