| 
									
										
										
										
											2024-03-05 06:02:58 -05:00
										 |  |  | defmodule IbanEx.Country.DE do | 
					
						
							|  |  |  |   @moduledoc """
 | 
					
						
							|  |  |  |   Germany IBAN parsing rules | 
					
						
							| 
									
										
										
										
											2024-03-10 20:02:20 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |   ## Examples | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-14 19:15:55 -04:00
										 |  |  |   ```elixir | 
					
						
							|  |  |  |       iex>  %IbanEx.Iban{ | 
					
						
							|  |  |  |       ...>    country_code: "DE", | 
					
						
							|  |  |  |       ...>    check_digits: "89", | 
					
						
							|  |  |  |       ...>    bank_code: "37040044", | 
					
						
							|  |  |  |       ...>    branch_code: nil, | 
					
						
							|  |  |  |       ...>    national_check: nil, | 
					
						
							|  |  |  |       ...>    account_number: "0532013000" | 
					
						
							|  |  |  |       ...>  } | 
					
						
							|  |  |  |       ...>  |> IbanEx.Country.DE.to_string() | 
					
						
							|  |  |  |       "DE 89 37040044 0532013000" | 
					
						
							|  |  |  |   ``` | 
					
						
							| 
									
										
										
										
											2024-03-05 06:02:58 -05:00
										 |  |  |   """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   @size 22 | 
					
						
							|  |  |  |   @rule ~r/^(?<bank_code>[0-9]{8})(?<account_number>[0-9]{10})$/i | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-07 18:33:38 -05:00
										 |  |  |   use IbanEx.Country.Template | 
					
						
							| 
									
										
										
										
											2024-03-05 06:02:58 -05:00
										 |  |  | end |