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 Feb 3, 2025
1 parent 17c69eb commit 38c75ff
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 8 deletions.
27 changes: 27 additions & 0 deletions Recurly/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,18 @@ public enum FilterInvoiceType

};

public enum FilterRedeemed
{
Undefined = 0,

[EnumMember(Value = "true")]
True,

[EnumMember(Value = "false")]
False,

};

public enum Channel
{
Undefined = 0,
Expand Down Expand Up @@ -455,6 +467,21 @@ public enum DeliveryMethod

};

public enum PaymentGatewayReferences
{
Undefined = 0,

[EnumMember(Value = "stripe_confirmation_token")]
StripeConfirmationToken,

[EnumMember(Value = "stripe_customer")]
StripeCustomer,

[EnumMember(Value = "stripe_payment_method")]
StripePaymentMethod,

};

public enum GatewayTransactionType
{
Undefined = 0,
Expand Down
1 change: 1 addition & 0 deletions Recurly/IClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ public interface IClient
/// <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>
/// <param name="beginTime">Inclusively filter by begin_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC. </param>
/// <param name="endTime">Inclusively filter by end_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC. </param>
/// <param name="redeemed">Filter unique coupon codes by redemption status. `true` for redeemed, `false` for not redeemed.</param>
/// <returns>
/// A list of unique coupon codes that were generated
/// </returns>
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/BillingInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public class BillingInfo : Resource
[JsonProperty("object")]
public string Object { get; set; }

/// <value>Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.</value>
[JsonProperty("payment_gateway_references")]
public List<PaymentGatewayReferences> PaymentGatewayReferences { get; set; }


[JsonProperty("payment_method")]
public PaymentMethod PaymentMethod { get; set; }
Expand Down
6 changes: 5 additions & 1 deletion Recurly/Resources/BillingInfoCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class BillingInfoCreate : Request
[JsonProperty("gateway_attributes")]
public GatewayAttributes GatewayAttributes { get; set; }

/// <value>An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.</value>
/// <value>An identifier for a specific payment gateway.</value>
[JsonProperty("gateway_code")]
public string GatewayCode { get; set; }

Expand Down Expand Up @@ -112,6 +112,10 @@ public class BillingInfoCreate : Request
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.OnlineBankingPaymentType? OnlineBankingPaymentType { get; set; }

/// <value>Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.</value>
[JsonProperty("payment_gateway_references")]
public List<PaymentGatewayReferences> PaymentGatewayReferences { get; set; }

/// <value>PayPal billing agreement ID</value>
[JsonProperty("paypal_billing_agreement_id")]
public string PaypalBillingAgreementId { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Recurly/Resources/CouponBulkCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Recurly.Resources
public class CouponBulkCreate : Request
{

/// <value>The quantity of unique coupon codes to generate</value>
/// <value>The quantity of unique coupon codes to generate. A bulk coupon can have up to 100,000 unique codes (or your site's configured limit).</value>
[JsonProperty("number_of_unique_codes")]
public int? NumberOfUniqueCodes { get; set; }

Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/ListUniqueCouponCodesParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public class ListUniqueCouponCodesParams : OptionalParams
[JsonProperty("end_time")]
public DateTime? EndTime { get; set; }

/// <value>Filter unique coupon codes by redemption status. `true` for redeemed, `false` for not redeemed.</value>
[JsonProperty("redeemed")]
public Constants.FilterRedeemed? Redeemed { get; set; }

}
}

28 changes: 28 additions & 0 deletions Recurly/Resources/PaymentGatewayReferences.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* 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 PaymentGatewayReferences : Request
{

/// <value>The type of reference token. Required if token is passed in for Stripe Gateway.</value>
[JsonProperty("reference_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.PaymentGatewayReferences? ReferenceType { get; set; }

/// <value>Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.</value>
[JsonProperty("token")]
public string Token { get; set; }

}
}
66 changes: 60 additions & 6 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6265,8 +6265,7 @@ paths:
schema:
"$ref": "#/components/schemas/UniqueCouponCodeParams"
'400':
description: Invalid or unpermitted parameter; perhaps you tried to generate
more than 200 codes at a time?
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
Expand Down Expand Up @@ -6348,6 +6347,7 @@ paths:
- "$ref": "#/components/parameters/sort_dates"
- "$ref": "#/components/parameters/filter_begin_time"
- "$ref": "#/components/parameters/filter_end_time"
- "$ref": "#/components/parameters/filter_redeemed"
responses:
'200':
description: A list of unique coupon codes that were generated
Expand Down Expand Up @@ -17184,6 +17184,13 @@ components:
- `type=legacy`, only legacy invoices will be returned.
schema:
"$ref": "#/components/schemas/FilterInvoiceTypeEnum"
filter_redeemed:
name: redeemed
in: query
description: Filter unique coupon codes by redemption status. `true` for redeemed,
`false` for not redeemed.
schema:
"$ref": "#/components/schemas/FilterRedeemedEnum"
export_date:
name: export_date
in: path
Expand Down Expand Up @@ -18733,6 +18740,12 @@ components:
description: The `backup_payment_method` field is used to indicate a billing
info as a backup on the account that will be tried if the initial billing
info used for an invoice is declined.
payment_gateway_references:
type: array
description: Array of Payment Gateway References, each a reference to a
third-party gateway object of varying types.
items:
"$ref": "#/components/schemas/PaymentGatewayReferences"
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -18815,9 +18828,21 @@ components:
maxLength: 50
gateway_code:
type: string
title: An identifier for a specific payment gateway. Must be used in conjunction
with `gateway_token`.
title: An identifier for a specific payment gateway.
maxLength: 12
payment_gateway_references:
type: array
description: Array of Payment Gateway References, each a reference to a
third-party gateway object of varying types.
items:
"$ref": "#/components/schemas/PaymentGatewayReferences"
properties:
token:
type: strings
maxLength: 50
reference_type:
type: string
"$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
gateway_attributes:
type: object
description: Additional attributes to send to the gateway.
Expand Down Expand Up @@ -19282,9 +19307,9 @@ components:
number_of_unique_codes:
type: integer
title: Number of unique codes
description: The quantity of unique coupon codes to generate
description: The quantity of unique coupon codes to generate. A bulk coupon
can have up to 100,000 unique codes (or your site's configured limit).
minimum: 1
maximum: 200
CouponMini:
type: object
properties:
Expand Down Expand Up @@ -21285,6 +21310,22 @@ components:
- currency
- unit_amount
- type
PaymentGatewayReferences:
type: object
title: Payment Gateway References Object
description: Array of Payment Gateway References, each a reference to a third-party
gateway object of varying types.
properties:
token:
type: string
title: Token
description: Reference value used when the external token was created. If
Stripe gateway is used, this value will need to be accompanied by its
reference_type.
reference_type:
type: string
title: Reference Type
"$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
PlanMini:
type: object
title: Plan mini details
Expand Down Expand Up @@ -26430,6 +26471,11 @@ components:
- credit
- legacy
- non-legacy
FilterRedeemedEnum:
type: string
enum:
- true
- false
ChannelEnum:
type: string
enum:
Expand Down Expand Up @@ -26491,6 +26537,14 @@ components:
enum:
- email
- post
PaymentGatewayReferencesEnum:
type: string
description: The type of reference token. Required if token is passed in for
Stripe Gateway.
enum:
- stripe_confirmation_token
- stripe_customer
- stripe_payment_method
GatewayTransactionTypeEnum:
type: string
enum:
Expand Down

0 comments on commit 38c75ff

Please sign in to comment.