PetRescue: New organisation identifiers - #2129
Open
adamdspencer77 wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nsw_supply_number: NSW RON/BINvic_supply_number: VIC Supply Number / Source Numberqld_supply_number: QLD BIN/BENsa_supply_number: SA DACO Organisation NumberThese new fields are preferred over existing breeder id, source number, daco, and rehoming organisation number. The existing fields remain supported for backwards compatibility on older listings.
These fields must be in the expected format. Spaces are stripped before validation.
Field | Validation -- | -- nsw_supply_number | Must start with R or B . Must end with exactly 5 digits. Can have up to 14 letters/numbers between the first letter and final 5 digits. Examples: RABCDE12345 , B12345 . vic_supply_number | Must be exactly 2 letters followed by exactly 6 digits. Example: RE123456 . qld_supply_number | Must start with BIN or BEN , followed by exactly 13 digits. Example: BIN1234567890123 . sa_supply_number | Must start with DACO , followed by at least 1 digit. Example: DACO123456 .
Existing integrations do not need to change immediately unless you want to start sending the new state-specific fields.