Skip to content

Commit

Permalink
Generated Latest Changes for v2021-02-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored Dec 14, 2024
1 parent 7d8b61c commit b94e273
Show file tree
Hide file tree
Showing 21 changed files with 900 additions and 32 deletions.
70 changes: 69 additions & 1 deletion Recurly/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,41 @@ public ExternalProductReferenceMini DeactivateExternalProductExternalProductRefe


/// <summary>
/// List a site's external subscriptions <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions">list_external_subscriptions api documentation</see>
/// Create an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription">create_external_subscription api documentation</see>
/// </summary>
/// <param name="CreateExternalSubscriptionParams">Optional Parameters for the request</param>
/// <returns>
/// Returns the external subscription
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
public ExternalSubscription CreateExternalSubscription(ExternalSubscriptionCreate body, RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { };
var url = this.InterpolatePath("/external_subscriptions", urlParams);
return MakeRequest<ExternalSubscription>(Method.POST, url, body, null, options);
}



/// <summary>
/// Create an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription">create_external_subscription api documentation</see>
/// </summary>
/// <param name="CreateExternalSubscriptionParams">Optional Parameters for the request</param>
/// <returns>
/// Returns the external subscription
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
public Task<ExternalSubscription> CreateExternalSubscriptionAsync(ExternalSubscriptionCreate body, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { };
var url = this.InterpolatePath("/external_subscriptions", urlParams);
return MakeRequestAsync<ExternalSubscription>(Method.POST, url, body, null, options, cancellationToken);
}



/// <summary>
/// List the external subscriptions on a site <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions">list_external_subscriptions api documentation</see>
/// </summary>
/// <param name="ListExternalSubscriptionsParams">Optional Parameters for the request</param>
/// <returns>
Expand Down Expand Up @@ -2660,6 +2694,40 @@ public ExternalSubscription GetExternalSubscription(string externalSubscriptionI



/// <summary>
/// Update an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</see>
/// </summary>
/// <param name="PutExternalSubscriptionParams">Optional Parameters for the request</param>
/// <returns>
/// Settings for an external subscription.
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
public ExternalSubscription PutExternalSubscription(string externalSubscriptionId, ExternalSubscriptionUpdate body = null, RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { { "external_subscription_id", externalSubscriptionId } };
var url = this.InterpolatePath("/external_subscriptions/{external_subscription_id}", urlParams);
return MakeRequest<ExternalSubscription>(Method.PUT, url, body, null, options);
}



/// <summary>
/// Update an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</see>
/// </summary>
/// <param name="PutExternalSubscriptionParams">Optional Parameters for the request</param>
/// <returns>
/// Settings for an external subscription.
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
public Task<ExternalSubscription> PutExternalSubscriptionAsync(string externalSubscriptionId, ExternalSubscriptionUpdate body = null, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { { "external_subscription_id", externalSubscriptionId } };
var url = this.InterpolatePath("/external_subscriptions/{external_subscription_id}", urlParams);
return MakeRequestAsync<ExternalSubscription>(Method.PUT, url, body, null, options, cancellationToken);
}



/// <summary>
/// List the external invoices on an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscription_external_invoices">list_external_subscription_external_invoices api documentation</see>
/// </summary>
Expand Down
48 changes: 36 additions & 12 deletions Recurly/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ public enum ProrationSettingsCredit

};

public enum ExternalProductReferenceConnectionType
{
Undefined = 0,

[EnumMember(Value = "apple_app_store")]
AppleAppStore,

[EnumMember(Value = "google_play_store")]
GooglePlayStore,

};

public enum RelatedType
{
Undefined = 0,
Expand Down Expand Up @@ -2408,5 +2396,41 @@ public enum DestinationTaxAddressSource

};

public enum TransactionMerchantReasonCode
{
Undefined = 0,

[EnumMember(Value = "incremental")]
Incremental,

[EnumMember(Value = "no_show")]
NoShow,

[EnumMember(Value = "resubmission")]
Resubmission,

[EnumMember(Value = "service_extension")]
ServiceExtension,

[EnumMember(Value = "split_shipment")]
SplitShipment,

[EnumMember(Value = "top_up")]
TopUp,

};

public enum TransactionIndicator
{
Undefined = 0,

[EnumMember(Value = "customer")]
Customer,

[EnumMember(Value = "merchant")]
Merchant,

};

}
}
42 changes: 41 additions & 1 deletion Recurly/IClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,27 @@ public interface IClient
Task<ExternalProductReferenceMini> DeactivateExternalProductExternalProductReferenceAsync(string externalProductId, string externalProductReferenceId, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null);

/// <summary>
/// List a site's external subscriptions <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions">list_external_subscriptions api documentation</see>
/// Create an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription">create_external_subscription api documentation</see>
/// </summary>
/// <param name="body">The body of the request.</param>
/// <returns>
/// Returns the external subscription
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
ExternalSubscription CreateExternalSubscription(ExternalSubscriptionCreate body, RequestOptions options = null);

/// <summary>
/// Create an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription">create_external_subscription api documentation</see>
/// </summary>
/// <param name="body">The body of the request.</param>
/// <returns>
/// Returns the external subscription
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
Task<ExternalSubscription> CreateExternalSubscriptionAsync(ExternalSubscriptionCreate body, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null);

