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

Latest v2019-10-10 Changes #62

Merged
merged 1 commit into from
Feb 10, 2020
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
2,975 changes: 1,531 additions & 1,444 deletions openapi/api.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/main/java/com/recurly/v3/exception/ExceptionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public static <T extends RecurlyException> T getExceptionClass(ApiException apiE

case "missing_feature":
return (T) new MissingFeatureException(e.getMessage(), e);

case "rate_limited":
return (T) new RateLimitedException(e.getMessage(), e);
}
return (T) apiException;
}
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/recurly/v3/exception/RateLimitedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* 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.
*/
package com.recurly.v3.exception;

import com.recurly.v3.ApiException;
import com.recurly.v3.resources.ErrorMayHaveTransaction;

public class RateLimitedException extends ApiException {

public RateLimitedException(String message, ErrorMayHaveTransaction e) {
super(message, e);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class AccountAcquisitionUpdatable extends Request {
@Expose
private String channel;

/** Account balance */
@SerializedName("cost")
@Expose
private AccountAcquisitionCost cost;
Expand Down Expand Up @@ -60,11 +61,12 @@ public void setChannel(final String channel) {
this.channel = channel;
}

/** Account balance */
public AccountAcquisitionCost getCost() {
return this.cost;
}

/** @param cost */
/** @param cost Account balance */
public void setCost(final AccountAcquisitionCost cost) {
this.cost = cost;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/AccountCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public class AccountCreate extends Request {
@Expose
private String company;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -225,11 +230,20 @@ public void setCompany(final String company) {
this.company = company;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/AccountPurchase.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public class AccountPurchase extends Request {
@Expose
private String company;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -229,11 +234,20 @@ public void setCompany(final String company) {
this.company = company;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/AccountUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public class AccountUpdate extends Request {
@Expose
private String company;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -190,11 +195,20 @@ public void setCompany(final String company) {
this.company = company;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
46 changes: 46 additions & 0 deletions src/main/java/com/recurly/v3/requests/BillingInfoCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ public class BillingInfoCreate extends Request {
@Expose
private String fraudSessionId;

/**
* An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
*/
@SerializedName("gateway_code")
@Expose
private String gatewayCode;

/**
* A token used in place of a credit card in order to perform transactions. Must be used in
* conjunction with `gateway_code`.
*/
@SerializedName("gateway_token")
@Expose
private String gatewayToken;

/** *STRONGLY RECOMMENDED* Customer's IP address when updating their billing information. */
@SerializedName("ip_address")
@Expose
Expand Down Expand Up @@ -156,6 +171,37 @@ public void setFraudSessionId(final String fraudSessionId) {
this.fraudSessionId = fraudSessionId;
}

/**
* An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
*/
public String getGatewayCode() {
return this.gatewayCode;
}

/**
* @param gatewayCode An identifier for a specific payment gateway. Must be used in conjunction
* with `gateway_token`.
*/
public void setGatewayCode(final String gatewayCode) {
this.gatewayCode = gatewayCode;
}

/**
* A token used in place of a credit card in order to perform transactions. Must be used in
* conjunction with `gateway_code`.
*/
public String getGatewayToken() {
return this.gatewayToken;
}

/**
* @param gatewayToken A token used in place of a credit card in order to perform transactions.
* Must be used in conjunction with `gateway_code`.
*/
public void setGatewayToken(final String gatewayToken) {
this.gatewayToken = gatewayToken;
}

/** *STRONGLY RECOMMENDED* Customer's IP address when updating their billing information. */
public String getIpAddress() {
return this.ipAddress;
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/ItemCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public class ItemCreate extends Request {
@Expose
private List<Pricing> currencies;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -99,11 +104,20 @@ public void setCurrencies(final List<Pricing> currencies) {
this.currencies = currencies;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/ItemUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public class ItemUpdate extends Request {
@Expose
private List<Pricing> currencies;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -99,11 +104,20 @@ public void setCurrencies(final List<Pricing> currencies) {
this.currencies = currencies;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class SubscriptionChangeCreate extends Request {
@Expose
private Integer quantity;

/** The shipping address can currently only be changed immediately, using SubscriptionUpdate. */
@SerializedName("shipping")
@Expose
private SubscriptionChangeShippingCreate shipping;
Expand Down Expand Up @@ -224,11 +225,15 @@ public void setQuantity(final Integer quantity) {
this.quantity = quantity;
}

/** The shipping address can currently only be changed immediately, using SubscriptionUpdate. */
public SubscriptionChangeShippingCreate getShipping() {
return this.shipping;
}

/** @param shipping */
/**
* @param shipping The shipping address can currently only be changed immediately, using
* SubscriptionUpdate.
*/
public void setShipping(final SubscriptionChangeShippingCreate shipping) {
this.shipping = shipping;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public class SubscriptionCreate extends Request {
@Expose
private String currency;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -260,11 +265,20 @@ public void setCurrency(final String currency) {
this.currency = currency;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public class SubscriptionPurchase extends Request {
@Expose
private Boolean autoRenew;

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
@SerializedName("custom_fields")
@Expose
private List<CustomField> customFields;
Expand Down Expand Up @@ -114,11 +119,20 @@ public void setAutoRenew(final Boolean autoRenew) {
this.autoRenew = autoRenew;
}

/**
* The custom fields will only be altered when they are included in a request. Sending an empty
* array will not remove any existing values. To remove a field send the name with a null or empty
* value.
*/
public List<CustomField> getCustomFields() {
return this.customFields;
}

/** @param customFields */
/**
* @param customFields The custom fields will only be altered when they are included in a request.
* Sending an empty array will not remove any existing values. To remove a field send the name
* with a null or empty value.
*/
public void setCustomFields(final List<CustomField> customFields) {
this.customFields = customFields;
}
Expand Down
Loading