Package com.checkout.payments
Class ProductRequest
- java.lang.Object
-
- com.checkout.payments.ProductRequest
-
public final class ProductRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductRequest.ProductRequestBuilder
-
Constructor Summary
Constructors Constructor Description ProductRequest()ProductRequest(ItemType type, ItemSubType subType, java.lang.String name, java.lang.Long quantity, java.lang.Long unitPrice, java.lang.String reference, java.lang.String commodityCode, java.lang.String unitOfMeasure, java.lang.Long totalAmount, java.lang.Long taxRate, java.lang.Long taxAmount, java.lang.Long discountAmount, java.lang.String wxpayGoodsId, java.lang.String imageUrl, java.lang.String url, java.lang.String sku, java.time.Instant serviceEndsOn, CountryCode purchaseCountry, java.lang.Long foreignRetailerAmount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProductRequest.ProductRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetCommodityCode()java.lang.LonggetDiscountAmount()java.lang.LonggetForeignRetailerAmount()java.lang.StringgetImageUrl()java.lang.StringgetName()CountryCodegetPurchaseCountry()java.lang.LonggetQuantity()java.lang.StringgetReference()java.time.InstantgetServiceEndsOn()java.lang.StringgetSku()ItemSubTypegetSubType()java.lang.LonggetTaxAmount()java.lang.LonggetTaxRate()java.lang.LonggetTotalAmount()ItemTypegetType()java.lang.StringgetUnitOfMeasure()java.lang.LonggetUnitPrice()java.lang.StringgetUrl()java.lang.StringgetWxpayGoodsId()inthashCode()voidsetCommodityCode(java.lang.String commodityCode)voidsetDiscountAmount(java.lang.Long discountAmount)voidsetForeignRetailerAmount(java.lang.Long foreignRetailerAmount)voidsetImageUrl(java.lang.String imageUrl)voidsetName(java.lang.String name)voidsetPurchaseCountry(CountryCode purchaseCountry)voidsetQuantity(java.lang.Long quantity)voidsetReference(java.lang.String reference)voidsetServiceEndsOn(java.time.Instant serviceEndsOn)voidsetSku(java.lang.String sku)voidsetSubType(ItemSubType subType)voidsetTaxAmount(java.lang.Long taxAmount)voidsetTaxRate(java.lang.Long taxRate)voidsetTotalAmount(java.lang.Long totalAmount)voidsetType(ItemType type)voidsetUnitOfMeasure(java.lang.String unitOfMeasure)voidsetUnitPrice(java.lang.Long unitPrice)voidsetUrl(java.lang.String url)voidsetWxpayGoodsId(java.lang.String wxpayGoodsId)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ProductRequest
public ProductRequest(ItemType type, ItemSubType subType, java.lang.String name, java.lang.Long quantity, java.lang.Long unitPrice, java.lang.String reference, java.lang.String commodityCode, java.lang.String unitOfMeasure, java.lang.Long totalAmount, java.lang.Long taxRate, java.lang.Long taxAmount, java.lang.Long discountAmount, java.lang.String wxpayGoodsId, java.lang.String imageUrl, java.lang.String url, java.lang.String sku, java.time.Instant serviceEndsOn, CountryCode purchaseCountry, java.lang.Long foreignRetailerAmount)
-
ProductRequest
public ProductRequest()
-
-
Method Detail
-
builder
public static ProductRequest.ProductRequestBuilder builder()
-
getType
public ItemType getType()
-
getSubType
public ItemSubType getSubType()
-
getName
public java.lang.String getName()
-
getQuantity
public java.lang.Long getQuantity()
-
getUnitPrice
public java.lang.Long getUnitPrice()
-
getReference
public java.lang.String getReference()
-
getCommodityCode
public java.lang.String getCommodityCode()
-
getUnitOfMeasure
public java.lang.String getUnitOfMeasure()
-
getTotalAmount
public java.lang.Long getTotalAmount()
-
getTaxRate
public java.lang.Long getTaxRate()
-
getTaxAmount
public java.lang.Long getTaxAmount()
-
getDiscountAmount
public java.lang.Long getDiscountAmount()
-
getWxpayGoodsId
public java.lang.String getWxpayGoodsId()
-
getImageUrl
public java.lang.String getImageUrl()
-
getUrl
public java.lang.String getUrl()
-
getSku
public java.lang.String getSku()
-
getServiceEndsOn
public java.time.Instant getServiceEndsOn()
-
getPurchaseCountry
public CountryCode getPurchaseCountry()
-
getForeignRetailerAmount
public java.lang.Long getForeignRetailerAmount()
-
setType
public void setType(ItemType type)
-
setSubType
public void setSubType(ItemSubType subType)
-
setName
public void setName(java.lang.String name)
-
setQuantity
public void setQuantity(java.lang.Long quantity)
-
setUnitPrice
public void setUnitPrice(java.lang.Long unitPrice)
-
setReference
public void setReference(java.lang.String reference)
-
setCommodityCode
public void setCommodityCode(java.lang.String commodityCode)
-
setUnitOfMeasure
public void setUnitOfMeasure(java.lang.String unitOfMeasure)
-
setTotalAmount
public void setTotalAmount(java.lang.Long totalAmount)
-
setTaxRate
public void setTaxRate(java.lang.Long taxRate)
-
setTaxAmount
public void setTaxAmount(java.lang.Long taxAmount)
-
setDiscountAmount
public void setDiscountAmount(java.lang.Long discountAmount)
-
setWxpayGoodsId
public void setWxpayGoodsId(java.lang.String wxpayGoodsId)
-
setImageUrl
public void setImageUrl(java.lang.String imageUrl)
-
setUrl
public void setUrl(java.lang.String url)
-
setSku
public void setSku(java.lang.String sku)
-
setServiceEndsOn
public void setServiceEndsOn(java.time.Instant serviceEndsOn)
-
setPurchaseCountry
public void setPurchaseCountry(CountryCode purchaseCountry)
-
setForeignRetailerAmount
public void setForeignRetailerAmount(java.lang.Long foreignRetailerAmount)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-