Skip to content

Commit

Permalink
fix: go back to safety
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMoe committed Oct 25, 2023
1 parent e24cacb commit 73b91f4
Showing 1 changed file with 6 additions and 187 deletions.
193 changes: 6 additions & 187 deletions docs/openapi/components/schemas/credentials/EInvoiceCredential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ properties:
type: string
enum:
- Invoice
taxIdNumber:
title: Tax Id Number
description: Tax Id for Documents such as SAT
type: string
relatedDocuments:
title: Documents Linked or Referenced
description: References to other documents which can be used to support the claims of the current document
Expand All @@ -235,6 +231,10 @@ properties:
type:
const: LinkedDocument
default: LinkedDocument
documentId:
title: Document Identifier
description: The Identifier of the document being referenced
type: string
documentType:
title: Document Type
description: The type of the document being referenced
Expand All @@ -245,12 +245,6 @@ properties:
- BillOfLading
- CertificationOfOrigin
- LetterOfCredit
- ProFormaInvoice
- Other
documentId:
title: Document Identifier
description: The Identifier of the document being referenced
type: string
buyer:
title: Buyer
description: Importer of record. Party placing the order or paying the invoice.
Expand Down Expand Up @@ -388,10 +382,6 @@ properties:
title: Product Identifier
description: The product identifier, such as ISBN.
type: string
batchNumber:
title: Batch Number
description: A tracking number for commodities
type: string
price:
title: Price
description: >-
Expand Down Expand Up @@ -564,6 +554,7 @@ properties:
- type
minItems: 0
maxItems: 1

payment:
title: Payment
description: Information about payment
Expand Down Expand Up @@ -632,144 +623,6 @@ properties:
The currency of the price, or a price component when attached to
PriceSpecification and its subtypes.
type: string
paymentDetails:
title: Payment Details (optional)
description: Information on the payment details to the beneficiary
type: array
items:
type: object
properties:
type:
type: array
readOnly: true
const:
- PaymentDetails
default:
- PaymentDetails
items:
type: string
enum:
- PaymentDetails
beneficiaryName:
title: Beneficiary Name
description: Name of the Beneficiary
type: string
beneficiaryAddress:
title: Beneficiary Address
description: The postal address of the Beneficiary
type: object
additionalProperties: false
required:
- type
properties:
type:
type: array
readOnly: true
const:
- PostalAddress
default:
- PostalAddress
items:
type: string
enum:
- PostalAddress
streetAddress:
title: Street Address
description: >-
The street address expressed as free form text. The street address is
printed on paper as the first lines below the name. For example, the name
of the street and the number in the street or the name of a building.
type: string
addressLocality:
title: Address Locality
description: Text specifying the name of the locality; for example, a city.
type: string
addressRegion:
title: Address Region
description: >-
Text specifying a province or state in abbreviated format; for example,
NJ.
type: string
addressCountry:
title: Address Country
description: >-
The two-letter ISO 3166-1 alpha-2 country code.
type: string
postalCode:
title: Postal Code
description: Text specifying the postal code for an address.
type: string
bankName:
title: Bank Name
description: Name of the bank
type: string
bankAddress:
title: Bank Address
description: The postal address of the bank
type: object
additionalProperties: false
required:
- type
properties:
type:
type: array
readOnly: true
const:
- PostalAddress
default:
- PostalAddress
items:
type: string
enum:
- PostalAddress
streetAddress:
title: Street Address
description: >-
The street address expressed as free form text. The street address is
printed on paper as the first lines below the name. For example, the name
of the street and the number in the street or the name of a building.
type: string
addressLocality:
title: Address Locality
description: Text specifying the name of the locality; for example, a city.
type: string
addressRegion:
title: Address Region
description: >-
Text specifying a province or state in abbreviated format; for example,
NJ.
type: string
addressCountry:
title: Address Country
description: >-
The two-letter ISO 3166-1 alpha-2 country code.
type: string
postalCode:
title: Postal Code
description: Text specifying the postal code for an address.
type: string
transitNumber:
title: Transit Number
description: A nine-digit number that helps financial institutions identify what institution issued checks or other documents financial documents
type: string
institutionNumber:
title: Institution Number
description: A unique code assigned to a certain bank or financial institution to identify them
type: string
accountNumber:
title: Account Number
description: The account number of the beneficiary at the bank
type: string
swiftCode:
title: Swift Code
description: Swift code for the financial institution
type: string
routingNumber:
title: Routing Number
description: Routing Number for the institution
type: string
minItems: 0
maxItems: 1
discounts:
title: Discounts (optional)
description: Reductions in price applied to the subtotal
Expand Down Expand Up @@ -879,7 +732,6 @@ example: |-
"type": [
"Invoice"
],
"taxIdNumber": "88800012345",
"relatedDocuments" : [
{
"type": "LinkedDocument",
Expand Down Expand Up @@ -925,7 +777,6 @@ example: |-
"name": "Rebar",
"description": "Round Rebar used for Construction",
"productIdentifier": "rn19082-a",
"batchNumber": "010",
"price": 1000,
"count": 5,
"priceCurrency": "USD",
Expand Down Expand Up @@ -988,39 +839,7 @@ example: |-
"reason": "First time customer"
}
]
},
"paymentDetails" : [
{
"type":["PaymentDetails"],
"beneficiaryName": "American Prime Steel Inc.",
"beneficiaryAddress": {
"type": [
"PostalAddress"
],
"streetAddress": "1551 Keebler Knoll",
"addressLocality": "Vivianeburgh",
"addressRegion": "Oregon",
"postalCode": "47090",
"addressCountry": "US"
},
"bankName": "Example Bank",
"bankAddress": {
"type": [
"PostalAddress"
],
"streetAddress": "17101 SW SUGAR PLUM LN",
"addressLocality": "BEAVERTON",
"addressRegion": "Oregon",
"postalCode": "97007",
"addressCountry": "US"
},
"transitNumber": "123456789",
"institutionNumber": "000",
"accountNumber": "123456789",
"swiftCode": "AAAA-BB-CC-123",
"routingNumber": "123456789"
}
]
}
}
},
"credentialSchema": {
Expand Down

0 comments on commit 73b91f4

Please sign in to comment.