diff --git a/openapi/api.yaml b/openapi/api.yaml index 4a43021..19909f0 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -17689,6 +17689,11 @@ components: type: string description: An arbitrary identifier for the marketing campaign that led to the acquisition of this account. + acquired_at: + type: string + format: date-time + description: Date the account was first created if different than the account.created_at. + ie Importing accounts. AccountAcquisitionReadOnly: type: object properties: @@ -18998,6 +19003,11 @@ components: fraud_session_id: type: string title: Fraud Session ID + adyen_risk_profile_reference_id: + type: string + title: Adyen Risk Profile Reference ID + description: The Adyen Risk Profile Reference ID is used to identify the + risk profile for the payment method. transaction_type: description: An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for @@ -19943,6 +19953,12 @@ components: object: title: Object type type: string + has_more: + type: boolean + description: Indicates there are more results on subsequent pages. + next: + type: string + description: Path to subsequent page of results. data: title: Performance Obligation type: array @@ -24218,6 +24234,11 @@ components: format: float title: Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required. + expected_first_delivery_at: + type: string + format: date-time + title: Expected first delivery date + description: The expected date of the first delivery for the subscription. SubscriptionShippingUpdate: type: object title: Subscription shipping details @@ -24256,6 +24277,11 @@ components: format: float title: Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required. + expected_first_delivery_at: + type: string + format: date-time + title: Expected first delivery date + description: The expected date of the first delivery for the subscription. SubscriptionRampInterval: type: object title: Subscription Ramp Interval @@ -25134,6 +25160,7 @@ components: format: date-time description: When the current settings were updated in Recurly. DunningInterval: + type: object properties: days: type: integer @@ -25158,6 +25185,7 @@ components: items: type: string DunningCampaignsBulkUpdateResponse: + type: object properties: object: type: string @@ -26011,6 +26039,7 @@ components: format: date-time description: When the invoice template was updated in Recurly. PaymentMethod: + type: object properties: object: "$ref": "#/components/schemas/PaymentMethodEnum" @@ -27161,6 +27190,7 @@ components: - amazon - amazon_billing_agreement - apple_pay + - apple_pay_merchant_token - bank_account_info - braintree_apple_pay - check diff --git a/src/main/java/com/recurly/v3/Constants.java b/src/main/java/com/recurly/v3/Constants.java index 6cf8539..906c416 100644 --- a/src/main/java/com/recurly/v3/Constants.java +++ b/src/main/java/com/recurly/v3/Constants.java @@ -1414,6 +1414,9 @@ public enum PaymentMethod { @SerializedName("apple_pay") APPLE_PAY, + @SerializedName("apple_pay_merchant_token") + APPLE_PAY_MERCHANT_TOKEN, + @SerializedName("bank_account_info") BANK_ACCOUNT_INFO, diff --git a/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java b/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java index 5bd14a1..7ad8f49 100644 --- a/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java +++ b/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java @@ -10,9 +10,18 @@ import com.recurly.v3.Constants; import com.recurly.v3.Request; import com.recurly.v3.resources.*; +import org.joda.time.DateTime; public class AccountAcquisitionUpdate extends Request { + /** + * Date the account was first created if different than the account.created_at. ie Importing + * accounts. + */ + @SerializedName("acquired_at") + @Expose + private DateTime acquiredAt; + /** * An arbitrary identifier for the marketing campaign that led to the acquisition of this account. */ @@ -37,6 +46,22 @@ public class AccountAcquisitionUpdate extends Request { @Expose private String subchannel; + /** + * Date the account was first created if different than the account.created_at. ie Importing + * accounts. + */ + public DateTime getAcquiredAt() { + return this.acquiredAt; + } + + /** + * @param acquiredAt Date the account was first created if different than the account.created_at. + * ie Importing accounts. + */ + public void setAcquiredAt(final DateTime acquiredAt) { + this.acquiredAt = acquiredAt; + } + /** * An arbitrary identifier for the marketing campaign that led to the acquisition of this account. */ diff --git a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java index 3cc3816..d70054f 100644 --- a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java +++ b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java @@ -28,6 +28,14 @@ public class BillingInfoCreate extends Request { @Expose private Address address; + /** + * The Adyen Risk Profile Reference ID is used to identify the risk profile for the payment + * method. + */ + @SerializedName("adyen_risk_profile_reference_id") + @Expose + private String adyenRiskProfileReferenceId; + /** Only supported on Amazon V1. For Amazon V2, use token_id with Recurly.js. */ @SerializedName("amazon_billing_agreement_id") @Expose @@ -286,6 +294,22 @@ public void setAddress(final Address address) { this.address = address; } + /** + * The Adyen Risk Profile Reference ID is used to identify the risk profile for the payment + * method. + */ + public String getAdyenRiskProfileReferenceId() { + return this.adyenRiskProfileReferenceId; + } + + /** + * @param adyenRiskProfileReferenceId The Adyen Risk Profile Reference ID is used to identify the + * risk profile for the payment method. + */ + public void setAdyenRiskProfileReferenceId(final String adyenRiskProfileReferenceId) { + this.adyenRiskProfileReferenceId = adyenRiskProfileReferenceId; + } + /** Only supported on Amazon V1. For Amazon V2, use token_id with Recurly.js. */ public String getAmazonBillingAgreementId() { return this.amazonBillingAgreementId; diff --git a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceBase.java b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceBase.java index 21128d1..3bb78c8 100644 --- a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceBase.java +++ b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceBase.java @@ -15,7 +15,7 @@ public class ExternalProductReferenceBase extends Request { /** Represents the connection type. One of the connection types of your enabled App Connectors */ @SerializedName("external_connection_type") @Expose - private ExternalProductReferenceConnectionType externalConnectionType; + private String externalConnectionType; /** * A code which associates the external product to a corresponding object or resource in an @@ -26,7 +26,7 @@ public class ExternalProductReferenceBase extends Request { private String referenceCode; /** Represents the connection type. One of the connection types of your enabled App Connectors */ - public ExternalProductReferenceConnectionType getExternalConnectionType() { + public String getExternalConnectionType() { return this.externalConnectionType; } @@ -34,8 +34,7 @@ public ExternalProductReferenceConnectionType getExternalConnectionType() { * @param externalConnectionType Represents the connection type. One of the connection types of * your enabled App Connectors */ - public void setExternalConnectionType( - final ExternalProductReferenceConnectionType externalConnectionType) { + public void setExternalConnectionType(final String externalConnectionType) { this.externalConnectionType = externalConnectionType; } diff --git a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceCreate.java b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceCreate.java index c764f7e..60dde3a 100644 --- a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceCreate.java +++ b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceCreate.java @@ -15,7 +15,7 @@ public class ExternalProductReferenceCreate extends Request { /** Represents the connection type. One of the connection types of your enabled App Connectors */ @SerializedName("external_connection_type") @Expose - private ExternalProductReferenceConnectionType externalConnectionType; + private String externalConnectionType; /** * A code which associates the external product to a corresponding object or resource in an @@ -26,7 +26,7 @@ public class ExternalProductReferenceCreate extends Request { private String referenceCode; /** Represents the connection type. One of the connection types of your enabled App Connectors */ - public ExternalProductReferenceConnectionType getExternalConnectionType() { + public String getExternalConnectionType() { return this.externalConnectionType; } @@ -34,8 +34,7 @@ public ExternalProductReferenceConnectionType getExternalConnectionType() { * @param externalConnectionType Represents the connection type. One of the connection types of * your enabled App Connectors */ - public void setExternalConnectionType( - final ExternalProductReferenceConnectionType externalConnectionType) { + public void setExternalConnectionType(final String externalConnectionType) { this.externalConnectionType = externalConnectionType; } diff --git a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceUpdate.java b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceUpdate.java index 56a9a0c..78a9c0f 100644 --- a/src/main/java/com/recurly/v3/requests/ExternalProductReferenceUpdate.java +++ b/src/main/java/com/recurly/v3/requests/ExternalProductReferenceUpdate.java @@ -15,7 +15,7 @@ public class ExternalProductReferenceUpdate extends Request { /** Represents the connection type. One of the connection types of your enabled App Connectors */ @SerializedName("external_connection_type") @Expose - private ExternalProductReferenceConnectionType externalConnectionType; + private String externalConnectionType; /** * A code which associates the external product to a corresponding object or resource in an @@ -26,7 +26,7 @@ public class ExternalProductReferenceUpdate extends Request { private String referenceCode; /** Represents the connection type. One of the connection types of your enabled App Connectors */ - public ExternalProductReferenceConnectionType getExternalConnectionType() { + public String getExternalConnectionType() { return this.externalConnectionType; } @@ -34,8 +34,7 @@ public ExternalProductReferenceConnectionType getExternalConnectionType() { * @param externalConnectionType Represents the connection type. One of the connection types of * your enabled App Connectors */ - public void setExternalConnectionType( - final ExternalProductReferenceConnectionType externalConnectionType) { + public void setExternalConnectionType(final String externalConnectionType) { this.externalConnectionType = externalConnectionType; } diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java index b4103dd..d45b36b 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java @@ -10,6 +10,7 @@ import com.recurly.v3.Request; import com.recurly.v3.resources.*; import java.math.BigDecimal; +import org.joda.time.DateTime; public class SubscriptionShippingCreate extends Request { @@ -33,6 +34,11 @@ public class SubscriptionShippingCreate extends Request { @Expose private BigDecimal amount; + /** The expected date of the first delivery for the subscription. */ + @SerializedName("expected_first_delivery_at") + @Expose + private DateTime expectedFirstDeliveryAt; + /** * The code of the shipping method used to deliver the subscription. If `method_id` and * `method_code` are both present, `method_id` will be used. @@ -90,6 +96,18 @@ public void setAmount(final BigDecimal amount) { this.amount = amount; } + /** The expected date of the first delivery for the subscription. */ + public DateTime getExpectedFirstDeliveryAt() { + return this.expectedFirstDeliveryAt; + } + + /** + * @param expectedFirstDeliveryAt The expected date of the first delivery for the subscription. + */ + public void setExpectedFirstDeliveryAt(final DateTime expectedFirstDeliveryAt) { + this.expectedFirstDeliveryAt = expectedFirstDeliveryAt; + } + /** * The code of the shipping method used to deliver the subscription. If `method_id` and * `method_code` are both present, `method_id` will be used. diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java b/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java index 5e13e3f..0fd7cab 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java @@ -10,6 +10,7 @@ import com.recurly.v3.Request; import com.recurly.v3.resources.*; import java.math.BigDecimal; +import org.joda.time.DateTime; public class SubscriptionShippingPurchase extends Request { @@ -21,6 +22,11 @@ public class SubscriptionShippingPurchase extends Request { @Expose private BigDecimal amount; + /** The expected date of the first delivery for the subscription. */ + @SerializedName("expected_first_delivery_at") + @Expose + private DateTime expectedFirstDeliveryAt; + /** * The code of the shipping method used to deliver the subscription. If `method_id` and * `method_code` are both present, `method_id` will be used. @@ -53,6 +59,18 @@ public void setAmount(final BigDecimal amount) { this.amount = amount; } + /** The expected date of the first delivery for the subscription. */ + public DateTime getExpectedFirstDeliveryAt() { + return this.expectedFirstDeliveryAt; + } + + /** + * @param expectedFirstDeliveryAt The expected date of the first delivery for the subscription. + */ + public void setExpectedFirstDeliveryAt(final DateTime expectedFirstDeliveryAt) { + this.expectedFirstDeliveryAt = expectedFirstDeliveryAt; + } + /** * The code of the shipping method used to deliver the subscription. If `method_id` and * `method_code` are both present, `method_id` will be used. diff --git a/src/main/java/com/recurly/v3/resources/AccountAcquisition.java b/src/main/java/com/recurly/v3/resources/AccountAcquisition.java index 793048b..d735b69 100644 --- a/src/main/java/com/recurly/v3/resources/AccountAcquisition.java +++ b/src/main/java/com/recurly/v3/resources/AccountAcquisition.java @@ -18,6 +18,14 @@ public class AccountAcquisition extends Resource { @Expose private AccountMini account; + /** + * Date the account was first created if different than the account.created_at. ie Importing + * accounts. + */ + @SerializedName("acquired_at") + @Expose + private DateTime acquiredAt; + /** * An arbitrary identifier for the marketing campaign that led to the acquisition of this account. */ @@ -71,6 +79,22 @@ public void setAccount(final AccountMini account) { this.account = account; } + /** + * Date the account was first created if different than the account.created_at. ie Importing + * accounts. + */ + public DateTime getAcquiredAt() { + return this.acquiredAt; + } + + /** + * @param acquiredAt Date the account was first created if different than the account.created_at. + * ie Importing accounts. + */ + public void setAcquiredAt(final DateTime acquiredAt) { + this.acquiredAt = acquiredAt; + } + /** * An arbitrary identifier for the marketing campaign that led to the acquisition of this account. */