Skip to content

Commit

Permalink
Merge pull request #42 from sherweb/rcayouette/beta11
Browse files Browse the repository at this point in the history
Prepare beta11. Updating OpenAPI spec + nuget package source
  • Loading branch information
julienasp authored Jun 10, 2024
2 parents 7dd62ee + 6ed9416 commit 940e74b
Show file tree
Hide file tree
Showing 44 changed files with 6,597 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public partial interface IServiceProviderService : System.IDisposable
/// <summary>
/// GetCustomerCatalog (beta)
/// </summary>
/// <remarks>
/// Get the list of catalog items available for a customer.
/// </remarks>
/// <param name='customerId'>
/// </param>
/// <param name='acceptLanguage'>
Expand All @@ -60,6 +63,20 @@ public partial interface IServiceProviderService : System.IDisposable
/// <summary>
/// GetCustomerCatalogItemsPricingInformation (beta)
/// </summary>
/// <remarks>
/// Get the pricing information for a customer's catalog items.
/// &lt;div
/// style="color:#000dff;background-color:#e3eafc;padding:1rem;border-radius:5px;border:1px
/// solid #000dff;display:inline-block"&gt;&lt;svg width="16"
/// height="16" fill="currentColor" viewBox="0 0 16 16"&gt;&lt;path
/// d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091
/// 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8
/// 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1
/// 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"
/// /&gt;&lt;/svg&gt;
/// Call us to disable pricing visibility for a customer.
/// &lt;/div&gt;
/// </remarks>
/// <param name='customerId'>
/// </param>
/// <param name='body'>
Expand Down Expand Up @@ -136,6 +153,50 @@ public partial interface IServiceProviderService : System.IDisposable
/// </param>
Task<HttpOperationResponse<Customers>> GetCustomersWithHttpMessagesAsync(string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// ValidatePlaceOrder (beta)
/// </summary>
/// <remarks>
/// Validate a PlaceOrderRequest before using the PlaceOrder endpoint.
/// </remarks>
/// <param name='body'>
/// </param>
/// <param name='customerId'>
/// </param>
/// <param name='acceptLanguage'>
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
/// Accept-Language].
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<object>> ValidatePlaceOrderWithHttpMessagesAsync(PlaceOrderRequest body, System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// PlaceOrder (beta)
/// </summary>
/// <remarks>
/// Place an order for one of your customers.
/// </remarks>
/// <param name='body'>
/// </param>
/// <param name='customerId'>
/// </param>
/// <param name='acceptLanguage'>
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
/// Accept-Language].
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<object>> PlaceOrderWithHttpMessagesAsync(PlaceOrderRequest body, System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetAllPlatforms (beta)
/// </summary>
Expand Down Expand Up @@ -244,10 +305,12 @@ public partial interface IServiceProviderService : System.IDisposable
Task<HttpOperationResponse<ReceivableCharges>> GetReceivableChargesWithHttpMessagesAsync(System.Guid customerId, System.DateTime? date = default(System.DateTime?), string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetSubscriptions (beta)
/// GetSubscriptions (deprecated)
/// </summary>
/// <remarks>
/// Get the list of subscriptions for one of your customers.
/// Please use both
/// GetCustomerSubscriptionDetails,GetCustomerSubscriptionPricingInformation
/// endpoints instead.
/// </remarks>
/// <param name='customerId'>
/// </param>
Expand All @@ -263,6 +326,58 @@ public partial interface IServiceProviderService : System.IDisposable
/// </param>
Task<HttpOperationResponse<Subscriptions>> GetCustomerSubscriptionsWithHttpMessagesAsync(System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetCustomerSubscriptionsDetails (beta)
/// </summary>
/// <remarks>
/// Get the list of subscriptions details for one of your customers.
/// </remarks>
/// <param name='customerId'>
/// </param>
/// <param name='acceptLanguage'>
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
/// Accept-Language].
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<CustomerSubscriptions>> GetCustomerSubscriptionsDetailsWithHttpMessagesAsync(System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetCustomerSubscriptionsPricingInformation (beta)
/// </summary>
/// <remarks>
/// Get the list of subscription pricing information for one of your
/// customers.
/// &lt;div
/// style="color:#000dff;background-color:#e3eafc;padding:1rem;border-radius:5px;border:1px
/// solid #000dff;display:inline-block"&gt;&lt;svg width="16"
/// height="16" fill="currentColor" viewBox="0 0 16 16"&gt;&lt;path
/// d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091
/// 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8
/// 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1
/// 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"
/// /&gt;&lt;/svg&gt;
/// Call us to disable pricing visibility for a customer.
/// &lt;/div&gt;
/// </remarks>
/// <param name='customerId'>
/// </param>
/// <param name='acceptLanguage'>
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
/// Accept-Language].
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<CustomerSubscriptionsPricingInformation>> GetCustomerSubscriptionsPricingInformationWithHttpMessagesAsync(System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// CreateSubscriptionsAmendment (beta)
/// </summary>
Expand Down Expand Up @@ -308,10 +423,10 @@ public partial interface IServiceProviderService : System.IDisposable
Task<HttpOperationResponse<SubscriptionsCancellation>> CancelSubscriptionsWithHttpMessagesAsync(SubscriptionsCancellationRequest body, System.Guid customerId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetSubscriptionsAmendmentStatus (beta)
/// GetSubscriptionsAmendmentStatus (deprecated)
/// </summary>
/// <remarks>
/// Get the status of a subscriptions amendment.
/// Please use TrackRequest endpoint instead.
/// </remarks>
/// <param name='subscriptionsAmendmentId'>
/// </param>
Expand All @@ -328,10 +443,10 @@ public partial interface IServiceProviderService : System.IDisposable
Task<HttpOperationResponse<string>> GetSubscriptionsAmendmentStatusWithHttpMessagesAsync(System.Guid subscriptionsAmendmentId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// GetSubscriptionsCancellationStatus (beta)
/// GetSubscriptionsCancellationStatus (deprecated)
/// </summary>
/// <remarks>
/// Get the status of a subscriptions cancellation.
/// Please use TrackRequest endpoint instead.
/// </remarks>
/// <param name='subscriptionsCancellationId'>
/// </param>
Expand All @@ -347,5 +462,26 @@ public partial interface IServiceProviderService : System.IDisposable
/// </param>
Task<HttpOperationResponse<string>> GetSubscriptionsCancellationStatusWithHttpMessagesAsync(System.Guid subscriptionsCancellationId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// TrackRequest (beta)
/// </summary>
/// <remarks>
/// Track the status of a request (order, amendment, cancellation,
/// ...).
/// </remarks>
/// <param name='trackingId'>
/// </param>
/// <param name='acceptLanguage'>
/// Specify language (and culture) following [RFC 7231, section 5.3.5:
/// Accept-Language].
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<string>> TrackRequestWithHttpMessagesAsync(System.Guid trackingId, string acceptLanguage = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}
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");
}
}
}
}
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.
/// &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.
/// </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.
/// &amp;lt;br&amp;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; }

}
}
Loading

0 comments on commit 940e74b

Please sign in to comment.