Skip to content

Commit

Permalink
Merge pull request #825 from recurly/v3-v2021-02-25-8347308694
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25
  • Loading branch information
gilv93 authored Mar 19, 2024
2 parents 026a8b0 + d575aaa commit f56fde7
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 2 deletions.
21 changes: 21 additions & 0 deletions Recurly/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,27 @@ public enum CardType

};

public enum CardNetwork
{
Undefined = 0,

[EnumMember(Value = "Bancontact")]
Bancontact,

[EnumMember(Value = "CartesBancaires")]
Cartesbancaires,

[EnumMember(Value = "Dankort")]
Dankort,

[EnumMember(Value = "MasterCard")]
Mastercard,

[EnumMember(Value = "Visa")]
Visa,

};

public enum AccountType
{
Undefined = 0,
Expand Down
5 changes: 5 additions & 0 deletions Recurly/Resources/BillingInfoCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ 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")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.CardNetwork? CardNetworkPreference { get; set; }


[JsonProperty("card_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/ExternalSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public class ExternalSubscription : Resource
[JsonProperty("state")]
public string State { get; set; }

/// <value>An indication of whether or not the external subscription was purchased in a sandbox environment.</value>
[JsonProperty("test")]
public bool? Test { get; set; }

/// <value>When the external subscription trial period ends in the external platform.</value>
[JsonProperty("trial_ends_at")]
public DateTime? TrialEndsAt { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions Recurly/Resources/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ 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")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.CardNetwork? CardNetworkPreference { get; set; }

/// <value>Visa, MasterCard, American Express, Discover, JCB, etc.</value>
[JsonProperty("card_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
Expand Down
24 changes: 22 additions & 2 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8617,8 +8617,6 @@ paths:
summary: Apply available credit to a pending or past due charge invoice
description: Apply credit payment to the outstanding balance on an existing
charge invoice from an account’s available balance from existing credit invoices.
Credit that was refunded from the invoice cannot be applied back to the invoice
as payment.
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/invoice_id"
Expand Down Expand Up @@ -18389,6 +18387,10 @@ components:
deprecated: true
card_type:
"$ref": "#/components/schemas/CardTypeEnum"
card_network_preference:
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
"$ref": "#/components/schemas/CardNetworkEnum"
BillingInfoVerify:
type: object
properties:
Expand Down Expand Up @@ -24173,6 +24175,12 @@ components:
title: Trial ends at
description: When the external subscription trial period ends in the external
platform.
test:
type: boolean
title: Test
description: An indication of whether or not the external subscription was
purchased in a sandbox environment.
default: false
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -24427,6 +24435,10 @@ components:
Reference value used when the external token was created. For Braintree
the PayPal PayerID is populated in the response.
maxLength: 264
card_network_preference:
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
"$ref": "#/components/schemas/CardNetworkEnum"
billing_agreement_id:
type: string
description: Billing Agreement identifier. Only present for Amazon or Paypal
Expand Down Expand Up @@ -25469,6 +25481,14 @@ components:
- Unknown
- Visa
- Tarjeta Naranja
CardNetworkEnum:
type: string
enum:
- Bancontact
- CartesBancaires
- Dankort
- MasterCard
- Visa
AccountTypeEnum:
type: string
enum:
Expand Down

0 comments on commit f56fde7

Please sign in to comment.