com.microsoft.graph.beta.generated.models.Vendor Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Vendor implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link Vendor} and sets the default values.
*/
public Vendor() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link Vendor}
*/
@jakarta.annotation.Nonnull
public static Vendor createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Vendor();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the address property value. The address property
* @return a {@link PostalAddressType}
*/
@jakarta.annotation.Nullable
public PostalAddressType getAddress() {
return this.backingStore.get("address");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the balance property value. The balance property
* @return a {@link BigDecimal}
*/
@jakarta.annotation.Nullable
public BigDecimal getBalance() {
return this.backingStore.get("balance");
}
/**
* Gets the blocked property value. The blocked property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getBlocked() {
return this.backingStore.get("blocked");
}
/**
* Gets the currency property value. The currency property
* @return a {@link Currency}
*/
@jakarta.annotation.Nullable
public Currency getCurrency() {
return this.backingStore.get("currency");
}
/**
* Gets the currencyCode property value. The currencyCode property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCurrencyCode() {
return this.backingStore.get("currencyCode");
}
/**
* Gets the currencyId property value. The currencyId property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getCurrencyId() {
return this.backingStore.get("currencyId");
}
/**
* Gets the displayName property value. The displayName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the email property value. The email property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmail() {
return this.backingStore.get("email");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(21);
deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(PostalAddressType::createFromDiscriminatorValue)); });
deserializerMap.put("balance", (n) -> { this.setBalance(n.getBigDecimalValue()); });
deserializerMap.put("blocked", (n) -> { this.setBlocked(n.getStringValue()); });
deserializerMap.put("currency", (n) -> { this.setCurrency(n.getObjectValue(Currency::createFromDiscriminatorValue)); });
deserializerMap.put("currencyCode", (n) -> { this.setCurrencyCode(n.getStringValue()); });
deserializerMap.put("currencyId", (n) -> { this.setCurrencyId(n.getUUIDValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("id", (n) -> { this.setId(n.getUUIDValue()); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("number", (n) -> { this.setNumber(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("paymentMethod", (n) -> { this.setPaymentMethod(n.getObjectValue(PaymentMethod::createFromDiscriminatorValue)); });
deserializerMap.put("paymentMethodId", (n) -> { this.setPaymentMethodId(n.getUUIDValue()); });
deserializerMap.put("paymentTerm", (n) -> { this.setPaymentTerm(n.getObjectValue(PaymentTerm::createFromDiscriminatorValue)); });
deserializerMap.put("paymentTermsId", (n) -> { this.setPaymentTermsId(n.getUUIDValue()); });
deserializerMap.put("phoneNumber", (n) -> { this.setPhoneNumber(n.getStringValue()); });
deserializerMap.put("picture", (n) -> { this.setPicture(n.getCollectionOfObjectValues(Picture::createFromDiscriminatorValue)); });
deserializerMap.put("taxLiable", (n) -> { this.setTaxLiable(n.getBooleanValue()); });
deserializerMap.put("taxRegistrationNumber", (n) -> { this.setTaxRegistrationNumber(n.getStringValue()); });
deserializerMap.put("website", (n) -> { this.setWebsite(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the id property value. The id property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getId() {
return this.backingStore.get("id");
}
/**
* Gets the lastModifiedDateTime property value. The lastModifiedDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the number property value. The number property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getNumber() {
return this.backingStore.get("number");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the paymentMethod property value. The paymentMethod property
* @return a {@link PaymentMethod}
*/
@jakarta.annotation.Nullable
public PaymentMethod getPaymentMethod() {
return this.backingStore.get("paymentMethod");
}
/**
* Gets the paymentMethodId property value. The paymentMethodId property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getPaymentMethodId() {
return this.backingStore.get("paymentMethodId");
}
/**
* Gets the paymentTerm property value. The paymentTerm property
* @return a {@link PaymentTerm}
*/
@jakarta.annotation.Nullable
public PaymentTerm getPaymentTerm() {
return this.backingStore.get("paymentTerm");
}
/**
* Gets the paymentTermsId property value. The paymentTermsId property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getPaymentTermsId() {
return this.backingStore.get("paymentTermsId");
}
/**
* Gets the phoneNumber property value. The phoneNumber property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPhoneNumber() {
return this.backingStore.get("phoneNumber");
}
/**
* Gets the picture property value. The picture property
* @return a {@link java.util.List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy