Package io.trippay.sdk.payment.model
Class RawSupplierContractItem
java.lang.Object
io.trippay.sdk.payment.model.RawSupplierContractItem
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-12T15:09:05.445923493+07:00[Asia/Bangkok]")
public class RawSupplierContractItem
extends Object
Holds one booking line item for a specific supplier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhen to charge for this item.static enumIndicates the way this item should be priced.static enumType of item this is. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBeneficiaryListItem(RawBeneficiary beneficiaryListItem) addDailyRateListItem(RawDailyRate dailyRateListItem) beneficiaryList(List<RawBeneficiary> beneficiaryList) dailyRateList(List<RawDailyRate> dailyRateList) descriptionInEnglish(String descriptionInEnglish) booleanexternalIdentifier(String externalIdentifier) @NotNull @Valid @Size(min=1,max=2147483647) List<RawBeneficiary> Get beneficiaryList@Valid List<RawDailyRate> Get dailyRateList@NotNull StringShort description in English of item included in booking.Optional geoname externalIdentifier to remote inventory.@NotNull @Valid ItineraryGet itineraryPlace to add more data related to the booking contract item.@NotNull StringName of item in English included in booking.@NotNull RawSupplierContractItem.PayableEnumWhen to charge for this item.Required when pricing type is PER_USE or PER_PERSON_PER_HOUR.@Valid SupplierContractItemPolicyGet policy@NotNull @Valid CustomMonetaryAmountgetPrice()Get priceIndicates the way this item should be priced.@Valid CustomMonetaryAmountGet totalPrice@NotNull RawSupplierContractItem.TypeEnumgetType()Type of item this is.@NotNull @Valid GuestUsergetUser()Get userinthashCode()nameInEnglish(String nameInEnglish) perUseQuantity(Integer perUseQuantity) policy(SupplierContractItemPolicy policy) price(CustomMonetaryAmount price) pricingType(RawSupplierContractItem.PricingTypeEnum pricingType) putMetadataItem(String key, String metadataItem) voidsetBeneficiaryList(List<RawBeneficiary> beneficiaryList) voidsetDailyRateList(List<RawDailyRate> dailyRateList) voidsetDescriptionInEnglish(String descriptionInEnglish) voidsetExternalIdentifier(String externalIdentifier) voidsetItinerary(Itinerary itinerary) voidsetMetadata(Map<String, String> metadata) voidsetNameInEnglish(String nameInEnglish) voidvoidsetPerUseQuantity(Integer perUseQuantity) voidsetPolicy(SupplierContractItemPolicy policy) voidsetPrice(CustomMonetaryAmount price) voidsetPricingType(RawSupplierContractItem.PricingTypeEnum pricingType) voidsetTotalPrice(CustomMonetaryAmount totalPrice) voidvoidtoString()totalPrice(CustomMonetaryAmount totalPrice)
-
Field Details
-
JSON_PROPERTY_USER
- See Also:
-
JSON_PROPERTY_NAME_IN_ENGLISH
- See Also:
-
JSON_PROPERTY_DESCRIPTION_IN_ENGLISH
- See Also:
-
JSON_PROPERTY_PRICE
- See Also:
-
JSON_PROPERTY_ITINERARY
- See Also:
-
JSON_PROPERTY_PRICING_TYPE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_PER_USE_QUANTITY
- See Also:
-
JSON_PROPERTY_BENEFICIARY_LIST
- See Also:
-
JSON_PROPERTY_PAYABLE
- See Also:
-
JSON_PROPERTY_POLICY
- See Also:
-
JSON_PROPERTY_EXTERNAL_IDENTIFIER
- See Also:
-
JSON_PROPERTY_DAILY_RATE_LIST
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_TOTAL_PRICE
- See Also:
-
-
Constructor Details
-
RawSupplierContractItem
public RawSupplierContractItem()
-
-
Method Details
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
nameInEnglish
-
getNameInEnglish
Name of item in English included in booking.- Returns:
- nameInEnglish
-
setNameInEnglish
-
descriptionInEnglish
-
getDescriptionInEnglish
Short description in English of item included in booking.- Returns:
- descriptionInEnglish
-
setDescriptionInEnglish
-
price
-
getPrice
Get price- Returns:
- price
-
setPrice
-
itinerary
-
getItinerary
Get itinerary- Returns:
- itinerary
-
setItinerary
-
pricingType
-
getPricingType
Indicates the way this item should be priced.- Returns:
- pricingType
-
setPricingType
-
type
-
getType
Type of item this is.- Returns:
- type
-
setType
-
perUseQuantity
-
getPerUseQuantity
Required when pricing type is PER_USE or PER_PERSON_PER_HOUR. PER_USE => specify how many usages. PER_PERSON_PER_HOUR => specify how many hours- Returns:
- perUseQuantity
-
setPerUseQuantity
-
beneficiaryList
-
addBeneficiaryListItem
-
getBeneficiaryList
@Nonnull @NotNull @Valid @Size(min=1, max=2147483647) public @NotNull @Valid @Size(min=1,max=2147483647) List<RawBeneficiary> getBeneficiaryList()Get beneficiaryList- Returns:
- beneficiaryList
-
setBeneficiaryList
-
payable
-
getPayable
When to charge for this item.- Returns:
- payable
-
setPayable
-
policy
-
getPolicy
Get policy- Returns:
- policy
-
setPolicy
-
externalIdentifier
-
getExternalIdentifier
Optional geoname externalIdentifier to remote inventory.- Returns:
- externalIdentifier
-
setExternalIdentifier
-
dailyRateList
-
addDailyRateListItem
-
getDailyRateList
Get dailyRateList- Returns:
- dailyRateList
-
setDailyRateList
-
metadata
-
putMetadataItem
-
getMetadata
Place to add more data related to the booking contract item.- Returns:
- metadata
-
setMetadata
-
totalPrice
-
getTotalPrice
Get totalPrice- Returns:
- totalPrice
-
setTotalPrice
-
equals
-
hashCode
public int hashCode() -
toString
-