Skip to content

Commit 13add0a

Browse files
authored
Merge pull request #780 from yzi2004/main
Fulfillment Inbound API ListPrepDetails&SetPrepDetails
2 parents 891689b + 8d3b3bb commit 13add0a

File tree

13 files changed

+1145
-0
lines changed

13 files changed

+1145
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The Selling Partner API for FBA inbound operations.
3+
*
4+
* The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5+
*
6+
* OpenAPI spec version: 2024-03-20
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using Newtonsoft.Json;
12+
using Newtonsoft.Json.Converters;
13+
using System.Runtime.Serialization;
14+
15+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320
16+
{
17+
/// <summary>
18+
/// A constraint that applies to all owners. If no constraint is specified, defer to any individual owner constraints.
19+
/// </summary>
20+
/// <value>A constraint that applies to all owners. If no constraint is specified, defer to any individual owner constraints.</value>
21+
22+
[JsonConverter(typeof(StringEnumConverter))]
23+
24+
public enum AllOwnersConstraint
25+
{
26+
27+
/// <summary>
28+
/// Enum MUSTMATCH for value: MUST_MATCH
29+
/// </summary>
30+
[EnumMember(Value = "MUST_MATCH")]
31+
MUSTMATCH = 1
32+
}
33+
34+
}
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* The Selling Partner API for FBA inbound operations.
3+
*
4+
* The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5+
*
6+
* OpenAPI spec version: 2024-03-20
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using Newtonsoft.Json;
12+
using System;
13+
using System.Collections.Generic;
14+
using System.ComponentModel.DataAnnotations;
15+
using System.IO;
16+
using System.Linq;
17+
using System.Runtime.Serialization;
18+
using System.Text;
19+
20+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320
21+
{
22+
/// <summary>
23+
/// The response to the &#x60;listPrepDetails&#x60; operation.
24+
/// </summary>
25+
[DataContract]
26+
public partial class ListPrepDetailsResponse : IEquatable<ListPrepDetailsResponse>, IValidatableObject
27+
{
28+
/// <summary>
29+
/// Initializes a new instance of the <see cref="ListPrepDetailsResponse" /> class.
30+
/// </summary>
31+
[JsonConstructorAttribute]
32+
public ListPrepDetailsResponse() {
33+
}
34+
/// <summary>
35+
/// Initializes a new instance of the <see cref="ListPrepDetailsResponse" /> class.
36+
/// </summary>
37+
/// <param name="mskuPrepDetails">A list of MSKUs and related prep details. (required).</param>
38+
public ListPrepDetailsResponse(List<MskuPrepDetail> mskuPrepDetails = default(List<MskuPrepDetail>))
39+
{
40+
// to ensure "mskuPrepDetails" is required (not null)
41+
if (mskuPrepDetails == null)
42+
{
43+
throw new InvalidDataException("mskuPrepDetails is a required property for ListPrepDetailsResponse and cannot be null");
44+
}
45+
else
46+
{
47+
this.MskuPrepDetails = mskuPrepDetails;
48+
}
49+
}
50+
51+
/// <summary>
52+
/// A list of MSKUs and related prep details.
53+
/// </summary>
54+
/// <value>A list of MSKUs and related prep details.</value>
55+
[DataMember(Name = "mskuPrepDetails", EmitDefaultValue = false)]
56+
public List<MskuPrepDetail> MskuPrepDetails { get; set; }
57+
58+
/// <summary>
59+
/// Returns the string presentation of the object
60+
/// </summary>
61+
/// <returns>String presentation of the object</returns>
62+
public override string ToString()
63+
{
64+
var sb = new StringBuilder();
65+
sb.Append("class ListPrepDetailsResponse {\n");
66+
sb.Append(" MskuPrepDetails: ").Append(MskuPrepDetails).Append("\n");
67+
sb.Append("}\n");
68+
return sb.ToString();
69+
}
70+
71+
/// <summary>
72+
/// Returns the JSON string presentation of the object
73+
/// </summary>
74+
/// <returns>JSON string presentation of the object</returns>
75+
public virtual string ToJson()
76+
{
77+
return JsonConvert.SerializeObject(this, Formatting.Indented);
78+
}
79+
80+
/// <summary>
81+
/// Returns true if objects are equal
82+
/// </summary>
83+
/// <param name="input">Object to be compared</param>
84+
/// <returns>Boolean</returns>
85+
public override bool Equals(object input)
86+
{
87+
return this.Equals(input as ListPrepDetailsResponse);
88+
}
89+
90+
/// <summary>
91+
/// Returns true if ListPrepDetailsResponse instances are equal
92+
/// </summary>
93+
/// <param name="input">Instance of ListPrepDetailsResponse to be compared</param>
94+
/// <returns>Boolean</returns>
95+
public bool Equals(ListPrepDetailsResponse input)
96+
{
97+
if (input == null)
98+
return false;
99+
100+
return
101+
(
102+
this.MskuPrepDetails == input.MskuPrepDetails ||
103+
this.MskuPrepDetails != null &&
104+
this.MskuPrepDetails.SequenceEqual(input.MskuPrepDetails)
105+
);
106+
}
107+
108+
/// <summary>
109+
/// Gets the hash code
110+
/// </summary>
111+
/// <returns>Hash code</returns>
112+
public override int GetHashCode()
113+
{
114+
unchecked // Overflow is fine, just wrap
115+
{
116+
int hashCode = 41;
117+
if (this.MskuPrepDetails != null)
118+
hashCode = hashCode * 59 + this.MskuPrepDetails.GetHashCode();
119+
return hashCode;
120+
}
121+
}
122+
123+
/// <summary>
124+
/// To validate all properties of the instance
125+
/// </summary>
126+
/// <param name="validationContext">Validation context</param>
127+
/// <returns>Validation Result</returns>
128+
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
129+
{
130+
yield break;
131+
}
132+
}
133+
134+
}

0 commit comments

Comments
 (0)