io.trippay.sdk.payment.model.PricedSupplierContractWithAcquirer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payment-sdk-java Show documentation
Show all versions of payment-sdk-java Show documentation
Java SDK for the wink Payment API
/*
* Wink Payment API
* A programmatic way to create bookings, receive payment and disburse funds globally. ## APIs Not every integrator needs every APIs. For that reason, we have separated APIs into context. - [Affiliate](/affiliate): All APIs related to selling travel inventory as an affiliate. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. - [Booking](/booking): All APIs related to creating platform bookings. - [Channel Manager](/channel-manager): All APIs related to channel managers who want to integrate with our platform. - [Extranet](/extranet): All APIs related to managing travel inventory and suppliers. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/trip-pay-sdk-java](https://github.com/wink-travel/trip-pay-sdk-java) # Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. We will link to SDKs for the most popular programming languages on this page as they become available. ## Versioning We chose to version our endpoints in a way that we hope affects your integration with us the least. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md
*
* The version of the OpenAPI document: 30.3.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.trippay.sdk.payment.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.trippay.sdk.payment.model.Acquirer;
import io.trippay.sdk.payment.model.AuthenticatedUser;
import io.trippay.sdk.payment.model.CustomMonetaryAmount;
import io.trippay.sdk.payment.model.PricedSupplierContractItemWithAcquirer;
import io.trippay.sdk.payment.model.Quote;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.hibernate.validator.constraints.*;
/**
* Details of the booking entries that went in for one particular supplier directly.
*/
@JsonPropertyOrder({
PricedSupplierContractWithAcquirer.JSON_PROPERTY_FEDERATED_ORGANIZATION_IDENTIFIER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_FEDERATED_ORGANIZATION_NAME,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_USER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_IP_ADDRESS,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TRACE_ID,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_SOURCE_URL,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_IDENTIFIER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_SUPPLIER_IDENTIFIER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_SUPPLIER_NAME,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_DISPLAY_PRICE_QUOTE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_SUPPLIER_PRICE_QUOTE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_INTERNAL_PRICE_QUOTE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_CAPTURE_PRICE_QUOTE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_ITEM_LIST,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_ACQUIRER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_EXTERNAL_TRANSACTION_IDENTIFIER,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_METADATA,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TOTAL_PRICE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TOTAL_DISPLAY_PRICE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TOTAL_SUPPLIER_PRICE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TOTAL_INTERNAL_PRICE,
PricedSupplierContractWithAcquirer.JSON_PROPERTY_TOTAL_CAPTURE_PRICE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-12T10:13:49.239999511+07:00[Asia/Bangkok]")
public class PricedSupplierContractWithAcquirer {
public static final String JSON_PROPERTY_FEDERATED_ORGANIZATION_IDENTIFIER = "federatedOrganizationIdentifier";
private String federatedOrganizationIdentifier;
public static final String JSON_PROPERTY_FEDERATED_ORGANIZATION_NAME = "federatedOrganizationName";
private String federatedOrganizationName;
public static final String JSON_PROPERTY_USER = "user";
private AuthenticatedUser user;
public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress";
private String ipAddress;
public static final String JSON_PROPERTY_TRACE_ID = "traceId";
private String traceId;
public static final String JSON_PROPERTY_SOURCE_URL = "sourceUrl";
private String sourceUrl;
public static final String JSON_PROPERTY_IDENTIFIER = "identifier";
private UUID identifier;
public static final String JSON_PROPERTY_SUPPLIER_IDENTIFIER = "supplierIdentifier";
private UUID supplierIdentifier;
public static final String JSON_PROPERTY_SUPPLIER_NAME = "supplierName";
private String supplierName;
public static final String JSON_PROPERTY_DISPLAY_PRICE_QUOTE = "displayPriceQuote";
private Quote displayPriceQuote;
public static final String JSON_PROPERTY_SUPPLIER_PRICE_QUOTE = "supplierPriceQuote";
private Quote supplierPriceQuote;
public static final String JSON_PROPERTY_INTERNAL_PRICE_QUOTE = "internalPriceQuote";
private Quote internalPriceQuote;
public static final String JSON_PROPERTY_CAPTURE_PRICE_QUOTE = "capturePriceQuote";
private Quote capturePriceQuote;
public static final String JSON_PROPERTY_ITEM_LIST = "itemList";
private List itemList = new ArrayList<>();
public static final String JSON_PROPERTY_ACQUIRER = "acquirer";
private List acquirer = new ArrayList<>();
public static final String JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER = "externalSupplierIdentifier";
private String externalSupplierIdentifier;
public static final String JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE = "externalSupplierBookingCode";
private String externalSupplierBookingCode;
public static final String JSON_PROPERTY_EXTERNAL_TRANSACTION_IDENTIFIER = "externalTransactionIdentifier";
private String externalTransactionIdentifier;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map metadata = new HashMap<>();
public static final String JSON_PROPERTY_TOTAL_PRICE = "totalPrice";
private CustomMonetaryAmount totalPrice;
public static final String JSON_PROPERTY_TOTAL_DISPLAY_PRICE = "totalDisplayPrice";
private CustomMonetaryAmount totalDisplayPrice;
public static final String JSON_PROPERTY_TOTAL_SUPPLIER_PRICE = "totalSupplierPrice";
private CustomMonetaryAmount totalSupplierPrice;
public static final String JSON_PROPERTY_TOTAL_INTERNAL_PRICE = "totalInternalPrice";
private CustomMonetaryAmount totalInternalPrice;
public static final String JSON_PROPERTY_TOTAL_CAPTURE_PRICE = "totalCapturePrice";
private CustomMonetaryAmount totalCapturePrice;
public PricedSupplierContractWithAcquirer() {
}
@JsonCreator
public PricedSupplierContractWithAcquirer(
@JsonProperty(JSON_PROPERTY_ITEM_LIST) List itemList
) {
this();
this.itemList = itemList;
}
public PricedSupplierContractWithAcquirer federatedOrganizationIdentifier(String federatedOrganizationIdentifier) {
this.federatedOrganizationIdentifier = federatedOrganizationIdentifier;
return this;
}
/**
* The auth realm owner ID
* @return federatedOrganizationIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_FEDERATED_ORGANIZATION_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFederatedOrganizationIdentifier() {
return federatedOrganizationIdentifier;
}
@JsonProperty(JSON_PROPERTY_FEDERATED_ORGANIZATION_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFederatedOrganizationIdentifier(String federatedOrganizationIdentifier) {
this.federatedOrganizationIdentifier = federatedOrganizationIdentifier;
}
public PricedSupplierContractWithAcquirer federatedOrganizationName(String federatedOrganizationName) {
this.federatedOrganizationName = federatedOrganizationName;
return this;
}
/**
* The auth realm owner name
* @return federatedOrganizationName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_FEDERATED_ORGANIZATION_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFederatedOrganizationName() {
return federatedOrganizationName;
}
@JsonProperty(JSON_PROPERTY_FEDERATED_ORGANIZATION_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFederatedOrganizationName(String federatedOrganizationName) {
this.federatedOrganizationName = federatedOrganizationName;
}
public PricedSupplierContractWithAcquirer user(AuthenticatedUser user) {
this.user = user;
return this;
}
/**
* Get user
* @return user
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_USER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public AuthenticatedUser getUser() {
return user;
}
@JsonProperty(JSON_PROPERTY_USER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUser(AuthenticatedUser user) {
this.user = user;
}
public PricedSupplierContractWithAcquirer ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* Caller's IP address
* @return ipAddress
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getIpAddress() {
return ipAddress;
}
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public PricedSupplierContractWithAcquirer traceId(String traceId) {
this.traceId = traceId;
return this;
}
/**
* Way to track which booking contracts were made together
* @return traceId
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_TRACE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTraceId() {
return traceId;
}
@JsonProperty(JSON_PROPERTY_TRACE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTraceId(String traceId) {
this.traceId = traceId;
}
public PricedSupplierContractWithAcquirer sourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
return this;
}
/**
* Where did the booking occur
* @return sourceUrl
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_SOURCE_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSourceUrl() {
return sourceUrl;
}
@JsonProperty(JSON_PROPERTY_SOURCE_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public PricedSupplierContractWithAcquirer identifier(UUID identifier) {
this.identifier = identifier;
return this;
}
/**
* Unique identifier used to track the contract. Create a UUID for this purpose.
* @return identifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getIdentifier() {
return identifier;
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIdentifier(UUID identifier) {
this.identifier = identifier;
}
public PricedSupplierContractWithAcquirer supplierIdentifier(UUID supplierIdentifier) {
this.supplierIdentifier = supplierIdentifier;
return this;
}
/**
* Supplier identifier
* @return supplierIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_SUPPLIER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getSupplierIdentifier() {
return supplierIdentifier;
}
@JsonProperty(JSON_PROPERTY_SUPPLIER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSupplierIdentifier(UUID supplierIdentifier) {
this.supplierIdentifier = supplierIdentifier;
}
public PricedSupplierContractWithAcquirer supplierName(String supplierName) {
this.supplierName = supplierName;
return this;
}
/**
* Supplier name
* @return supplierName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_SUPPLIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSupplierName() {
return supplierName;
}
@JsonProperty(JSON_PROPERTY_SUPPLIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
public PricedSupplierContractWithAcquirer displayPriceQuote(Quote displayPriceQuote) {
this.displayPriceQuote = displayPriceQuote;
return this;
}
/**
* Get displayPriceQuote
* @return displayPriceQuote
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_DISPLAY_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Quote getDisplayPriceQuote() {
return displayPriceQuote;
}
@JsonProperty(JSON_PROPERTY_DISPLAY_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDisplayPriceQuote(Quote displayPriceQuote) {
this.displayPriceQuote = displayPriceQuote;
}
public PricedSupplierContractWithAcquirer supplierPriceQuote(Quote supplierPriceQuote) {
this.supplierPriceQuote = supplierPriceQuote;
return this;
}
/**
* Get supplierPriceQuote
* @return supplierPriceQuote
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_SUPPLIER_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Quote getSupplierPriceQuote() {
return supplierPriceQuote;
}
@JsonProperty(JSON_PROPERTY_SUPPLIER_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSupplierPriceQuote(Quote supplierPriceQuote) {
this.supplierPriceQuote = supplierPriceQuote;
}
public PricedSupplierContractWithAcquirer internalPriceQuote(Quote internalPriceQuote) {
this.internalPriceQuote = internalPriceQuote;
return this;
}
/**
* Get internalPriceQuote
* @return internalPriceQuote
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_INTERNAL_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Quote getInternalPriceQuote() {
return internalPriceQuote;
}
@JsonProperty(JSON_PROPERTY_INTERNAL_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setInternalPriceQuote(Quote internalPriceQuote) {
this.internalPriceQuote = internalPriceQuote;
}
public PricedSupplierContractWithAcquirer capturePriceQuote(Quote capturePriceQuote) {
this.capturePriceQuote = capturePriceQuote;
return this;
}
/**
* Get capturePriceQuote
* @return capturePriceQuote
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_CAPTURE_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Quote getCapturePriceQuote() {
return capturePriceQuote;
}
@JsonProperty(JSON_PROPERTY_CAPTURE_PRICE_QUOTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCapturePriceQuote(Quote capturePriceQuote) {
this.capturePriceQuote = capturePriceQuote;
}
/**
* Get itemList
* @return itemList
**/
@jakarta.annotation.Nonnull
@Valid
@Size(min=1,max=2147483647)
@JsonProperty(JSON_PROPERTY_ITEM_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getItemList() {
return itemList;
}
public PricedSupplierContractWithAcquirer acquirer(List acquirer) {
this.acquirer = acquirer;
return this;
}
public PricedSupplierContractWithAcquirer addAcquirerItem(Acquirer acquirerItem) {
if (this.acquirer == null) {
this.acquirer = new ArrayList<>();
}
this.acquirer.add(acquirerItem);
return this;
}
/**
* Get acquirer
* @return acquirer
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_ACQUIRER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getAcquirer() {
return acquirer;
}
@JsonProperty(JSON_PROPERTY_ACQUIRER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAcquirer(List acquirer) {
this.acquirer = acquirer;
}
public PricedSupplierContractWithAcquirer externalSupplierIdentifier(String externalSupplierIdentifier) {
this.externalSupplierIdentifier = externalSupplierIdentifier;
return this;
}
/**
* Track supplier with its external supplier identifier
* @return externalSupplierIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getExternalSupplierIdentifier() {
return externalSupplierIdentifier;
}
@JsonProperty(JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExternalSupplierIdentifier(String externalSupplierIdentifier) {
this.externalSupplierIdentifier = externalSupplierIdentifier;
}
public PricedSupplierContractWithAcquirer externalSupplierBookingCode(String externalSupplierBookingCode) {
this.externalSupplierBookingCode = externalSupplierBookingCode;
return this;
}
/**
* External booking code generated by the affiliate
* @return externalSupplierBookingCode
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getExternalSupplierBookingCode() {
return externalSupplierBookingCode;
}
@JsonProperty(JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExternalSupplierBookingCode(String externalSupplierBookingCode) {
this.externalSupplierBookingCode = externalSupplierBookingCode;
}
public PricedSupplierContractWithAcquirer externalTransactionIdentifier(String externalTransactionIdentifier) {
this.externalTransactionIdentifier = externalTransactionIdentifier;
return this;
}
/**
* External transaction identifier populated when agent responsible for acquiring
* @return externalTransactionIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_EXTERNAL_TRANSACTION_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getExternalTransactionIdentifier() {
return externalTransactionIdentifier;
}
@JsonProperty(JSON_PROPERTY_EXTERNAL_TRANSACTION_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExternalTransactionIdentifier(String externalTransactionIdentifier) {
this.externalTransactionIdentifier = externalTransactionIdentifier;
}
public PricedSupplierContractWithAcquirer metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public PricedSupplierContractWithAcquirer putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Place to add more data related to the booking contract.
* @return metadata
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getMetadata() {
return metadata;
}
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public PricedSupplierContractWithAcquirer totalPrice(CustomMonetaryAmount totalPrice) {
this.totalPrice = totalPrice;
return this;
}
/**
* Get totalPrice
* @return totalPrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TOTAL_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getTotalPrice() {
return totalPrice;
}
@JsonProperty(JSON_PROPERTY_TOTAL_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalPrice(CustomMonetaryAmount totalPrice) {
this.totalPrice = totalPrice;
}
public PricedSupplierContractWithAcquirer totalDisplayPrice(CustomMonetaryAmount totalDisplayPrice) {
this.totalDisplayPrice = totalDisplayPrice;
return this;
}
/**
* Get totalDisplayPrice
* @return totalDisplayPrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TOTAL_DISPLAY_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getTotalDisplayPrice() {
return totalDisplayPrice;
}
@JsonProperty(JSON_PROPERTY_TOTAL_DISPLAY_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalDisplayPrice(CustomMonetaryAmount totalDisplayPrice) {
this.totalDisplayPrice = totalDisplayPrice;
}
public PricedSupplierContractWithAcquirer totalSupplierPrice(CustomMonetaryAmount totalSupplierPrice) {
this.totalSupplierPrice = totalSupplierPrice;
return this;
}
/**
* Get totalSupplierPrice
* @return totalSupplierPrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TOTAL_SUPPLIER_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getTotalSupplierPrice() {
return totalSupplierPrice;
}
@JsonProperty(JSON_PROPERTY_TOTAL_SUPPLIER_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalSupplierPrice(CustomMonetaryAmount totalSupplierPrice) {
this.totalSupplierPrice = totalSupplierPrice;
}
public PricedSupplierContractWithAcquirer totalInternalPrice(CustomMonetaryAmount totalInternalPrice) {
this.totalInternalPrice = totalInternalPrice;
return this;
}
/**
* Get totalInternalPrice
* @return totalInternalPrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TOTAL_INTERNAL_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getTotalInternalPrice() {
return totalInternalPrice;
}
@JsonProperty(JSON_PROPERTY_TOTAL_INTERNAL_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalInternalPrice(CustomMonetaryAmount totalInternalPrice) {
this.totalInternalPrice = totalInternalPrice;
}
public PricedSupplierContractWithAcquirer totalCapturePrice(CustomMonetaryAmount totalCapturePrice) {
this.totalCapturePrice = totalCapturePrice;
return this;
}
/**
* Get totalCapturePrice
* @return totalCapturePrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TOTAL_CAPTURE_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getTotalCapturePrice() {
return totalCapturePrice;
}
@JsonProperty(JSON_PROPERTY_TOTAL_CAPTURE_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalCapturePrice(CustomMonetaryAmount totalCapturePrice) {
this.totalCapturePrice = totalCapturePrice;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PricedSupplierContractWithAcquirer pricedSupplierContractWithAcquirer = (PricedSupplierContractWithAcquirer) o;
return Objects.equals(this.federatedOrganizationIdentifier, pricedSupplierContractWithAcquirer.federatedOrganizationIdentifier) &&
Objects.equals(this.federatedOrganizationName, pricedSupplierContractWithAcquirer.federatedOrganizationName) &&
Objects.equals(this.user, pricedSupplierContractWithAcquirer.user) &&
Objects.equals(this.ipAddress, pricedSupplierContractWithAcquirer.ipAddress) &&
Objects.equals(this.traceId, pricedSupplierContractWithAcquirer.traceId) &&
Objects.equals(this.sourceUrl, pricedSupplierContractWithAcquirer.sourceUrl) &&
Objects.equals(this.identifier, pricedSupplierContractWithAcquirer.identifier) &&
Objects.equals(this.supplierIdentifier, pricedSupplierContractWithAcquirer.supplierIdentifier) &&
Objects.equals(this.supplierName, pricedSupplierContractWithAcquirer.supplierName) &&
Objects.equals(this.displayPriceQuote, pricedSupplierContractWithAcquirer.displayPriceQuote) &&
Objects.equals(this.supplierPriceQuote, pricedSupplierContractWithAcquirer.supplierPriceQuote) &&
Objects.equals(this.internalPriceQuote, pricedSupplierContractWithAcquirer.internalPriceQuote) &&
Objects.equals(this.capturePriceQuote, pricedSupplierContractWithAcquirer.capturePriceQuote) &&
Objects.equals(this.itemList, pricedSupplierContractWithAcquirer.itemList) &&
Objects.equals(this.acquirer, pricedSupplierContractWithAcquirer.acquirer) &&
Objects.equals(this.externalSupplierIdentifier, pricedSupplierContractWithAcquirer.externalSupplierIdentifier) &&
Objects.equals(this.externalSupplierBookingCode, pricedSupplierContractWithAcquirer.externalSupplierBookingCode) &&
Objects.equals(this.externalTransactionIdentifier, pricedSupplierContractWithAcquirer.externalTransactionIdentifier) &&
Objects.equals(this.metadata, pricedSupplierContractWithAcquirer.metadata) &&
Objects.equals(this.totalPrice, pricedSupplierContractWithAcquirer.totalPrice) &&
Objects.equals(this.totalDisplayPrice, pricedSupplierContractWithAcquirer.totalDisplayPrice) &&
Objects.equals(this.totalSupplierPrice, pricedSupplierContractWithAcquirer.totalSupplierPrice) &&
Objects.equals(this.totalInternalPrice, pricedSupplierContractWithAcquirer.totalInternalPrice) &&
Objects.equals(this.totalCapturePrice, pricedSupplierContractWithAcquirer.totalCapturePrice);
}
@Override
public int hashCode() {
return Objects.hash(federatedOrganizationIdentifier, federatedOrganizationName, user, ipAddress, traceId, sourceUrl, identifier, supplierIdentifier, supplierName, displayPriceQuote, supplierPriceQuote, internalPriceQuote, capturePriceQuote, itemList, acquirer, externalSupplierIdentifier, externalSupplierBookingCode, externalTransactionIdentifier, metadata, totalPrice, totalDisplayPrice, totalSupplierPrice, totalInternalPrice, totalCapturePrice);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PricedSupplierContractWithAcquirer {\n");
sb.append(" federatedOrganizationIdentifier: ").append(toIndentedString(federatedOrganizationIdentifier)).append("\n");
sb.append(" federatedOrganizationName: ").append(toIndentedString(federatedOrganizationName)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" traceId: ").append(toIndentedString(traceId)).append("\n");
sb.append(" sourceUrl: ").append(toIndentedString(sourceUrl)).append("\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" supplierIdentifier: ").append(toIndentedString(supplierIdentifier)).append("\n");
sb.append(" supplierName: ").append(toIndentedString(supplierName)).append("\n");
sb.append(" displayPriceQuote: ").append(toIndentedString(displayPriceQuote)).append("\n");
sb.append(" supplierPriceQuote: ").append(toIndentedString(supplierPriceQuote)).append("\n");
sb.append(" internalPriceQuote: ").append(toIndentedString(internalPriceQuote)).append("\n");
sb.append(" capturePriceQuote: ").append(toIndentedString(capturePriceQuote)).append("\n");
sb.append(" itemList: ").append(toIndentedString(itemList)).append("\n");
sb.append(" acquirer: ").append(toIndentedString(acquirer)).append("\n");
sb.append(" externalSupplierIdentifier: ").append(toIndentedString(externalSupplierIdentifier)).append("\n");
sb.append(" externalSupplierBookingCode: ").append(toIndentedString(externalSupplierBookingCode)).append("\n");
sb.append(" externalTransactionIdentifier: ").append(toIndentedString(externalTransactionIdentifier)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" totalPrice: ").append(toIndentedString(totalPrice)).append("\n");
sb.append(" totalDisplayPrice: ").append(toIndentedString(totalDisplayPrice)).append("\n");
sb.append(" totalSupplierPrice: ").append(toIndentedString(totalSupplierPrice)).append("\n");
sb.append(" totalInternalPrice: ").append(toIndentedString(totalInternalPrice)).append("\n");
sb.append(" totalCapturePrice: ").append(toIndentedString(totalCapturePrice)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}