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

feat: 🎸 add passenger address #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
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
30 changes: 30 additions & 0 deletions src/shared-definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,33 @@ components:
items:
$ref: '#/components/schemas/LoyaltyProgram'

PassengerAddress:
description: Address of a passenger
type: object
required: ['addressLine1']
properties:
addressLine1:
description: address line 1
type: string
example: Maskingatan 11
addressLine2:
description: address line 2
type: string
example: Maskingatan 11
city:
description: city name
type: string
example: Gothenburg
postalCode:
description: postal code
type: string
example: 417 64
countryCode:
description: The 2-letters ISO country code
type: string
pattern: '^[A-Z]{2}$'
example: 'US'

PassengerSearch:
description: A representation of a passenger
type: object
Expand Down Expand Up @@ -314,6 +341,9 @@ components:
description: A list of loyalty programs that this passenger benefits from
allOf:
- $ref: '#/components/schemas/LoyaltyPrograms'
address:
$ref: '#/components/schemas/PassengerAddress'

example:
{
'type': 'ADT',
Expand Down