EPG PHP SDK
Loading...
Searching...
No Matches
FlightTransaction Class Reference
+ Inheritance diagram for FlightTransaction:

Public Member Functions

 addItem (FlightItem $item)
 Add a flight item to the cart.
 
- Public Member Functions inherited from BaseTransaction
 setProduct (string $product)
 Sets the product information for the transaction.
 
 setConfirmationCartData (string $confirmationCartDataUrl)
 Set the URL for confirmation cart data.
 
 setDisableFormEdition (bool $value)
 
 setCustomerUserAgent (string $userAgent)
 Sets the customer's user agent information.
 
 setCustomerTitle (string $title)
 Sets the title of the customer.
 
 setCustomerDocumentExpirationDate (string $documentExpirationDate)
 Sets the document expiration date for the customer.
 
 setCustomerLoggedIn (bool $loggedIn)
 Sets the customer's login status.
 
 setCustomerLocale (LanguageCodes $locale)
 Sets the customer's locale.
 
 setShippingMethod (string $method)
 Sets the shipping method for the transaction.
 
 setShippingName (string $name)
 Sets the shipping name, typically the name of the shipping service.
 
 setShippingFirstName (string $firstName)
 Sets the first name of the shipping recipient.
 
 setShippingLastName (string $lastName)
 Sets the last name of the shipping recipient.
 
 setShippingCompany (string $company)
 Sets the company name associated with the shipping address.
 
 setShippingPhoneNumber (string $phoneNumber)
 Sets the phone number for shipping contact.
 
 setShippingEmail (string $email)
 Sets the email address for shipping notifications.
 
 setBilling (Billing $billing)
 Sets the billing information using the Billing object.
 
 setCartCurrency (CurrencyCodes $currency)
 Sets the currency for the cart.
 
 setCartTotalPriceWithTax (float $totalPrice)
 Sets the total price of the cart, including tax.
 
 setCartReference (int $reference)
 Sets a reference number or identifier for the cart.
 
 getCartTotalPriceWithTax ()
 Retrieves the total price with tax of the items in the cart.
 
 getItems ()
 Get the cart items data as an array.
 
 getData ()
 Get all transaction data as an array.
 
 calculateTotalItemPrice ()
 Calculates the total price of all items in the cart.
 
 validate ()
 
 process ()
 

Additional Inherited Members

- Protected Attributes inherited from BaseTransaction
array $data = []
 

Member Function Documentation

◆ addItem()

addItem ( FlightItem  $item)

Add a flight item to the cart.

Parameters
FlightItem$itemThe flight item to add to the cart.
Returns
self Returns the instance of the class for method chaining.

The documentation for this class was generated from the following file: