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 #285

Merged
merged 1 commit into from
Dec 14, 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
452 changes: 442 additions & 10 deletions openapi/api.yaml

Large diffs are not rendered by default.

50 changes: 49 additions & 1 deletion src/main/java/com/recurly/v3/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,22 @@ public ExternalProductReferenceMini deactivateExternalProductExternalProductRefe
}

/**
* List a site's external subscriptions
* Create an external subscription
*
* @see <a href="https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription">create_external_subscription api documentation</a>
* @param body The body of the request.
* @return Returns the external subscription
*/
public ExternalSubscription createExternalSubscription(ExternalSubscriptionCreate body) {
final String url = "/external_subscriptions";
final HashMap<String, String> urlParams = new HashMap<String, String>();
final String path = this.interpolatePath(url, urlParams);
Type returnType = ExternalSubscription.class;
return this.makeRequest("POST", path, body, returnType);
}

/**
* List the external subscriptions on a site
*
* @see <a href="https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions">list_external_subscriptions api documentation</a>
* @param queryParams The {@link QueryParams} for this endpoint.
Expand Down Expand Up @@ -1569,6 +1584,39 @@ public ExternalSubscription getExternalSubscription(String externalSubscriptionI
return this.makeRequest("GET", path, returnType);
}

/**
* Update an external subscription
*
* @see <a href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</a>
* @param externalSubscriptionId External subscription id
* @return Settings for an external subscription.
*/
public ExternalSubscription putExternalSubscription(String externalSubscriptionId) {
final String url = "/external_subscriptions/{external_subscription_id}";
final HashMap<String, String> urlParams = new HashMap<String, String>();
urlParams.put("external_subscription_id", externalSubscriptionId);
final String path = this.interpolatePath(url, urlParams);
Type returnType = ExternalSubscription.class;
return this.makeRequest("PUT", path, returnType);
}

/**
* Update an external subscription
*
* @see <a href="https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription">put_external_subscription api documentation</a>
* @param externalSubscriptionId External subscription id
* @param body The body of the request.
* @return Settings for an external subscription.
*/
public ExternalSubscription putExternalSubscription(String externalSubscriptionId, ExternalSubscriptionUpdate body) {
final String url = "/external_subscriptions/{external_subscription_id}";
final HashMap<String, String> urlParams = new HashMap<String, String>();
urlParams.put("external_subscription_id", externalSubscriptionId);
final String path = this.interpolatePath(url, urlParams);
Type returnType = ExternalSubscription.class;
return this.makeRequest("PUT", path, body, returnType);
}

/**
* List the external invoices on an external subscription
*
Expand Down
45 changes: 34 additions & 11 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ public enum ProrationSettingsCredit {

};

public enum ExternalProductReferenceConnectionType {
UNDEFINED,

@SerializedName("apple_app_store")
APPLE_APP_STORE,

@SerializedName("google_play_store")
GOOGLE_PLAY_STORE,

};

public enum RelatedType {
UNDEFINED,

Expand Down Expand Up @@ -2315,4 +2304,38 @@ public enum DestinationTaxAddressSource {

};

public enum TransactionMerchantReasonCode {
UNDEFINED,

@SerializedName("incremental")
INCREMENTAL,

@SerializedName("no_show")
NO_SHOW,

@SerializedName("resubmission")
RESUBMISSION,

@SerializedName("service_extension")
SERVICE_EXTENSION,

@SerializedName("split_shipment")
SPLIT_SHIPMENT,

@SerializedName("top_up")
TOP_UP,

};

public enum TransactionIndicator {
UNDEFINED,

@SerializedName("customer")
CUSTOMER,

@SerializedName("merchant")
MERCHANT,

};

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.requests;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

public class AccountExternalSubscription extends Request {

/**
* The account code of a new or existing account to be used when creating the external
* subscription.
*/
@SerializedName("account_code")
@Expose
private String accountCode;

/**
* The account code of a new or existing account to be used when creating the external
* subscription.
*/
public String getAccountCode() {
return this.accountCode;
}

/**
* @param accountCode The account code of a new or existing account to be used when creating the
* external subscription.
*/
public void setAccountCode(final String accountCode) {
this.accountCode = accountCode;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ExternalAccountCreate extends Request {
@Expose
private String externalAccountCode;

/** Represents the connection type. `AppleAppStore` or `GooglePlayStore` */
/** Represents the connection type. One of the connection types of your enabled App Connectors */
@SerializedName("external_connection_type")
@Expose
private String externalConnectionType;
Expand All @@ -32,14 +32,14 @@ public void setExternalAccountCode(final String externalAccountCode) {
this.externalAccountCode = externalAccountCode;
}

/** Represents the connection type. `AppleAppStore` or `GooglePlayStore` */
/** Represents the connection type. One of the connection types of your enabled App Connectors */
public String getExternalConnectionType() {
return this.externalConnectionType;
}

/**
* @param externalConnectionType Represents the connection type. `AppleAppStore` or
* `GooglePlayStore`
* @param externalConnectionType Represents the connection type. One of the connection types of
* your enabled App Connectors
*/
public void setExternalConnectionType(final String externalConnectionType) {
this.externalConnectionType = externalConnectionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ExternalAccountUpdate extends Request {
@Expose
private String externalAccountCode;

/** Represents the connection type. `AppleAppStore` or `GooglePlayStore` */
/** Represents the connection type. One of the connection types of your enabled App Connectors */
@SerializedName("external_connection_type")
@Expose
private String externalConnectionType;
Expand All @@ -32,14 +32,14 @@ public void setExternalAccountCode(final String externalAccountCode) {
this.externalAccountCode = externalAccountCode;
}

/** Represents the connection type. `AppleAppStore` or `GooglePlayStore` */
/** Represents the connection type. One of the connection types of your enabled App Connectors */
public String getExternalConnectionType() {
return this.externalConnectionType;
}

/**
* @param externalConnectionType Represents the connection type. `AppleAppStore` or
* `GooglePlayStore`
* @param externalConnectionType Represents the connection type. One of the connection types of
* your enabled App Connectors
*/
public void setExternalConnectionType(final String externalConnectionType) {
this.externalConnectionType = externalConnectionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

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 Constants.ExternalProductReferenceConnectionType externalConnectionType;
private ExternalProductReferenceConnectionType externalConnectionType;

/**
* A code which associates the external product to a corresponding object or resource in an
Expand All @@ -25,13 +25,17 @@ public class ExternalProductReferenceBase extends Request {
@Expose
private String referenceCode;

public Constants.ExternalProductReferenceConnectionType getExternalConnectionType() {
/** Represents the connection type. One of the connection types of your enabled App Connectors */
public ExternalProductReferenceConnectionType getExternalConnectionType() {
return this.externalConnectionType;
}

/** @param externalConnectionType */
/**
* @param externalConnectionType Represents the connection type. One of the connection types of
* your enabled App Connectors
*/
public void setExternalConnectionType(
final Constants.ExternalProductReferenceConnectionType externalConnectionType) {
final ExternalProductReferenceConnectionType externalConnectionType) {
this.externalConnectionType = externalConnectionType;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* 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.requests;

import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

public class ExternalProductReferenceConnectionType extends Request {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

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 Constants.ExternalProductReferenceConnectionType externalConnectionType;
private ExternalProductReferenceConnectionType externalConnectionType;

/**
* A code which associates the external product to a corresponding object or resource in an
Expand All @@ -25,13 +25,17 @@ public class ExternalProductReferenceCreate extends Request {
@Expose
private String referenceCode;

public Constants.ExternalProductReferenceConnectionType getExternalConnectionType() {
/** Represents the connection type. One of the connection types of your enabled App Connectors */
public ExternalProductReferenceConnectionType getExternalConnectionType() {
return this.externalConnectionType;
}

/** @param externalConnectionType */
/**
* @param externalConnectionType Represents the connection type. One of the connection types of
* your enabled App Connectors
*/
public void setExternalConnectionType(
final Constants.ExternalProductReferenceConnectionType externalConnectionType) {
final ExternalProductReferenceConnectionType externalConnectionType) {
this.externalConnectionType = externalConnectionType;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* 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.requests;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

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;

/**
* A code which associates the external product to a corresponding object or resource in an
* external platform like the Apple App Store or Google Play Store.
*/
@SerializedName("reference_code")
@Expose
private String referenceCode;

/** Represents the connection type. One of the connection types of your enabled App Connectors */
public ExternalProductReferenceConnectionType getExternalConnectionType() {
return this.externalConnectionType;
}

/**
* @param externalConnectionType Represents the connection type. One of the connection types of
* your enabled App Connectors
*/
public void setExternalConnectionType(
final ExternalProductReferenceConnectionType externalConnectionType) {
this.externalConnectionType = externalConnectionType;
}

/**
* A code which associates the external product to a corresponding object or resource in an
* external platform like the Apple App Store or Google Play Store.
*/
public String getReferenceCode() {
return this.referenceCode;
}

/**
* @param referenceCode A code which associates the external product to a corresponding object or
* resource in an external platform like the Apple App Store or Google Play Store.
*/
public void setReferenceCode(final String referenceCode) {
this.referenceCode = referenceCode;
}
}
Loading
Loading