Class AddOnOffer

java.lang.Object
travel.wink.sdk.affiliate.model.AddOnOffer

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-10-18T16:39:06.144766291+07:00[Asia/Bangkok]") public class AddOnOffer extends Object
AddOnOffer
  • Field Details

  • Constructor Details

    • AddOnOffer

      public AddOnOffer()
  • Method Details

    • price

      public AddOnOffer price(LocalizedPrice price)
    • getPrice

      @Nullable @Valid public @Valid LocalizedPrice getPrice()
      Get price
      Returns:
      price
    • setPrice

      public void setPrice(LocalizedPrice price)
    • unitPrice

      public AddOnOffer unitPrice(LocalizedPrice unitPrice)
    • getUnitPrice

      @Nullable @Valid public @Valid LocalizedPrice getUnitPrice()
      Get unitPrice
      Returns:
      unitPrice
    • setUnitPrice

      public void setUnitPrice(LocalizedPrice unitPrice)
    • addOnImageUrl

      public AddOnOffer addOnImageUrl(String addOnImageUrl)
    • getAddOnImageUrl

      @Nullable public String getAddOnImageUrl()
      Populated for when we send out confirmation emails to travelers.
      Returns:
      addOnImageUrl
    • setAddOnImageUrl

      public void setAddOnImageUrl(String addOnImageUrl)
    • upgrade

      public AddOnOffer upgrade(AddOn upgrade)
    • getUpgrade

      @Nullable @Valid public @Valid AddOn getUpgrade()
      Get upgrade
      Returns:
      upgrade
    • setUpgrade

      public void setUpgrade(AddOn upgrade)
    • offerDetails

      public AddOnOffer offerDetails(List<SimpleDescription> offerDetails)
    • addOfferDetailsItem

      public AddOnOffer addOfferDetailsItem(SimpleDescription offerDetailsItem)
    • getOfferDetails

      @Nullable @Valid public @Valid List<SimpleDescription> getOfferDetails()
      Localized offer details if any apply
      Returns:
      offerDetails
    • setOfferDetails

      public void setOfferDetails(List<SimpleDescription> offerDetails)
    • promotion

      public AddOnOffer promotion(String promotion)
    • getPromotion

      @Nullable public String getPromotion()
      If an add-on is linked to a rate plan the user could be entitled to a promotional discount if she enters a code. When this field is populated, it means the discount was applied to the add-on.
      Returns:
      promotion
    • setPromotion

      public void setPromotion(String promotion)
    • guests

      public AddOnOffer guests(Integer guests)
    • getGuests

      @Nullable public Integer getGuests()
      Number of guest that will be using this add-on.
      Returns:
      guests
    • setGuests

      public void setGuests(Integer guests)
    • nights

      public AddOnOffer nights(Integer nights)
    • getNights

      @Nullable public Integer getNights()
      Number of nights the guests will be staying.
      Returns:
      nights
    • setNights

      public void setNights(Integer nights)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object