Skip to content

Commit b873778

Browse files
committed
set public
1 parent 38b3526 commit b873778

File tree

2 files changed

+88
-88
lines changed

2 files changed

+88
-88
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ListingsItems/ListingsItemPutRequest.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11-
using System;
12-
using System.IO;
13-
using System.Text;
14-
using System.Collections.Generic;
15-
using System.Runtime.Serialization;
1611
using Newtonsoft.Json;
1712
using Newtonsoft.Json.Converters;
13+
using System;
14+
using System.Collections.Generic;
1815
using System.ComponentModel.DataAnnotations;
16+
using System.IO;
17+
using System.Runtime.Serialization;
18+
using System.Text;
1919

2020
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ListingsItems
2121
{
2222
/// <summary>
2323
/// The request body schema for the putListingsItem operation.
2424
/// </summary>
2525
[DataContract]
26-
public partial class ListingsItemPutRequest : IEquatable<ListingsItemPutRequest>, IValidatableObject
26+
public partial class ListingsItemPutRequest : IEquatable<ListingsItemPutRequest>, IValidatableObject
2727
{
2828
/// <summary>
2929
/// The name of the requirements set for the provided data.
@@ -32,19 +32,19 @@ public partial class ListingsItemPutRequest : IEquatable<ListingsItemPutRequest
3232
[JsonConverter(typeof(StringEnumConverter))]
3333
public enum RequirementsEnum
3434
{
35-
35+
3636
/// <summary>
3737
/// Enum LISTING for value: LISTING
3838
/// </summary>
3939
[EnumMember(Value = "LISTING")]
4040
LISTING = 1,
41-
41+
4242
/// <summary>
4343
/// Enum LISTINGPRODUCTONLY for value: LISTING_PRODUCT_ONLY
4444
/// </summary>
4545
[EnumMember(Value = "LISTING_PRODUCT_ONLY")]
4646
LISTINGPRODUCTONLY = 2,
47-
47+
4848
/// <summary>
4949
/// Enum LISTINGOFFERONLY for value: LISTING_OFFER_ONLY
5050
/// </summary>
@@ -56,13 +56,13 @@ public enum RequirementsEnum
5656
/// The name of the requirements set for the provided data.
5757
/// </summary>
5858
/// <value>The name of the requirements set for the provided data.</value>
59-
[DataMember(Name="requirements", EmitDefaultValue=false)]
59+
[DataMember(Name = "requirements", EmitDefaultValue = false)]
6060
public RequirementsEnum? Requirements { get; set; }
6161
/// <summary>
6262
/// Initializes a new instance of the <see cref="ListingsItemPutRequest" /> class.
6363
/// </summary>
6464
[JsonConstructorAttribute]
65-
protected ListingsItemPutRequest() { }
65+
public ListingsItemPutRequest() { }
6666
/// <summary>
6767
/// Initializes a new instance of the <see cref="ListingsItemPutRequest" /> class.
6868
/// </summary>
@@ -91,20 +91,20 @@ protected ListingsItemPutRequest() { }
9191
}
9292
this.Requirements = requirements;
9393
}
94-
94+
9595
/// <summary>
9696
/// The Amazon product type of the listings item.
9797
/// </summary>
9898
/// <value>The Amazon product type of the listings item.</value>
99-
[DataMember(Name="productType", EmitDefaultValue=false)]
99+
[DataMember(Name = "productType", EmitDefaultValue = false)]
100100
public string ProductType { get; set; }
101101

102102

103103
/// <summary>
104104
/// JSON object containing structured listings item attribute data keyed by attribute name.
105105
/// </summary>
106106
/// <value>JSON object containing structured listings item attribute data keyed by attribute name.</value>
107-
[DataMember(Name="attributes", EmitDefaultValue=false)]
107+
[DataMember(Name = "attributes", EmitDefaultValue = false)]
108108
public Object Attributes { get; set; }
109109

110110
/// <summary>
@@ -121,7 +121,7 @@ public override string ToString()
121121
sb.Append("}\n");
122122
return sb.ToString();
123123
}
124-
124+
125125
/// <summary>
126126
/// Returns the JSON string presentation of the object
127127
/// </summary>
@@ -151,17 +151,17 @@ public bool Equals(ListingsItemPutRequest input)
151151
if (input == null)
152152
return false;
153153

