Class Coupon

java.lang.Object
travel.wink.sdk.extranet.model.Coupon

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-20T21:56:24.013599+07:00[Asia/Bangkok]") public class Coupon extends Object
Coupon
  • Field Details

  • Constructor Details

    • Coupon

      public Coupon()
  • Method Details

    • amountOff

      public Coupon amountOff(Long amountOff)
    • getAmountOff

      @Nullable public Long getAmountOff()
      Get amountOff
      Returns:
      amountOff
    • setAmountOff

      public void setAmountOff(Long amountOff)
    • created

      public Coupon created(Long created)
    • getCreated

      @Nullable public Long getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(Long created)
    • currency

      public Coupon currency(String currency)
    • getCurrency

      @Nullable public String getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency(String currency)
    • deleted

      public Coupon deleted(Boolean deleted)
    • getDeleted

      @Nullable public Boolean getDeleted()
      Get deleted
      Returns:
      deleted
    • setDeleted

      public void setDeleted(Boolean deleted)
    • duration

      public Coupon duration(String duration)
    • getDuration

      @Nullable public String getDuration()
      Get duration
      Returns:
      duration
    • setDuration

      public void setDuration(String duration)
    • durationInMonths

      public Coupon durationInMonths(Long durationInMonths)
    • getDurationInMonths

      @Nullable public Long getDurationInMonths()
      Get durationInMonths
      Returns:
      durationInMonths
    • setDurationInMonths

      public void setDurationInMonths(Long durationInMonths)
    • id

      public Coupon id(String id)
    • getId

      @Nullable public String getId()
      Get id
      Returns:
      id
    • setId

      public void setId(String id)
    • livemode

      public Coupon livemode(Boolean livemode)
    • getLivemode

      @Nullable public Boolean getLivemode()
      Get livemode
      Returns:
      livemode
    • setLivemode

      public void setLivemode(Boolean livemode)
    • maxRedemptions

      public Coupon maxRedemptions(Long maxRedemptions)
    • getMaxRedemptions

      @Nullable public Long getMaxRedemptions()
      Get maxRedemptions
      Returns:
      maxRedemptions
    • setMaxRedemptions

      public void setMaxRedemptions(Long maxRedemptions)
    • metadata

      public Coupon metadata(Map<String,String> metadata)
    • putMetadataItem

      public Coupon putMetadataItem(String key, String metadataItem)
    • getMetadata

      @Nullable public Map<String,String> getMetadata()
      Get metadata
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
    • name

      public Coupon name(String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(String name)
    • _object

      public Coupon _object(String _object)
    • getObject

      @Nullable public String getObject()
      Get _object
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • percentOff

      public Coupon percentOff(BigDecimal percentOff)
    • getPercentOff

      @Nullable @Valid public @Valid BigDecimal getPercentOff()
      Get percentOff
      Returns:
      percentOff
    • setPercentOff

      public void setPercentOff(BigDecimal percentOff)
    • redeemBy

      public Coupon redeemBy(Long redeemBy)
    • getRedeemBy

      @Nullable public Long getRedeemBy()
      Get redeemBy
      Returns:
      redeemBy
    • setRedeemBy

      public void setRedeemBy(Long redeemBy)
    • timesRedeemed

      public Coupon timesRedeemed(Long timesRedeemed)
    • getTimesRedeemed

      @Nullable public Long getTimesRedeemed()
      Get timesRedeemed
      Returns:
      timesRedeemed
    • setTimesRedeemed

      public void setTimesRedeemed(Long timesRedeemed)
    • valid

      public Coupon valid(Boolean valid)
    • getValid

      @Nullable public Boolean getValid()
      Get valid
      Returns:
      valid
    • setValid

      public void setValid(Boolean valid)
    • 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