From 1025d8c40a6837e7cc9026997007e8f81cd61e7b Mon Sep 17 00:00:00 2001 From: Dominic Charley-Roy Date: Thu, 9 Dec 2021 10:01:00 -0500 Subject: [PATCH] Codegen for openapi 6ec1613 --- lib/HttpClient/CurlClient.php | 2 +- lib/Issuing/Card.php | 1 + lib/Service/AbstractService.php | 2 +- lib/Service/Terminal/LocationService.php | 4 +++- lib/TaxId.php | 4 +++- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/HttpClient/CurlClient.php b/lib/HttpClient/CurlClient.php index 1497bc3f4c..a27919281c 100644 --- a/lib/HttpClient/CurlClient.php +++ b/lib/HttpClient/CurlClient.php @@ -334,7 +334,7 @@ private function useHeadersToDetermineWriteCallback($opts, $determineWriteCallba return [$headerCallback, $writeCallbackWrapper]; } - private static function parseLineIntoHeaderArray($line, &$headers) + private static function parseLineIntoHeaderArray($line, & $headers) { if (false === \strpos($line, ':')) { return \strlen($line); diff --git a/lib/Issuing/Card.php b/lib/Issuing/Card.php index e0ac774e75..31deaf3f0d 100644 --- a/lib/Issuing/Card.php +++ b/lib/Issuing/Card.php @@ -29,6 +29,7 @@ * @property \Stripe\StripeObject $spending_controls * @property string $status Whether authorizations can be approved on this card. * @property string $type The type of the card. + * @property null|\Stripe\StripeObject $wallets Information relating to digital wallets (like Apple Pay and Google Pay). */ class Card extends \Stripe\ApiResource { diff --git a/lib/Service/AbstractService.php b/lib/Service/AbstractService.php index 12071c8274..3c2ba8a949 100644 --- a/lib/Service/AbstractService.php +++ b/lib/Service/AbstractService.php @@ -61,7 +61,7 @@ private static function formatParams($params) if (null === $params) { return null; } - \array_walk_recursive($params, function (&$value, $key) { + \array_walk_recursive($params, function (& $value, $key) { if (null === $value) { $value = ''; } diff --git a/lib/Service/Terminal/LocationService.php b/lib/Service/Terminal/LocationService.php index 8adc7a520d..5a217bea46 100644 --- a/lib/Service/Terminal/LocationService.php +++ b/lib/Service/Terminal/LocationService.php @@ -22,7 +22,9 @@ public function all($params = null, $opts = null) } /** - * Creates a new Location object. + * Creates a new Location object. For further details, including which + * address fields are required in each country, see the Manage locations guide. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts diff --git a/lib/TaxId.php b/lib/TaxId.php index 3a8b732868..987193b483 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, 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, 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, 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. */ @@ -44,6 +44,7 @@ class TaxId extends ApiResource const TYPE_ES_CIF = 'es_cif'; const TYPE_EU_VAT = 'eu_vat'; const TYPE_GB_VAT = 'gb_vat'; + const TYPE_GE_VAT = 'ge_vat'; const TYPE_HK_BR = 'hk_br'; const TYPE_ID_NPWP = 'id_npwp'; const TYPE_IL_VAT = 'il_vat'; @@ -65,6 +66,7 @@ class TaxId extends ApiResource const TYPE_SG_UEN = 'sg_uen'; const TYPE_TH_VAT = 'th_vat'; const TYPE_TW_VAT = 'tw_vat'; + const TYPE_UA_VAT = 'ua_vat'; const TYPE_UNKNOWN = 'unknown'; const TYPE_US_EIN = 'us_ein'; const TYPE_ZA_VAT = 'za_vat';