New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create PPQ587, Application for Permit to Import Plants or Plant Products #672
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4ea7f6b
chore: update ag product
rhofvendahl e63d3e4
feat: create ppq587 plant import application
rhofvendahl 700f71d
Merge branch 'main' into feat/ppq587-plant-import
rhofvendahl 4c9d78d
fix: minor description updates
rhofvendahl 7c47bf0
fix: re-sign creds using AgricultureProduct
rhofvendahl File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
132 changes: 132 additions & 0 deletions
132
docs/openapi/components/schemas/common/USDAPPQ587PlantImportApplication.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
$linkedData: | ||
term: USDAPPQ587PlantImportApplication | ||
'@id': https://w3id.org/traceability#USDAPPQ587PlantImportApplication | ||
title: USDA PPQ 587 Application for Permit to Import Plants or Plant Products | ||
description: USDA APHIS (Animal and Plant Health Inspection Service) PPQ (Plant Protection and Quarantine) 587, Application for Permit to Import Plants or Plant Products. | ||
type: object | ||
properties: | ||
type: | ||
type: array | ||
readOnly: true | ||
const: | ||
- USDAPPQ587PlantImportApplication | ||
default: | ||
- USDAPPQ587PlantImportApplication | ||
items: | ||
type: string | ||
enum: | ||
- USDAPPQ587PlantImportApplication | ||
applicant: | ||
title: Applicant | ||
description: Details regarding the person responsible for the importation. Applicant must be a United States resident. Include the organization name and address, if applicable. | ||
$ref: ./Person.yml | ||
$linkedData: | ||
term: applicant | ||
'@id': https://service.unece.org/trade/uncefact/vocabulary/uncefact/#associatedParty | ||
plantProductsImported: | ||
title: Plants or Plant Products to be Imported | ||
description: Details regarding the plants or plant products to be imported | ||
type: array | ||
items: | ||
$ref: ./AgricultureProduct.yml | ||
$linkedData: | ||
term: plantProductsImported | ||
'@id': https://service.unece.org/trade/uncefact/vocabulary/uncefact/#specifiedProduct | ||
intendedUse: | ||
title: Intended Use | ||
description: 'The intended use for these plants or plant products, such as: "Plants for planting (Nursery stock)"; "Small lots of seed"; "Fruit and vegetables"; or other.' | ||
type: string | ||
$linkedData: | ||
term: intendedUse | ||
'@id': https://service.unece.org/trade/uncefact/vocabulary/uncefact/#intendedUse | ||
meansOfTransportation: | ||
title: Means of Transportation | ||
description: 'The means of transportation for these plants or plant products, such as: "Mail or Express carrier"; "Cargo shipment"; "Personal baggage or car"; or other.' | ||
type: string | ||
$linkedData: | ||
term: meansOfTransportation | ||
'@id': https://service.unece.org/trade/uncefact/vocabulary/uncefact/#usedTransportMeans | ||
date: | ||
title: Date | ||
description: The date of completion for this application. | ||
type: string | ||
$linkedData: | ||
term: date | ||
'@id': https://service.unece.org/trade/uncefact/vocabulary/uncefact/#creationDateTime | ||
additionalProperties: false | ||
required: | ||
- type | ||
example: |- | ||
{ | ||
"type": ["USDAPPQ587PlantImportApplication"], | ||
"applicant": { | ||
"type": [ | ||
"Person" | ||
], | ||
"firstName": "Jocelyn", | ||
"lastName": "Grates", | ||
"email": "jgrates@example.com", | ||
"phoneNumber": "+1-460-555-4373", | ||
"worksFor": { | ||
"type": [ | ||
"Organization" | ||
], | ||
"name": "New Fields Foodstuff logistics", | ||
"description": "Agricultural goods distribution", | ||
"email": "contact@example.net", | ||
"phoneNumber": "+1-521-555-6143", | ||
"faxNumber": "+1-150-555-7668" | ||
}, | ||
"jobTitle": "Principal Data Supervisor" | ||
}, | ||
"plantProductsImported": [ | ||
{ | ||
"type": [ | ||
"AgricultureProduct" | ||
], | ||
"upc": "033383401508", | ||
"plu": "94225", | ||
"gtin": "033383401508", | ||
"countryOfOrigin": "United States", | ||
"product": { | ||
"type": [ | ||
"Product" | ||
], | ||
"manufacturer": { | ||
"type": [ | ||
"Organization" | ||
], | ||
"email": "Ashlee.Grady@example.net", | ||
"phoneNumber": "+1-899-555-1399" | ||
}, | ||
"name": "Avocados", | ||
"description": "Avocados, 4 pack boxes", | ||
"sizeOrAmount": { | ||
"type": [ | ||
"QuantitativeValue" | ||
], | ||
"unitCode": "hg/ha", | ||
"value": "60" | ||
}, | ||
"weight": { | ||
"type": [ | ||
"QuantitativeValue" | ||
], | ||
"unitCode": "hg/ha", | ||
"value": "6960" | ||
}, | ||
"sku": "81055399441" | ||
}, | ||
"plantParts": "fruit", | ||
"scientificName": "Persea americana", | ||
"labelImageUrl": "https://img.example.org/033383401508/640/480/", | ||
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", | ||
"name": "Avocados", | ||
"productImageUrl": "https://img.example.org/102934920857/937/903/", | ||
"productImageHash": "8kb47j986hklhde4rfh78okjhgjo08765fgu7tfg4t864fy876rfser45thj87f3" | ||
} | ||
], | ||
"intendedUse": "Fruits and vegetables", | ||
"meansOfTransportation": "Cargo shipment", | ||
"date": "2022-08-10" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