Class OfferIndexPaymentRequirements

java.lang.Object
com.duffel.sdk.model.OfferIndexPaymentRequirements

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class OfferIndexPaymentRequirements extends Object
OfferIndexPaymentRequirements
  • Field Details

    • JSON_PROPERTY_PAYMENT_REQUIRED_BY

      public static final String JSON_PROPERTY_PAYMENT_REQUIRED_BY
      See Also:
    • JSON_PROPERTY_PRICE_GUARANTEE_EXPIRES_AT

      public static final String JSON_PROPERTY_PRICE_GUARANTEE_EXPIRES_AT
      See Also:
    • JSON_PROPERTY_REQUIRES_INSTANT_PAYMENT

      public static final String JSON_PROPERTY_REQUIRES_INSTANT_PAYMENT
      See Also:
  • Constructor Details

    • OfferIndexPaymentRequirements

      public OfferIndexPaymentRequirements()
  • Method Details

    • paymentRequiredBy

      public OfferIndexPaymentRequirements paymentRequiredBy(OffsetDateTime paymentRequiredBy)
    • getPaymentRequiredBy

      @Nullable @Valid public @Valid OffsetDateTime getPaymentRequiredBy()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime by which you must pay for this offer. At this time, if still unpaid, the reserved space on the flight(s) will be released and you will have to create a new order. This will be `null` when the offer requires immediate payment - that is, when `requires_instant_payment` is `true`.
      Returns:
      paymentRequiredBy
    • getPaymentRequiredBy_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getPaymentRequiredBy_JsonNullable()
    • setPaymentRequiredBy_JsonNullable

      public void setPaymentRequiredBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> paymentRequiredBy)
    • setPaymentRequiredBy

      public void setPaymentRequiredBy(OffsetDateTime paymentRequiredBy)
    • priceGuaranteeExpiresAt

      public OfferIndexPaymentRequirements priceGuaranteeExpiresAt(OffsetDateTime priceGuaranteeExpiresAt)
    • getPriceGuaranteeExpiresAt

      @Nullable @Valid public @Valid OffsetDateTime getPriceGuaranteeExpiresAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the price associated with the order will no longer be guaranteed by the airline and may change before payment. This will be `null` when `requires_instant_payment` is `true`.
      Returns:
      priceGuaranteeExpiresAt
    • getPriceGuaranteeExpiresAt_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getPriceGuaranteeExpiresAt_JsonNullable()
    • setPriceGuaranteeExpiresAt_JsonNullable

      public void setPriceGuaranteeExpiresAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> priceGuaranteeExpiresAt)
    • setPriceGuaranteeExpiresAt

      public void setPriceGuaranteeExpiresAt(OffsetDateTime priceGuaranteeExpiresAt)
    • requiresInstantPayment

      public OfferIndexPaymentRequirements requiresInstantPayment(Boolean requiresInstantPayment)
    • getRequiresInstantPayment

      @Nullable public Boolean getRequiresInstantPayment()
      When payment is required at the time of booking this will be `true` and `payment_required_by` and `price_guarantee_expires_at` will be `null`. When payment can be made at a time after booking, this will be `false` and the time limits on the payment will be provided in `payment_required_by` and `price_guarantee_expires_at`.
      Returns:
      requiresInstantPayment
    • setRequiresInstantPayment

      public void setRequiresInstantPayment(Boolean requiresInstantPayment)
    • 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