Skip to content

Commit

Permalink
Generated Latest Changes for v2019-10-10
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored May 24, 2024
1 parent 8a0e257 commit b4b05d7
Show file tree
Hide file tree
Showing 16 changed files with 156 additions and 18 deletions.
15 changes: 9 additions & 6 deletions Recurly/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ public Pager<CreditPayment> ListAccountCreditPayments(string accountId, int? lim
/// </summary>
/// <param name="accountId">Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.</param>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -889,10 +890,10 @@ public Pager<CreditPayment> ListAccountCreditPayments(string accountId, int? lim
/// <returns>
/// A list of the account's invoices.
/// </returns>
public Pager<Invoice> ListAccountInvoices(string accountId, string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
public Pager<Invoice> ListAccountInvoices(string accountId, string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { { "account_id", accountId } };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "state", state }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var url = this.InterpolatePath("/accounts/{account_id}/invoices", urlParams);
return Pager<Invoice>.Build(url, queryParams, options, this);
}
Expand Down Expand Up @@ -2072,6 +2073,7 @@ public MeasuredUnit RemoveMeasuredUnit(string measuredUnitId, RequestOptions opt
/// List a site's invoices <see href="https://developers.recurly.com/api/v2019-10-10#operation/list_invoices">list_invoices api documentation</see>
/// </summary>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -2081,10 +2083,10 @@ public MeasuredUnit RemoveMeasuredUnit(string measuredUnitId, RequestOptions opt
/// <returns>
/// A list of the site's invoices.
/// </returns>
public Pager<Invoice> ListInvoices(string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
public Pager<Invoice> ListInvoices(string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "state", state }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var url = this.InterpolatePath("/invoices", urlParams);
return Pager<Invoice>.Build(url, queryParams, options, this);
}
Expand Down Expand Up @@ -3713,6 +3715,7 @@ public SubscriptionChangePreview PreviewSubscriptionChange(string subscriptionId
/// </summary>
/// <param name="subscriptionId">Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.</param>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -3722,10 +3725,10 @@ public SubscriptionChangePreview PreviewSubscriptionChange(string subscriptionId
/// <returns>
/// A list of the subscription's invoices.
/// </returns>
public Pager<Invoice> ListSubscriptionInvoices(string subscriptionId, string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
public Pager<Invoice> ListSubscriptionInvoices(string subscriptionId, string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null)
{
var urlParams = new Dictionary<string, object> { { "subscription_id", subscriptionId } };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var queryParams = new Dictionary<string, object> { { "ids", ids }, { "state", state }, { "limit", limit }, { "order", order }, { "sort", sort }, { "begin_time", beginTime }, { "end_time", endTime }, { "type", type } };
var url = this.InterpolatePath("/subscriptions/{subscription_id}/invoices", urlParams);
return Pager<Invoice>.Build(url, queryParams, options, this);
}
Expand Down
9 changes: 6 additions & 3 deletions Recurly/IClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ public interface IClient
/// </summary>
/// <param name="accountId">Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.</param>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -544,7 +545,7 @@ public interface IClient
/// <returns>
/// A list of the account's invoices.
/// </returns>
Pager<Invoice> ListAccountInvoices(string accountId, string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);
Pager<Invoice> ListAccountInvoices(string accountId, string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);


/// <summary>
Expand Down Expand Up @@ -1265,6 +1266,7 @@ public interface IClient
/// List a site's invoices <see href="https://developers.recurly.com/api/v2019-10-10#operation/list_invoices">list_invoices api documentation</see>
/// </summary>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -1274,7 +1276,7 @@ public interface IClient
/// <returns>
/// A list of the site's invoices.
/// </returns>
Pager<Invoice> ListInvoices(string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);
Pager<Invoice> ListInvoices(string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);


/// <summary>
Expand Down Expand Up @@ -2255,6 +2257,7 @@ public interface IClient
/// </summary>
/// <param name="subscriptionId">Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.</param>
/// <param name="ids">Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself. </param>
/// <param name="state">Invoice state.</param>
/// <param name="limit">Limit number of records 1-200.</param>
/// <param name="order">Sort order.</param>
/// <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>
Expand All @@ -2264,7 +2267,7 @@ public interface IClient
/// <returns>
/// A list of the subscription's invoices.
/// </returns>
Pager<Invoice> ListSubscriptionInvoices(string subscriptionId, string ids = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);
Pager<Invoice> ListSubscriptionInvoices(string subscriptionId, string ids = null, string state = null, int? limit = null, string order = null, string sort = null, DateTime? beginTime = null, DateTime? endTime = null, string type = null, RequestOptions options = null);


/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public class Account : Resource
[JsonProperty("email")]
public string Email { get; set; }

/// <value>The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.</value>
[JsonProperty("entity_use_code")]
public string EntityUseCode { get; set; }

/// <value>The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.</value>
[JsonProperty("exemption_certificate")]
public string ExemptionCertificate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/AccountCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public class AccountCreate : Request
[JsonProperty("email")]
public string Email { get; set; }

/// <value>The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.</value>
[JsonProperty("entity_use_code")]
public string EntityUseCode { get; set; }

/// <value>The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.</value>
[JsonProperty("exemption_certificate")]
public string ExemptionCertificate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/AccountPurchase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public class AccountPurchase : Request
[JsonProperty("email")]
public string Email { get; set; }

/// <value>The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.</value>
[JsonProperty("entity_use_code")]
public string EntityUseCode { get; set; }

/// <value>The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.</value>
[JsonProperty("exemption_certificate")]
public string ExemptionCertificate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/AccountUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public class AccountUpdate : Request
[JsonProperty("email")]
public string Email { get; set; }

/// <value>The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.</value>
[JsonProperty("entity_use_code")]
public string EntityUseCode { get; set; }

/// <value>The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.</value>
[JsonProperty("exemption_certificate")]
public string ExemptionCertificate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/Address.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public class Address : Request
[JsonProperty("first_name")]
public string FirstName { get; set; }

/// <value>Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration</value>
[JsonProperty("geo_code")]
public string GeoCode { get; set; }

/// <value>Last name</value>
[JsonProperty("last_name")]
public string LastName { get; set; }
Expand Down
8 changes: 8 additions & 0 deletions Recurly/Resources/BillingInfoCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public class BillingInfoCreate : Request
[JsonProperty("backup_payment_method")]
public bool? BackupPaymentMethod { get; set; }

/// <value>Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.</value>
[JsonProperty("card_network_preference")]
public string CardNetworkPreference { get; set; }

/// <value>Company name</value>
[JsonProperty("company")]
public string Company { get; set; }
Expand Down Expand Up @@ -99,6 +103,10 @@ public class BillingInfoCreate : Request
[JsonProperty("primary_payment_method")]
public bool? PrimaryPaymentMethod { get; set; }

/// <value>Roku's CIB if billing through Roku</value>
[JsonProperty("roku_billing_agreement_id")]
public string RokuBillingAgreementId { get; set; }

/// <value>The bank's rounting number. (ACH only)</value>
[JsonProperty("routing_number")]
public string RoutingNumber { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Recurly/Resources/GatewayAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Recurly.Resources
public class GatewayAttributes : Request
{

/// <value>Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.</value>
/// <value>Used by Adyen and Braintree gateways. For Adyen The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the response.</value>
[JsonProperty("account_reference")]
public string AccountReference { get; set; }

Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/InvoiceAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class InvoiceAddress : Request
[JsonProperty("first_name")]
public string FirstName { get; set; }

/// <value>Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration</value>
[JsonProperty("geo_code")]
public string GeoCode { get; set; }

/// <value>Last name</value>
[JsonProperty("last_name")]
public string LastName { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class PaymentMethod : Resource
[JsonProperty("billing_agreement_id")]
public string BillingAgreementId { get; set; }

/// <value>Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.</value>
[JsonProperty("card_network_preference")]
public string CardNetworkPreference { get; set; }

/// <value>Visa, MasterCard, American Express, Discover, JCB, etc.</value>
[JsonProperty("card_type")]
public string CardType { get; set; }
Expand Down
Loading

0 comments on commit b4b05d7

Please sign in to comment.