154-
return
154+
return
155155
(
156156
this.ProductType == input.ProductType ||
157157
(this.ProductType != null &&
158158
this.ProductType.Equals(input.ProductType))
159-
) &&
159+
) &&
160160
(
161161
this.Requirements == input.Requirements ||
162162
(this.Requirements != null &&
163163
this.Requirements.Equals(input.Requirements))
164-
) &&
164+
) &&
165165
(
166166
this.Attributes == input.Attributes ||
167167
(this.Attributes != null &&
Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
using FikaAmazonAPI.Search;
2-
using FikaAmazonAPI.Utils;
1+
using FikaAmazonAPI.Search;
2+
using FikaAmazonAPI.Utils;
33
using Newtonsoft.Json;
44
using Newtonsoft.Json.Converters;
5-
using System;
6-
using System.Collections.Generic;
7-
using System.IO;
8-
using System.Linq;
9-
10-
namespace FikaAmazonAPI.Parameter.ListingItem
11-
{
12-
public class ParameterPutListingItem : ParameterBased
13-
{
14-
public bool Check()
15-
{
16-
if (TestCase == Constants.TestCase400)
17-
sku = "BadSKU";
18-
if (string.IsNullOrWhiteSpace(this.sellerId))
19-
{
20-
throw new InvalidDataException("SellerId is a required property for ParameterPutListingItem and cannot be null");
21-
}
22-
if (string.IsNullOrWhiteSpace(this.sku))
23-
{
24-
throw new InvalidDataException("Sku is a required property for ParameterPutListingItem and cannot be null");
25-
}
26-
if (this.marketplaceIds == null || !marketplaceIds.Any())
27-
{
28-
throw new InvalidDataException("MarketplaceIds is a required property for ParameterPutListingItem and cannot be null");
29-
}
30-
if (listingsItemPutRequest == null)
31-
{
32-
throw new InvalidDataException("ListingsItemPutRequest is a required property for ParameterPutListingItem and cannot be null");
33-
}
34-
if (string.IsNullOrWhiteSpace(this.listingsItemPutRequest.productType))
35-
{
36-
throw new InvalidDataException("ProductType is a required property for ListingsItemPutRequest and cannot be null");
37-
}
38-
if (this.listingsItemPutRequest.attributes==null)
39-
{
40-
throw new InvalidDataException("Attributes is a required property for ListingsItemPutRequest and cannot be null");
41-
}
42-
return true;
43-
}
44-
public string sellerId { get; set; }
45-
46-
public string sku { get; set; }
47-
48-
public IList<string> marketplaceIds { get; set; }
49-
50-
public string issueLocale { get; set; }
51-
52-
public ListingsItemPutRequest listingsItemPutRequest { get; set; }
53-
54-
}
55-
56-
public class ListingsItemPutRequest
57-
{
58-
public string productType { get; set; }
59-
60-
public Requirements requirements { get; set; }
61-
62-
public Object attributes { get; set; }
63-
}
64-
65-
[JsonConverter(typeof(StringEnumConverter))]
66-
public enum Requirements
67-
{
68-
LISTING,
69-
LISTING_PRODUCT_ONLY,
70-
LISTING_OFFER_ONLY
71-
}
72-
}
5+
using System;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System.Linq;
9+
10+
namespace FikaAmazonAPI.Parameter.ListingItem
11+
{
12+
public class ParameterPutListingItem : ParameterBased
13+
{
14+
public bool Check()
15+
{
16+
if (TestCase == Constants.TestCase400)
17+
sku = "BadSKU";
18+
if (string.IsNullOrWhiteSpace(this.sellerId))
19+
{
20+
throw new InvalidDataException("SellerId is a required property for ParameterPutListingItem and cannot be null");
21+
}
22+
if (string.IsNullOrWhiteSpace(this.sku))
23+
{
24+
throw new InvalidDataException("Sku is a required property for ParameterPutListingItem and cannot be null");
25+
}
26+
if (this.marketplaceIds == null || !marketplaceIds.Any())
27+
{
28+
throw new InvalidDataException("MarketplaceIds is a required property for ParameterPutListingItem and cannot be null");
29+
}
30+
if (listingsItemPutRequest == null)
31+
{
32+
throw new InvalidDataException("ListingsItemPutRequest is a required property for ParameterPutListingItem and cannot be null");
33+
}
34+
if (string.IsNullOrWhiteSpace(this.listingsItemPutRequest.productType))
35+
{
36+
throw new InvalidDataException("ProductType is a required property for ListingsItemPutRequest and cannot be null");
37+
}
38+
if (this.listingsItemPutRequest.attributes == null)
39+
{
40+
throw new InvalidDataException("Attributes is a required property for ListingsItemPutRequest and cannot be null");
41+
}
42+
return true;
43+
}
44+
public string sellerId { get; set; }
45+
46+
public string sku { get; set; }
47+
48+
public IList<string> marketplaceIds { get; set; }
49+
50+
public string issueLocale { get; set; }
51+
52+
public ListingsItemPutRequest listingsItemPutRequest { get; set; }
53+
54+
}
55+
56+
public class ListingsItemPutRequest
57+
{
58+
public string productType { get; set; }
59+
60+
public Requirements requirements { get; set; }
61+
62+
public Object attributes { get; set; }
63+
}
64+
65+
[JsonConverter(typeof(StringEnumConverter))]
66+
public enum Requirements
67+
{
68+
LISTING,
69+
LISTING_PRODUCT_ONLY,
70+
LISTING_OFFER_ONLY
71+
}
72+
}

0 commit comments

Comments
 (0)