Skip to content

Commit 1cd7475

Browse files
authored
Merge pull request #40 from sherweb/rcayouette/beta09
Prepare beta09. Updating OpenAPI spec + nuget package source
2 parents e8b51fb + 934a94e commit 1cd7475

26 files changed

+3348
-23
lines changed

NugetPackagesSourceCode/Sherweb.Apis.ServiceProvider/HttpClient/IServiceProviderService.cs

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,67 @@ public partial interface IServiceProviderService : System.IDisposable
4040
ServiceClientCredentials Credentials { get; }
4141

4242

43+
/// <summary>
44+
/// GetCustomerCatalogItemsPricingInformation (beta)
45+
/// </summary>
46+
/// <param name='customerId'>
47+
/// </param>
48+
/// <param name='body'>
49+
/// </param>
50+
/// <param name='acceptLanguage'>
51+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
52+
/// Accept-Language].
53+
/// </param>
54+
/// <param name='customHeaders'>
55+
/// The headers that will be added to request.
56+
/// </param>
57+
/// <param name='cancellationToken'>
58+
/// The cancellation token.
59+
/// </param>
60+
Task<HttpOperationResponse<CustomerCatalogItemsPricingInformationDto>> GetCustomerCatalogItemsPricingInformationWithHttpMessagesAsync(System.Guid customerId, GetCustomerCatalogItemsPricingInformationRequest body = default(GetCustomerCatalogItemsPricingInformationRequest), string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
61+
62+
/// <summary>
63+
/// GetCustomerPlatformsConfigurations (beta)
64+
/// </summary>
65+
/// <remarks>
66+
/// Get the list of all configured platforms for a customer.
67+
/// </remarks>
68+
/// <param name='customerId'>
69+
/// </param>
70+
/// <param name='acceptLanguage'>
71+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
72+
/// Accept-Language].
73+
/// </param>
74+
/// <param name='customHeaders'>
75+
/// The headers that will be added to request.
76+
/// </param>
77+
/// <param name='cancellationToken'>
78+
/// The cancellation token.
79+
/// </param>
80+
Task<HttpOperationResponse<CustomerConfiguredPlatforms>> GetCustomerPlatformsConfigurationsWithHttpMessagesAsync(System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
81+
82+
/// <summary>
83+
/// ConfigurePlatforms (beta)
84+
/// </summary>
85+
/// <remarks>
86+
/// Configure platforms required parameters.
87+
/// </remarks>
88+
/// <param name='customerId'>
89+
/// </param>
90+
/// <param name='body'>
91+
/// </param>
92+
/// <param name='acceptLanguage'>
93+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
94+
/// Accept-Language].
95+
/// </param>
96+
/// <param name='customHeaders'>
97+
/// The headers that will be added to request.
98+
/// </param>
99+
/// <param name='cancellationToken'>
100+
/// The cancellation token.
101+
/// </param>
102+
Task<HttpOperationResponse> ConfigurePlatformsWithHttpMessagesAsync(System.Guid customerId, ConfigurePlatformsRequest body = default(ConfigurePlatformsRequest), string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
103+
43104
/// <summary>
44105
/// GetCustomers (beta)
45106
/// </summary>
@@ -58,6 +119,72 @@ public partial interface IServiceProviderService : System.IDisposable
58119
/// </param>
59120
Task<HttpOperationResponse<Customers>> GetCustomersWithHttpMessagesAsync(string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
60121

122+
/// <summary>
123+
/// GetAllPlatforms (beta)
124+
/// </summary>
125+
/// <remarks>
126+
/// Get the list of all available platforms.
127+
/// </remarks>
128+
/// <param name='acceptLanguage'>
129+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
130+
/// Accept-Language].
131+
/// </param>
132+
/// <param name='customHeaders'>
133+
/// The headers that will be added to request.
134+
/// </param>
135+
/// <param name='cancellationToken'>
136+
/// The cancellation token.
137+
/// </param>
138+
Task<HttpOperationResponse<PlatformsCollection>> GetAllPlatformsWithHttpMessagesAsync(string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
139+
140+
/// <summary>
141+
/// GetPlatformsForSkus (beta)
142+
/// </summary>
143+
/// <remarks>
144+
/// Get the list of all platforms associated to the provided Skus.
145+
/// Specifying multiple language tags in Accept-Language header will
146+
/// generate translations for each of them.
147+
/// CultureInfo.InvariantCulture ("iv") is used as a fallback when
148+
/// language tags were not provided or not supported.
149+
/// </remarks>
150+
/// <param name='body'>
151+
/// </param>
152+
/// <param name='acceptLanguage'>
153+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
154+
/// Accept-Language].
155+
/// </param>
156+
/// <param name='customHeaders'>
157+
/// The headers that will be added to request.
158+
/// </param>
159+
/// <param name='cancellationToken'>
160+
/// The cancellation token.
161+
/// </param>
162+
Task<HttpOperationResponse<PlatformsForSkusCollection>> GetPlatformsForSkusWithHttpMessagesAsync(GetPlatformsForSkusRequest body = default(GetPlatformsForSkusRequest), string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
163+
164+
/// <summary>
165+
/// GetPlatformRequiredParameters (beta)
166+
/// </summary>
167+
/// <remarks>
168+
/// Get the list of required parameters for selected platforms.
169+
/// Specifying multiple language tags in Accept-Language header will
170+
/// generate translations for each of them.
171+
/// CultureInfo.InvariantCulture ("iv") is used as a fallback when
172+
/// language tags were not provided or not supported.
173+
/// </remarks>
174+
/// <param name='body'>
175+
/// </param>
176+
/// <param name='acceptLanguage'>
177+
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
178+
/// Accept-Language].
179+
/// </param>
180+
/// <param name='customHeaders'>
181+
/// The headers that will be added to request.
182+
/// </param>
183+
/// <param name='cancellationToken'>
184+
/// The cancellation token.
185+
/// </param>
186+
Task<HttpOperationResponse<PlatformRequiredParametersCollection>> GetPlatformRequiredParametersWithHttpMessagesAsync(GetPlatformRequiredParametersRequest body = default(GetPlatformRequiredParametersRequest), string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
187+
61188
/// <summary>
62189
/// GetReceivableCharges (beta)
63190
/// </summary>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Microsoft.Rest;
10+
using Newtonsoft.Json;
11+
using System.Linq;
12+
13+
public partial class CatalogItemPricingInformationDto
14+
{
15+
/// <summary>
16+
/// Initializes a new instance of the CatalogItemPricingInformationDto
17+
/// class.
18+
/// </summary>
19+
public CatalogItemPricingInformationDto()
20+
{
21+
CustomInit();
22+
}
23+
24+
/// <summary>
25+
/// Initializes a new instance of the CatalogItemPricingInformationDto
26+
/// class.
27+
/// </summary>
28+
public CatalogItemPricingInformationDto(System.Guid catalogItemId, string sku, PricingInformationDto pricingInformation)
29+
{
30+
CatalogItemId = catalogItemId;
31+
Sku = sku;
32+
PricingInformation = pricingInformation;
33+
CustomInit();
34+
}
35+
36+
/// <summary>
37+
/// An initialization method that performs custom operations like setting defaults
38+
/// </summary>
39+
partial void CustomInit();
40+
41+
/// <summary>
42+
/// </summary>
43+
[JsonProperty(PropertyName = "catalogItemId")]
44+
public System.Guid CatalogItemId { get; set; }
45+
46+
/// <summary>
47+
/// </summary>
48+
[JsonProperty(PropertyName = "sku")]
49+
public string Sku { get; set; }
50+
51+
/// <summary>
52+
/// </summary>
53+
[JsonProperty(PropertyName = "pricingInformation")]
54+
public PricingInformationDto PricingInformation { get; set; }
55+
56+
/// <summary>
57+
/// Validate the object.
58+
/// </summary>
59+
/// <exception cref="ValidationException">
60+
/// Thrown if validation fails
61+
/// </exception>
62+
public virtual void Validate()
63+
{
64+
if (Sku == null)
65+
{
66+
throw new ValidationException(ValidationRules.CannotBeNull, "Sku");
67+
}
68+
if (PricingInformation == null)
69+
{
70+
throw new ValidationException(ValidationRules.CannotBeNull, "PricingInformation");
71+
}
72+
if (PricingInformation != null)
73+
{
74+
PricingInformation.Validate();
75+
}
76+
}
77+
}
78+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Newtonsoft.Json;
10+
using System.Collections;
11+
using System.Collections.Generic;
12+
using System.Linq;
13+
14+
public partial class Choice
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the Choice class.
18+
/// </summary>
19+
public Choice()
20+
{
21+
CustomInit();
22+
}
23+
24+
/// <summary>
25+
/// Initializes a new instance of the Choice class.
26+
/// </summary>
27+
public Choice(string value = default(string), IList<Translation> displayName = default(IList<Translation>))
28+
{
29+
Value = value;
30+
DisplayName = displayName;
31+
CustomInit();
32+
}
33+
34+
/// <summary>
35+
/// An initialization method that performs custom operations like setting defaults
36+
/// </summary>
37+
partial void CustomInit();
38+
39+
/// <summary>
40+
/// </summary>
41+
[JsonProperty(PropertyName = "value")]
42+
public string Value { get; private set; }
43+
44+
/// <summary>
45+
/// </summary>
46+
[JsonProperty(PropertyName = "displayName")]
47+
public IList<Translation> DisplayName { get; private set; }
48+
49+
}
50+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Microsoft.Rest;
10+
using Newtonsoft.Json;
11+
using System.Collections;
12+
using System.Collections.Generic;
13+
using System.Linq;
14+
15+
public partial class ConfigurePlatformsRequest
16+
{
17+
/// <summary>
18+
/// Initializes a new instance of the ConfigurePlatformsRequest class.
19+
/// </summary>
20+
public ConfigurePlatformsRequest()
21+
{
22+
CustomInit();
23+
}
24+
25+
/// <summary>
26+
/// Initializes a new instance of the ConfigurePlatformsRequest class.
27+
/// </summary>
28+
public ConfigurePlatformsRequest(IList<PlatformConfiguration> platformConfigurations)
29+
{
30+
PlatformConfigurations = platformConfigurations;
31+
CustomInit();
32+
}
33+
34+
/// <summary>
35+
/// An initialization method that performs custom operations like setting defaults
36+
/// </summary>
37+
partial void CustomInit();
38+
39+
/// <summary>
40+
/// </summary>
41+
[JsonProperty(PropertyName = "platformConfigurations")]
42+
public IList<PlatformConfiguration> PlatformConfigurations { get; set; }
43+
44+
/// <summary>
45+
/// Validate the object.
46+
/// </summary>
47+
/// <exception cref="ValidationException">
48+
/// Thrown if validation fails
49+
/// </exception>
50+
public virtual void Validate()
51+
{
52+
if (PlatformConfigurations == null)
53+
{
54+
throw new ValidationException(ValidationRules.CannotBeNull, "PlatformConfigurations");
55+
}
56+
if (PlatformConfigurations != null)
57+
{
58+
foreach (var element in PlatformConfigurations)
59+
{
60+
if (element != null)
61+
{
62+
element.Validate();
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Newtonsoft.Json;
10+
using System.Linq;
11+
12+
public partial class ConfiguredPlatform
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the ConfiguredPlatform class.
16+
/// </summary>
17+
public ConfiguredPlatform()
18+
{
19+
CustomInit();
20+
}
21+
22+
/// <summary>
23+
/// Initializes a new instance of the ConfiguredPlatform class.
24+
/// </summary>
25+
public ConfiguredPlatform(System.Guid id)
26+
{
27+
Id = id;
28+
CustomInit();
29+
}
30+
31+
/// <summary>
32+
/// An initialization method that performs custom operations like setting defaults
33+
/// </summary>
34+
partial void CustomInit();
35+
36+
/// <summary>
37+
/// </summary>
38+
[JsonProperty(PropertyName = "id")]
39+
public System.Guid Id { get; set; }
40+
41+
/// <summary>
42+
/// Validate the object.
43+
/// </summary>
44+
/// <exception cref="Microsoft.Rest.ValidationException">
45+
/// Thrown if validation fails
46+
/// </exception>
47+
public virtual void Validate()
48+
{
49+
//Nothing to validate
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)