Skip to content

Commit 0a9c44c

Browse files
Merge pull request #224 from recurly/v3-v2021-02-25-11600910436
Adds bulk parameter to SubscriptionCreate and SubscriptionPurchase
2 parents 706da3e + ac978f9 commit 0a9c44c

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

openapi/api.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9915,10 +9915,11 @@ paths:
99159915
summary: Refund an invoice
99169916
description: |
99179917
There are two ways to do a refund:
9918-
* refund a specific amount which is divided across all the line items.
9919-
* refund quantities of line items.
9920-
If you want to refund the entire refundable amount on the invoice, the
9921-
simplest way is to do `type=amount` without specifiying an `amount`.
9918+
* 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.
9919+
* If you want to refund the entire refundable amount on the invoice, the simplest way is to do `type=amount` without specifiying an `amount`.
9920+
* Note: You must have the Credit Memos feature flag enabled on your site to utilize percentage amount refunds on invoices.
9921+
* 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.
9922+
* 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.
99229923
parameters:
99239924
- "$ref": "#/components/parameters/invoice_id"
99249925
requestBody:
@@ -23562,6 +23563,12 @@ components:
2356223563
title: Gift card Redemption Code
2356323564
description: A gift card redemption code to be redeemed on the purchase
2356423565
invoice.
23566+
bulk:
23567+
type: boolean
23568+
description: Optional field to be used only when needing to bypass the 60
23569+
second limit on creating subscriptions. Should only be used when creating
23570+
subscriptions in bulk from the API.
23571+
default: false
2356523572
required:
2356623573
- plan_code
2356723574
- currency
@@ -23664,6 +23671,12 @@ components:
2366423671
description: The new set of ramp intervals for the subscription.
2366523672
items:
2366623673
"$ref": "#/components/schemas/SubscriptionRampInterval"
23674+
bulk:
23675+
type: boolean
23676+
description: Optional field to be used only when needing to bypass the 60
23677+
second limit on creating subscriptions. Should only be used when creating
23678+
subscriptions in bulk from the API.
23679+
default: false
2366723680
required:
2366823681
- plan_code
2366923682
SubscriptionUpdate:

subscription_create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,7 @@ type SubscriptionCreate struct {
112112

113113
// A gift card redemption code to be redeemed on the purchase invoice.
114114
GiftCardRedemptionCode *string `json:"gift_card_redemption_code,omitempty"`
115+
116+
// 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.
117+
Bulk *bool `json:"bulk,omitempty"`
115118
}

subscription_purchase.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ type SubscriptionPurchase struct {
5757

5858
// The new set of ramp intervals for the subscription.
5959
RampIntervals []SubscriptionRampInterval `json:"ramp_intervals,omitempty"`
60+
61+
// 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.
62+
Bulk *bool `json:"bulk,omitempty"`
6063
}

0 commit comments

Comments
 (0)