Package com.duffel.sdk.model
Class CreateOrderRequestData
java.lang.Object
com.duffel.sdk.model.CreateOrderRequestData
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class CreateOrderRequestData
extends Object
CreateOrderRequestData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengersItem(OrderRequestPassenger passengersItem) addPaymentsItem(CreateOrderRequestDataPaymentsInner paymentsItem) addSelectedOffersItem(String selectedOffersItem) addServicesItem(OrderRequestService servicesItem) booleanMetadata contains a set of key-value pairs that you can attach to an object.@NotNull @Valid List<OrderRequestPassenger> The personal details of the passengers, expanding on the information initially provided when creating the offer request@NotNull @Valid List<CreateOrderRequestDataPaymentsInner> The payment details to use to pay for the order.The `id`s of the offers you want to book.@Valid List<OrderRequestService> The services you want to book along with the first selected offer.getType()The type of order.inthashCode()passengers(List<OrderRequestPassenger> passengers) payments(List<CreateOrderRequestDataPaymentsInner> payments) selectedOffers(List<String> selectedOffers) services(List<OrderRequestService> services) voidsetMetadata(Object metadata) voidsetPassengers(List<OrderRequestPassenger> passengers) voidsetPayments(List<CreateOrderRequestDataPaymentsInner> payments) voidsetSelectedOffers(List<String> selectedOffers) voidsetServices(List<OrderRequestService> services) voidtoString()
-
Field Details
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_PASSENGERS
- See Also:
-
JSON_PROPERTY_PAYMENTS
- See Also:
-
JSON_PROPERTY_SELECTED_OFFERS
- See Also:
-
JSON_PROPERTY_SERVICES
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CreateOrderRequestData
public CreateOrderRequestData()
-
-
Method Details
-
metadata
-
getMetadata
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. 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. Keys must only contain numbers, letters, dashes, or underscores.- Returns:
- metadata
-
setMetadata
-
passengers
-
addPassengersItem
-
getPassengers
The personal details of the passengers, expanding on the information initially provided when creating the offer request- Returns:
- passengers
-
setPassengers
-
payments
-
addPaymentsItem
-
getPayments
@Nonnull @NotNull @Valid public @NotNull @Valid List<CreateOrderRequestDataPaymentsInner> getPayments()The payment details to use to pay for the order. This key should be omitted when the order’s `type` is `hold`.- Returns:
- payments
-
setPayments
-
selectedOffers
-
addSelectedOffersItem
-
getSelectedOffers
The `id`s of the offers you want to book. You must specify an array containing exactly one selected offer. Note that you can only book one offer per offer request.- Returns:
- selectedOffers
-
setSelectedOffers
-
services
-
addServicesItem
-
getServices
The services you want to book along with the first selected offer. This key should be omitted when the order’s type is `hold`, as we do not support services for `hold` orders yet.- Returns:
- services
-
setServices
-
type
-
getType
The type of order. You can only use `hold` with offers where `payment_requirements.requires_instant_payment` is `false`. When booking an offer with type `hold`, do not specify `payments` or `services` keys.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-