Skip to content

Commit 567a058

Browse files
authored
Merge pull request #843 from duffelhq/adds-missing-type
Exports new type
2 parents 7ea8650 + bbb7f33 commit 567a058

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/booking/Orders/OrdersTypes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export interface CreateOrder {
530530
/**
531531
* The services you want to book along wpith the first selected offer.
532532
*/
533-
services?: Pick<OrderService, 'id' | 'quantity'>[]
533+
services?: CreateOrderService[]
534534

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

560+
export type CreateOrderService = Pick<OrderService, 'id' | 'quantity'>
561+
560562
export interface ListParamsOrders {
561563
/**
562564
* Whether to filter orders that are awaiting payment or not. If not specified, all orders regardless of their payment state will be returned.

0 commit comments

Comments
 (0)