Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 #268

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 20 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,26 @@ public enum CardType {

};

public enum CardNetwork {
UNDEFINED,

@SerializedName("Bancontact")
BANCONTACT,

@SerializedName("CartesBancaires")
CARTESBANCAIRES,

@SerializedName("Dankort")
DANKORT,

@SerializedName("MasterCard")
MASTERCARD,

@SerializedName("Visa")
VISA,

};

public enum AccountType {
UNDEFINED,

Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/recurly/v3/requests/BillingInfoCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ public class BillingInfoCreate extends Request {
@Expose
private Boolean backupPaymentMethod;

/**
* Represents the card network preference associated with the billing info for dual badged cards.
* Must be a supported card network.
*/
@SerializedName("card_network_preference")
@Expose
private Constants.CardNetwork cardNetworkPreference;

@SerializedName("card_type")
@Expose
private Constants.CardType cardType;
Expand Down Expand Up @@ -295,6 +303,22 @@ public void setBackupPaymentMethod(final Boolean backupPaymentMethod) {
this.backupPaymentMethod = backupPaymentMethod;
}

/**
* Represents the card network preference associated with the billing info for dual badged cards.
* Must be a supported card network.
*/
public Constants.CardNetwork getCardNetworkPreference() {
return this.cardNetworkPreference;
}

/**
* @param cardNetworkPreference Represents the card network preference associated with the billing
* info for dual badged cards. Must be a supported card network.
*/
public void setCardNetworkPreference(final Constants.CardNetwork cardNetworkPreference) {
this.cardNetworkPreference = cardNetworkPreference;
}

public Constants.CardType getCardType() {
return this.cardType;
}
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/recurly/v3/resources/ExternalSubscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ public class ExternalSubscription extends Resource {
@Expose
private String state;

/**
* An indication of whether or not the external subscription was purchased in a sandbox
* environment.
*/
@SerializedName("test")
@Expose
private Boolean test;

/** When the external subscription trial period ends in the external platform. */
@SerializedName("trial_ends_at")
@Expose
Expand Down Expand Up @@ -284,6 +292,22 @@ public void setState(final String state) {
this.state = state;
}

/**
* An indication of whether or not the external subscription was purchased in a sandbox
* environment.
*/
public Boolean getTest() {
return this.test;
}

/**
* @param test An indication of whether or not the external subscription was purchased in a
* sandbox environment.
*/
public void setTest(final Boolean test) {
this.test = test;
}

/** When the external subscription trial period ends in the external platform. */
public DateTime getTrialEndsAt() {
return this.trialEndsAt;
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/recurly/v3/resources/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public class PaymentMethod extends Resource {
@Expose
private String billingAgreementId;

/**
* Represents the card network preference associated with the billing info for dual badged cards.
* Must be a supported card network.
*/
@SerializedName("card_network_preference")
@Expose
private Constants.CardNetwork cardNetworkPreference;

/** Visa, MasterCard, American Express, Discover, JCB, etc. */
@SerializedName("card_type")
@Expose
Expand Down Expand Up @@ -123,6 +131,22 @@ public void setBillingAgreementId(final String billingAgreementId) {
this.billingAgreementId = billingAgreementId;
}

/**
* Represents the card network preference associated with the billing info for dual badged cards.
* Must be a supported card network.
*/
public Constants.CardNetwork getCardNetworkPreference() {
return this.cardNetworkPreference;
}

/**
* @param cardNetworkPreference Represents the card network preference associated with the billing
* info for dual badged cards. Must be a supported card network.
*/
public void setCardNetworkPreference(final Constants.CardNetwork cardNetworkPreference) {
this.cardNetworkPreference = cardNetworkPreference;
}

/** Visa, MasterCard, American Express, Discover, JCB, etc. */
public Constants.CardType getCardType() {
return this.cardType;
Expand Down
Loading