From 8f267c030659d7d2819bcf897fb91cffd7e92cf1 Mon Sep 17 00:00:00 2001 From: talha-core <124266517+talha-core@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:11:51 +0500 Subject: [PATCH 1/2] Update TaxId.php --- lib/TaxId.php | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/lib/TaxId.php b/lib/TaxId.php index e69a22a88..da3fd841a 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -179,6 +179,92 @@ public static function retrieve($id, $opts = null) return $instance; } + /** + * Returns all the type Ids supported by stripe. + * + * https://docs.stripe.com/billing/customer/tax-ids#supported-tax-id + * + * @return string[] + */ + public static function getAllTaxIdTypes(): array + { + return [ + TaxId::TYPE_AD_NRT, + TaxId::TYPE_AE_TRN, + TaxId::TYPE_AR_CUIT, + TaxId::TYPE_AU_ABN, + TaxId::TYPE_AU_ARN, + TaxId::TYPE_BG_UIC, + TaxId::TYPE_BH_VAT, + TaxId::TYPE_BO_TIN, + TaxId::TYPE_BR_CNPJ, + TaxId::TYPE_BR_CPF, + TaxId::TYPE_CA_BN, + TaxId::TYPE_CA_GST_HST, + TaxId::TYPE_CA_PST_BC, + TaxId::TYPE_CA_PST_MB, + TaxId::TYPE_CA_PST_SK, + TaxId::TYPE_CA_QST, + TaxId::TYPE_CH_VAT, + TaxId::TYPE_CL_TIN, + TaxId::TYPE_CN_TIN, + TaxId::TYPE_CO_NIT, + TaxId::TYPE_CR_TIN, + TaxId::TYPE_DE_STN, + TaxId::TYPE_DO_RCN, + TaxId::TYPE_EC_RUC, + TaxId::TYPE_EG_TIN, + TaxId::TYPE_ES_CIF, + TaxId::TYPE_EU_OSS_VAT, + TaxId::TYPE_EU_VAT, + TaxId::TYPE_GB_VAT, + TaxId::TYPE_GE_VAT, + TaxId::TYPE_HK_BR, + TaxId::TYPE_HU_TIN, + TaxId::TYPE_ID_NPWP, + TaxId::TYPE_IL_VAT, + TaxId::TYPE_IN_GST, + TaxId::TYPE_IS_VAT, + TaxId::TYPE_JP_CN, + TaxId::TYPE_JP_RN, + TaxId::TYPE_JP_TRN, + TaxId::TYPE_KE_PIN, + TaxId::TYPE_KR_BRN, + TaxId::TYPE_KZ_BIN, + TaxId::TYPE_LI_UID, + TaxId::TYPE_MX_RFC, + TaxId::TYPE_MY_FRP, + TaxId::TYPE_MY_ITN, + TaxId::TYPE_MY_SST, + TaxId::TYPE_NG_TIN, + TaxId::TYPE_NO_VAT, + TaxId::TYPE_NO_VOEC, + TaxId::TYPE_NZ_GST, + TaxId::TYPE_OM_VAT, + TaxId::TYPE_PE_RUC, + TaxId::TYPE_PH_TIN, + TaxId::TYPE_RO_TIN, + TaxId::TYPE_RS_PIB, + TaxId::TYPE_RU_INN, + TaxId::TYPE_RU_KPP, + TaxId::TYPE_SA_VAT, + TaxId::TYPE_SG_GST, + TaxId::TYPE_SG_UEN, + TaxId::TYPE_SI_TIN, + TaxId::TYPE_SV_NIT, + TaxId::TYPE_TH_VAT, + TaxId::TYPE_TR_TIN, + TaxId::TYPE_TW_VAT, + TaxId::TYPE_UA_VAT, + TaxId::TYPE_UNKNOWN, + TaxId::TYPE_US_EIN, + TaxId::TYPE_UY_RUC, + TaxId::TYPE_VE_RIF, + TaxId::TYPE_VN_TIN, + TaxId::TYPE_ZA_VAT, + ]; + } + const VERIFICATION_STATUS_PENDING = 'pending'; const VERIFICATION_STATUS_UNAVAILABLE = 'unavailable'; const VERIFICATION_STATUS_UNVERIFIED = 'unverified'; From ea43d8b3136505aa8b1126209d7534bdde5a2ff9 Mon Sep 17 00:00:00 2001 From: talha-core <124266517+talha-core@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:15:51 +0500 Subject: [PATCH 2/2] Update TaxId.php --- lib/TaxId.php | 146 +++++++++++++++++++++++++------------------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/lib/TaxId.php b/lib/TaxId.php index da3fd841a..19ad2f63a 100644 --- a/lib/TaxId.php +++ b/lib/TaxId.php @@ -189,79 +189,79 @@ public static function retrieve($id, $opts = null) public static function getAllTaxIdTypes(): array { return [ - TaxId::TYPE_AD_NRT, - TaxId::TYPE_AE_TRN, - TaxId::TYPE_AR_CUIT, - TaxId::TYPE_AU_ABN, - TaxId::TYPE_AU_ARN, - TaxId::TYPE_BG_UIC, - TaxId::TYPE_BH_VAT, - TaxId::TYPE_BO_TIN, - TaxId::TYPE_BR_CNPJ, - TaxId::TYPE_BR_CPF, - TaxId::TYPE_CA_BN, - TaxId::TYPE_CA_GST_HST, - TaxId::TYPE_CA_PST_BC, - TaxId::TYPE_CA_PST_MB, - TaxId::TYPE_CA_PST_SK, - TaxId::TYPE_CA_QST, - TaxId::TYPE_CH_VAT, - TaxId::TYPE_CL_TIN, - TaxId::TYPE_CN_TIN, - TaxId::TYPE_CO_NIT, - TaxId::TYPE_CR_TIN, - TaxId::TYPE_DE_STN, - TaxId::TYPE_DO_RCN, - TaxId::TYPE_EC_RUC, - TaxId::TYPE_EG_TIN, - TaxId::TYPE_ES_CIF, - TaxId::TYPE_EU_OSS_VAT, - TaxId::TYPE_EU_VAT, - TaxId::TYPE_GB_VAT, - TaxId::TYPE_GE_VAT, - TaxId::TYPE_HK_BR, - TaxId::TYPE_HU_TIN, - TaxId::TYPE_ID_NPWP, - TaxId::TYPE_IL_VAT, - TaxId::TYPE_IN_GST, - TaxId::TYPE_IS_VAT, - TaxId::TYPE_JP_CN, - TaxId::TYPE_JP_RN, - TaxId::TYPE_JP_TRN, - TaxId::TYPE_KE_PIN, - TaxId::TYPE_KR_BRN, - TaxId::TYPE_KZ_BIN, - TaxId::TYPE_LI_UID, - TaxId::TYPE_MX_RFC, - TaxId::TYPE_MY_FRP, - TaxId::TYPE_MY_ITN, - TaxId::TYPE_MY_SST, - TaxId::TYPE_NG_TIN, - TaxId::TYPE_NO_VAT, - TaxId::TYPE_NO_VOEC, - TaxId::TYPE_NZ_GST, - TaxId::TYPE_OM_VAT, - TaxId::TYPE_PE_RUC, - TaxId::TYPE_PH_TIN, - TaxId::TYPE_RO_TIN, - TaxId::TYPE_RS_PIB, - TaxId::TYPE_RU_INN, - TaxId::TYPE_RU_KPP, - TaxId::TYPE_SA_VAT, - TaxId::TYPE_SG_GST, - TaxId::TYPE_SG_UEN, - TaxId::TYPE_SI_TIN, - TaxId::TYPE_SV_NIT, - TaxId::TYPE_TH_VAT, - TaxId::TYPE_TR_TIN, - TaxId::TYPE_TW_VAT, - TaxId::TYPE_UA_VAT, - TaxId::TYPE_UNKNOWN, - TaxId::TYPE_US_EIN, - TaxId::TYPE_UY_RUC, - TaxId::TYPE_VE_RIF, - TaxId::TYPE_VN_TIN, - TaxId::TYPE_ZA_VAT, + self::TYPE_AD_NRT, + self::TYPE_AE_TRN, + self::TYPE_AR_CUIT, + self::TYPE_AU_ABN, + self::TYPE_AU_ARN, + self::TYPE_BG_UIC, + self::TYPE_BH_VAT, + self::TYPE_BO_TIN, + self::TYPE_BR_CNPJ, + self::TYPE_BR_CPF, + self::TYPE_CA_BN, + self::TYPE_CA_GST_HST, + self::TYPE_CA_PST_BC, + self::TYPE_CA_PST_MB, + self::TYPE_CA_PST_SK, + self::TYPE_CA_QST, + self::TYPE_CH_VAT, + self::TYPE_CL_TIN, + self::TYPE_CN_TIN, + self::TYPE_CO_NIT, + self::TYPE_CR_TIN, + self::TYPE_DE_STN, + self::TYPE_DO_RCN, + self::TYPE_EC_RUC, + self::TYPE_EG_TIN, + self::TYPE_ES_CIF, + self::TYPE_EU_OSS_VAT, + self::TYPE_EU_VAT, + self::TYPE_GB_VAT, + self::TYPE_GE_VAT, + self::TYPE_HK_BR, + self::TYPE_HU_TIN, + self::TYPE_ID_NPWP, + self::TYPE_IL_VAT, + self::TYPE_IN_GST, + self::TYPE_IS_VAT, + self::TYPE_JP_CN, + self::TYPE_JP_RN, + self::TYPE_JP_TRN, + self::TYPE_KE_PIN, + self::TYPE_KR_BRN, + self::TYPE_KZ_BIN, + self::TYPE_LI_UID, + self::TYPE_MX_RFC, + self::TYPE_MY_FRP, + self::TYPE_MY_ITN, + self::TYPE_MY_SST, + self::TYPE_NG_TIN, + self::TYPE_NO_VAT, + self::TYPE_NO_VOEC, + self::TYPE_NZ_GST, + self::TYPE_OM_VAT, + self::TYPE_PE_RUC, + self::TYPE_PH_TIN, + self::TYPE_RO_TIN, + self::TYPE_RS_PIB, + self::TYPE_RU_INN, + self::TYPE_RU_KPP, + self::TYPE_SA_VAT, + self::TYPE_SG_GST, + self::TYPE_SG_UEN, + self::TYPE_SI_TIN, + self::TYPE_SV_NIT, + self::TYPE_TH_VAT, + self::TYPE_TR_TIN, + self::TYPE_TW_VAT, + self::TYPE_UA_VAT, + self::TYPE_UNKNOWN, + self::TYPE_US_EIN, + self::TYPE_UY_RUC, + self::TYPE_VE_RIF, + self::TYPE_VN_TIN, + self::TYPE_ZA_VAT, ]; }