Skip to content

Commit 26be656

Browse files
authored
Merge pull request #881 from kevinvenclovas/vatinvoicing-report
Vatinvoicing/Financial20240619
2 parents aa4bf9c + 432b236 commit 26be656

32 files changed

+4114
-0
lines changed
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
/*
2+
* The Selling Partner API for Finances
3+
*
4+
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
5+
*
6+
* OpenAPI spec version: 2024-06-19
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.Runtime.Serialization;
16+
using System.Text;
17+
18+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.Finances.Model
19+
{
20+
/// <summary>
21+
/// Additional information related to Amazon Pay.
22+
/// </summary>
23+
[DataContract]
24+
public partial class AmazonPayContext : IEquatable<AmazonPayContext>, IValidatableObject
25+
{
26+
/// <summary>
27+
/// Initializes a new instance of the <see cref="AmazonPayContext" /> class.
28+
/// </summary>
29+
/// <param name="storeName">Store name related to transaction..</param>
30+
/// <param name="orderType">Order type of the transaction..</param>
31+
/// <param name="channel">Channel details of related transaction..</param>
32+
public AmazonPayContext(string storeName = default(string), string orderType = default(string), string channel = default(string))
33+
{
34+
this.StoreName = storeName;
35+
this.OrderType = orderType;
36+
this.Channel = channel;
37+
}
38+
39+
/// <summary>
40+
/// Store name related to transaction.
41+
/// </summary>
42+
/// <value>Store name related to transaction.</value>
43+
[DataMember(Name="storeName", EmitDefaultValue=false)]
44+
public string StoreName { get; set; }
45+
46+
/// <summary>
47+
/// Order type of the transaction.
48+
/// </summary>
49+
/// <value>Order type of the transaction.</value>
50+
[DataMember(Name="orderType", EmitDefaultValue=false)]
51+
public string OrderType { get; set; }
52+
53+
/// <summary>
54+
/// Channel details of related transaction.
55+
/// </summary>
56+
/// <value>Channel details of related transaction.</value>
57+
[DataMember(Name="channel", EmitDefaultValue=false)]
58+
public string Channel { get; set; }
59+
60+
/// <summary>
61+
/// Returns the string presentation of the object
62+
/// </summary>
63+
/// <returns>String presentation of the object</returns>
64+
public override string ToString()
65+
{
66+
var sb = new StringBuilder();
67+
sb.Append("class AmazonPayContext {\n");
68+
sb.Append(" StoreName: ").Append(StoreName).Append("\n");
69+
sb.Append(" OrderType: ").Append(OrderType).Append("\n");
70+
sb.Append(" Channel: ").Append(Channel).Append("\n");
71+
sb.Append("}\n");
72+
return sb.ToString();
73+
}
74+
75+
/// <summary>
76+
/// Returns the JSON string presentation of the object
77+
/// </summary>
78+
/// <returns>JSON string presentation of the object</returns>
79+
public virtual string ToJson()
80+
{
81+
return JsonConvert.SerializeObject(this, Formatting.Indented);
82+
}
83+
84+
/// <summary>
85+
/// Returns true if objects are equal
86+
/// </summary>
87+
/// <param name="input">Object to be compared</param>
88+
/// <returns>Boolean</returns>
89+
public override bool Equals(object input)
90+
{
91+
return this.Equals(input as AmazonPayContext);
92+
}
93+
94+
/// <summary>
95+
/// Returns true if AmazonPayContext instances are equal
96+
/// </summary>
97+
/// <param name="input">Instance of AmazonPayContext to be compared</param>
98+
/// <returns>Boolean</returns>
99+
public bool Equals(AmazonPayContext input)
100+
{
101+
if (input == null)
102+
return false;
103+
104+
return
105+
(
106+
this.StoreName == input.StoreName ||
107+
(this.StoreName != null &&
108+
this.StoreName.Equals(input.StoreName))
109+
) &&
110+
(
111+
this.OrderType == input.OrderType ||
112+
(this.OrderType != null &&
113+
this.OrderType.Equals(input.OrderType))
114+
) &&
115+
(
116+
this.Channel == input.Channel ||
117+
(this.Channel != null &&
118+
this.Channel.Equals(input.Channel))
119+
);
120+
}
121+
122+
/// <summary>
123+
/// Gets the hash code
124+
/// </summary>
125+
/// <returns>Hash code</returns>
126+
public override int GetHashCode()
127+
{
128+
unchecked // Overflow is fine, just wrap
129+
{
130+
int hashCode = 41;
131+
if (this.StoreName != null)
132+
hashCode = hashCode * 59 + this.StoreName.GetHashCode();
133+
if (this.OrderType != null)
134+
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
135+
if (this.Channel != null)
136+
hashCode = hashCode * 59 + this.Channel.GetHashCode();
137+
return hashCode;
138+
}
139+
}
140+
141+
/// <summary>
142+
/// To validate all properties of the instance
143+
/// </summary>
144+
/// <param name="validationContext">Validation context</param>
145+
/// <returns>Validation Result</returns>
146+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
147+
{
148+
yield break;
149+
}
150+
}
151+
152+
}
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
/*
2+
* The Selling Partner API for Finances
3+
*
4+
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
5+
*
6+
* OpenAPI spec version: 2024-06-19
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.Runtime.Serialization;
16+
using System.Text;
17+
18+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.Finances.Model
19+
{
20+
/// <summary>
21+
/// Breakdown provides details regarding the money movement under the financial transaction. Breakdowns get categorized further into breakdown types, breakdown amounts, and further breakdowns into a hierarchical structure.
22+
/// </summary>
23+
[DataContract]
24+
public partial class Breakdown : IEquatable<Breakdown>, IValidatableObject
25+
{
26+
/// <summary>
27+
/// Initializes a new instance of the <see cref="Breakdown" /> class.
28+
/// </summary>
29+
/// <param name="breakdownType">The type of charge..</param>
30+
/// <param name="breakdownAmount">The amount of the charge..</param>
31+
/// <param name="breakdowns">Further granular breakdowns of the BreakdownType..</param>
32+
public Breakdown(string breakdownType = default(string), Currency breakdownAmount = default(Currency), Breakdowns breakdowns = default(Breakdowns))
33+
{
34+
this.BreakdownType = breakdownType;
35+
this.BreakdownAmount = breakdownAmount;
36+
this.Breakdowns = breakdowns;
37+
}
38+
39+
/// <summary>
40+
/// The type of charge.
41+
/// </summary>
42+
/// <value>The type of charge.</value>
43+
[DataMember(Name="breakdownType", EmitDefaultValue=false)]
44+
public string BreakdownType { get; set; }
45+
46+
/// <summary>
47+
/// The amount of the charge.
48+
/// </summary>
49+
/// <value>The amount of the charge.</value>
50+
[DataMember(Name="breakdownAmount", EmitDefaultValue=false)]
51+
public Currency BreakdownAmount { get; set; }
52+
53+
/// <summary>
54+
/// Further granular breakdowns of the BreakdownType.
55+
/// </summary>
56+
/// <value>Further granular breakdowns of the BreakdownType.</value>
57+
[DataMember(Name="breakdowns", EmitDefaultValue=false)]
58+
public Breakdowns Breakdowns { get; set; }
59+
60+
/// <summary>
61+
/// Returns the string presentation of the object
62+
/// </summary>
63+
/// <returns>String presentation of the object</returns>
64+
public override string ToString()
65+
{
66+
var sb = new StringBuilder();
67+
sb.Append("class Breakdown {\n");
68+
sb.Append(" BreakdownType: ").Append(BreakdownType).Append("\n");
69+
sb.Append(" BreakdownAmount: ").Append(BreakdownAmount).Append("\n");
70+
sb.Append(" Breakdowns: ").Append(Breakdowns).Append("\n");
71+
sb.Append("}\n");
72+
return sb.ToString();
73+
}
74+
75+
/// <summary>
76+
/// Returns the JSON string presentation of the object
77+
/// </summary>
78+
/// <returns>JSON string presentation of the object</returns>
79+
public virtual string ToJson()
80+
{
81+
return JsonConvert.SerializeObject(this, Formatting.Indented);
82+
}
83+
84+
/// <summary>
85+
/// Returns true if objects are equal
86+
/// </summary>
87+
/// <param name="input">Object to be compared</param>
88+
/// <returns>Boolean</returns>
89+
public override bool Equals(object input)
90+
{
91+
return this.Equals(input as Breakdown);
92+
}
93+
94+
/// <summary>
95+
/// Returns true if Breakdown instances are equal
96+
/// </summary>
97+
/// <param name="input">Instance of Breakdown to be compared</param>
98+
/// <returns>Boolean</returns>
99+
public bool Equals(Breakdown input)
100+
{
101+
if (input == null)
102+
return false;
103+
104+
return
105+
(
106+
this.BreakdownType == input.BreakdownType ||
107+
(this.BreakdownType != null &&
108+
this.BreakdownType.Equals(input.BreakdownType))
109+
) &&
110+
(
111+
this.BreakdownAmount == input.BreakdownAmount ||
112+
(this.BreakdownAmount != null &&
113+
this.BreakdownAmount.Equals(input.BreakdownAmount))
114+
) &&
115+
(
116+
this.Breakdowns == input.Breakdowns ||
117+
(this.Breakdowns != null &&
118+
this.Breakdowns.Equals(input.Breakdowns))
119+
);
120+
}
121+
122+
/// <summary>
123+
/// Gets the hash code
124+
/// </summary>
125+
/// <returns>Hash code</returns>
126+
public override int GetHashCode()
127+
{
128+
unchecked // Overflow is fine, just wrap
129+
{
130+
int hashCode = 41;
131+
if (this.BreakdownType != null)
132+
hashCode = hashCode * 59 + this.BreakdownType.GetHashCode();
133+
if (this.BreakdownAmount != null)
134+
hashCode = hashCode * 59 + this.BreakdownAmount.GetHashCode();
135+
if (this.Breakdowns != null)
136+
hashCode = hashCode * 59 + this.Breakdowns.GetHashCode();
137+
return hashCode;
138+
}
139+
}
140+
141+
/// <summary>
142+
/// To validate all properties of the instance
143+
/// </summary>
144+
/// <param name="validationContext">Validation context</param>
145+
/// <returns>Validation Result</returns>
146+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
147+
{
148+
yield break;
149+
}
150+
}
151+
152+
}

0 commit comments

Comments
 (0)