Skip to content

Commit 8a43f60

Browse files
authored
Merge pull request #747 from kevinvenclovas/main
added fulfillment inbound 20.03.2024
2 parents 24ec823 + 97832bb commit 8a43f60

File tree

115 files changed

+19018
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+19018
-0
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInboundv20240320/Address.cs

Lines changed: 387 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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.Runtime.Serialization;
17+
using System.Text;
18+
using System.Text.RegularExpressions;
19+
20+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320
21+
{
22+
/// <summary>
23+
/// The fulfillment center appointment slot for the transportation option.
24+
/// </summary>
25+
[DataContract]
26+
public partial class AppointmentSlot : IEquatable<AppointmentSlot>, IValidatableObject
27+
{
28+
/// <summary>
29+
/// Initializes a new instance of the <see cref="AppointmentSlot" /> class.
30+
/// </summary>
31+
[JsonConstructorAttribute]
32+
protected AppointmentSlot() { }
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="AppointmentSlot" /> class.
35+
/// </summary>
36+
/// <param name="slotId">An identifier to a self-ship appointment slot. (required).</param>
37+
/// <param name="slotTime">slotTime (required).</param>
38+
public AppointmentSlot(string slotId = default(string), AppointmentSlotTime slotTime = default(AppointmentSlotTime))
39+
{
40+
// to ensure "slotId" is required (not null)
41+
if (slotId == null)
42+
{
43+
throw new InvalidDataException("slotId is a required property for AppointmentSlot and cannot be null");
44+
}
45+
else
46+
{
47+
this.SlotId = slotId;
48+
}
49+
// to ensure "slotTime" is required (not null)
50+
if (slotTime == null)
51+
{
52+
throw new InvalidDataException("slotTime is a required property for AppointmentSlot and cannot be null");
53+
}
54+
else
55+
{
56+
this.SlotTime = slotTime;
57+
}
58+
}
59+
60+
/// <summary>
61+
/// An identifier to a self-ship appointment slot.
62+
/// </summary>
63+
/// <value>An identifier to a self-ship appointment slot.</value>
64+
[DataMember(Name="slotId", EmitDefaultValue=false)]
65+
public string SlotId { get; set; }
66+
67+
/// <summary>
68+
/// Gets or Sets SlotTime
69+
/// </summary>
70+
[DataMember(Name="slotTime", EmitDefaultValue=false)]
71+
public AppointmentSlotTime SlotTime { get; set; }
72+
73+
/// <summary>
74+
/// Returns the string presentation of the object
75+
/// </summary>
76+
/// <returns>String presentation of the object</returns>
77+
public override string ToString()
78+
{
79+
var sb = new StringBuilder();
80+
sb.Append("class AppointmentSlot {\n");
81+
sb.Append(" SlotId: ").Append(SlotId).Append("\n");
82+
sb.Append(" SlotTime: ").Append(SlotTime).Append("\n");
83+
sb.Append("}\n");
84+
return sb.ToString();
85+
}
86+
87+
/// <summary>
88+
/// Returns the JSON string presentation of the object
89+
/// </summary>
90+
/// <returns>JSON string presentation of the object</returns>
91+
public virtual string ToJson()
92+
{
93+
return JsonConvert.SerializeObject(this, Formatting.Indented);
94+
}
95+
96+
/// <summary>
97+
/// Returns true if objects are equal
98+
/// </summary>
99+
/// <param name="input">Object to be compared</param>
100+
/// <returns>Boolean</returns>
101+
public override bool Equals(object input)
102+
{
103+
return this.Equals(input as AppointmentSlot);
104+
}
105+
106+
/// <summary>
107+
/// Returns true if AppointmentSlot instances are equal
108+
/// </summary>
109+
/// <param name="input">Instance of AppointmentSlot to be compared</param>
110+
/// <returns>Boolean</returns>
111+
public bool Equals(AppointmentSlot input)
112+
{
113+
if (input == null)
114+
return false;
115+
116+
return
117+
(
118+
this.SlotId == input.SlotId ||
119+
(this.SlotId != null &&
120+
this.SlotId.Equals(input.SlotId))
121+
) &&
122+
(
123+
this.SlotTime == input.SlotTime ||
124+
(this.SlotTime != null &&
125+
this.SlotTime.Equals(input.SlotTime))
126+
);
127+
}
128+
129+
/// <summary>
130+
/// Gets the hash code
131+
/// </summary>
132+
/// <returns>Hash code</returns>
133+
public override int GetHashCode()
134+
{
135+
unchecked // Overflow is fine, just wrap
136+
{
137+
int hashCode = 41;
138+
if (this.SlotId != null)
139+
hashCode = hashCode * 59 + this.SlotId.GetHashCode();
140+
if (this.SlotTime != null)
141+
hashCode = hashCode * 59 + this.SlotTime.GetHashCode();
142+
return hashCode;
143+
}
144+
}
145+
146+
/// <summary>
147+
/// To validate all properties of the instance
148+
/// </summary>
149+
/// <param name="validationContext">Validation context</param>
150+
/// <returns>Validation Result</returns>
151+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
152+
{
153+
// SlotId (string) maxLength
154+
if(this.SlotId != null && this.SlotId.Length > 38)
155+
{
156+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SlotId, length must be less than 38.", new [] { "SlotId" });
157+
}
158+
159+
// SlotId (string) minLength
160+
if(this.SlotId != null && this.SlotId.Length < 38)
161+
{
162+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SlotId, length must be greater than 38.", new [] { "SlotId" });
163+
}
164+
165+
// SlotId (string) pattern
166+
Regex regexSlotId = new Regex(@"^[a-zA-Z0-9-]*$", RegexOptions.CultureInvariant);
167+
if (false == regexSlotId.Match(this.SlotId).Success)
168+
{
169+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SlotId, must match a pattern of " + regexSlotId, new [] { "SlotId" });
170+
}
171+
172+
yield break;
173+
}
174+
}
175+
176+
}
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
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.Runtime.Serialization;
17+
using System.Text;
18+
19+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320
20+
{
21+
/// <summary>
22+
/// An appointment slot time with a start and end.
23+
/// </summary>
24+
[DataContract]
25+
public partial class AppointmentSlotTime : IEquatable<AppointmentSlotTime>, IValidatableObject
26+
{
27+
/// <summary>
28+
/// Initializes a new instance of the <see cref="AppointmentSlotTime" /> class.
29+
/// </summary>
30+
[JsonConstructorAttribute]
31+
protected AppointmentSlotTime() { }
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="AppointmentSlotTime" /> class.
34+
/// </summary>
35+
/// <param name="endTime">The end timestamp of the appointment in UTC. (required).</param>
36+
/// <param name="startTime">The start timestamp of the appointment in UTC. (required).</param>
37+
public AppointmentSlotTime(DateTime? endTime = default(DateTime?), DateTime? startTime = default(DateTime?))
38+
{
39+
// to ensure "endTime" is required (not null)
40+
if (endTime == null)
41+
{
42+
throw new InvalidDataException("endTime is a required property for AppointmentSlotTime and cannot be null");
43+
}
44+
else
45+
{
46+
this.EndTime = endTime;
47+
}
48+
// to ensure "startTime" is required (not null)
49+
if (startTime == null)
50+
{
51+
throw new InvalidDataException("startTime is a required property for AppointmentSlotTime and cannot be null");
52+
}
53+
else
54+
{
55+
this.StartTime = startTime;
56+
}
57+
}
58+
59+
/// <summary>
60+
/// The end timestamp of the appointment in UTC.
61+
/// </summary>
62+
/// <value>The end timestamp of the appointment in UTC.</value>
63+
[DataMember(Name="endTime", EmitDefaultValue=false)]
64+
public DateTime? EndTime { get; set; }
65+
66+
/// <summary>
67+
/// The start timestamp of the appointment in UTC.
68+
/// </summary>
69+
/// <value>The start timestamp of the appointment in UTC.</value>
70+
[DataMember(Name="startTime", EmitDefaultValue=false)]
71+
public DateTime? StartTime { get; set; }
72+
73+
/// <summary>
74+
/// Returns the string presentation of the object
75+
/// </summary>
76+
/// <returns>String presentation of the object</returns>
77+
public override string ToString()
78+
{
79+
var sb = new StringBuilder();
80+
sb.Append("class AppointmentSlotTime {\n");
81+
sb.Append(" EndTime: ").Append(EndTime).Append("\n");
82+
sb.Append(" StartTime: ").Append(StartTime).Append("\n");
83+
sb.Append("}\n");
84+
return sb.ToString();
85+
}
86+
87+
/// <summary>
88+
/// Returns the JSON string presentation of the object
89+
/// </summary>
90+
/// <returns>JSON string presentation of the object</returns>
91+
public virtual string ToJson()
92+
{
93+
return JsonConvert.SerializeObject(this, Formatting.Indented);
94+
}
95+
96+
/// <summary>
97+
/// Returns true if objects are equal
98+
/// </summary>
99+
/// <param name="input">Object to be compared</param>
100+
/// <returns>Boolean</returns>
101+
public override bool Equals(object input)
102+
{
103+
return this.Equals(input as AppointmentSlotTime);
104+
}
105+
106+
/// <summary>
107+
/// Returns true if AppointmentSlotTime instances are equal
108+
/// </summary>
109+
/// <param name="input">Instance of AppointmentSlotTime to be compared</param>
110+
/// <returns>Boolean</returns>
111+
public bool Equals(AppointmentSlotTime input)
112+
{
113+
if (input == null)
114+
return false;
115+
116+
return
117+
(
118+
this.EndTime == input.EndTime ||
119+
(this.EndTime != null &&
120+
this.EndTime.Equals(input.EndTime))
121+
) &&
122+
(
123+
this.StartTime == input.StartTime ||
124+
(this.StartTime != null &&
125+
this.StartTime.Equals(input.StartTime))
126+
);
127+
}
128+
129+
/// <summary>
130+
/// Gets the hash code
131+
/// </summary>
132+
/// <returns>Hash code</returns>
133+
public override int GetHashCode()
134+
{
135+
unchecked // Overflow is fine, just wrap
136+
{
137+
int hashCode = 41;
138+
if (this.EndTime != null)
139+
hashCode = hashCode * 59 + this.EndTime.GetHashCode();
140+
if (this.StartTime != null)
141+
hashCode = hashCode * 59 + this.StartTime.GetHashCode();
142+
return hashCode;
143+
}
144+
}
145+
146+
/// <summary>
147+
/// To validate all properties of the instance
148+
/// </summary>
149+
/// <param name="validationContext">Validation context</param>
150+
/// <returns>Validation Result</returns>
151+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
152+
{
153+
yield break;
154+
}
155+
}
156+
157+
}

0 commit comments

Comments
 (0)