Skip to content

Commit f6c1af1

Browse files
authored
Merge pull request #9 from blecorre/feat/groups-usd-support
feat: add deposit options in group booking response
2 parents c2affea + 03b331b commit f6c1af1

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/shared-definitions.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ components:
20622062
GroupBookingRequest:
20632063
description: Representation of a group booking request.
20642064
type: object
2065-
required: ['organizerInfo', 'invoice', 'guestCount', 'offers', 'deposit']
2065+
required: ['organizerInfo', 'invoice', 'guestCount', 'offers']
20662066
properties:
20672067
organizerInfo:
20682068
description: information about the organizer.
@@ -2078,9 +2078,6 @@ components:
20782078
type: array
20792079
items:
20802080
$ref: '#/components/schemas/OfferIdAndQuantity'
2081-
deposit:
2082-
description: value of the deposit paid for the group booking request
2083-
$ref: '#/components/schemas/GroupBookingDeposit'
20842081

20852082
OfferIdAndQuantity:
20862083
description: Representation of an offerId and its associated quantity
@@ -2131,10 +2128,26 @@ components:
21312128
currency:
21322129
$ref: '#/components/schemas/Currency'
21332130

2131+
GroupBookingDeposits:
2132+
description: Available deposit options
2133+
required: ['offerCurrency']
2134+
properties:
2135+
usd:
2136+
description: the deposit in USD
2137+
$ref: '#/components/schemas/Amount'
2138+
preferredCurrency:
2139+
description: the deposit in the user preferred currency
2140+
$ref: '#/components/schemas/GroupBookingDeposit'
2141+
offerCurrency:
2142+
description: the deposit in the currency of the offer
2143+
$ref: '#/components/schemas/GroupBookingDeposit'
2144+
21342145
GroupBookingRequestResponse:
21352146
description: Representation of a response to a group booking request
2136-
required: ['requestId']
2147+
required: ['requestId', 'depositOptions']
21372148
properties:
21382149
requestId:
21392150
description: Id of the group booking request
21402151
type: string
2152+
depositOptions:
2153+
$ref: '#/components/schemas/GroupBookingDeposits'

0 commit comments

Comments
 (0)