Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelCatalogMarketplaceProperties" /> class.
 /// </summary>
 /// <param name="Info">Info.</param>
 /// <param name="Links">Links (required).</param>
 /// <param name="PropertyGroups">The groups settings with constraints (required).</param>
 public ChannelCatalogMarketplaceProperties(BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries), ChannelCatalogMarketplacePropertiesLinks Links = default(ChannelCatalogMarketplacePropertiesLinks), List <ChannelCatalogMarketplacePropertyGroup> PropertyGroups = default(List <ChannelCatalogMarketplacePropertyGroup>))
 {
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for ChannelCatalogMarketplaceProperties and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "PropertyGroups" is required (not null)
     if (PropertyGroups == null)
     {
         throw new InvalidDataException("PropertyGroups is a required property for ChannelCatalogMarketplaceProperties and cannot be null");
     }
     else
     {
         this.PropertyGroups = PropertyGroups;
     }
     this.Info = Info;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LinksGetOrderHistoryLink" /> class.
 /// </summary>
 /// <param name="Label">The label corresponding to the link. This label is automatically translated based on the Accept-Language http header..</param>
 /// <param name="DocUrl">DocUrl.</param>
 /// <param name="Description">The description of the link.</param>
 /// <param name="Href">Href (required).</param>
 /// <param name="OperationId">OperationId.</param>
 /// <param name="Method">Method.</param>
 /// <param name="Parameters">Parameters.</param>
 /// <param name="UrlTemplated">indicates whether the href is templated or not.</param>
 /// <param name="AllRequiredParamsProvided">indicates whether all required params have been provided.</param>
 /// <param name="AllOptionalParamsProvided">indicates whether all optionals params have been provided.</param>
 /// <param name="Info">Info.</param>
 public LinksGetOrderHistoryLink(string Label = default(string), BeezUPCommonDocUrl DocUrl = default(BeezUPCommonDocUrl), string Description = default(string), BeezUPCommonHref Href = default(BeezUPCommonHref), BeezUPCommonOperationId OperationId = default(BeezUPCommonOperationId), BeezUPCommonHttpMethod Method = default(BeezUPCommonHttpMethod), Dictionary <string, BeezUPCommonLinkParameter3> Parameters = default(Dictionary <string, BeezUPCommonLinkParameter3>), bool?UrlTemplated = default(bool?), bool?AllRequiredParamsProvided = default(bool?), bool?AllOptionalParamsProvided = default(bool?), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     // to ensure "Href" is required (not null)
     if (Href == null)
     {
         throw new InvalidDataException("Href is a required property for LinksGetOrderHistoryLink and cannot be null");
     }
     else
     {
         this.Href = Href;
     }
     this.Label        = Label;
     this.DocUrl       = DocUrl;
     this.Description  = Description;
     this.OperationId  = OperationId;
     this.Method       = Method;
     this.Parameters   = Parameters;
     this.UrlTemplated = UrlTemplated;
     this.AllRequiredParamsProvided = AllRequiredParamsProvided;
     this.AllOptionalParamsProvided = AllOptionalParamsProvided;
     this.Info = Info;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Offer" /> class.
 /// </summary>
 /// <param name="Content">Content.</param>
 /// <param name="Info">Info.</param>
 /// <param name="Links">Links.</param>
 public Offer(OfferContent Content = default(OfferContent), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries), OfferLinks Links = default(OfferLinks))
 {
     this.Content = Content;
     this.Info    = Info;
     this.Links   = Links;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountInfo" /> class.
 /// </summary>
 /// <param name="UserId">UserId (required).</param>
 /// <param name="Email">Email (required).</param>
 /// <param name="PersonalInfo">PersonalInfo (required).</param>
 /// <param name="Status">Status (required).</param>
 /// <param name="CompanyInfo">CompanyInfo (required).</param>
 /// <param name="ProfilePictureUrl">ProfilePictureUrl (required).</param>
 /// <param name="Links">Links (required).</param>
 /// <param name="Info">Info.</param>
 public AccountInfo(BeezUPCommonUserId UserId = default(BeezUPCommonUserId), BeezUPCommonEmail Email = default(BeezUPCommonEmail), PersonalInfo PersonalInfo = default(PersonalInfo), AccountStatus Status = default(AccountStatus), CompanyInfo CompanyInfo = default(CompanyInfo), ProfilePictureUrl ProfilePictureUrl = default(ProfilePictureUrl), AccountInfoLinks Links = default(AccountInfoLinks), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     // to ensure "UserId" is required (not null)
     if (UserId == null)
     {
         throw new InvalidDataException("UserId is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.UserId = UserId;
     }
     // to ensure "Email" is required (not null)
     if (Email == null)
     {
         throw new InvalidDataException("Email is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Email = Email;
     }
     // to ensure "PersonalInfo" is required (not null)
     if (PersonalInfo == null)
     {
         throw new InvalidDataException("PersonalInfo is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.PersonalInfo = PersonalInfo;
     }
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "CompanyInfo" is required (not null)
     if (CompanyInfo == null)
     {
         throw new InvalidDataException("CompanyInfo is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.CompanyInfo = CompanyInfo;
     }
     // to ensure "ProfilePictureUrl" is required (not null)
     if (ProfilePictureUrl == null)
     {
         throw new InvalidDataException("ProfilePictureUrl is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.ProfilePictureUrl = ProfilePictureUrl;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.Info = Info;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelCatalogMarketplaceProperty" /> class.
 /// </summary>
 /// <param name="Name">Channel catalog marketplace property name (required).</param>
 /// <param name="Values">Channel catalog marketplace property values.</param>
 /// <param name="Info">Info.</param>
 /// <param name="_Default">Indicate the default values of the property.</param>
 /// <param name="Description">Indicate the description of the property.</param>
 /// <param name="Position">Indicate the position of the property in the display group (required).</param>
 /// <param name="_ReadOnly">Indicate if the value cannot be changed. This is used for example for ebay token that should not be changed. (required) (default to false).</param>
 /// <param name="MinLength">Indicates the minimum size of the property value (default to 0).</param>
 /// <param name="MaxLength">Indicates the maximum size of the property value.</param>
 /// <param name="MinItems">Indicates the minimum item count of the property value. (default to 1).</param>
 /// <param name="MaxItems">Indicates the maximum item count of the property value (default to 1).</param>
 /// <param name="LovLink">LovLink.</param>
 /// <param name="LovRequired">Indicates if the property value must be in the list of value. (default to false).</param>
 /// <param name="Required">Indicate if the property is required or not (required) (default to false).</param>
 /// <param name="OfferIdRequired">Indicates the offer identifier required to configure this property..</param>
 /// <param name="Visible">Indicates if this property should be displayed in the configuration page. (required) (default to true).</param>
 /// <param name="Type">Type.</param>
 /// <param name="Pattern">Channel catalog marketplace setting value format validation regular expression.</param>
 public ChannelCatalogMarketplaceProperty(string Name = default(string), List <string> Values = default(List <string>), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries), List <string> _Default = default(List <string>), string Description = default(string), int?Position = default(int?), bool?_ReadOnly = false, int?MinLength = 0, int?MaxLength = default(int?), int?MinItems = 1, int?MaxItems = 1, BeezUPCommonLOVLink3 LovLink = default(BeezUPCommonLOVLink3), bool?LovRequired = false, bool?Required = false, int?OfferIdRequired = default(int?), bool?Visible = true, Type Type = default(Type), string Pattern = default(string))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for ChannelCatalogMarketplaceProperty and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Position" is required (not null)
     if (Position == null)
     {
         throw new InvalidDataException("Position is a required property for ChannelCatalogMarketplaceProperty and cannot be null");
     }
     else
     {
         this.Position = Position;
     }
     // to ensure "_ReadOnly" is required (not null)
     if (_ReadOnly == null)
     {
         throw new InvalidDataException("_ReadOnly is a required property for ChannelCatalogMarketplaceProperty and cannot be null");
     }
     else
     {
         this._ReadOnly = _ReadOnly;
     }
     // to ensure "Required" is required (not null)
     if (Required == null)
     {
         throw new InvalidDataException("Required is a required property for ChannelCatalogMarketplaceProperty and cannot be null");
     }
     else
     {
         this.Required = Required;
     }
     // to ensure "Visible" is required (not null)
     if (Visible == null)
     {
         throw new InvalidDataException("Visible is a required property for ChannelCatalogMarketplaceProperty and cannot be null");
     }
     else
     {
         this.Visible = Visible;
     }
     this.Values      = Values;
     this.Info        = Info;
     this._Default    = _Default;
     this.Description = Description;
     // use default value if no "MinLength" provided
     if (MinLength == null)
     {
         this.MinLength = 0;
     }
     else
     {
         this.MinLength = MinLength;
     }
     this.MaxLength = MaxLength;
     // use default value if no "MinItems" provided
     if (MinItems == null)
     {
         this.MinItems = 1;
     }
     else
     {
         this.MinItems = MinItems;
     }
     // use default value if no "MaxItems" provided
     if (MaxItems == null)
     {
         this.MaxItems = 1;
     }
     else
     {
         this.MaxItems = MaxItems;
     }
     this.LovLink = LovLink;
     // use default value if no "LovRequired" provided
     if (LovRequired == null)
     {
         this.LovRequired = false;
     }
     else
     {
         this.LovRequired = LovRequired;
     }
     this.OfferIdRequired = OfferIdRequired;
     this.Type            = Type;
     this.Pattern         = Pattern;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreditCardInfoResponse" /> class.
 /// </summary>
 /// <param name="Links">Links.</param>
 /// <param name="CurrentPaymentMethod">CurrentPaymentMethod.</param>
 /// <param name="CreditCardInfo">CreditCardInfo.</param>
 /// <param name="Info">Info.</param>
 public CreditCardInfoResponse(CreditCardInfoResponseLinks Links = default(CreditCardInfoResponseLinks), PaymentMethod CurrentPaymentMethod = default(PaymentMethod), CreditCardInfoWithCardType CreditCardInfo = default(CreditCardInfoWithCardType), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     this.Links = Links;
     this.CurrentPaymentMethod = CurrentPaymentMethod;
     this.CreditCardInfo       = CreditCardInfo;
     this.Info = Info;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BeezUPCommonLink2" /> class.
 /// </summary>
 /// <param name="Rel">Indicate the relation name related to the link (required).</param>
 /// <param name="Href">Href.</param>
 /// <param name="OperationId">OperationId.</param>
 /// <param name="Method">Method.</param>
 /// <param name="Parameters">Parameters.</param>
 /// <param name="Info">Info.</param>
 public BeezUPCommonLink2(string Rel = default(string), BeezUPCommonHref Href = default(BeezUPCommonHref), BeezUPCommonOperationId OperationId = default(BeezUPCommonOperationId), BeezUPCommonHttpMethod Method = default(BeezUPCommonHttpMethod), List <BeezUPCommonLinkParameter2> Parameters = default(List <BeezUPCommonLinkParameter2>), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     // to ensure "Rel" is required (not null)
     if (Rel == null)
     {
         throw new InvalidDataException("Rel is a required property for BeezUPCommonLink2 and cannot be null");
     }
     else
     {
         this.Rel = Rel;
     }
     this.Href        = Href;
     this.OperationId = OperationId;
     this.Method      = Method;
     this.Parameters  = Parameters;
     this.Info        = Info;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LinksGetChannelCatalogProductInfo" /> class.
 /// </summary>
 /// <param name="DocUrl">DocUrl.</param>
 /// <param name="Description">The description of the link.</param>
 /// <param name="Href">Href.</param>
 /// <param name="OperationId">OperationId.</param>
 /// <param name="Method">Method.</param>
 /// <param name="Parameters">Parameters.</param>
 /// <param name="Templated">indicates whether the href is templated or not.</param>
 /// <param name="Info">Info.</param>
 public LinksGetChannelCatalogProductInfo(BeezUPCommonDocUrl DocUrl = default(BeezUPCommonDocUrl), string Description = default(string), BeezUPCommonHref Href = default(BeezUPCommonHref), BeezUPCommonOperationId OperationId = default(BeezUPCommonOperationId), BeezUPCommonHttpMethod Method = default(BeezUPCommonHttpMethod), Dictionary <string, BeezUPCommonLinkParameter3> Parameters = default(Dictionary <string, BeezUPCommonLinkParameter3>), bool?Templated = default(bool?), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     this.DocUrl      = DocUrl;
     this.Description = Description;
     this.Href        = Href;
     this.OperationId = OperationId;
     this.Method      = Method;
     this.Parameters  = Parameters;
     this.Templated   = Templated;
     this.Info        = Info;
 }