Skip to content

Commit

Permalink
Generated Latest Changes for v2021-02-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored Feb 3, 2025
1 parent e4b93f5 commit f2e476f
Show file tree
Hide file tree
Showing 8 changed files with 269 additions and 19 deletions.
66 changes: 60 additions & 6 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6265,8 +6265,7 @@ paths:
schema:
"$ref": "#/components/schemas/UniqueCouponCodeParams"
'400':
description: Invalid or unpermitted parameter; perhaps you tried to generate
more than 200 codes at a time?
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
Expand Down Expand Up @@ -6348,6 +6347,7 @@ paths:
- "$ref": "#/components/parameters/sort_dates"
- "$ref": "#/components/parameters/filter_begin_time"
- "$ref": "#/components/parameters/filter_end_time"
- "$ref": "#/components/parameters/filter_redeemed"
responses:
'200':
description: A list of unique coupon codes that were generated
Expand Down Expand Up @@ -17184,6 +17184,13 @@ components:
- `type=legacy`, only legacy invoices will be returned.
schema:
"$ref": "#/components/schemas/FilterInvoiceTypeEnum"
filter_redeemed:
name: redeemed
in: query
description: Filter unique coupon codes by redemption status. `true` for redeemed,
`false` for not redeemed.
schema:
"$ref": "#/components/schemas/FilterRedeemedEnum"
export_date:
name: export_date
in: path
Expand Down Expand Up @@ -18733,6 +18740,12 @@ components:
description: The `backup_payment_method` field is used to indicate a billing
info as a backup on the account that will be tried if the initial billing
info used for an invoice is declined.
payment_gateway_references:
type: array
description: Array of Payment Gateway References, each a reference to a
third-party gateway object of varying types.
items:
"$ref": "#/components/schemas/PaymentGatewayReferences"
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -18815,9 +18828,21 @@ components:
maxLength: 50
gateway_code:
type: string
title: An identifier for a specific payment gateway. Must be used in conjunction
with `gateway_token`.
title: An identifier for a specific payment gateway.
maxLength: 12
payment_gateway_references:
type: array
description: Array of Payment Gateway References, each a reference to a
third-party gateway object of varying types.
items:
"$ref": "#/components/schemas/PaymentGatewayReferences"
properties:
token:
type: strings
maxLength: 50
reference_type:
type: string
"$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
gateway_attributes:
type: object
description: Additional attributes to send to the gateway.
Expand Down Expand Up @@ -19282,9 +19307,9 @@ components:
number_of_unique_codes:
type: integer
title: Number of unique codes
description: The quantity of unique coupon codes to generate
description: The quantity of unique coupon codes to generate. A bulk coupon
can have up to 100,000 unique codes (or your site's configured limit).
minimum: 1
maximum: 200
CouponMini:
type: object
properties:
Expand Down Expand Up @@ -21285,6 +21310,22 @@ components:
- currency
- unit_amount
- type
PaymentGatewayReferences:
type: object
title: Payment Gateway References Object
description: Array of Payment Gateway References, each a reference to a third-party
gateway object of varying types.
properties:
token:
type: string
title: Token
description: Reference value used when the external token was created. If
Stripe gateway is used, this value will need to be accompanied by its
reference_type.
reference_type:
type: string
title: Reference Type
"$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
PlanMini:
type: object
title: Plan mini details
Expand Down Expand Up @@ -26430,6 +26471,11 @@ components:
- credit
- legacy
- non-legacy
FilterRedeemedEnum:
type: string
enum:
- true
- false
ChannelEnum:
type: string
enum:
Expand Down Expand Up @@ -26491,6 +26537,14 @@ components:
enum:
- email
- post
PaymentGatewayReferencesEnum:
type: string
description: The type of reference token. Required if token is passed in for
Stripe Gateway.
enum:
- stripe_confirmation_token
- stripe_customer
- stripe_payment_method
GatewayTransactionTypeEnum:
type: string
enum:
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,17 @@ public enum FilterInvoiceType {

};

public enum FilterRedeemed {
UNDEFINED,

@SerializedName("true")
TRUE,

@SerializedName("false")
FALSE,

};

public enum Channel {
UNDEFINED,

Expand Down Expand Up @@ -429,6 +440,20 @@ public enum DeliveryMethod {

};

public enum PaymentGatewayReferences {
UNDEFINED,

@SerializedName("stripe_confirmation_token")
STRIPE_CONFIRMATION_TOKEN,

@SerializedName("stripe_customer")
STRIPE_CUSTOMER,

@SerializedName("stripe_payment_method")
STRIPE_PAYMENT_METHOD,

};

public enum GatewayTransactionType {
UNDEFINED,

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/recurly/v3/QueryParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public void setSuccess(final Constants.True success) {
this.add("success", success);
}

public void setRedeemed(final Constants.FilterRedeemed redeemed) {
this.add("redeemed", redeemed);
}

public void setRelatedType(final Constants.RelatedType relatedType) {
this.add("related_type", relatedType);
}
Expand Down
39 changes: 29 additions & 10 deletions src/main/java/com/recurly/v3/requests/BillingInfoCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.util.List;

public class BillingInfoCreate extends Request {

Expand Down Expand Up @@ -93,9 +94,7 @@ public class BillingInfoCreate extends Request {
@Expose
private GatewayAttributes gatewayAttributes;

/**
* An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
*/
/** An identifier for a specific payment gateway. */
@SerializedName("gateway_code")
@Expose
private String gatewayCode;
Expand Down Expand Up @@ -150,6 +149,14 @@ public class BillingInfoCreate extends Request {
@Expose
private Constants.OnlineBankingPaymentType onlineBankingPaymentType;

/**
* Array of Payment Gateway References, each a reference to a third-party gateway object of
* varying types.
*/
@SerializedName("payment_gateway_references")
@Expose
private List<PaymentGatewayReferences> paymentGatewayReferences;

/** PayPal billing agreement ID */
@SerializedName("paypal_billing_agreement_id")
@Expose
Expand Down Expand Up @@ -404,17 +411,12 @@ public void setGatewayAttributes(final GatewayAttributes gatewayAttributes) {
this.gatewayAttributes = gatewayAttributes;
}

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

/**
* @param gatewayCode An identifier for a specific payment gateway. Must be used in conjunction
* with `gateway_token`.
*/
/** @param gatewayCode An identifier for a specific payment gateway. */
public void setGatewayCode(final String gatewayCode) {
this.gatewayCode = gatewayCode;
}
Expand Down Expand Up @@ -524,6 +526,23 @@ public void setOnlineBankingPaymentType(
this.onlineBankingPaymentType = onlineBankingPaymentType;
}

/**
* Array of Payment Gateway References, each a reference to a third-party gateway object of
* varying types.
*/
public List<PaymentGatewayReferences> getPaymentGatewayReferences() {
return this.paymentGatewayReferences;
}

/**
* @param paymentGatewayReferences Array of Payment Gateway References, each a reference to a
* third-party gateway object of varying types.
*/
public void setPaymentGatewayReferences(
final List<PaymentGatewayReferences> paymentGatewayReferences) {
this.paymentGatewayReferences = paymentGatewayReferences;
}

/** PayPal billing agreement ID */
public String getPaypalBillingAgreementId() {
return this.paypalBillingAgreementId;
Expand Down
15 changes: 12 additions & 3 deletions src/main/java/com/recurly/v3/requests/CouponBulkCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@

public class CouponBulkCreate extends Request {

/** The quantity of unique coupon codes to generate */
/**
* The quantity of unique coupon codes to generate. A bulk coupon can have up to 100,000 unique
* codes (or your site's configured limit).
*/
@SerializedName("number_of_unique_codes")
@Expose
private Integer numberOfUniqueCodes;

/** The quantity of unique coupon codes to generate */
/**
* The quantity of unique coupon codes to generate. A bulk coupon can have up to 100,000 unique
* codes (or your site's configured limit).
*/
public Integer getNumberOfUniqueCodes() {
return this.numberOfUniqueCodes;
}

/** @param numberOfUniqueCodes The quantity of unique coupon codes to generate */
/**
* @param numberOfUniqueCodes The quantity of unique coupon codes to generate. A bulk coupon can
* have up to 100,000 unique codes (or your site's configured limit).
*/
public void setNumberOfUniqueCodes(final Integer numberOfUniqueCodes) {
this.numberOfUniqueCodes = numberOfUniqueCodes;
}
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.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

public class PaymentGatewayReferences extends Request {

/** The type of reference token. Required if token is passed in for Stripe Gateway. */
@SerializedName("reference_type")
@Expose
private Constants.PaymentGatewayReferences referenceType;

/**
* Reference value used when the external token was created. If Stripe gateway is used, this value
* will need to be accompanied by its reference_type.
*/
@SerializedName("token")
@Expose
private String token;

/** The type of reference token. Required if token is passed in for Stripe Gateway. */
public Constants.PaymentGatewayReferences getReferenceType() {
return this.referenceType;
}

/**
* @param referenceType The type of reference token. Required if token is passed in for Stripe
* Gateway.
*/
public void setReferenceType(final Constants.PaymentGatewayReferences referenceType) {
this.referenceType = referenceType;
}

/**
* Reference value used when the external token was created. If Stripe gateway is used, this value
* will need to be accompanied by its reference_type.
*/
public String getToken() {
return this.token;
}

/**
* @param token Reference value used when the external token was created. If Stripe gateway is
* used, this value will need to be accompanied by its reference_type.
*/
public void setToken(final String token) {
this.token = token;
}
}
26 changes: 26 additions & 0 deletions src/main/java/com/recurly/v3/resources/BillingInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
import java.util.List;
import org.joda.time.DateTime;

public class BillingInfo extends Resource {
Expand Down Expand Up @@ -59,6 +60,14 @@ public class BillingInfo extends Resource {
@Expose
private String object;

/**
* Array of Payment Gateway References, each a reference to a third-party gateway object of
* varying types.
*/
@SerializedName("payment_gateway_references")
@Expose
private List<PaymentGatewayReferences> paymentGatewayReferences;

@SerializedName("payment_method")
@Expose
private PaymentMethod paymentMethod;
Expand Down Expand Up @@ -194,6 +203,23 @@ public void setObject(final String object) {
this.object = object;
}

/**
* Array of Payment Gateway References, each a reference to a third-party gateway object of
* varying types.
*/
public List<PaymentGatewayReferences> getPaymentGatewayReferences() {
return this.paymentGatewayReferences;
}

/**
* @param paymentGatewayReferences Array of Payment Gateway References, each a reference to a
* third-party gateway object of varying types.
*/
public void setPaymentGatewayReferences(
final List<PaymentGatewayReferences> paymentGatewayReferences) {
this.paymentGatewayReferences = paymentGatewayReferences;
}

public PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
Expand Down
Loading

0 comments on commit f2e476f

Please sign in to comment.