Skip to content

Commit 6ab4ece

Browse files
committed
add Vendor Direct Fulfillment Order
1 parent 9a35730 commit 6ab4ece

32 files changed

+4501
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ The purpose of this package is to have an easy way of getting started with the A
2121

2222
---
2323
### Tasks
24+
##Seller
25+
2426
- [x] [OrdersV0](https://github.com/amzn/selling-partner-api-docs/blob/main/references/orders-api/ordersV0.md)
2527
- [x] [Reports](https://github.com/amzn/selling-partner-api-docs/blob/main/references/reports-api/reports_2020-09-04.md)
2628
- [x] [FinancesV0](https://github.com/amzn/selling-partner-api-docs/blob/main/references/finances-api/financesV0.md)
@@ -45,6 +47,17 @@ The purpose of this package is to have an easy way of getting started with the A
4547
- [x] [Solicitations](https://github.com/amzn/selling-partner-api-docs/blob/main/references/solicitations-api/solicitations.md)
4648
- [x] [Token](https://github.com/amzn/selling-partner-api-docs/blob/main/references/tokens-api/tokens_2021-03-01.md) for [doc PII](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/tokens-api-use-case-guide/tokens-API-use-case-guide-2021-03-01.md) NOT TESTED
4749

50+
##Vendor
51+
- [] [VendorOrders](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-orders-api/vendorOrders.md)
52+
- [] [VendorDirectFulfillmentInventoryV1](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-direct-fulfillment-inventory-api/vendorDirectFulfillmentInventoryV1.md)
53+
- [x] [VendorDirectFulfillmentOrdersV1](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-direct-fulfillment-orders-api/vendorDirectFulfillmentOrdersV1.md)
54+
- [] [VendorDirectFulfillmentPaymentsV1](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-direct-fulfillment-payments-api/vendorDirectFulfillmentPaymentsV1.md)
55+
- [] [VendorDirectFulfillmentShippingV1](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-direct-fulfillment-shipping-api/vendorDirectFulfillmentShippingV1.md)
56+
- [] [VendorDirectFulfillmentTransactionsV1](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-transactions-api)
57+
- [] [vendorInvoices](https://github.com/amzn/selling-partner-api-docs/blob/main/references/vendor-invoices-api/vendorInvoices.md)
58+
- [] [VendorShipments](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-shipments-api)
59+
- [] [VendorTransactionStatus](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-transaction-status-api)
60+
4861

4962

5063
---

Source/FikaAmazonAPI.Sample/FikaAmazonAPI.Sample.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<Compile Include="ReportsSample.cs" />
8181
<Compile Include="SolicitationsSample.cs" />
8282
<Compile Include="TokenSample.cs" />
83+
<Compile Include="VendorDirectFulfillmentOrderSample.cs" />
8384
</ItemGroup>
8485
<ItemGroup>
8586
<None Include="App.config" />

Source/FikaAmazonAPI.Sample/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class Program
2929
static async Task Main(string[] args)
3030
{
3131

32-
32+
33+
3334
AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential()
3435
{
3536
AccessKey = Environment.GetEnvironmentVariable("AccessKey"),
@@ -43,6 +44,9 @@ static async Task Main(string[] args)
4344

4445
}) ;
4546

47+
var order2s = amazonConnection.VendorDirectFulfillmentOrders.GetOrder("UNrSh9H8R");
48+
49+
4650
var orderData=amazonConnection.Orders.GetOrder(new ParameterGetOrder()
4751
{
4852
OrderId = "404-6678802-8633900"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace FikaAmazonAPI.Sample
8+
{
9+
public class VendorDirectFulfillmentOrderSample
10+
{
11+
12+
}
13+
}

Source/FikaAmazonAPI/AmazonConnection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class AmazonConnection
3939
public TokenService Tokens => this._Tokens ?? throw _NoCredentials;
4040
public FulFillmentInboundService FulFillmentInbound => this._FulFillmentInbound ?? throw _NoCredentials;
4141
public FulFillmentOutboundService FulFillmentOutbound => this._FulFillmentOutbound ?? throw _NoCredentials;
42+
public VendorDirectFulfillmentOrderService VendorDirectFulfillmentOrders => this._VendorDirectFulfillmentOrders ?? throw _NoCredentials;
4243

4344

4445

@@ -71,6 +72,7 @@ public class AmazonConnection
7172
private TokenService _Tokens { get; set; }
7273
private FulFillmentInboundService _FulFillmentInbound { get; set; }
7374
private FulFillmentOutboundService _FulFillmentOutbound { get; set; }
75+
private VendorDirectFulfillmentOrderService _VendorDirectFulfillmentOrders { get; set; }
7476

7577
private UnauthorizedAccessException _NoCredentials = new UnauthorizedAccessException($"Error, you cannot make calls to Amazon without credentials!");
7678

@@ -120,6 +122,7 @@ private void Init(AmazonCredential Credentials)
120122
this._Tokens= new TokenService(this.Credentials);
121123
this._FulFillmentInbound= new FulFillmentInboundService(this.Credentials);
122124
this._FulFillmentOutbound= new FulFillmentOutboundService(this.Credentials);
125+
this._VendorDirectFulfillmentOrders = new VendorDirectFulfillmentOrderService(this.Credentials);
123126
}
124127
}
125128
}
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
/*
2+
* Selling Partner API for Direct Fulfillment Orders
3+
*
4+
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.
5+
*
6+
* OpenAPI spec version: v1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.Linq;
13+
using System.IO;
14+
using System.Text;
15+
using System.Text.RegularExpressions;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Collections.ObjectModel;
19+
using System.Runtime.Serialization;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using System.ComponentModel.DataAnnotations;
23+
24+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.VendorDirectFulfillmentOrders
25+
{
26+
/// <summary>
27+
/// Status of acknowledgement.
28+
/// </summary>
29+
[DataContract]
30+
public partial class AcknowledgementStatus : IEquatable<AcknowledgementStatus>, IValidatableObject
31+
{
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="AcknowledgementStatus" /> class.
34+
/// </summary>
35+
/// <param name="code">Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide..</param>
36+
/// <param name="description">Reason for the acknowledgement code..</param>
37+
public AcknowledgementStatus(string code = default(string), string description = default(string))
38+
{
39+
this.Code = code;
40+
this.Description = description;
41+
}
42+
43+
/// <summary>
44+
/// Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide.
45+
/// </summary>
46+
/// <value>Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide.</value>
47+
[DataMember(Name="code", EmitDefaultValue=false)]
48+
public string Code { get; set; }
49+
50+
/// <summary>
51+
/// Reason for the acknowledgement code.
52+
/// </summary>
53+
/// <value>Reason for the acknowledgement code.</value>
54+
[DataMember(Name="description", EmitDefaultValue=false)]
55+
public string Description { get; set; }
56+
57+
/// <summary>
58+
/// Returns the string presentation of the object
59+
/// </summary>
60+
/// <returns>String presentation of the object</returns>
61+
public override string ToString()
62+
{
63+
var sb = new StringBuilder();
64+
sb.Append("class AcknowledgementStatus {\n");
65+
sb.Append(" Code: ").Append(Code).Append("\n");
66+
sb.Append(" Description: ").Append(Description).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 AcknowledgementStatus);
88+
}
89+
90+
/// <summary>
91+
/// Returns true if AcknowledgementStatus instances are equal
92+
/// </summary>
93+
/// <param name="input">Instance of AcknowledgementStatus to be compared</param>
94+
/// <returns>Boolean</returns>
95+
public bool Equals(AcknowledgementStatus input)
96+
{
97+
if (input == null)
98+
return false;
99+
100+
return
101+
(
102+
this.Code == input.Code ||
103+
(this.Code != null &&
104+
this.Code.Equals(input.Code))
105+
) &&
106+
(
107+
this.Description == input.Description ||
108+
(this.Description != null &&
109+
this.Description.Equals(input.Description))
110+
);
111+
}
112+
113+
/// <summary>
114+
/// Gets the hash code
115+
/// </summary>
116+
/// <returns>Hash code</returns>
117+
public override int GetHashCode()
118+
{
119+
unchecked // Overflow is fine, just wrap
120+
{
121+
int hashCode = 41;
122+
if (this.Code != null)
123+
hashCode = hashCode * 59 + this.Code.GetHashCode();
124+
if (this.Description != null)
125+
hashCode = hashCode * 59 + this.Description.GetHashCode();
126+
return hashCode;
127+
}
128+
}
129+
130+
/// <summary>
131+
/// To validate all properties of the instance
132+
/// </summary>
133+
/// <param name="validationContext">Validation context</param>
134+
/// <returns>Validation Result</returns>
135+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
136+
{
137+
yield break;
138+
}
139+
}
140+
141+
}

0 commit comments

Comments
 (0)