16
16
using Newtonsoft . Json ;
17
17
using System . ComponentModel . DataAnnotations ;
18
18
using static FikaAmazonAPI . Utils . Constants ;
19
+ using FikaAmazonAPI . AmazonSpApiSDK . Models . CatalogItems ;
19
20
20
21
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . ProductPricing
21
22
{
@@ -42,7 +43,7 @@ public QuantityDiscountPriceType() { }
42
43
/// <param name="quantityTier">Indicates at what quantity this price becomes active. (required).</param>
43
44
/// <param name="quantityDiscountType">Indicates the type of quantity discount this price applies to. (required).</param>
44
45
/// <param name="listingPrice">The price at this quantity tier. (required).</param>
45
- public QuantityDiscountPriceType ( int ? quantityTier = default ( int ? ) , QuantityDiscountType quantityDiscountType = default ( QuantityDiscountType ) , MoneyType listingPrice = default ( MoneyType ) )
46
+ public QuantityDiscountPriceType ( int ? quantityTier = default ( int ? ) , QuantityDiscountType quantityDiscountType = default ( QuantityDiscountType ) , MoneyType price = default ( MoneyType ) )
46
47
{
47
48
// to ensure "quantityTier" is required (not null)
48
49
if ( quantityTier == null )
@@ -63,13 +64,13 @@ public QuantityDiscountPriceType() { }
63
64
this . QuantityDiscountType = quantityDiscountType ;
64
65
}
65
66
// to ensure "listingPrice" is required (not null)
66
- if ( listingPrice == null )
67
+ if ( price == null )
67
68
{
68
69
throw new InvalidDataException ( "listingPrice is a required property for QuantityDiscountPriceType and cannot be null" ) ;
69
70
}
70
71
else
71
72
{
72
- this . ListingPrice = listingPrice ;
73
+ this . Price = price ;
73
74
}
74
75
}
75
76
@@ -85,8 +86,8 @@ public QuantityDiscountPriceType() { }
85
86
/// The price at this quantity tier.
86
87
/// </summary>
87
88
/// <value>The price at this quantity tier.</value>
88
- [ DataMember ( Name = "listingPrice ", EmitDefaultValue = false ) ]
89
- public MoneyType ListingPrice { get ; set ; }
89
+ [ DataMember ( Name = "price ", EmitDefaultValue = false ) ]
90
+ public MoneyType Price { get ; set ; }
90
91
91
92
/// <summary>
92
93
/// Returns the string presentation of the object
@@ -98,7 +99,7 @@ public override string ToString()
98
99
sb . Append ( "class QuantityDiscountPriceType {\n " ) ;
99
100
sb . Append ( " QuantityTier: " ) . Append ( QuantityTier ) . Append ( "\n " ) ;
100
101
sb . Append ( " QuantityDiscountType: " ) . Append ( QuantityDiscountType ) . Append ( "\n " ) ;
101
- sb . Append ( " ListingPrice: " ) . Append ( ListingPrice ) . Append ( "\n " ) ;
102
+ sb . Append ( " ListingPrice: " ) . Append ( Price ) . Append ( "\n " ) ;
102
103
sb . Append ( "}\n " ) ;
103
104
return sb . ToString ( ) ;
104
105
}
@@ -144,9 +145,9 @@ public bool Equals(QuantityDiscountPriceType input)
144
145
this . QuantityDiscountType . Equals ( input . QuantityDiscountType ) )
145
146
) &&
146
147
(
147
- this . ListingPrice == input . ListingPrice ||
148
- ( this . ListingPrice != null &&
149
- this . ListingPrice . Equals ( input . ListingPrice ) )
148
+ this . Price == input . Price ||
149
+ ( this . Price != null &&
150
+ this . Price . Equals ( input . Price ) )
150
151
) ;
151
152
}
152
153
@@ -163,8 +164,8 @@ public override int GetHashCode()
163
164
hashCode = hashCode * 59 + this . QuantityTier . GetHashCode ( ) ;
164
165
if ( this . QuantityDiscountType != null )
165
166
hashCode = hashCode * 59 + this . QuantityDiscountType . GetHashCode ( ) ;
166
- if ( this . ListingPrice != null )
167
- hashCode = hashCode * 59 + this . ListingPrice . GetHashCode ( ) ;
167
+ if ( this . Price != null )
168
+ hashCode = hashCode * 59 + this . Price . GetHashCode ( ) ;
168
169
return hashCode ;
169
170
}
170
171
}
0 commit comments