/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PriceToEstimateFees != null)
     {
         PriceToEstimateFees.Validate();
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the FeesEstimateRequest class.
 /// </summary>
 /// <param name="marketplaceId">A marketplace identifier.</param>
 /// <param name="priceToEstimateFees">The product price that the fee
 /// estimate is based on.</param>
 /// <param name="identifier">A unique identifier provided by the caller
 /// to track this request.</param>
 /// <param name="isAmazonFulfilled">When true, the offer is fulfilled
 /// by Amazon.</param>
 /// <param name="optionalFulfillmentProgram">Possible values include:
 /// 'FBA_CORE', 'FBA_SNL', 'FBA_EFN'</param>
 public FeesEstimateRequest(string marketplaceId, PriceToEstimateFees priceToEstimateFees, string identifier, bool?isAmazonFulfilled = default(bool?), string optionalFulfillmentProgram = default(string))
 {
     MarketplaceId              = marketplaceId;
     IsAmazonFulfilled          = isAmazonFulfilled;
     PriceToEstimateFees        = priceToEstimateFees;
     Identifier                 = identifier;
     OptionalFulfillmentProgram = optionalFulfillmentProgram;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the FeesEstimateIdentifier class.
 /// </summary>
 /// <param name="marketplaceId">A marketplace identifier.</param>
 /// <param name="sellerId">The seller identifier.</param>
 /// <param name="idType">The type of item identifier specified.</param>
 /// <param name="idValue">The item identifier.</param>
 /// <param name="isAmazonFulfilled">When true, the offer is fulfilled
 /// by Amazon.</param>
 /// <param name="priceToEstimateFees">The item price on which the fee
 /// estimate is based.</param>
 /// <param name="sellerInputIdentifier">A unique identifier provided by
 /// the caller to track this request.</param>
 /// <param name="optionalFulfillmentProgram">Possible values include:
 /// 'FBA_CORE', 'FBA_SNL', 'FBA_EFN'</param>
 public FeesEstimateIdentifier(string marketplaceId = default(string), string sellerId = default(string), string idType = default(string), string idValue = default(string), bool?isAmazonFulfilled = default(bool?), PriceToEstimateFees priceToEstimateFees = default(PriceToEstimateFees), string sellerInputIdentifier = default(string), string optionalFulfillmentProgram = default(string))
 {
     MarketplaceId              = marketplaceId;
     SellerId                   = sellerId;
     IdType                     = idType;
     IdValue                    = idValue;
     IsAmazonFulfilled          = isAmazonFulfilled;
     PriceToEstimateFees        = priceToEstimateFees;
     SellerInputIdentifier      = sellerInputIdentifier;
     OptionalFulfillmentProgram = optionalFulfillmentProgram;
     CustomInit();
 }
示例#4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (MarketplaceId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "MarketplaceId");
     }
     if (PriceToEstimateFees == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "PriceToEstimateFees");
     }
     if (Identifier == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Identifier");
     }
     if (PriceToEstimateFees != null)
     {
         PriceToEstimateFees.Validate();
     }
 }