Skip to content

Commit e2a5f72

Browse files
committed
fix #450
1 parent 0e804f0 commit e2a5f72

File tree

1 file changed

+28
-49
lines changed

1 file changed

+28
-49
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/BuyBoxPriceType.cs

Lines changed: 28 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
using System;
1313
using System.Collections.Generic;
1414
using System.ComponentModel.DataAnnotations;
15-
using System.IO;
1615
using System.Runtime.Serialization;
1716
using System.Text;
17+
using static FikaAmazonAPI.Utils.Constants;
1818

1919
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ProductPricing
2020
{
@@ -29,54 +29,6 @@ public partial class BuyBoxPriceType : IEquatable<BuyBoxPriceType>, IValidatable
2929
/// </summary>
3030
[JsonConstructorAttribute]
3131
public BuyBoxPriceType() { }
32-
/// <summary>
33-
/// Initializes a new instance of the <see cref="BuyBoxPriceType" /> class.
34-
/// </summary>
35-
/// <param name="Condition">Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. (required).</param>
36-
/// <param name="LandedPrice">The value calculated by adding ListingPrice + Shipping - Points. (required).</param>
37-
/// <param name="ListingPrice">The price of the item. (required).</param>
38-
/// <param name="Shipping">The shipping cost. (required).</param>
39-
/// <param name="Points">The number of Amazon Points offered with the purchase of an item..</param>
40-
public BuyBoxPriceType(string Condition = default(string), MoneyType LandedPrice = default(MoneyType), MoneyType ListingPrice = default(MoneyType), MoneyType Shipping = default(MoneyType), Points Points = default(Points))
41-
{
42-
// to ensure "Condition" is required (not null)
43-
if (Condition == null)
44-
{
45-
throw new InvalidDataException("Condition is a required property for BuyBoxPriceType and cannot be null");
46-
}
47-
else
48-
{
49-
this.Condition = Condition;
50-
}
51-
// to ensure "LandedPrice" is required (not null)
52-
if (LandedPrice == null)
53-
{
54-
throw new InvalidDataException("LandedPrice is a required property for BuyBoxPriceType and cannot be null");
55-
}
56-
else
57-
{
58-
this.LandedPrice = LandedPrice;
59-
}
60-
// to ensure "ListingPrice" is required (not null)
61-
if (ListingPrice == null)
62-
{
63-
throw new InvalidDataException("ListingPrice is a required property for BuyBoxPriceType and cannot be null");
64-
}
65-
else
66-
{
67-
this.ListingPrice = ListingPrice;
68-
}
69-
// to ensure "Shipping" is required (not null)
70-
if (Shipping == null)
71-
{
72-
throw new InvalidDataException("Shipping is a required property for BuyBoxPriceType and cannot be null");
73-
}
74-
else
75-
{
76-
this.Shipping = Shipping;
77-
}
78-
this.Points = Points;
79-
}
8032

8133
/// <summary>
8234
/// Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
@@ -85,6 +37,27 @@ public BuyBoxPriceType() { }
8537
[DataMember(Name = "condition", EmitDefaultValue = false)]
8638
public string Condition { get; set; }
8739

40+
/// <summary>
41+
/// Indicates the type of customer that the offer is valid for.
42+
/// </summary>
43+
/// <value>Indicates the type of customer that the offer is valid for.</value>
44+
[DataMember(Name = "offerType", EmitDefaultValue = false)]
45+
public OfferTypeEnum? OfferType { get; set; }
46+
47+
/// <summary>
48+
/// Indicates at what quantity this price becomes active.
49+
/// </summary>
50+
/// <value>Indicates at what quantity this price becomes active. .</value>
51+
[DataMember(Name = "quantityTier", EmitDefaultValue = false)]
52+
public int? QuantityTier { get; set; }
53+
54+
/// <summary>
55+
/// Indicates the type of quantity discount this price applies to.
56+
/// </summary>
57+
/// <value>Indicates the type of quantity discount this price applies to.</value>
58+
[DataMember(Name = "quantityDiscountType", EmitDefaultValue = false)]
59+
public QuantityDiscountType QuantityDiscountType { get; set; }
60+
8861
/// <summary>
8962
/// The value calculated by adding ListingPrice + Shipping - Points.
9063
/// </summary>
@@ -113,6 +86,12 @@ public BuyBoxPriceType() { }
11386
[DataMember(Name = "Points", EmitDefaultValue = false)]
11487
public Points Points { get; set; }
11588

89+
/// <summary>
90+
/// The seller identifier for the offer.
91+
/// </summary>
92+
/// <value>The seller identifier for the offer.</value>
93+
[DataMember(Name = "sellerId", EmitDefaultValue = false)]
94+
public string SellerId { get; set; }
11695
/// <summary>
11796
/// Returns the string presentation of the object
11897
/// </summary>

0 commit comments

Comments
 (0)