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 Oct 30, 2024
1 parent a2dd039 commit d0e7bed
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 4 deletions.
21 changes: 17 additions & 4 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9915,10 +9915,11 @@ paths:
summary: Refund an invoice
description: |
There are two ways to do a refund:
* refund a specific amount which is divided across all the line items.
* refund quantities of line items.
If you want to refund the entire refundable amount on the invoice, the
simplest way is to do `type=amount` without specifiying an `amount`.
* Apply a specific dollar/cent amount or percentage amount to an entire invoice, which will refund the resulting amount across all line items on the invoice.
* If you want to refund the entire refundable amount on the invoice, the simplest way is to do `type=amount` without specifiying an `amount`.
* Note: You must have the Credit Memos feature flag enabled on your site to utilize percentage amount refunds on invoices.
* Apply a refund to one or more individual line items on an invoice. A line item can be refunded by a quantity amount, a specific dollar/cent amount, or a percentage amount and will only apply to the specific line item you are aiming to refund.
* Note: You must have the Credit Memos feature flag enabled on your site to utilize specific dollar/cent amount and percentage amount refunds on line items.
parameters:
- "$ref": "#/components/parameters/invoice_id"
requestBody:
Expand Down Expand Up @@ -23562,6 +23563,12 @@ components:
title: Gift card Redemption Code
description: A gift card redemption code to be redeemed on the purchase
invoice.
bulk:
type: boolean
description: Optional field to be used only when needing to bypass the 60
second limit on creating subscriptions. Should only be used when creating
subscriptions in bulk from the API.
default: false
required:
- plan_code
- currency
Expand Down Expand Up @@ -23664,6 +23671,12 @@ components:
description: The new set of ramp intervals for the subscription.
items:
"$ref": "#/components/schemas/SubscriptionRampInterval"
bulk:
type: boolean
description: Optional field to be used only when needing to bypass the 60
second limit on creating subscriptions. Should only be used when creating
subscriptions in bulk from the API.
default: false
required:
- plan_code
SubscriptionUpdate:
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ public class SubscriptionCreate extends Request {
@Expose
private String billingInfoId;

/**
* Optional field to be used only when needing to bypass the 60 second limit on creating
* subscriptions. Should only be used when creating subscriptions in bulk from the API.
*/
@SerializedName("bulk")
@Expose
private Boolean bulk;

/** Collection method */
@SerializedName("collection_method")
@Expose
Expand Down Expand Up @@ -297,6 +305,23 @@ public void setBillingInfoId(final String billingInfoId) {
this.billingInfoId = billingInfoId;
}

/**
* Optional field to be used only when needing to bypass the 60 second limit on creating
* subscriptions. Should only be used when creating subscriptions in bulk from the API.
*/
public Boolean getBulk() {
return this.bulk;
}

/**
* @param bulk Optional field to be used only when needing to bypass the 60 second limit on
* creating subscriptions. Should only be used when creating subscriptions in bulk from the
* API.
*/
public void setBulk(final Boolean bulk) {
this.bulk = bulk;
}

/** Collection method */
public Constants.CollectionMethod getCollectionMethod() {
return this.collectionMethod;
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ public class SubscriptionPurchase extends Request {
@Expose
private Boolean autoRenew;

/**
* Optional field to be used only when needing to bypass the 60 second limit on creating
* subscriptions. Should only be used when creating subscriptions in bulk from the API.
*/
@SerializedName("bulk")
@Expose
private Boolean bulk;

/**
* 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
Expand Down Expand Up @@ -148,6 +156,23 @@ public void setAutoRenew(final Boolean autoRenew) {
this.autoRenew = autoRenew;
}

/**
* Optional field to be used only when needing to bypass the 60 second limit on creating
* subscriptions. Should only be used when creating subscriptions in bulk from the API.
*/
public Boolean getBulk() {
return this.bulk;
}

/**
* @param bulk Optional field to be used only when needing to bypass the 60 second limit on
* creating subscriptions. Should only be used when creating subscriptions in bulk from the
* API.
*/
public void setBulk(final Boolean bulk) {
this.bulk = bulk;
}

/**
* 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
Expand Down

0 comments on commit d0e7bed

Please sign in to comment.