TransactionDetails

public final class TransactionDetails

Parameters

orderId

Unique identifier assigned to the order by the partner. order_id is specific to the partner namespace.

currentOrderStatus

Status of the order: * IN_PROGRESS is used when order has not processed fully. For example, inventory has not yet been reserved, or payment has not yet been settled. * COMPLETED is used when an order has been processed fully. For example, inventory has been reserved, and the payment has been settled.

orderType

Type of order. Possible order_types. CREATE - Initial type of a brand new order. CHANGE - If a OrderPurchaseScreenRequest has already been submitted for the initial booking with order_type = CREATE, but has now been modified and partner wishes to resubmit for Fraud screening then the order_type = CHANGE. Examples of changes that are supported are changes made to check-in/checkout dates or price of a TravelProduct.

travelProducts
travelers

Individuals who are part of the travel party for the order. At minimum there must be at least 1 traveler.

payments

List of the form(s) of payment being used to purchase the order. One or more forms of payment can be used within an order. Information gathered will be specific to the form of payment.

Constructors

Link copied to clipboard
public TransactionDetails TransactionDetails(String orderId, TransactionDetails.CurrentOrderStatus currentOrderStatus, TransactionDetails.OrderType orderType, List<TravelProduct> travelProducts, List<Traveler> travelers, List<Payment> payments)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard

Status of the order: * IN_PROGRESS is used when order has not processed fully. For example, inventory has not yet been reserved, or payment has not yet been settled. * COMPLETED is used when an order has been processed fully. For example, inventory has been reserved, and the payment has been settled. Values: IN_PROGRESS,COMPLETED

Link copied to clipboard

Type of order. Possible order_types. CREATE - Initial type of a brand new order. CHANGE - If a OrderPurchaseScreenRequest has already been submitted for the initial booking with order_type = CREATE, but has now been modified and partner wishes to resubmit for Fraud screening then the order_type = CHANGE. Examples of changes that are supported are changes made to check-in/checkout dates or price of a TravelProduct. Values: CREATE,CHANGE

Properties

Link copied to clipboard
Link copied to clipboard
@Length(max = 50)
@NotNull()
@Valid()
private final String orderId
Link copied to clipboard
@NotNull()
private final TransactionDetails.OrderType orderType
Link copied to clipboard
@Size(min = 1, max = 30)
@Valid()
private final List<Payment> payments
Link copied to clipboard
@Size(min = 1, max = 30)
@NotNull()
@Valid()
private final List<Traveler> travelers
Link copied to clipboard
@Size(min = 1, max = 20)
@NotNull()
@Valid()
private final List<TravelProduct> travelProducts

Functions

Link copied to clipboard
public final static TransactionDetails.Builder builder()
Link copied to clipboard
public final String getOrderId()
Link copied to clipboard
Link copied to clipboard
public final List<Payment> getPayments()
Link copied to clipboard
public final List<Traveler> getTravelers()
Link copied to clipboard
Link copied to clipboard