/// <summary>
/// List the external subscriptions on a site <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions">list_external_subscriptions api documentation</see>
/// </summary>
/// <param name="sort">Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned. </param>
/// <returns>
Expand Down Expand Up @@ -1732,6 +1752,26 @@ public interface IClient
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
Task<ExternalSubscription> GetExternalSubscriptionAsync(string externalSubscriptionId, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null);

/// <summary>
/// Update an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</see>
/// </summary>
/// <param name="externalSubscriptionId">External subscription id</param>
/// <returns>
/// Settings for an external subscription.
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
ExternalSubscription PutExternalSubscription(string externalSubscriptionId, ExternalSubscriptionUpdate body = null, RequestOptions options = null);

/// <summary>
/// Update an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</see>
/// </summary>
/// <param name="externalSubscriptionId">External subscription id</param>
/// <returns>
/// Settings for an external subscription.
/// </returns>
/// <exception cref="Recurly.Errors.ApiError">Thrown when the request is invalid.</exception>
Task<ExternalSubscription> PutExternalSubscriptionAsync(string externalSubscriptionId, ExternalSubscriptionUpdate body = null, CancellationToken cancellationToken = default(CancellationToken), RequestOptions options = null);

/// <summary>
/// List the external invoices on an external subscription <see href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscription_external_invoices">list_external_subscription_external_invoices api documentation</see>
/// </summary>
Expand Down
23 changes: 23 additions & 0 deletions Recurly/Resources/AccountExternalSubscription.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;

namespace Recurly.Resources
{
[ExcludeFromCodeCoverage]
public class AccountExternalSubscription : Request
{

/// <value>The account code of a new or existing account to be used when creating the external subscription.</value>
[JsonProperty("account_code")]
public string AccountCode { get; set; }

}
}
35 changes: 35 additions & 0 deletions Recurly/Resources/BusinessEntityMini.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;

namespace Recurly.Resources
{
[ExcludeFromCodeCoverage]
public class BusinessEntityMini : Resource
{

/// <value>The entity code of the business entity.</value>
[JsonProperty("code")]
public string Code { get; set; }

/// <value>Business entity ID</value>
[JsonProperty("id")]
public string Id { get; set; }

/// <value>This name describes your business entity and will appear on the invoice.</value>
[JsonProperty("name")]
public string Name { get; set; }

/// <value>Object type</value>
[JsonProperty("object")]
public string Object { get; set; }

}
}
2 changes: 1 addition & 1 deletion Recurly/Resources/ExternalAccountCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ExternalAccountCreate : Request
[JsonProperty("external_account_code")]
public string ExternalAccountCode { get; set; }

/// <value>Represents the connection type. `AppleAppStore` or `GooglePlayStore`</value>
/// <value>Represents the connection type. One of the connection types of your enabled App Connectors</value>
[JsonProperty("external_connection_type")]
public string ExternalConnectionType { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion Recurly/Resources/ExternalAccountUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ExternalAccountUpdate : Request
[JsonProperty("external_account_code")]
public string ExternalAccountCode { get; set; }

/// <value>Represents the connection type. `AppleAppStore` or `GooglePlayStore`</value>
/// <value>Represents the connection type. One of the connection types of your enabled App Connectors</value>
[JsonProperty("external_connection_type")]
public string ExternalConnectionType { get; set; }

Expand Down
5 changes: 2 additions & 3 deletions Recurly/Resources/ExternalProductReferenceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ namespace Recurly.Resources
public class ExternalProductReferenceBase : Request
{


/// <value>Represents the connection type. One of the connection types of your enabled App Connectors</value>
[JsonProperty("external_connection_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.ExternalProductReferenceConnectionType? ExternalConnectionType { get; set; }
public ExternalProductReferenceConnectionType ExternalConnectionType { get; set; }

/// <value>A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.</value>
[JsonProperty("reference_code")]
Expand Down
19 changes: 19 additions & 0 deletions Recurly/Resources/ExternalProductReferenceConnectionType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;

namespace Recurly.Resources
{
[ExcludeFromCodeCoverage]
public class ExternalProductReferenceConnectionType : Request
{

}
}
5 changes: 2 additions & 3 deletions Recurly/Resources/ExternalProductReferenceCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ namespace Recurly.Resources
public class ExternalProductReferenceCreate : Request
{


/// <value>Represents the connection type. One of the connection types of your enabled App Connectors</value>
[JsonProperty("external_connection_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.ExternalProductReferenceConnectionType? ExternalConnectionType { get; set; }
public ExternalProductReferenceConnectionType ExternalConnectionType { get; set; }

/// <value>A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.</value>
[JsonProperty("reference_code")]
Expand Down
27 changes: 27 additions & 0 deletions Recurly/Resources/ExternalProductReferenceUpdate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;

namespace Recurly.Resources
{
[ExcludeFromCodeCoverage]
public class ExternalProductReferenceUpdate : Request
{

/// <value>Represents the connection type. One of the connection types of your enabled App Connectors</value>
[JsonProperty("external_connection_type")]
public ExternalProductReferenceConnectionType ExternalConnectionType { get; set; }

/// <value>A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.</value>
[JsonProperty("reference_code")]
public string ReferenceCode { get; set; }

}
}
Loading

0 comments on commit b94e273

Please sign in to comment.