-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from sherweb/rcayouette/beta11
Prepare beta11. Updating OpenAPI spec + nuget package source
- Loading branch information
Showing
44 changed files
with
6,597 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
NugetPackagesSourceCode/Sherweb.Apis.ServiceProvider/HttpClient/Models/CartItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Sherweb.Apis.ServiceProvider.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
public partial class CartItem | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the CartItem class. | ||
/// </summary> | ||
public CartItem() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the CartItem class. | ||
/// </summary> | ||
public CartItem(string sku, int quantity) | ||
{ | ||
Sku = sku; | ||
Quantity = quantity; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "sku")] | ||
public string Sku { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "quantity")] | ||
public int Quantity { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (Sku == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); | ||
} | ||
} | ||
} | ||
} |
127 changes: 127 additions & 0 deletions
127
...de/Sherweb.Apis.ServiceProvider/HttpClient/Models/CartItemsCannotBeEmptyProblemDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Sherweb.Apis.ServiceProvider.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
public partial class CartItemsCannotBeEmptyProblemDetails | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// CartItemsCannotBeEmptyProblemDetails class. | ||
/// </summary> | ||
public CartItemsCannotBeEmptyProblemDetails() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// CartItemsCannotBeEmptyProblemDetails class. | ||
/// </summary> | ||
/// <param name="type">A URI reference [RFC3986] that identifies the | ||
/// problem type. This specification encourages that, when | ||
/// dereferenced, it provides human-readable documentation for the | ||
/// problem type (e.g., using HTML [W3C.REC-html5-20141028]). | ||
/// When this member is not present, its value is assumed to be | ||
/// "about:blank".</param> | ||
/// <param name="title">A short, human-readable summary of the problem | ||
/// type. It SHOULD NOT change from occurrence to occurrence | ||
/// of the problem, except for purposes of localization(e.g., using | ||
/// proactive content negotiation; see[RFC7231], Section 3.4).</param> | ||
/// <param name="status">The HTTP status code([RFC7231], Section 6) | ||
/// generated by the origin server for this occurrence of the | ||
/// problem.</param> | ||
/// <param name="detail">A human-readable explanation specific to this | ||
/// occurrence of the problem.</param> | ||
/// <param name="instance">A URI reference that identifies the specific | ||
/// occurrence of the problem. It may or may not yield further | ||
/// information if dereferenced.</param> | ||
/// <param name="extensions">Gets the | ||
/// System.Collections.Generic.IDictionary`2 for extension members. | ||
/// <br> | ||
/// Problem type definitions MAY extend the problem details object with | ||
/// additional members. | ||
/// Extension members appear in the same namespace as other members of | ||
/// a problem type. | ||
/// </param> | ||
public CartItemsCannotBeEmptyProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string), IDictionary<string, object> extensions = default(IDictionary<string, object>)) | ||
{ | ||
Type = type; | ||
Title = title; | ||
Status = status; | ||
Detail = detail; | ||
Instance = instance; | ||
Extensions = extensions; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets a URI reference [RFC3986] that identifies the problem | ||
/// type. This specification encourages that, when | ||
/// dereferenced, it provides human-readable documentation for the | ||
/// problem type (e.g., using HTML [W3C.REC-html5-20141028]). | ||
/// When this member is not present, its value is assumed to be | ||
/// "about:blank". | ||
/// </summary> | ||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a short, human-readable summary of the problem type. | ||
/// It SHOULD NOT change from occurrence to occurrence | ||
/// of the problem, except for purposes of localization(e.g., using | ||
/// proactive content negotiation; see[RFC7231], Section 3.4). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "title")] | ||
public string Title { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the HTTP status code([RFC7231], Section 6) generated | ||
/// by the origin server for this occurrence of the problem. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "status")] | ||
public int? Status { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a human-readable explanation specific to this | ||
/// occurrence of the problem. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "detail")] | ||
public string Detail { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a URI reference that identifies the specific | ||
/// occurrence of the problem. It may or may not yield further | ||
/// information if dereferenced. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "instance")] | ||
public string Instance { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the System.Collections.Generic.IDictionary`2 for extension | ||
/// members. | ||
/// &lt;br&gt; | ||
/// Problem type definitions MAY extend the problem details object with | ||
/// additional members. | ||
/// Extension members appear in the same namespace as other members of | ||
/// a problem type. | ||
/// | ||
/// </summary> | ||
[JsonProperty(PropertyName = "extensions")] | ||
public IDictionary<string, object> Extensions { get; set; } | ||
|
||
} | ||
} |
Oops, something went wrong.