Skip to content

Commit 73d8e2f

Browse files
Add required fulfillment endpoints to the sdk
1 parent 0f87bcd commit 73d8e2f

File tree

89 files changed

+9104
-2
lines changed

Some content is hidden

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

89 files changed

+9104
-2
lines changed
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+

2+
//------------------------------------------------------------------------------
3+
// <auto-generated>
4+
// This code was generated by Codezu.
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost if
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
11+
using System;
12+
using System.Collections.Generic;
13+
using Mozu.Api.Security;
14+
using System.Threading.Tasks;
15+
using Newtonsoft.Json.Linq;
16+
using System.Threading;
17+
using Mozu.Api.Contracts.Fulfillment;
18+
19+
namespace Mozu.Api.Clients.Commerce.Fulfillment
20+
{
21+
/// <summary>
22+
/// Use the Location resource to retrieve details about a location from a hosted storefront.
23+
/// </summary>
24+
public partial class ShipmentClient
25+
{
26+
27+
/// <summary>
28+
///
29+
/// </summary>
30+
/// <param name="filter"></param>
31+
/// <param name="isLate"></param>
32+
/// <param name="page"></param>
33+
/// <param name="pageSize"></param>
34+
/// <param name="quickSearch"></param>
35+
/// <param name="sort"></param>
36+
/// <param name="workflowTaskName"></param>
37+
/// <param name="responseFields">Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.</param>
38+
/// <returns>
39+
/// <see cref="Mozu.Api.MozuClient" />{<see cref="Mozu.Api.Contracts.Fulfillment.PagedModelOfEntityModelOfShipment"/>}
40+
/// </returns>
41+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.PagedModelOfEntityModelOfShipment> GetShipmentsClient(string filter = null, bool? isLate = null, int? page = null, int? pageSize = null, string quickSearch = null, string sort = null, string workflowTaskName = null, string responseFields = null)
42+
{
43+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.GetShipmentsUrl(filter, isLate, page, pageSize, quickSearch, sort, workflowTaskName, responseFields);
44+
const string verb = "GET";
45+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.PagedModelOfEntityModelOfShipment>()
46+
.WithVerb(verb).WithResourceUrl(url)
47+
;
48+
return mozuClient;
49+
50+
}
51+
52+
/// <summary>
53+
///
54+
/// </summary>
55+
/// <param name="shipmentNumber"></param>
56+
/// <param name="responseFields"></param>
57+
/// <returns></returns>
58+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> GetShipmentClient(int shipmentNumber, string responseFields = null)
59+
{
60+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.GetShipmentUrl(shipmentNumber, responseFields);
61+
const string verb = "GET";
62+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
63+
.WithVerb(verb).WithResourceUrl(url)
64+
;
65+
return mozuClient;
66+
67+
}
68+
/// <summary>
69+
///
70+
/// </summary>
71+
/// <param name="shipmentNumber"></param>
72+
/// <param name="responseFields"></param>
73+
/// <returns></returns>
74+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> FulfillShipmentClient(int shipmentNumber, string responseFields = null)
75+
{
76+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.FulfillShipmentUrl(shipmentNumber, responseFields);
77+
const string verb = "PUT";
78+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
79+
.WithVerb(verb).WithResourceUrl(url)
80+
;
81+
return mozuClient;
82+
83+
}
84+
85+
/// <summary>
86+
///
87+
/// </summary>
88+
/// <param name="shipment"></param>
89+
/// <param name="responseFields"></param>
90+
/// <returns></returns>
91+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> NewShipmentClient(Shipment shipment, string responseFields = null)
92+
{
93+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.NewShipmentUrl(shipment, responseFields);
94+
const string verb = "POST";
95+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
96+
.WithVerb(verb).WithResourceUrl(url)
97+
;
98+
return mozuClient;
99+
100+
}
101+
102+
/// <summary>
103+
///
104+
/// </summary>
105+
/// <param name="cancelItemsRequest"></param>
106+
/// <param name="shipmentNumber"></param>
107+
/// <param name="responseFields"></param>
108+
/// <returns></returns>
109+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> CancelItemsClient(CancelItemsRequest cancelItemsRequest, int shipmentNumber,string responseFields = null)
110+
{
111+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.CancelItemsUrl(cancelItemsRequest,shipmentNumber, responseFields);
112+
const string verb = "PUT";
113+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
114+
.WithVerb(verb).WithResourceUrl(url)
115+
;
116+
return mozuClient;
117+
118+
}
119+
/// <summary>
120+
///
121+
/// </summary>
122+
/// <param name="cancelShipment"></param>
123+
/// <param name="shipmentNumber"></param>
124+
/// <param name="responseFields"></param>
125+
/// <returns></returns>
126+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> CancelShipmentClient(CancelShipment cancelShipment, int shipmentNumber, string responseFields = null)
127+
{
128+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.CancelShipmentUrl(cancelShipment, shipmentNumber, responseFields);
129+
const string verb = "PUT";
130+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
131+
.WithVerb(verb).WithResourceUrl(url)
132+
;
133+
return mozuClient;
134+
135+
}
136+
137+
/// <summary>
138+
///
139+
/// </summary>
140+
/// <param name="shipmentNumber"></param>
141+
/// <returns></returns>
142+
public static MozuClient<System.IO.Stream> DeleteShipmentClient(int shipmentNumber)
143+
{
144+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.DeleteShipmentUrl(shipmentNumber);
145+
const string verb = "DELETE";
146+
var mozuClient = new MozuClient<System.IO.Stream>()
147+
.WithVerb(verb).WithResourceUrl(url)
148+
;
149+
return mozuClient;
150+
151+
}
152+
153+
/// <summary>
154+
///
155+
/// </summary>
156+
/// <param name="destination"></param>
157+
/// <param name="shipmentNumber"></param>
158+
/// <param name="responseFields"></param>
159+
/// <returns></returns>
160+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> DestinationUpdateClient(Destination destination, int shipmentNumber, string responseFields = null)
161+
{
162+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.DestinationUpdateUrl(destination, shipmentNumber, responseFields);
163+
const string verb = "PUT";
164+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
165+
.WithVerb(verb).WithResourceUrl(url)
166+
;
167+
return mozuClient;
168+
169+
}
170+
171+
/// <summary>
172+
///
173+
/// </summary>
174+
/// <param name="shipment"></param>
175+
/// <param name="shipmentNumber"></param>
176+
/// <param name="updateFields"></param>
177+
/// <param name="responseFields"></param>
178+
/// <returns></returns>
179+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> ReplaceShipmentClient(Shipment shipment, int shipmentNumber, List<string> updateFields,string responseFields = null)
180+
{
181+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentUrl.ReplaceShipmentUrl(shipment, shipmentNumber,updateFields, responseFields);
182+
const string verb = "PUT";
183+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
184+
.WithVerb(verb).WithResourceUrl(url)
185+
;
186+
return mozuClient;
187+
188+
}
189+
190+
}
191+
192+
}
193+
194+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
using Mozu.Api.Contracts.Fulfillment;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
9+
namespace Mozu.Api.Clients.Commerce.Fulfillment
10+
{
11+
public partial class ShipmentPackagesClient
12+
{
13+
/// <summary>
14+
///
15+
/// </summary>
16+
/// <param name="package"></param>
17+
/// <param name="shipmentNumber"></param>
18+
/// <param name="responseFields"></param>
19+
/// <returns></returns>
20+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> NewPackageClient(Package package, int shipmentNumber, string responseFields = null)
21+
{
22+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentPackagesUrl.NewPackageUrl(package, shipmentNumber, responseFields);
23+
const string verb = "POST";
24+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
25+
.WithVerb(verb).WithResourceUrl(url)
26+
;
27+
return mozuClient;
28+
}
29+
30+
/// <summary>
31+
///
32+
/// </summary>
33+
/// <param name="package"></param>
34+
/// <param name="packageId"></param>
35+
/// <param name="shipmentNumber"></param>
36+
/// <param name="responseFields"></param>
37+
/// <returns></returns>
38+
public static MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment> UpdatePackageClient(Package package, string packageId, int shipmentNumber, string responseFields = null)
39+
{
40+
var url = Mozu.Api.Urls.Commerce.Fulfillment.ShipmentPackagesUrl.UpdatePackageUrl(package,packageId, shipmentNumber, responseFields);
41+
const string verb = "PUT";
42+
var mozuClient = new MozuClient<Mozu.Api.Contracts.Fulfillment.EntityModelOfShipment>()
43+
.WithVerb(verb).WithResourceUrl(url)
44+
;
45+
return mozuClient;
46+
}
47+
}
48+
}
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
using System;
2+
using System.Text;
3+
using System.Collections;
4+
using System.Collections.Generic;
5+
using System.Runtime.Serialization;
6+
using Newtonsoft.Json;
7+
8+
namespace Mozu.Api.Contracts.Fulfillment {
9+
10+
/// <summary>
11+
///
12+
/// </summary>
13+
[DataContract]
14+
public class Address {
15+
/// <summary>
16+
/// Gets or Sets Address1
17+
/// </summary>
18+
[DataMember(Name="address1", EmitDefaultValue=false)]
19+
[JsonProperty(PropertyName = "address1")]
20+
public string Address1 { get; set; }
21+
22+
/// <summary>
23+
/// Gets or Sets Address2
24+
/// </summary>
25+
[DataMember(Name="address2", EmitDefaultValue=false)]
26+
[JsonProperty(PropertyName = "address2")]
27+
public string Address2 { get; set; }
28+
29+
/// <summary>
30+
/// Gets or Sets Address3
31+
/// </summary>
32+
[DataMember(Name="address3", EmitDefaultValue=false)]
33+
[JsonProperty(PropertyName = "address3")]
34+
public string Address3 { get; set; }
35+
36+
/// <summary>
37+
/// Gets or Sets Address4
38+
/// </summary>
39+
[DataMember(Name="address4", EmitDefaultValue=false)]
40+
[JsonProperty(PropertyName = "address4")]
41+
public string Address4 { get; set; }
42+
43+
/// <summary>
44+
/// Gets or Sets AddressType
45+
/// </summary>
46+
[DataMember(Name="addressType", EmitDefaultValue=false)]
47+
[JsonProperty(PropertyName = "addressType")]
48+
public string AddressType { get; set; }
49+
50+
/// <summary>
51+
/// Gets or Sets Attributes
52+
/// </summary>
53+
[DataMember(Name="attributes", EmitDefaultValue=false)]
54+
[JsonProperty(PropertyName = "attributes")]
55+
public Dictionary<string, Object> Attributes { get; set; }
56+
57+
/// <summary>
58+
/// Gets or Sets CityOrTown
59+
/// </summary>
60+
[DataMember(Name="cityOrTown", EmitDefaultValue=false)]
61+
[JsonProperty(PropertyName = "cityOrTown")]
62+
public string CityOrTown { get; set; }
63+
64+
/// <summary>
65+
/// Gets or Sets CountryCode
66+
/// </summary>
67+
[DataMember(Name="countryCode", EmitDefaultValue=false)]
68+
[JsonProperty(PropertyName = "countryCode")]
69+
public string CountryCode { get; set; }
70+
71+
/// <summary>
72+
/// Gets or Sets IsValidated
73+
/// </summary>
74+
[DataMember(Name="isValidated", EmitDefaultValue=false)]
75+
[JsonProperty(PropertyName = "isValidated")]
76+
public bool? IsValidated { get; set; }
77+
78+
/// <summary>
79+
/// Gets or Sets Latitude
80+
/// </summary>
81+
[DataMember(Name="latitude", EmitDefaultValue=false)]
82+
[JsonProperty(PropertyName = "latitude")]
83+
public string Latitude { get; set; }
84+
85+
/// <summary>
86+
/// Gets or Sets Longitude
87+
/// </summary>
88+
[DataMember(Name="longitude", EmitDefaultValue=false)]
89+
[JsonProperty(PropertyName = "longitude")]
90+
public string Longitude { get; set; }
91+
92+
/// <summary>
93+
/// Gets or Sets PostalOrZipCode
94+
/// </summary>
95+
[DataMember(Name="postalOrZipCode", EmitDefaultValue=false)]
96+
[JsonProperty(PropertyName = "postalOrZipCode")]
97+
public string PostalOrZipCode { get; set; }
98+
99+
/// <summary>
100+
/// Gets or Sets StateOrProvince
101+
/// </summary>
102+
[DataMember(Name="stateOrProvince", EmitDefaultValue=false)]
103+
[JsonProperty(PropertyName = "stateOrProvince")]
104+
public string StateOrProvince { get; set; }
105+
106+
107+
/// <summary>
108+
/// Get the string presentation of the object
109+
/// </summary>
110+
/// <returns>String presentation of the object</returns>
111+
public override string ToString() {
112+
var sb = new StringBuilder();
113+
sb.Append("class Address {\n");
114+
sb.Append(" Address1: ").Append(Address1).Append("\n");
115+
sb.Append(" Address2: ").Append(Address2).Append("\n");
116+
sb.Append(" Address3: ").Append(Address3).Append("\n");
117+
sb.Append(" Address4: ").Append(Address4).Append("\n");
118+
sb.Append(" AddressType: ").Append(AddressType).Append("\n");
119+
sb.Append(" Attributes: ").Append(Attributes).Append("\n");
120+
sb.Append(" CityOrTown: ").Append(CityOrTown).Append("\n");
121+
sb.Append(" CountryCode: ").Append(CountryCode).Append("\n");
122+
sb.Append(" IsValidated: ").Append(IsValidated).Append("\n");
123+
sb.Append(" Latitude: ").Append(Latitude).Append("\n");
124+
sb.Append(" Longitude: ").Append(Longitude).Append("\n");
125+
sb.Append(" PostalOrZipCode: ").Append(PostalOrZipCode).Append("\n");
126+
sb.Append(" StateOrProvince: ").Append(StateOrProvince).Append("\n");
127+
sb.Append("}\n");
128+
return sb.ToString();
129+
}
130+
131+
/// <summary>
132+
/// Get the JSON string presentation of the object
133+
/// </summary>
134+
/// <returns>JSON string presentation of the object</returns>
135+
public string ToJson() {
136+
return JsonConvert.SerializeObject(this, Formatting.Indented);
137+
}
138+
139+
}
140+
}

0 commit comments

Comments
 (0)