Skip to content

Commit f1ce8d9

Browse files
authored
Merge pull request #841 from duffelhq/adds-missing-type
Fixes CreateOrder type
2 parents 421ca5a + 133b3a8 commit f1ce8d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/booking/Orders/OrdersTypes.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ export interface CreateOrder {
528528
selected_offers: string[]
529529

530530
/**
531-
* The services you want to book along with the first selected offer.
531+
* The services you want to book along wpith the first selected offer.
532532
*/
533533
services?: Pick<OrderService, 'id' | 'quantity'>[]
534534

@@ -546,6 +546,15 @@ export interface CreateOrder {
546546
* The payment action you want to take for your order. You can only use pay_later with offers that contain requires_instant_payment: false.
547547
*/
548548
type: 'instant' | 'pay_later'
549+
550+
/**
551+
* Metadata contains a set of key-value pairs that you can attach to an object. It can be useful for storing additional information about the object, in a structured format. Duffel does not use this information. You should not store sensitive information in this field.
552+
*
553+
* The metadata is a collection of key-value pairs, both of which are strings. You can store a maximum of 50 key-value pairs, where each key has a maximum length of 40 characters and each value has a maximum length of 500 characters.
554+
*
555+
* Keys must only contain numbers, letters, dashes, or underscores.
556+
*/
557+
metadata?: Record<string, string>
549558
}
550559

551560
export interface ListParamsOrders {

0 commit comments

Comments
 (0)