Skip to content

Commit 852ad99

Browse files
committed
2 parents 77d8fe5 + 51d5ccb commit 852ad99

20 files changed

+1454
-5
lines changed

Source/FikaAmazonAPI/AmazonConnection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class AmazonConnection
1111
{
1212
private AmazonCredential Credentials { get; set; }
1313

14+
public AppIntegrationsServiceV20240401 AppIntegrationsServiceV20240401 => this._AppIntegrationsServiceV20240401 ?? throw _NoCredentials;
1415
public OrderService Orders => this._Orders ?? throw _NoCredentials;
1516
public ReportService Reports => this._Reports ?? throw _NoCredentials;
1617
public SolicitationService Solicitations => this._Solicitations ?? throw _NoCredentials;
@@ -49,6 +50,7 @@ public class AmazonConnection
4950

5051
public VendorTransactionStatusService VendorTransactionStatus => this._VendorTransactionStatus ?? throw _NoCredentials;
5152

53+
private AppIntegrationsServiceV20240401 _AppIntegrationsServiceV20240401 { get; set; }
5254
private OrderService _Orders { get; set; }
5355
private ReportService _Reports { get; set; }
5456
private SolicitationService _Solicitations { get; set; }
@@ -111,6 +113,7 @@ private void Init(AmazonCredential Credentials)
111113
this.Credentials = Credentials;
112114

113115
this._Authorization = new AuthorizationService(this.Credentials);
116+
this._AppIntegrationsServiceV20240401 = new AppIntegrationsServiceV20240401(this.Credentials);
114117
this._Orders = new OrderService(this.Credentials);
115118
this._Reports = new ReportService(this.Credentials);
116119
this._Solicitations = new SolicitationService(this.Credentials);
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
/*
2+
* The Selling Partner API for third party application integrations.
3+
*
4+
* With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
5+
*
6+
* OpenAPI spec version: 2024-04-01
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.IO;
13+
using System.Text;
14+
using System.Collections.Generic;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
using System.ComponentModel.DataAnnotations;
18+
19+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.AppIntegrationsV20240401
20+
{
21+
/// <summary>
22+
/// The request for the &#x60;createNotification&#x60; operation.
23+
/// </summary>
24+
[DataContract]
25+
public partial class CreateNotificationRequest : IEquatable<CreateNotificationRequest>, IValidatableObject
26+
{
27+
/// <summary>
28+
/// Initializes a new instance of the <see cref="CreateNotificationRequest" /> class.
29+
/// </summary>
30+
[JsonConstructorAttribute]
31+
public CreateNotificationRequest() { }
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="CreateNotificationRequest" /> class.
34+
/// </summary>
35+
/// <param name="templateId">The unique identifier of the notification template you used to onboard your application. (required).</param>
36+
/// <param name="notificationParameters">The parameters specified in the template you used to onboard your application. (required).</param>
37+
/// <param name="marketplaceId">An encrypted marketplace identifier for the posted notification..</param>
38+
public CreateNotificationRequest(string templateId = default(string), NotificationParameters notificationParameters = default(NotificationParameters), string marketplaceId = default(string))
39+
{
40+
// to ensure "templateId" is required (not null)
41+
if (templateId == null)
42+
{
43+
throw new InvalidDataException("templateId is a required property for CreateNotificationRequest and cannot be null");
44+
}
45+
else
46+
{
47+
this.TemplateId = templateId;
48+
}
49+
// to ensure "notificationParameters" is required (not null)
50+
if (notificationParameters == null)
51+
{
52+
throw new InvalidDataException("notificationParameters is a required property for CreateNotificationRequest and cannot be null");
53+
}
54+
else
55+
{
56+
this.NotificationParameters = notificationParameters;
57+
}
58+
this.MarketplaceId = marketplaceId;
59+
}
60+
61+
/// <summary>
62+
/// The unique identifier of the notification template you used to onboard your application.
63+
/// </summary>
64+
/// <value>The unique identifier of the notification template you used to onboard your application.</value>
65+
[DataMember(Name="templateId", EmitDefaultValue=false)]
66+
public string TemplateId { get; set; }
67+
68+
/// <summary>
69+
/// The parameters specified in the template you used to onboard your application.
70+
/// </summary>
71+
/// <value>The parameters specified in the template you used to onboard your application.</value>
72+
[DataMember(Name="notificationParameters", EmitDefaultValue=false)]
73+
public NotificationParameters NotificationParameters { get; set; }
74+
75+
/// <summary>
76+
/// An encrypted marketplace identifier for the posted notification.
77+
/// </summary>
78+
/// <value>An encrypted marketplace identifier for the posted notification.</value>
79+
[DataMember(Name="marketplaceId", EmitDefaultValue=false)]
80+
public string MarketplaceId { get; set; }
81+
82+
/// <summary>
83+
/// Returns the string presentation of the object
84+
/// </summary>
85+
/// <returns>String presentation of the object</returns>
86+
public override string ToString()
87+
{
88+
var sb = new StringBuilder();
89+
sb.Append("class CreateNotificationRequest {\n");
90+
sb.Append(" TemplateId: ").Append(TemplateId).Append("\n");
91+
sb.Append(" NotificationParameters: ").Append(NotificationParameters).Append("\n");
92+
sb.Append(" MarketplaceId: ").Append(MarketplaceId).Append("\n");
93+
sb.Append("}\n");
94+
return sb.ToString();
95+
}
96+
97+
/// <summary>
98+
/// Returns the JSON string presentation of the object
99+
/// </summary>
100+
/// <returns>JSON string presentation of the object</returns>
101+
public virtual string ToJson()
102+
{
103+
return JsonConvert.SerializeObject(this, Formatting.Indented);
104+
}
105+
106+
/// <summary>
107+
/// Returns true if objects are equal
108+
/// </summary>
109+
/// <param name="input">Object to be compared</param>
110+
/// <returns>Boolean</returns>
111+
public override bool Equals(object input)
112+
{
113+
return this.Equals(input as CreateNotificationRequest);
114+
}
115+
116+
/// <summary>
117+
/// Returns true if CreateNotificationRequest instances are equal
118+
/// </summary>
119+
/// <param name="input">Instance of CreateNotificationRequest to be compared</param>
120+
/// <returns>Boolean</returns>
121+
public bool Equals(CreateNotificationRequest input)
122+
{
123+
if (input == null)
124+
return false;
125+
126+
return
127+
(
128+
this.TemplateId == input.TemplateId ||
129+
(this.TemplateId != null &&
130+
this.TemplateId.Equals(input.TemplateId))
131+
) &&
132+
(
133+
this.NotificationParameters == input.NotificationParameters ||
134+
(this.NotificationParameters != null &&
135+
this.NotificationParameters.Equals(input.NotificationParameters))
136+
) &&
137+
(
138+
this.MarketplaceId == input.MarketplaceId ||
139+
(this.MarketplaceId != null &&
140+
this.MarketplaceId.Equals(input.MarketplaceId))
141+
);
142+
}
143+
144+
/// <summary>
145+
/// Gets the hash code
146+
/// </summary>
147+
/// <returns>Hash code</returns>
148+
public override int GetHashCode()
149+
{
150+
unchecked // Overflow is fine, just wrap
151+
{
152+
int hashCode = 41;
153+
if (this.TemplateId != null)
154+
hashCode = hashCode * 59 + this.TemplateId.GetHashCode();
155+
if (this.NotificationParameters != null)
156+
hashCode = hashCode * 59 + this.NotificationParameters.GetHashCode();
157+
if (this.MarketplaceId != null)
158+
hashCode = hashCode * 59 + this.MarketplaceId.GetHashCode();
159+
return hashCode;
160+
}
161+
}
162+
163+
/// <summary>
164+
/// To validate all properties of the instance
165+
/// </summary>
166+
/// <param name="validationContext">Validation context</param>
167+
/// <returns>Validation Result</returns>
168+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
169+
{
170+
yield break;
171+
}
172+
}
173+
174+
}
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/*
2+
* The Selling Partner API for third party application integrations.
3+
*
4+
* With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
5+
*
6+
* OpenAPI spec version: 2024-04-01
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.Text;
13+
using System.Collections.Generic;
14+
using System.Runtime.Serialization;
15+
using Newtonsoft.Json;
16+
using System.ComponentModel.DataAnnotations;
17+
18+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.AppIntegrationsV20240401
19+
{
20+
/// <summary>
21+
/// The response for the &#x60;createNotification&#x60; operation.
22+
/// </summary>
23+
[DataContract]
24+
public partial class CreateNotificationResponse : IEquatable<CreateNotificationResponse>, IValidatableObject
25+
{
26+
27+
public CreateNotificationResponse()
28+
{
29+
this.NotificationId = default(string);
30+
}
31+
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="CreateNotificationResponse" /> class.
34+
/// </summary>
35+
/// <param name="notificationId">The unique identifier assigned to each notification..</param>
36+
public CreateNotificationResponse(string notificationId = default(string))
37+
{
38+
this.NotificationId = notificationId;
39+
}
40+
41+
/// <summary>
42+
/// The unique identifier assigned to each notification.
43+
/// </summary>
44+
/// <value>The unique identifier assigned to each notification.</value>
45+
[DataMember(Name="notificationId", EmitDefaultValue=false)]
46+
public string NotificationId { get; set; }
47+
48+
/// <summary>
49+
/// Returns the string presentation of the object
50+
/// </summary>
51+
/// <returns>String presentation of the object</returns>
52+
public override string ToString()
53+
{
54+
var sb = new StringBuilder();
55+
sb.Append("class CreateNotificationResponse {\n");
56+
sb.Append(" NotificationId: ").Append(NotificationId).Append("\n");
57+
sb.Append("}\n");
58+
return sb.ToString();
59+
}
60+
61+
/// <summary>
62+
/// Returns the JSON string presentation of the object
63+
/// </summary>
64+
/// <returns>JSON string presentation of the object</returns>
65+
public virtual string ToJson()
66+
{
67+
return JsonConvert.SerializeObject(this, Formatting.Indented);
68+
}
69+
70+
/// <summary>
71+
/// Returns true if objects are equal
72+
/// </summary>
73+
/// <param name="input">Object to be compared</param>
74+
/// <returns>Boolean</returns>
75+
public override bool Equals(object input)
76+
{
77+
return this.Equals(input as CreateNotificationResponse);
78+
}
79+
80+
/// <summary>
81+
/// Returns true if CreateNotificationResponse instances are equal
82+
/// </summary>
83+
/// <param name="input">Instance of CreateNotificationResponse to be compared</param>
84+
/// <returns>Boolean</returns>
85+
public bool Equals(CreateNotificationResponse input)
86+
{
87+
if (input == null)
88+
return false;
89+
90+
return
91+
(
92+
this.NotificationId == input.NotificationId ||
93+
(this.NotificationId != null &&
94+
this.NotificationId.Equals(input.NotificationId))
95+
);
96+
}
97+
98+
/// <summary>
99+
/// Gets the hash code
100+
/// </summary>
101+
/// <returns>Hash code</returns>
102+
public override int GetHashCode()
103+
{
104+
unchecked // Overflow is fine, just wrap
105+
{
106+
int hashCode = 41;
107+
if (this.NotificationId != null)
108+
hashCode = hashCode * 59 + this.NotificationId.GetHashCode();
109+
return hashCode;
110+
}
111+
}
112+
113+
/// <summary>
114+
/// To validate all properties of the instance
115+
/// </summary>
116+
/// <param name="validationContext">Validation context</param>
117+
/// <returns>Validation Result</returns>
118+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
119+
{
120+
yield break;
121+
}
122+
}
123+
124+
}

0 commit comments

Comments
 (0)