diff --git a/openapi/api.yaml b/openapi/api.yaml index 6e8d8d1..ad7a4e4 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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" @@ -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: @@ -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 @@ -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 @@ -25469,6 +25481,14 @@ components: - Unknown - Visa - Tarjeta Naranja + CardNetworkEnum: + type: string + enum: + - Bancontact + - CartesBancaires + - Dankort + - MasterCard + - Visa AccountTypeEnum: type: string enum: diff --git a/src/main/java/com/recurly/v3/Constants.java b/src/main/java/com/recurly/v3/Constants.java index 73c2861..bff2993 100644 --- a/src/main/java/com/recurly/v3/Constants.java +++ b/src/main/java/com/recurly/v3/Constants.java @@ -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, diff --git a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java index 2e5712c..32c2176 100644 --- a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java +++ b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java @@ -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; @@ -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; } diff --git a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java index 859522e..f8d1c45 100644 --- a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java +++ b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java @@ -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 @@ -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; diff --git a/src/main/java/com/recurly/v3/resources/PaymentMethod.java b/src/main/java/com/recurly/v3/resources/PaymentMethod.java index 7ace094..6a6bfe3 100644 --- a/src/main/java/com/recurly/v3/resources/PaymentMethod.java +++ b/src/main/java/com/recurly/v3/resources/PaymentMethod.java @@ -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 @@ -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;