summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 03:10:44 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 03:10:44 -0400
commit6d7ba58f880be618ade07f8ea080fe8c4bf8a896 (patch)
treeb1c931051ffcebd2bd9d61d98d6233ffa289bbce /venv/lib/python3.11/site-packages/faker/providers/bank/en_PH
parent4f884c9abc32990b4061a1bb6997b4b37e58ea0b (diff)
venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/bank/en_PH')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py109
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pycbin0 -> 3031 bytes
2 files changed, 109 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py
new file mode 100644
index 0000000..22e92a3
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py
@@ -0,0 +1,109 @@
+import logging
+
+from faker.providers.bank import Provider as BankProvider
+
+logger = logging.getLogger(__name__)
+
+
+class Provider(BankProvider):
+ """Implement bank provider for ``en_PH`` locale."""
+
+ country_code = "PH"
+ bban_format = "################"
+ swift_bank_codes = (
+ "ANZB",
+ "AUBK",
+ "BKCH",
+ "BKKB",
+ "BNOR",
+ "BNPA",
+ "BOFA",
+ "BOPI",
+ "BOTK",
+ "BPDI",
+ "BPFS",
+ "BPGO",
+ "CHAS",
+ "CHBK",
+ "CHSV",
+ "CITI",
+ "CPHI",
+ "CTCB",
+ "DBPH",
+ "DEUT",
+ "EQSN",
+ "EWBC",
+ "FCBK",
+ "HBPH",
+ "HNBK",
+ "HSBC",
+ "IBKO",
+ "ICBC",
+ "INGB",
+ "KOEX",
+ "MBBE",
+ "MBTC",
+ "MHCB",
+ "PABI",
+ "PHSB",
+ "PHTB",
+ "PHVB",
+ "PNBM",
+ "PPBU",
+ "RCBC",
+ "ROBP",
+ "SCBL",
+ "SETC",
+ "SHBK",
+ "SMBC",
+ "STLA",
+ "TACB",
+ "TLBP",
+ "TYBK",
+ "UBPH",
+ "UCPB",
+ "UOVB",
+ "UWCB",
+ )
+ swift_location_codes = (
+ "22",
+ "2X",
+ "M1",
+ "MM",
+ "MQ",
+ "MX",
+ )
+ swift_branch_codes = (
+ "CBU",
+ "EQI",
+ "TSU",
+ "XXX",
+ )
+
+ def bban(self) -> str:
+ """Generate a Basic Bank Account Number (BBAN).
+
+ .. warning::
+ Philippine bank accounts do not have BBANs or IBANs, so any number
+ generated by this method is a purely hypothetical number. Local bank
+ account numbers are typically 10 or 12 digits long, so the BBAN
+ format used in this implementation has been arbitrarily set to 16
+ digits to simulate a hypothetical standardization of account numbers.
+ Using this method will log a warning regarding the hypotheticality of
+ the result.
+ """
+ logger.warning("Numbers generated by this method are purely hypothetical.")
+ return super().bban()
+
+ def iban(self) -> str:
+ """Generate an International Bank Account Number (IBAN).
+
+ .. warning::
+ Philippine bank accounts do not have BBANs or IBANs, so any number
+ generated by this method is a purely hypothetical number. This method
+ uses hypothetical PH BBANs and the PH country code as inputs to the
+ IBAN generation algorithm. Using this method will log a warning
+ regarding the hypotheticality of the result.
+ """
+ logger.warning("Numbers generated by this method are purely hypothetical.")
+ return super().iban()
diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000..dbc64a7
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc
Binary files differ