From cc1dd04bd89485eb55ecc27c7fe7089ae3200fbc Mon Sep 17 00:00:00 2001 From: Yejia Chen Date: Tue, 25 Jan 2022 13:51:58 -0500 Subject: [PATCH] Codegen for openapi 1e6040b --- lib/PaymentLink.php | 20 +++++++++++++++----- lib/Service/AccountService.php | 7 ++++--- lib/TaxId.php | 3 ++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/lib/PaymentLink.php b/lib/PaymentLink.php index 95c2ebed0..c0399fe2c 100644 --- a/lib/PaymentLink.php +++ b/lib/PaymentLink.php @@ -5,12 +5,21 @@ namespace Stripe; /** - * A payment link allows you create payment pages through a url you can share with - * customers. + * A payment link is a shareable URL that will take your customers to a hosted + * payment page. A payment link can be shared and used multiple times. + * + * When a customer opens a payment link it will open a new checkout session to + * render the payment page. You can use checkout + * session events to track payments through payment links. + * + * Related guide: Payment Links API * * @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 bool $active Whether the payment link's url is active. If false, customers visiting the url will be redirected. + * @property bool $active Whether the payment link's url is active. If false, customers visiting the URL will be shown a page saying that the link has been deactivated. * @property \Stripe\StripeObject $after_completion * @property bool $allow_promotion_codes Whether user redeemable promotion codes are enabled. * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. @@ -21,11 +30,12 @@ * @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|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the Connect documentation for details. - * @property null|string[] $payment_method_types The list of payment method types that customers can use. When null, your payment methods settings will be used. + * @property null|string[] $payment_method_types The list of payment method types that customers can use. When null, Stripe will dynamically show relevant payment methods you've enabled in your payment method settings. + * @property \Stripe\StripeObject $phone_number_collection * @property null|\Stripe\StripeObject $shipping_address_collection Configuration for collecting the customer's shipping address. * @property null|\Stripe\StripeObject $subscription_data When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use subscription_data. * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to. - * @property string $url The public url that can be shared with customers. + * @property string $url The public URL that can be shared with customers. */ class PaymentLink extends ApiResource { diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index e69c5ee90..28d094ec2 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -148,9 +148,10 @@ public function createPerson($parentId, $params = null, $opts = null) /** * With Connect, you can delete accounts you manage. * - * Accounts created using test-mode keys can be deleted at any time. Custom or - * Express accounts created using live-mode keys can only be deleted once all - * balances are zero. + * Accounts created using test-mode keys can be deleted at any time. Standard + * accounts created using live-mode keys cannot be deleted. Custom or Express + * accounts created using live-mode keys can only be deleted once all balances are + * zero. * * If you want to delete your own account, use the account information tab in your diff --git a/lib/TaxId.php b/lib/TaxId.php index 987193b48..b9ab44ac2 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -18,7 +18,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, br_cnpj, br_cpf, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, ch_vat, cl_tin, es_cif, eu_vat, gb_vat, ge_vat, hk_br, id_npwp, il_vat, in_gst, jp_cn, jp_rn, kr_brn, li_uid, mx_rfc, my_frp, my_itn, my_sst, no_vat, nz_gst, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, th_vat, 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 ae_trn, au_abn, au_arn, br_cnpj, br_cpf, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, ch_vat, cl_tin, es_cif, eu_vat, gb_vat, ge_vat, hk_br, id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, kr_brn, li_uid, mx_rfc, my_frp, my_itn, my_sst, no_vat, nz_gst, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, th_vat, tw_vat, ua_vat, us_ein, 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. */ @@ -49,6 +49,7 @@ class TaxId extends ApiResource const TYPE_ID_NPWP = 'id_npwp'; const TYPE_IL_VAT = 'il_vat'; const TYPE_IN_GST = 'in_gst'; + const TYPE_IS_VAT = 'is_vat'; const TYPE_JP_CN = 'jp_cn'; const TYPE_JP_RN = 'jp_rn'; const TYPE_KR_BRN = 'kr_brn';