Skip to content

Commit

Permalink
Merge pull request #843 from duffelhq/adds-missing-type
Browse files Browse the repository at this point in the history
Exports new type
  • Loading branch information
andrejak authored Nov 16, 2023
2 parents 7ea8650 + bbb7f33 commit 567a058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/booking/Orders/OrdersTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export interface CreateOrder {
/**
* The services you want to book along wpith the first selected offer.
*/
services?: Pick<OrderService, 'id' | 'quantity'>[]
services?: CreateOrderService[]

/**
* The personal details of the passengers, expanding on the information initially provided when creating the offer request
Expand All @@ -557,6 +557,8 @@ export interface CreateOrder {
metadata?: Record<string, string>
}

export type CreateOrderService = Pick<OrderService, 'id' | 'quantity'>

export interface ListParamsOrders {
/**
* Whether to filter orders that are awaiting payment or not. If not specified, all orders regardless of their payment state will be returned.
Expand Down

0 comments on commit 567a058

Please sign in to comment.