Class RawSupplierContract

java.lang.Object
io.trippay.sdk.payment.model.RawSupplierContract

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-12T15:09:05.445923493+07:00[Asia/Bangkok]") public class RawSupplierContract extends Object
Details of the booking entries that went in for one particular supplier directly.
  • Field Details

  • Constructor Details

    • RawSupplierContract

      public RawSupplierContract()
  • Method Details

    • identifier

      public RawSupplierContract identifier(UUID identifier)
    • getIdentifier

      @Nullable @Valid public @Valid UUID getIdentifier()
      Unique identifier used to track the contract. Will auto-generate on if doesn't exist.
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(UUID identifier)
    • supplierIdentifier

      public RawSupplierContract supplierIdentifier(UUID supplierIdentifier)
    • getSupplierIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getSupplierIdentifier()
      Supplier identifier
      Returns:
      supplierIdentifier
    • setSupplierIdentifier

      public void setSupplierIdentifier(UUID supplierIdentifier)
    • supplierIdentifierType

      public RawSupplierContract supplierIdentifierType(RawSupplierContract.SupplierIdentifierTypeEnum supplierIdentifierType)
    • getSupplierIdentifierType

      @Nonnull @NotNull public @NotNull RawSupplierContract.SupplierIdentifierTypeEnum getSupplierIdentifierType()
      Indicates whether the supplierIdentifier can be found internally or is mapped via an external identifier
      Returns:
      supplierIdentifierType
    • setSupplierIdentifierType

      public void setSupplierIdentifierType(RawSupplierContract.SupplierIdentifierTypeEnum supplierIdentifierType)
    • contractItemList

      public RawSupplierContract contractItemList(List<RawSupplierContractItem> contractItemList)
    • addContractItemListItem

      public RawSupplierContract addContractItemListItem(RawSupplierContractItem contractItemListItem)
    • getContractItemList

      @Nonnull @NotNull @Valid @Size(min=1, max=2147483647) public @NotNull @Valid @Size(min=1,max=2147483647) List<RawSupplierContractItem> getContractItemList()
      Get contractItemList
      Returns:
      contractItemList
    • setContractItemList

      public void setContractItemList(List<RawSupplierContractItem> contractItemList)
    • externalSupplierBookingCode

      public RawSupplierContract externalSupplierBookingCode(String externalSupplierBookingCode)
    • getExternalSupplierBookingCode

      @Nullable public String getExternalSupplierBookingCode()
      External booking code generated by the affiliate
      Returns:
      externalSupplierBookingCode
    • setExternalSupplierBookingCode

      public void setExternalSupplierBookingCode(String externalSupplierBookingCode)
    • externalTransactionIdentifier

      public RawSupplierContract externalTransactionIdentifier(String externalTransactionIdentifier)
    • getExternalTransactionIdentifier

      @Nullable public String getExternalTransactionIdentifier()
      External transaction identifier populated when agent responsible for acquiring
      Returns:
      externalTransactionIdentifier
    • setExternalTransactionIdentifier

      public void setExternalTransactionIdentifier(String externalTransactionIdentifier)
    • metadata

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

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

      @Nullable public Map<String,String> getMetadata()
      Place to add more data related to the booking contract.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
    • 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