public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItem other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((QuantityUnit == null && other.QuantityUnit == null) || (QuantityUnit?.Equals(other.QuantityUnit) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((VariationName == null && other.VariationName == null) || (VariationName?.Equals(other.VariationName) == true)) && ((Metadata == null && other.Metadata == null) || (Metadata?.Equals(other.Metadata) == true)) && ((Modifiers == null && other.Modifiers == null) || (Modifiers?.Equals(other.Modifiers) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true)) && ((AppliedDiscounts == null && other.AppliedDiscounts == null) || (AppliedDiscounts?.Equals(other.AppliedDiscounts) == true)) && ((BasePriceMoney == null && other.BasePriceMoney == null) || (BasePriceMoney?.Equals(other.BasePriceMoney) == true)) && ((VariationTotalPriceMoney == null && other.VariationTotalPriceMoney == null) || (VariationTotalPriceMoney?.Equals(other.VariationTotalPriceMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((PricingBlocklists == null && other.PricingBlocklists == null) || (PricingBlocklists?.Equals(other.PricingBlocklists) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1PaymentItemization other && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((ItemizationType == null && other.ItemizationType == null) || (ItemizationType?.Equals(other.ItemizationType) == true)) && ((ItemDetail == null && other.ItemDetail == null) || (ItemDetail?.Equals(other.ItemDetail) == true)) && ((Notes == null && other.Notes == null) || (Notes?.Equals(other.Notes) == true)) && ((ItemVariationName == null && other.ItemVariationName == null) || (ItemVariationName?.Equals(other.ItemVariationName) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((SingleQuantityMoney == null && other.SingleQuantityMoney == null) || (SingleQuantityMoney?.Equals(other.SingleQuantityMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((DiscountMoney == null && other.DiscountMoney == null) || (DiscountMoney?.Equals(other.DiscountMoney) == true)) && ((NetSalesMoney == null && other.NetSalesMoney == null) || (NetSalesMoney?.Equals(other.NetSalesMoney) == true)) && ((Taxes == null && other.Taxes == null) || (Taxes?.Equals(other.Taxes) == true)) && ((Discounts == null && other.Discounts == null) || (Discounts?.Equals(other.Discounts) == true)) && ((Modifiers == null && other.Modifiers == null) || (Modifiers?.Equals(other.Modifiers) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1Payment other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((MerchantId == null && other.MerchantId == null) || (MerchantId?.Equals(other.MerchantId) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((CreatorId == null && other.CreatorId == null) || (CreatorId?.Equals(other.CreatorId) == true)) && ((Device == null && other.Device == null) || (Device?.Equals(other.Device) == true)) && ((PaymentUrl == null && other.PaymentUrl == null) || (PaymentUrl?.Equals(other.PaymentUrl) == true)) && ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true)) && ((InclusiveTaxMoney == null && other.InclusiveTaxMoney == null) || (InclusiveTaxMoney?.Equals(other.InclusiveTaxMoney) == true)) && ((AdditiveTaxMoney == null && other.AdditiveTaxMoney == null) || (AdditiveTaxMoney?.Equals(other.AdditiveTaxMoney) == true)) && ((TaxMoney == null && other.TaxMoney == null) || (TaxMoney?.Equals(other.TaxMoney) == true)) && ((TipMoney == null && other.TipMoney == null) || (TipMoney?.Equals(other.TipMoney) == true)) && ((DiscountMoney == null && other.DiscountMoney == null) || (DiscountMoney?.Equals(other.DiscountMoney) == true)) && ((TotalCollectedMoney == null && other.TotalCollectedMoney == null) || (TotalCollectedMoney?.Equals(other.TotalCollectedMoney) == true)) && ((ProcessingFeeMoney == null && other.ProcessingFeeMoney == null) || (ProcessingFeeMoney?.Equals(other.ProcessingFeeMoney) == true)) && ((NetTotalMoney == null && other.NetTotalMoney == null) || (NetTotalMoney?.Equals(other.NetTotalMoney) == true)) && ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) && ((SwedishRoundingMoney == null && other.SwedishRoundingMoney == null) || (SwedishRoundingMoney?.Equals(other.SwedishRoundingMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((NetSalesMoney == null && other.NetSalesMoney == null) || (NetSalesMoney?.Equals(other.NetSalesMoney) == true)) && ((InclusiveTax == null && other.InclusiveTax == null) || (InclusiveTax?.Equals(other.InclusiveTax) == true)) && ((AdditiveTax == null && other.AdditiveTax == null) || (AdditiveTax?.Equals(other.AdditiveTax) == true)) && ((Tender == null && other.Tender == null) || (Tender?.Equals(other.Tender) == true)) && ((Refunds == null && other.Refunds == null) || (Refunds?.Equals(other.Refunds) == true)) && ((Itemizations == null && other.Itemizations == null) || (Itemizations?.Equals(other.Itemizations) == true)) && ((SurchargeMoney == null && other.SurchargeMoney == null) || (SurchargeMoney?.Equals(other.SurchargeMoney) == true)) && ((Surcharges == null && other.Surcharges == null) || (Surcharges?.Equals(other.Surcharges) == true)) && ((IsPartial == null && other.IsPartial == null) || (IsPartial?.Equals(other.IsPartial) == true))); }
public override int GetHashCode() { int hashCode = -215174345; if (Context != null) { hashCode += Context.GetHashCode(); } if (Id != null) { hashCode += Id.GetHashCode(); } if (MerchantId != null) { hashCode += MerchantId.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (CreatorId != null) { hashCode += CreatorId.GetHashCode(); } if (Device != null) { hashCode += Device.GetHashCode(); } if (PaymentUrl != null) { hashCode += PaymentUrl.GetHashCode(); } if (ReceiptUrl != null) { hashCode += ReceiptUrl.GetHashCode(); } if (InclusiveTaxMoney != null) { hashCode += InclusiveTaxMoney.GetHashCode(); } if (AdditiveTaxMoney != null) { hashCode += AdditiveTaxMoney.GetHashCode(); } if (TaxMoney != null) { hashCode += TaxMoney.GetHashCode(); } if (TipMoney != null) { hashCode += TipMoney.GetHashCode(); } if (DiscountMoney != null) { hashCode += DiscountMoney.GetHashCode(); } if (TotalCollectedMoney != null) { hashCode += TotalCollectedMoney.GetHashCode(); } if (ProcessingFeeMoney != null) { hashCode += ProcessingFeeMoney.GetHashCode(); } if (NetTotalMoney != null) { hashCode += NetTotalMoney.GetHashCode(); } if (RefundedMoney != null) { hashCode += RefundedMoney.GetHashCode(); } if (SwedishRoundingMoney != null) { hashCode += SwedishRoundingMoney.GetHashCode(); } if (GrossSalesMoney != null) { hashCode += GrossSalesMoney.GetHashCode(); } if (NetSalesMoney != null) { hashCode += NetSalesMoney.GetHashCode(); } if (InclusiveTax != null) { hashCode += InclusiveTax.GetHashCode(); } if (AdditiveTax != null) { hashCode += AdditiveTax.GetHashCode(); } if (Tender != null) { hashCode += Tender.GetHashCode(); } if (Refunds != null) { hashCode += Refunds.GetHashCode(); } if (Itemizations != null) { hashCode += Itemizations.GetHashCode(); } if (SurchargeMoney != null) { hashCode += SurchargeMoney.GetHashCode(); } if (Surcharges != null) { hashCode += Surcharges.GetHashCode(); } if (IsPartial != null) { hashCode += IsPartial.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"MerchantId = {(MerchantId == null ? "null" : MerchantId == string.Empty ? "" : MerchantId)}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"CreatorId = {(CreatorId == null ? "null" : CreatorId == string.Empty ? "" : CreatorId)}"); toStringOutput.Add($"Device = {(Device == null ? "null" : Device.ToString())}"); toStringOutput.Add($"PaymentUrl = {(PaymentUrl == null ? "null" : PaymentUrl == string.Empty ? "" : PaymentUrl)}"); toStringOutput.Add($"ReceiptUrl = {(ReceiptUrl == null ? "null" : ReceiptUrl == string.Empty ? "" : ReceiptUrl)}"); toStringOutput.Add($"InclusiveTaxMoney = {(InclusiveTaxMoney == null ? "null" : InclusiveTaxMoney.ToString())}"); toStringOutput.Add($"AdditiveTaxMoney = {(AdditiveTaxMoney == null ? "null" : AdditiveTaxMoney.ToString())}"); toStringOutput.Add($"TaxMoney = {(TaxMoney == null ? "null" : TaxMoney.ToString())}"); toStringOutput.Add($"TipMoney = {(TipMoney == null ? "null" : TipMoney.ToString())}"); toStringOutput.Add($"DiscountMoney = {(DiscountMoney == null ? "null" : DiscountMoney.ToString())}"); toStringOutput.Add($"TotalCollectedMoney = {(TotalCollectedMoney == null ? "null" : TotalCollectedMoney.ToString())}"); toStringOutput.Add($"ProcessingFeeMoney = {(ProcessingFeeMoney == null ? "null" : ProcessingFeeMoney.ToString())}"); toStringOutput.Add($"NetTotalMoney = {(NetTotalMoney == null ? "null" : NetTotalMoney.ToString())}"); toStringOutput.Add($"RefundedMoney = {(RefundedMoney == null ? "null" : RefundedMoney.ToString())}"); toStringOutput.Add($"SwedishRoundingMoney = {(SwedishRoundingMoney == null ? "null" : SwedishRoundingMoney.ToString())}"); toStringOutput.Add($"GrossSalesMoney = {(GrossSalesMoney == null ? "null" : GrossSalesMoney.ToString())}"); toStringOutput.Add($"NetSalesMoney = {(NetSalesMoney == null ? "null" : NetSalesMoney.ToString())}"); toStringOutput.Add($"InclusiveTax = {(InclusiveTax == null ? "null" : $"[{ string.Join(", ", InclusiveTax)} ]")}"); toStringOutput.Add($"AdditiveTax = {(AdditiveTax == null ? "null" : $"[{ string.Join(", ", AdditiveTax)} ]")}"); toStringOutput.Add($"Tender = {(Tender == null ? "null" : $"[{ string.Join(", ", Tender)} ]")}"); toStringOutput.Add($"Refunds = {(Refunds == null ? "null" : $"[{ string.Join(", ", Refunds)} ]")}"); toStringOutput.Add($"Itemizations = {(Itemizations == null ? "null" : $"[{ string.Join(", ", Itemizations)} ]")}"); toStringOutput.Add($"SurchargeMoney = {(SurchargeMoney == null ? "null" : SurchargeMoney.ToString())}"); toStringOutput.Add($"Surcharges = {(Surcharges == null ? "null" : $"[{ string.Join(", ", Surcharges)} ]")}"); toStringOutput.Add($"IsPartial = {(IsPartial == null ? "null" : IsPartial.ToString())}"); }
public override int GetHashCode() { int hashCode = 441365892; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (QuantityUnit != null) { hashCode += QuantityUnit.GetHashCode(); } if (Note != null) { hashCode += Note.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (VariationName != null) { hashCode += VariationName.GetHashCode(); } if (Metadata != null) { hashCode += Metadata.GetHashCode(); } if (Modifiers != null) { hashCode += Modifiers.GetHashCode(); } if (AppliedTaxes != null) { hashCode += AppliedTaxes.GetHashCode(); } if (AppliedDiscounts != null) { hashCode += AppliedDiscounts.GetHashCode(); } if (BasePriceMoney != null) { hashCode += BasePriceMoney.GetHashCode(); } if (VariationTotalPriceMoney != null) { hashCode += VariationTotalPriceMoney.GetHashCode(); } if (GrossSalesMoney != null) { hashCode += GrossSalesMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (TotalDiscountMoney != null) { hashCode += TotalDiscountMoney.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (PricingBlocklists != null) { hashCode += PricingBlocklists.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Uid = {(Uid == null ? "null" : Uid == string.Empty ? "" : Uid)}"); toStringOutput.Add($"Name = {(Name == null ? "null" : Name == string.Empty ? "" : Name)}"); toStringOutput.Add($"Quantity = {(Quantity == null ? "null" : Quantity == string.Empty ? "" : Quantity)}"); toStringOutput.Add($"QuantityUnit = {(QuantityUnit == null ? "null" : QuantityUnit.ToString())}"); toStringOutput.Add($"Note = {(Note == null ? "null" : Note == string.Empty ? "" : Note)}"); toStringOutput.Add($"CatalogObjectId = {(CatalogObjectId == null ? "null" : CatalogObjectId == string.Empty ? "" : CatalogObjectId)}"); toStringOutput.Add($"VariationName = {(VariationName == null ? "null" : VariationName == string.Empty ? "" : VariationName)}"); toStringOutput.Add($"Metadata = {(Metadata == null ? "null" : Metadata.ToString())}"); toStringOutput.Add($"Modifiers = {(Modifiers == null ? "null" : $"[{ string.Join(", ", Modifiers)} ]")}"); toStringOutput.Add($"AppliedTaxes = {(AppliedTaxes == null ? "null" : $"[{ string.Join(", ", AppliedTaxes)} ]")}"); toStringOutput.Add($"AppliedDiscounts = {(AppliedDiscounts == null ? "null" : $"[{ string.Join(", ", AppliedDiscounts)} ]")}"); toStringOutput.Add($"BasePriceMoney = {(BasePriceMoney == null ? "null" : BasePriceMoney.ToString())}"); toStringOutput.Add($"VariationTotalPriceMoney = {(VariationTotalPriceMoney == null ? "null" : VariationTotalPriceMoney.ToString())}"); toStringOutput.Add($"GrossSalesMoney = {(GrossSalesMoney == null ? "null" : GrossSalesMoney.ToString())}"); toStringOutput.Add($"TotalTaxMoney = {(TotalTaxMoney == null ? "null" : TotalTaxMoney.ToString())}"); toStringOutput.Add($"TotalDiscountMoney = {(TotalDiscountMoney == null ? "null" : TotalDiscountMoney.ToString())}"); toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"PricingBlocklists = {(PricingBlocklists == null ? "null" : PricingBlocklists.ToString())}"); }
public override int GetHashCode() { int hashCode = 1047875174; if (Name != null) { hashCode += Name.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (ItemizationType != null) { hashCode += ItemizationType.GetHashCode(); } if (ItemDetail != null) { hashCode += ItemDetail.GetHashCode(); } if (Notes != null) { hashCode += Notes.GetHashCode(); } if (ItemVariationName != null) { hashCode += ItemVariationName.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (SingleQuantityMoney != null) { hashCode += SingleQuantityMoney.GetHashCode(); } if (GrossSalesMoney != null) { hashCode += GrossSalesMoney.GetHashCode(); } if (DiscountMoney != null) { hashCode += DiscountMoney.GetHashCode(); } if (NetSalesMoney != null) { hashCode += NetSalesMoney.GetHashCode(); } if (Taxes != null) { hashCode += Taxes.GetHashCode(); } if (Discounts != null) { hashCode += Discounts.GetHashCode(); } if (Modifiers != null) { hashCode += Modifiers.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Name = {(Name == null ? "null" : Name == string.Empty ? "" : Name)}"); toStringOutput.Add($"Quantity = {(Quantity == null ? "null" : Quantity.ToString())}"); toStringOutput.Add($"ItemizationType = {(ItemizationType == null ? "null" : ItemizationType.ToString())}"); toStringOutput.Add($"ItemDetail = {(ItemDetail == null ? "null" : ItemDetail.ToString())}"); toStringOutput.Add($"Notes = {(Notes == null ? "null" : Notes == string.Empty ? "" : Notes)}"); toStringOutput.Add($"ItemVariationName = {(ItemVariationName == null ? "null" : ItemVariationName == string.Empty ? "" : ItemVariationName)}"); toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"SingleQuantityMoney = {(SingleQuantityMoney == null ? "null" : SingleQuantityMoney.ToString())}"); toStringOutput.Add($"GrossSalesMoney = {(GrossSalesMoney == null ? "null" : GrossSalesMoney.ToString())}"); toStringOutput.Add($"DiscountMoney = {(DiscountMoney == null ? "null" : DiscountMoney.ToString())}"); toStringOutput.Add($"NetSalesMoney = {(NetSalesMoney == null ? "null" : NetSalesMoney.ToString())}"); toStringOutput.Add($"Taxes = {(Taxes == null ? "null" : $"[{ string.Join(", ", Taxes)} ]")}"); toStringOutput.Add($"Discounts = {(Discounts == null ? "null" : $"[{ string.Join(", ", Discounts)} ]")}"); toStringOutput.Add($"Modifiers = {(Modifiers == null ? "null" : $"[{ string.Join(", ", Modifiers)} ]")}"); }