12
12
using System ;
13
13
using System . Collections . Generic ;
14
14
using System . ComponentModel . DataAnnotations ;
15
- using System . IO ;
16
15
using System . Runtime . Serialization ;
17
16
using System . Text ;
17
+ using static FikaAmazonAPI . Utils . Constants ;
18
18
19
19
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . ProductPricing
20
20
{
@@ -29,54 +29,6 @@ public partial class BuyBoxPriceType : IEquatable<BuyBoxPriceType>, IValidatable
29
29
/// </summary>
30
30
[ JsonConstructorAttribute ]
31
31
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
- }
80
32
81
33
/// <summary>
82
34
/// Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
@@ -85,6 +37,27 @@ public BuyBoxPriceType() { }
85
37
[ DataMember ( Name = "condition" , EmitDefaultValue = false ) ]
86
38
public string Condition { get ; set ; }
87
39
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
+
88
61
/// <summary>
89
62
/// The value calculated by adding ListingPrice + Shipping - Points.
90
63
/// </summary>
@@ -113,6 +86,12 @@ public BuyBoxPriceType() { }
113
86
[ DataMember ( Name = "Points" , EmitDefaultValue = false ) ]
114
87
public Points Points { get ; set ; }
115
88
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 ; }
116
95
/// <summary>
117
96
/// Returns the string presentation of the object
118
97
/// </summary>
0 commit comments