diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index adcc79220..e394bcf08 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v202 \ No newline at end of file +v203 \ No newline at end of file diff --git a/lib/Invoice.php b/lib/Invoice.php index 83e22496e..490724256 100644 --- a/lib/Invoice.php +++ b/lib/Invoice.php @@ -41,7 +41,7 @@ * Related guide: Send * Invoices to Customers. * - * @property string $id Unique identifier for the object. + * @property string $id Unique identifier for the object. This property is always present unless the invoice is an upcoming invoice. See Retrieve an upcoming invoice for more details. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property null|string $account_country The country of the business associated with this invoice, most often the business creating the invoice. * @property null|string $account_name The public name of the business associated with this invoice, most often the business creating the invoice. diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index cd39c19e8..57b7180eb 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -91,29 +91,25 @@ public function capture($id, $params = null, $opts = null) /** * Confirm that your customer intends to pay with current or provided payment * method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. - * * If the selected payment method requires additional authentication steps, the * PaymentIntent will transition to the requires_action status and * suggest additional actions via next_action. If payment fails, the * PaymentIntent will transition to the requires_payment_method * status. If payment succeeds, the PaymentIntent will transition to the * succeeded status (or requires_capture, if - * capture_method is set to manual). - * - * If the confirmation_method is automatic, payment may - * be attempted using our capture_method is set to manual). If the + * confirmation_method is automatic, payment may be + * attempted using our client SDKs and * the PaymentIntent’s client_secret. After * next_actions are handled by the client, no additional confirmation - * is required to complete the payment. - * - * If the confirmation_method is manual, all payment - * attempts must be initiated using a secret key. If any actions are required for - * the payment, the PaymentIntent will return to the - * requires_confirmation state after those actions are completed. Your - * server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. Read the confirmation_method is + * manual, all payment attempts must be initiated using a secret key. + * If any actions are required for the payment, the PaymentIntent will return to + * the requires_confirmation state after those actions are completed. + * Your server needs to then explicitly re-confirm the PaymentIntent to initiate + * the next payment attempt. Read the expanded documentation to * learn more about manual confirmation. * diff --git a/lib/Source.php b/lib/Source.php index fc6c85687..201fdab7e 100644 --- a/lib/Source.php +++ b/lib/Source.php @@ -10,6 +10,12 @@ * API just like a Card object: once chargeable, they can be charged, * or can be attached to customers. * + * Stripe doesn't recommend using the deprecated Sources API. We recommend that + * you adopt the PaymentMethods API. This + * newer API provides access to our latest features and payment method types. + * * Related guides: Sources API and Sources & Customers. * diff --git a/lib/TaxId.php b/lib/TaxId.php index f8e869339..5ea4f27cb 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, 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, 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, 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, si_tin, 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, 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, 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, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, 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. */ @@ -55,6 +55,8 @@ class TaxId extends ApiResource const TYPE_IS_VAT = 'is_vat'; const TYPE_JP_CN = 'jp_cn'; const TYPE_JP_RN = 'jp_rn'; + const TYPE_JP_TRN = 'jp_trn'; + const TYPE_KE_PIN = 'ke_pin'; const TYPE_KR_BRN = 'kr_brn'; const TYPE_LI_UID = 'li_uid'; const TYPE_MX_RFC = 'mx_rfc';