Skip to content
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

USDA permit to import credential #971

Merged
merged 32 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7836d86
usda permit to import credential
brentzundel Sep 12, 2024
5ffe203
feat: weblei credential
Sep 5, 2024
5af7c42
fix: bugs
Sep 5, 2024
b37a60c
feat: QWI credential
Sep 9, 2024
837af6c
fix: titles
Sep 9, 2024
c029786
Update docs/openapi/components/schemas/common/LEIAuthority.yml
nissimsan Sep 12, 2024
33172ea
Update docs/openapi/components/schemas/common/LEIAuthority.yml
nissimsan Sep 12, 2024
4c2a116
Update docs/openapi/components/schemas/credentials/QualifiedWebLeiIss…
nissimsan Sep 12, 2024
a2f9f22
Update docs/openapi/components/schemas/credentials/QualifiedWebLeiIss…
nissimsan Sep 12, 2024
bc2a007
Update docs/openapi/components/schemas/credentials/QualifiedWebLeiIss…
nissimsan Sep 12, 2024
3daee21
Update docs/openapi/components/schemas/credentials/WebLeiCredential.yml
nissimsan Sep 12, 2024
488cfbf
Update docs/openapi/components/schemas/credentials/WebLeiCredential.yml
nissimsan Sep 12, 2024
006f005
Update docs/openapi/components/schemas/credentials/WebLeiCredential.yml
nissimsan Sep 12, 2024
9ee8a10
Update docs/openapi/components/schemas/credentials/WebLeiCredential.yml
nissimsan Sep 12, 2024
8e69915
Update docs/openapi/components/schemas/credentials/WebLeiCredential.yml
nissimsan Sep 12, 2024
cd8272e
actually add schema
brentzundel Sep 13, 2024
b671a07
Merge branch 'w3c-ccg:main' into usda-permit2
brentzundel Sep 13, 2024
87171ad
test ci with minimal credential
brentzundel Sep 13, 2024
db8142c
add type to issuer
brentzundel Sep 13, 2024
0db1150
add missing comma
brentzundel Sep 13, 2024
045190f
add rest of schema
brentzundel Sep 13, 2024
8f09304
go back to good state
brentzundel Sep 13, 2024
b9274ed
try to add one more bit
brentzundel Sep 13, 2024
abc8c2a
try to add one more bit
brentzundel Sep 13, 2024
0ad64d6
try to add one more bit
brentzundel Sep 13, 2024
be21047
try to add one more bit
brentzundel Sep 13, 2024
463c7b9
try to add one more bit - shipment
brentzundel Sep 13, 2024
719fe62
try to add one more bit - shipment detail
brentzundel Sep 13, 2024
1a81b1d
try to add one more bit - intended use
brentzundel Sep 13, 2024
be22810
try to add one more bit - approval date
brentzundel Sep 13, 2024
4a983d6
try to add the rest
brentzundel Sep 13, 2024
90e9a87
Update docs/openapi/components/schemas/credentials/USDAPermitToImport…
brentzundel Sep 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/credentials-with-issuer-dependent-terms.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"type": "USMCACertificationOfOrigin",
"count": 6
},
{
"type": "USDAPermitToImportCredential",
"count": 6
}
{
"type": "ThingCredential",
"count": 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,364 @@
$linkedData:
term: USDAPermitToImportCredential
'@id': https://w3id.org/traceability#USDAPermitToImportCredential
title: USDA Permit to Import Plants or Plant Products
tags:
- Agriculture
description: USDA APHIS (Animal and Plant Health Inspection Service) Permit to Import Plants or Plant Products
type: object
properties:
'@context':
type: array
readOnly: true
const:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
default:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
items:
type: string
enum:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
type:
type: array
readOnly: true
const:
- VerifiableCredential
- USDAPermitToImportCredential
default:
- VerifiableCredential
- USDAPermitToImportCredential
items:
type: string
enum:
- VerifiableCredential
- USDAPermitToImportCredential
id:
type: string
issuanceDate:
type: string
format: date-time
expirationDate:
type: string
format: date-time
issuer:
$ref: ../common/Organization.yml
credentialSchema:
type: object
properties:
id:
title: Id
description: The url of the schema file to validate the shape of the json object
type: string
format: uri
example: https://w3id.org/traceability/openapi/components/schemas/credentials/USDAPermitToImportCredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/USDAPermitToImportCredential.yml
readOnly: true
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
title: Permit Details
type: object
properties:
applicationNumber:
title: Application Number
type: string
permitNumber:
title: Permit Number
type: string
applicant:
title: Applicant
description: Organization that applied for import.
$ref: ../common/Organization.yml
$linkedData:
term: applicant
'@id': https://vocabulary.uncefact.org/associatedParty
permittee:
title: Permittee
description: Organization permitted to import.
$ref: ../common/Organization.yml
$linkedData:
term: applicant
'@id': https://vocabulary.uncefact.org/associatedParty
shipment:
title: Shipment
description: Details for the shipment of agricultural goods.
$ref: ../common/AgricultureParcelDelivery.yml
$linkedData:
term: shipment
'@id': https://vocabulary.uncefact.org/transportPackage
intendedUse:
title: Intended Use
description: >-
The intended use for the imported products as reported in USDAPPQ587PlantImportApplication,
this would be "plants for planting", "small lots of seed", or "fruits and vegetables".
type: string
$linkedData:
term: intendedUse
'@id': https://vocabulary.uncefact.org/intendedUse
approvalDate:
title: Signature Date
description: Date when the application was approved.
type: string
$linkedData:
term: approvalDate
'@id': https://vocabulary.uncefact.org/issueDateTime
ppqHeadquarterOfficial:
title: PPQ Headquarter Official
description: The approving PPQ Headquarter Official
type: string
permitConditions:
title: Permit Conditions
type: string
additionalProperties: false
required:
- applicationNumber
- permitNumber
- applicant
- permittee
- intendedUse
- approvalDate
- ppqHeadquarterOfficial
- permitConditions
additionalProperties: false
required:
- '@context'
- type
- id
- issuanceDate
- issuer
- credentialSubject
example: |-
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/traceability/v1"
],
"id": "http://example.com/dd0c6f9a-5df6-40a3-bb34-863cd1fda606",
"credentialSchema": {
"type": "OpenApiSpecificationValidator2022",
"id": "https://w3id.org/traceability/openapi/components/schemas/credentials/USDAPermitToImportCredential.yml"
},
"type": [
"VerifiableCredential",
"USDAPermitToImportCredential"
],
"issuer": {
"type": [
"Organization"
],
"id": "did:web:usda.example.org",
"name": "USDA"
},
"issuanceDate": "2022-11-01T10:58:45-04:00",
"credentialSubject": {
"applicationNumber": "A-0000XXXX",
"permitNumber": "5A-91-287-XXXXX",
"applicant": {
"type": [
"Organization"
],
"name": "Ace Foodstuffs",
"description": "Agricultural goods shipping & distribution",
"email": "Hipolito58@acefoodstuffs.org",
"phoneNumber": "+1-133-555-3764",
"faxNumber": "+1-592-555-3697"
},
"permittee": {
"type": [
"Organization"
],
"name": "Ace Foodstuffs",
"description": "Agricultural goods shipping & distribution",
"email": "Hipolito58@acefoodstuffs.org",
"phoneNumber": "+1-133-555-3764",
"faxNumber": "+1-592-555-3697"
},
"shipment": {
"type": [
"AgricultureParcelDelivery"
],
"deliveryAddress": {
"type": [
"PostalAddress"
],
"name": "Bartell - Doyle",
"streetAddress": "84189 Roberts Route",
"addressLocality": "Kautzerstad",
"addressRegion": "Louisiana",
"postalCode": "37950-5855",
"addressCountry": "Mongolia"
},
"originAddress": {
"type": [
"PostalAddress"
],
"name": "Marks, Runte and Bartell",
"streetAddress": "97696 Weissnat Pines",
"addressLocality": "Reynabury",
"addressRegion": "North Dakota",
"postalCode": "51361-9603",
"addressCountry": "Virgin Islands, U.S."
},
"foreignPortExport": {
"type": [
"Place"
],
"globalLocationNumber": "4947538126450",
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "40.5464",
"longitude": "-37.6146"
},
"address": {
"type": [
"PostalAddress"
],
"name": "Moen - Swift",
"streetAddress": "9746 Laron Gardens",
"addressLocality": "Port Flossie",
"addressRegion": "Hawaii",
"postalCode": "64687",
"addressCountry": "Djibouti"
},
"unLocode": "DKCPH"
},
"portOfEntry": {
"type": [
"Place"
],
"globalLocationNumber": "2184109798407",
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "38.8485",
"longitude": "-34.0883"
},
"address": {
"type": [
"PostalAddress"
],
"name": "Mills, Daugherty and Nader",
"streetAddress": "39514 Kulas Terrace",
"addressLocality": "East Avis",
"addressRegion": "Utah",
"postalCode": "45553",
"addressCountry": "Northern Mariana Islands"
},
"unLocode": "DKCPH"
},
"deliveryMethod": "Truck transport",
"trackingNumber": "866440000109",
"expectedArrival": "2021-03-14",
"specialInstructions": "The package is top-heavy so handle with appropriate caution.",
"consignee": {
"type": [
"Organization"
],
"name": "Ace Foodstuffs",
"description": "Agricultural goods shipping & distribution",
"email": "Hipolito58@acefoodstuffs.org",
"phoneNumber": "+1-413-555-8078",
"faxNumber": "+1-625-555-7496"
},
"agriculturePackage": [
{
"type": [
"AgriculturePackage"
],
"packageName": "Avocados, Bulk",
"grade": "AA",
"responsibleParty": {
"type": [
"Organization"
],
"name": "Example Responsible Party Organization",
"email": "Chadrick_Gibson@example.com",
"phoneNumber": "+1-470-555-7721"
},
"voicePickCode": "4642",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
{
"type": [
"AgricultureProduct"
],
"plu": "94225",
"product": {
"type": [
"Product"
],
"manufacturer": {
"type": [
"Organization"
],
"email": "Ashlee.Grady@example.net",
"phoneNumber": "+1-300-555-2516"
},
"name": "Avocados",
"description": "Avocados, 4 pack boxes",
"weight": {
"type": [
"QuantitativeValue"
],
"unitCode": "hg/ha",
"value": "6960"
},
"sku": "81055399441"
},
"scientificName": "Persea americana",
"labelImageUrl": "https://img.example.org/033383401508/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
]
}
],
"shipper": {
"type": [
"Organization"
],
"name": "Green Fields",
"description": "Growing & packaging for high quality produce",
"email": "sales@greenfields.org",
"phoneNumber": "+1-630-555-9134"
},
"purchaser": {
"type": [
"Organization"
],
"name": "Ace Foodstuffs",
"description": "Agricultural goods shipping & distribution",
"email": "Hipolito58@acefoodstuffs.org",
"phoneNumber": "+1-449-555-8392",
"faxNumber": "+1-542-555-0393"
},
"carrier": {
"type": [
"Organization"
],
"email": "Adaline29@example.com",
"phoneNumber": "+1-191-555-8578"
},
"broker": {
"type": [
"Organization"
],
"name": "Koch LLC",
"leiCode": "54321351219389121979"
}
},
"intendedUse": "fruits and vegetables",
"approvalDate": "2021-02-16",
"ppqHeadquarterOfficial": "APHIS eFile Automatic Issued Permit Regulated by 7 CFR 319.",
"permitConditions": "This permit authorizes the importation of the listed articles, under the conditions specified below. A copy of the first page of this permit must accompany all shipments authorized under this permit. For additional questions concerning this permit..."
}
}