recurly 4.64.0 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +22 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +55 -14
- data/lib/recurly/requests/account_acquisition_update.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/external_product_reference_base.rb +2 -2
- data/lib/recurly/requests/external_product_reference_create.rb +2 -2
- data/lib/recurly/requests/external_product_reference_update.rb +2 -2
- data/lib/recurly/requests/plan_create.rb +6 -2
- data/lib/recurly/requests/plan_pricing.rb +6 -2
- data/lib/recurly/requests/plan_ramp_pricing.rb +4 -0
- data/lib/recurly/requests/plan_setup_pricing_create.rb +18 -0
- data/lib/recurly/requests/plan_update.rb +7 -3
- data/lib/recurly/requests/pricing.rb +1 -1
- data/lib/recurly/requests/subscription_change_create.rb +4 -0
- data/lib/recurly/requests/subscription_create.rb +4 -0
- data/lib/recurly/requests/subscription_purchase.rb +4 -0
- data/lib/recurly/requests/subscription_shipping_create.rb +4 -0
- data/lib/recurly/requests/subscription_shipping_purchase.rb +4 -0
- data/lib/recurly/requests/subscription_update.rb +4 -0
- data/lib/recurly/resources/account_acquisition.rb +4 -0
- data/lib/recurly/resources/plan.rb +29 -1
- data/lib/recurly/resources/plan_pricing.rb +6 -2
- data/lib/recurly/resources/plan_ramp_pricing.rb +4 -0
- data/lib/recurly/resources/plan_setup_pricing.rb +18 -0
- data/lib/recurly/resources/price_segment.rb +22 -0
- data/lib/recurly/resources/pricing.rb +1 -1
- data/lib/recurly/resources/subscription.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +418 -554
- metadata +6 -3
data/openapi/api.yaml
CHANGED
@@ -217,6 +217,7 @@ x-tagGroups:
|
|
217
217
|
- coupon
|
218
218
|
- coupon_redemption
|
219
219
|
- unique_coupon_code
|
220
|
+
- price_segment
|
220
221
|
- name: Invoices and Payments
|
221
222
|
tags:
|
222
223
|
- invoice
|
@@ -274,6 +275,8 @@ tags:
|
|
274
275
|
x-displayName: Account Acquisition Info
|
275
276
|
description: Recurly offers the ability to record marketing data on customer accounts
|
276
277
|
to match this data with revenue and billing data events in Recurly.
|
278
|
+
- name: price_segment
|
279
|
+
x-displayName: Price Segment
|
277
280
|
- name: billing_info
|
278
281
|
x-displayName: Billing Info
|
279
282
|
description: Without the premium Wallet feature, an account can only have one stored
|
@@ -11963,6 +11966,72 @@ paths:
|
|
11963
11966
|
{\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
|
11964
11967
|
Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Removed Plan
|
11965
11968
|
Add-On: %v\", planAddOn)"
|
11969
|
+
"/price_segments":
|
11970
|
+
get:
|
11971
|
+
tags:
|
11972
|
+
- price_segment
|
11973
|
+
operationId: list_price_segments
|
11974
|
+
summary: List a site's price segments
|
11975
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
11976
|
+
to learn how to use pagination in the API and Client Libraries.
|
11977
|
+
parameters:
|
11978
|
+
- "$ref": "#/components/parameters/ids"
|
11979
|
+
- "$ref": "#/components/parameters/limit"
|
11980
|
+
- "$ref": "#/components/parameters/order"
|
11981
|
+
responses:
|
11982
|
+
'200':
|
11983
|
+
description: A list of price segments.
|
11984
|
+
content:
|
11985
|
+
application/json:
|
11986
|
+
schema:
|
11987
|
+
"$ref": "#/components/schemas/PriceSegmentList"
|
11988
|
+
'400':
|
11989
|
+
description: Invalid or unpermitted parameter.
|
11990
|
+
content:
|
11991
|
+
application/json:
|
11992
|
+
schema:
|
11993
|
+
"$ref": "#/components/schemas/Error"
|
11994
|
+
'404':
|
11995
|
+
description: Incorrect site ID.
|
11996
|
+
content:
|
11997
|
+
application/json:
|
11998
|
+
schema:
|
11999
|
+
"$ref": "#/components/schemas/Error"
|
12000
|
+
default:
|
12001
|
+
description: Unexpected error.
|
12002
|
+
content:
|
12003
|
+
application/json:
|
12004
|
+
schema:
|
12005
|
+
"$ref": "#/components/schemas/Error"
|
12006
|
+
x-code-samples: []
|
12007
|
+
"/price_segments/{price_segment_id}":
|
12008
|
+
get:
|
12009
|
+
tags:
|
12010
|
+
- price_segment
|
12011
|
+
operationId: get_price_segment
|
12012
|
+
summary: Fetch a price segment
|
12013
|
+
parameters:
|
12014
|
+
- "$ref": "#/components/parameters/price_segment_id"
|
12015
|
+
responses:
|
12016
|
+
'200':
|
12017
|
+
description: A price segment.
|
12018
|
+
content:
|
12019
|
+
application/json:
|
12020
|
+
schema:
|
12021
|
+
"$ref": "#/components/schemas/PriceSegment"
|
12022
|
+
'404':
|
12023
|
+
description: Incorrect site or price segment ID.
|
12024
|
+
content:
|
12025
|
+
application/json:
|
12026
|
+
schema:
|
12027
|
+
"$ref": "#/components/schemas/Error"
|
12028
|
+
default:
|
12029
|
+
description: Unexpected error.
|
12030
|
+
content:
|
12031
|
+
application/json:
|
12032
|
+
schema:
|
12033
|
+
"$ref": "#/components/schemas/Error"
|
12034
|
+
x-code-samples: []
|
11966
12035
|
"/add_ons":
|
11967
12036
|
get:
|
11968
12037
|
tags:
|
@@ -17016,7 +17085,8 @@ components:
|
|
17016
17085
|
name: invoice_id
|
17017
17086
|
in: path
|
17018
17087
|
description: Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`.
|
17019
|
-
For number use prefix `number-`, e.g. `number-1000`.
|
17088
|
+
For number use prefix `number-`, e.g. `number-1000`. For number with prefix
|
17089
|
+
or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
|
17020
17090
|
required: true
|
17021
17091
|
schema:
|
17022
17092
|
type: string
|
@@ -17062,6 +17132,14 @@ components:
|
|
17062
17132
|
required: true
|
17063
17133
|
schema:
|
17064
17134
|
type: string
|
17135
|
+
price_segment_id:
|
17136
|
+
name: price_segment_id
|
17137
|
+
in: path
|
17138
|
+
description: The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`.
|
17139
|
+
For code use prefix `code-`, e.g. `code-gold`.
|
17140
|
+
required: true
|
17141
|
+
schema:
|
17142
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
17065
17143
|
shipping_address_id:
|
17066
17144
|
name: shipping_address_id
|
17067
17145
|
in: path
|
@@ -17581,6 +17659,33 @@ components:
|
|
17581
17659
|
type: array
|
17582
17660
|
items:
|
17583
17661
|
"$ref": "#/components/schemas/Plan"
|
17662
|
+
PriceSegmentList:
|
17663
|
+
type: object
|
17664
|
+
properties:
|
17665
|
+
object:
|
17666
|
+
type: string
|
17667
|
+
title: Object type
|
17668
|
+
description: Will always be List.
|
17669
|
+
has_more:
|
17670
|
+
type: boolean
|
17671
|
+
description: Indicates there are more results on subsequent pages.
|
17672
|
+
next:
|
17673
|
+
type: string
|
17674
|
+
description: Path to subsequent page of results.
|
17675
|
+
data:
|
17676
|
+
type: array
|
17677
|
+
items:
|
17678
|
+
"$ref": "#/components/schemas/PriceSegment"
|
17679
|
+
PriceSegment:
|
17680
|
+
type: object
|
17681
|
+
properties:
|
17682
|
+
object:
|
17683
|
+
type: string
|
17684
|
+
title: Object type
|
17685
|
+
id:
|
17686
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
17687
|
+
code:
|
17688
|
+
"$ref": "#/components/schemas/PriceSegmentCode"
|
17584
17689
|
SiteList:
|
17585
17690
|
type: object
|
17586
17691
|
properties:
|
@@ -17689,6 +17794,11 @@ components:
|
|
17689
17794
|
type: string
|
17690
17795
|
description: An arbitrary identifier for the marketing campaign that led
|
17691
17796
|
to the acquisition of this account.
|
17797
|
+
acquired_at:
|
17798
|
+
type: string
|
17799
|
+
format: date-time
|
17800
|
+
description: Date the account was first created if different than the account.created_at.
|
17801
|
+
ie Importing accounts.
|
17692
17802
|
AccountAcquisitionReadOnly:
|
17693
17803
|
type: object
|
17694
17804
|
properties:
|
@@ -18998,6 +19108,11 @@ components:
|
|
18998
19108
|
fraud_session_id:
|
18999
19109
|
type: string
|
19000
19110
|
title: Fraud Session ID
|
19111
|
+
adyen_risk_profile_reference_id:
|
19112
|
+
type: string
|
19113
|
+
title: Adyen Risk Profile Reference ID
|
19114
|
+
description: The Adyen Risk Profile Reference ID is used to identify the
|
19115
|
+
risk profile for the payment method.
|
19001
19116
|
transaction_type:
|
19002
19117
|
description: An optional type designation for the payment gateway transaction
|
19003
19118
|
created by this request. Supports 'moto' value, which is the acronym for
|
@@ -19783,6 +19898,11 @@ components:
|
|
19783
19898
|
are removed from the accouts or subscriptions, will be hard deleted an
|
19784
19899
|
no longer visible.
|
19785
19900
|
readOnly: true
|
19901
|
+
CurrencyCode:
|
19902
|
+
type: string
|
19903
|
+
title: Currency
|
19904
|
+
description: 3-letter ISO 4217 currency code.
|
19905
|
+
maxLength: 3
|
19786
19906
|
GeneralLedgerAccountId:
|
19787
19907
|
type: string
|
19788
19908
|
title: General Ledger Account ID
|
@@ -19943,6 +20063,12 @@ components:
|
|
19943
20063
|
object:
|
19944
20064
|
title: Object type
|
19945
20065
|
type: string
|
20066
|
+
has_more:
|
20067
|
+
type: boolean
|
20068
|
+
description: Indicates there are more results on subsequent pages.
|
20069
|
+
next:
|
20070
|
+
type: string
|
20071
|
+
description: Path to subsequent page of results.
|
19946
20072
|
data:
|
19947
20073
|
title: Performance Obligation
|
19948
20074
|
type: array
|
@@ -21485,6 +21611,25 @@ components:
|
|
21485
21611
|
type: string
|
21486
21612
|
title: Reference Type
|
21487
21613
|
"$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
|
21614
|
+
PlanCode:
|
21615
|
+
type: string
|
21616
|
+
title: Plan code
|
21617
|
+
description: Unique code to identify the plan. This is used in Hosted Payment
|
21618
|
+
Page URLs and in the invoice exports.
|
21619
|
+
pattern: "/^[a-z0-9_+-]+$/"
|
21620
|
+
maxLength: 50
|
21621
|
+
PlanName:
|
21622
|
+
type: string
|
21623
|
+
title: Name
|
21624
|
+
description: This name describes your plan and will appear on the Hosted Payment
|
21625
|
+
Page and the subscriber's invoice.
|
21626
|
+
maxLength: 255
|
21627
|
+
PlanIntervalLength:
|
21628
|
+
type: integer
|
21629
|
+
title: Interval length
|
21630
|
+
description: Length of the plan's billing interval in `interval_unit`.
|
21631
|
+
default: 1
|
21632
|
+
minimum: 1
|
21488
21633
|
PlanMini:
|
21489
21634
|
type: object
|
21490
21635
|
title: Plan mini details
|
@@ -21500,64 +21645,48 @@ components:
|
|
21500
21645
|
title: Object type
|
21501
21646
|
readOnly: true
|
21502
21647
|
code:
|
21503
|
-
|
21504
|
-
title: Plan code
|
21505
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21506
|
-
Page URLs and in the invoice exports.
|
21507
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21508
|
-
maxLength: 50
|
21648
|
+
"$ref": "#/components/schemas/PlanCode"
|
21509
21649
|
name:
|
21510
|
-
|
21511
|
-
|
21512
|
-
description: This name describes your plan and will appear on the Hosted
|
21513
|
-
Payment Page and the subscriber's invoice.
|
21514
|
-
maxLength: 255
|
21515
|
-
Plan:
|
21650
|
+
"$ref": "#/components/schemas/PlanName"
|
21651
|
+
PlanCommon:
|
21516
21652
|
type: object
|
21517
|
-
description: Full plan details.
|
21518
21653
|
properties:
|
21519
|
-
id:
|
21520
|
-
type: string
|
21521
|
-
title: Plan ID
|
21522
|
-
maxLength: 13
|
21523
|
-
readOnly: true
|
21524
|
-
object:
|
21525
|
-
type: string
|
21526
|
-
title: Object type
|
21527
|
-
readOnly: true
|
21528
|
-
code:
|
21529
|
-
type: string
|
21530
|
-
title: Plan code
|
21531
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21532
|
-
Page URLs and in the invoice exports.
|
21533
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21534
|
-
maxLength: 50
|
21535
|
-
state:
|
21536
|
-
title: State
|
21537
|
-
description: The current state of the plan.
|
21538
|
-
readOnly: true
|
21539
|
-
"$ref": "#/components/schemas/ActiveStateEnum"
|
21540
|
-
name:
|
21541
|
-
type: string
|
21542
|
-
title: Name
|
21543
|
-
description: This name describes your plan and will appear on the Hosted
|
21544
|
-
Payment Page and the subscriber's invoice.
|
21545
|
-
maxLength: 255
|
21546
21654
|
description:
|
21547
21655
|
type: string
|
21548
21656
|
title: Description
|
21549
21657
|
description: Optional description, not displayed.
|
21550
|
-
|
21551
|
-
|
21552
|
-
|
21553
|
-
|
21554
|
-
|
21555
|
-
|
21556
|
-
|
21557
|
-
|
21558
|
-
|
21559
|
-
|
21560
|
-
|
21658
|
+
accounting_code:
|
21659
|
+
type: string
|
21660
|
+
title: Plan accounting code
|
21661
|
+
description: Accounting code for invoice line items for the plan. If no
|
21662
|
+
value is provided, it defaults to plan's code.
|
21663
|
+
pattern: "/^[a-z0-9_+-]+$/"
|
21664
|
+
maxLength: 20
|
21665
|
+
revenue_schedule_type:
|
21666
|
+
title: Revenue schedule type
|
21667
|
+
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21668
|
+
liability_gl_account_id:
|
21669
|
+
"$ref": "#/components/schemas/GeneralLedgerAccountId"
|
21670
|
+
revenue_gl_account_id:
|
21671
|
+
"$ref": "#/components/schemas/GeneralLedgerAccountId"
|
21672
|
+
performance_obligation_id:
|
21673
|
+
"$ref": "#/components/schemas/PerformanceObligationId"
|
21674
|
+
setup_fee_accounting_code:
|
21675
|
+
type: string
|
21676
|
+
title: Setup fee accounting code
|
21677
|
+
description: Accounting code for invoice line items for the plan's setup
|
21678
|
+
fee. If no value is provided, it defaults to plan's accounting code.
|
21679
|
+
pattern: "/^[a-z0-9_+-]+$/"
|
21680
|
+
maxLength: 20
|
21681
|
+
setup_fee_revenue_schedule_type:
|
21682
|
+
title: Setup fee revenue schedule type
|
21683
|
+
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21684
|
+
setup_fee_liability_gl_account_id:
|
21685
|
+
"$ref": "#/components/schemas/GeneralLedgerAccountId"
|
21686
|
+
setup_fee_revenue_gl_account_id:
|
21687
|
+
"$ref": "#/components/schemas/GeneralLedgerAccountId"
|
21688
|
+
setup_fee_performance_obligation_id:
|
21689
|
+
"$ref": "#/components/schemas/PerformanceObligationId"
|
21561
21690
|
trial_unit:
|
21562
21691
|
title: Trial unit
|
21563
21692
|
description: Units for the plan's trial period.
|
@@ -21593,36 +21722,8 @@ components:
|
|
21593
21722
|
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
21594
21723
|
will expire at the end of its term. `auto_renew` can be overridden on
|
21595
21724
|
the subscription record itself.
|
21596
|
-
pricing_model:
|
21597
|
-
title: Pricing Model
|
21598
|
-
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21599
|
-
ramp_intervals:
|
21600
|
-
type: array
|
21601
|
-
title: Ramp Intervals
|
21602
|
-
items:
|
21603
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
21604
21725
|
custom_fields:
|
21605
21726
|
"$ref": "#/components/schemas/CustomFields"
|
21606
|
-
revenue_schedule_type:
|
21607
|
-
title: Revenue schedule type
|
21608
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21609
|
-
setup_fee_revenue_schedule_type:
|
21610
|
-
title: Setup fee revenue schedule type
|
21611
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21612
|
-
accounting_code:
|
21613
|
-
type: string
|
21614
|
-
title: Plan accounting code
|
21615
|
-
description: Accounting code for invoice line items for the plan. If no
|
21616
|
-
value is provided, it defaults to plan's code.
|
21617
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21618
|
-
maxLength: 20
|
21619
|
-
setup_fee_accounting_code:
|
21620
|
-
type: string
|
21621
|
-
title: Setup fee accounting code
|
21622
|
-
description: Accounting code for invoice line items for the plan's setup
|
21623
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
21624
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21625
|
-
maxLength: 20
|
21626
21727
|
avalara_transaction_type:
|
21627
21728
|
type: integer
|
21628
21729
|
title: Avalara Transaction Type
|
@@ -21658,12 +21759,6 @@ components:
|
|
21658
21759
|
title: Vertex Transaction Type
|
21659
21760
|
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
21660
21761
|
`rental`, `lease`.
|
21661
|
-
currencies:
|
21662
|
-
type: array
|
21663
|
-
title: Pricing
|
21664
|
-
items:
|
21665
|
-
"$ref": "#/components/schemas/PlanPricing"
|
21666
|
-
minItems: 1
|
21667
21762
|
hosted_pages:
|
21668
21763
|
type: object
|
21669
21764
|
title: Hosted pages settings
|
@@ -21682,244 +21777,117 @@ components:
|
|
21682
21777
|
a non-default dunning campaign should be assigned to this plan. For sites
|
21683
21778
|
without multiple dunning campaigns enabled, the default dunning campaign
|
21684
21779
|
will always be used.
|
21685
|
-
|
21686
|
-
|
21687
|
-
|
21688
|
-
|
21689
|
-
|
21690
|
-
|
21691
|
-
|
21692
|
-
|
21693
|
-
|
21694
|
-
|
21695
|
-
|
21696
|
-
|
21697
|
-
|
21698
|
-
|
21699
|
-
|
21780
|
+
PlanCreate:
|
21781
|
+
type: object
|
21782
|
+
allOf:
|
21783
|
+
- type: object
|
21784
|
+
properties:
|
21785
|
+
code:
|
21786
|
+
"$ref": "#/components/schemas/PlanCode"
|
21787
|
+
name:
|
21788
|
+
"$ref": "#/components/schemas/PlanName"
|
21789
|
+
pricing_model:
|
21790
|
+
title: Pricing Model
|
21791
|
+
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21792
|
+
currencies:
|
21793
|
+
title: Pricing
|
21794
|
+
description: Required only when `pricing_model` is `'fixed'`.
|
21795
|
+
type: array
|
21796
|
+
items:
|
21797
|
+
"$ref": "#/components/schemas/PlanPricing"
|
21798
|
+
minItems: 1
|
21799
|
+
ramp_intervals:
|
21800
|
+
type: array
|
21801
|
+
title: Ramp Intervals
|
21802
|
+
items:
|
21803
|
+
title: PlanRampInterval
|
21804
|
+
"$ref": "#/components/schemas/PlanRampInterval"
|
21805
|
+
setup_fees:
|
21806
|
+
type: array
|
21807
|
+
title: Setup Fees
|
21808
|
+
items:
|
21809
|
+
"$ref": "#/components/schemas/PlanSetupPricingCreate"
|
21810
|
+
add_ons:
|
21811
|
+
type: array
|
21812
|
+
title: Add Ons
|
21813
|
+
items:
|
21814
|
+
"$ref": "#/components/schemas/AddOnCreate"
|
21815
|
+
interval_unit:
|
21816
|
+
title: Interval unit
|
21817
|
+
description: Unit for the plan's billing interval.
|
21818
|
+
default: months
|
21819
|
+
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21820
|
+
interval_length:
|
21821
|
+
"$ref": "#/components/schemas/PlanIntervalLength"
|
21822
|
+
- "$ref": "#/components/schemas/PlanCommon"
|
21700
21823
|
required:
|
21701
21824
|
- code
|
21702
21825
|
- name
|
21703
|
-
|
21826
|
+
- currencies
|
21827
|
+
Plan:
|
21828
|
+
type: object
|
21829
|
+
allOf:
|
21830
|
+
- "$ref": "#/components/schemas/PlanMini"
|
21831
|
+
- type: object
|
21832
|
+
properties:
|
21833
|
+
state:
|
21834
|
+
title: State
|
21835
|
+
description: The current state of the plan.
|
21836
|
+
readOnly: true
|
21837
|
+
"$ref": "#/components/schemas/ActiveStateEnum"
|
21838
|
+
pricing_model:
|
21839
|
+
title: Pricing Model
|
21840
|
+
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21841
|
+
currencies:
|
21842
|
+
title: Pricing
|
21843
|
+
description: Present only when `pricing_model` is `'fixed'`.
|
21844
|
+
"$ref": "#/components/schemas/PlanCurrencies"
|
21845
|
+
ramp_intervals:
|
21846
|
+
type: array
|
21847
|
+
title: Ramp Intervals
|
21848
|
+
items:
|
21849
|
+
"$ref": "#/components/schemas/PlanRampInterval"
|
21850
|
+
setup_fees:
|
21851
|
+
type: array
|
21852
|
+
title: Setup Fees
|
21853
|
+
items:
|
21854
|
+
"$ref": "#/components/schemas/PlanSetupPricing"
|
21855
|
+
interval_unit:
|
21856
|
+
title: Interval unit
|
21857
|
+
description: Unit for the plan's billing interval.
|
21858
|
+
default: months
|
21859
|
+
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21860
|
+
interval_length:
|
21861
|
+
"$ref": "#/components/schemas/PlanIntervalLength"
|
21862
|
+
- "$ref": "#/components/schemas/PlanCommon"
|
21863
|
+
- type: object
|
21864
|
+
properties:
|
21865
|
+
created_at:
|
21866
|
+
type: string
|
21867
|
+
format: date-time
|
21868
|
+
title: Created at
|
21869
|
+
readOnly: true
|
21870
|
+
updated_at:
|
21871
|
+
type: string
|
21872
|
+
format: date-time
|
21873
|
+
title: Last updated at
|
21874
|
+
readOnly: true
|
21875
|
+
deleted_at:
|
21876
|
+
type: string
|
21877
|
+
format: date-time
|
21878
|
+
title: Deleted at
|
21879
|
+
readOnly: true
|
21880
|
+
required:
|
21881
|
+
- code
|
21882
|
+
- name
|
21883
|
+
PlanHostedPages:
|
21704
21884
|
type: object
|
21705
21885
|
properties:
|
21706
|
-
|
21707
|
-
type: string
|
21708
|
-
title: Plan code
|
21709
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21710
|
-
Page URLs and in the invoice exports.
|
21711
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21712
|
-
maxLength: 50
|
21713
|
-
name:
|
21714
|
-
type: string
|
21715
|
-
title: Name
|
21716
|
-
description: This name describes your plan and will appear on the Hosted
|
21717
|
-
Payment Page and the subscriber's invoice.
|
21718
|
-
maxLength: 255
|
21719
|
-
description:
|
21886
|
+
success_url:
|
21720
21887
|
type: string
|
21721
|
-
title:
|
21722
|
-
description:
|
21723
|
-
|
21724
|
-
type: string
|
21725
|
-
title: Plan accounting code
|
21726
|
-
description: Accounting code for invoice line items for the plan. If no
|
21727
|
-
value is provided, it defaults to plan's code.
|
21728
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21729
|
-
maxLength: 20
|
21730
|
-
interval_unit:
|
21731
|
-
title: Interval unit
|
21732
|
-
description: Unit for the plan's billing interval.
|
21733
|
-
default: months
|
21734
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21735
|
-
interval_length:
|
21736
|
-
type: integer
|
21737
|
-
title: Interval length
|
21738
|
-
description: Length of the plan's billing interval in `interval_unit`.
|
21739
|
-
default: 1
|
21740
|
-
minimum: 1
|
21741
|
-
trial_unit:
|
21742
|
-
title: Trial unit
|
21743
|
-
description: Units for the plan's trial period.
|
21744
|
-
default: months
|
21745
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21746
|
-
trial_length:
|
21747
|
-
type: integer
|
21748
|
-
title: Trial length
|
21749
|
-
description: Length of plan's trial period in `trial_units`. `0` means `no
|
21750
|
-
trial`.
|
21751
|
-
default: 0
|
21752
|
-
minimum: 0
|
21753
|
-
trial_requires_billing_info:
|
21754
|
-
type: boolean
|
21755
|
-
title: Trial Requires BillingInfo
|
21756
|
-
description: Allow free trial subscriptions to be created without billing
|
21757
|
-
info. Should not be used if billing info is needed for initial invoice
|
21758
|
-
due to existing uninvoiced charges or setup fee.
|
21759
|
-
default: true
|
21760
|
-
total_billing_cycles:
|
21761
|
-
type: integer
|
21762
|
-
title: Total billing cycles
|
21763
|
-
description: Automatically terminate plans after a defined number of billing
|
21764
|
-
cycles.
|
21765
|
-
minimum: 0
|
21766
|
-
auto_renew:
|
21767
|
-
type: boolean
|
21768
|
-
title: Auto renew
|
21769
|
-
default: true
|
21770
|
-
description: Subscriptions will automatically inherit this value once they
|
21771
|
-
are active. If `auto_renew` is `true`, then a subscription will automatically
|
21772
|
-
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
21773
|
-
will expire at the end of its term. `auto_renew` can be overridden on
|
21774
|
-
the subscription record itself.
|
21775
|
-
pricing_model:
|
21776
|
-
title: Pricing Model
|
21777
|
-
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21778
|
-
ramp_intervals:
|
21779
|
-
type: array
|
21780
|
-
title: Ramp Intervals
|
21781
|
-
items:
|
21782
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
21783
|
-
custom_fields:
|
21784
|
-
"$ref": "#/components/schemas/CustomFields"
|
21785
|
-
revenue_schedule_type:
|
21786
|
-
title: Revenue schedule type
|
21787
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21788
|
-
liability_gl_account_id:
|
21789
|
-
type: string
|
21790
|
-
title: General Ledger Account ID
|
21791
|
-
description: |
|
21792
|
-
The ID of a general ledger account. General ledger accounts are
|
21793
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21794
|
-
Recurly RevRec Advanced features.
|
21795
|
-
maxLength: 13
|
21796
|
-
revenue_gl_account_id:
|
21797
|
-
type: string
|
21798
|
-
title: General Ledger Account ID
|
21799
|
-
description: |
|
21800
|
-
The ID of a general ledger account. General ledger accounts are
|
21801
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21802
|
-
Recurly RevRec Advanced features.
|
21803
|
-
maxLength: 13
|
21804
|
-
performance_obligation_id:
|
21805
|
-
type: string
|
21806
|
-
title: Performance Obligation ID
|
21807
|
-
description: |
|
21808
|
-
The ID of a performance obligation. Performance obligations are
|
21809
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21810
|
-
Recurly RevRec Advanced features.
|
21811
|
-
maxLength: 13
|
21812
|
-
setup_fee_liability_gl_account_id:
|
21813
|
-
type: string
|
21814
|
-
title: General Ledger Account ID
|
21815
|
-
description: |
|
21816
|
-
The ID of a general ledger account. General ledger accounts are
|
21817
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21818
|
-
Recurly RevRec Advanced features.
|
21819
|
-
maxLength: 13
|
21820
|
-
setup_fee_revenue_gl_account_id:
|
21821
|
-
type: string
|
21822
|
-
title: General Ledger Account ID
|
21823
|
-
description: |
|
21824
|
-
The ID of a general ledger account. General ledger accounts are
|
21825
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21826
|
-
Recurly RevRec Advanced features.
|
21827
|
-
maxLength: 13
|
21828
|
-
setup_fee_performance_obligation_id:
|
21829
|
-
type: string
|
21830
|
-
title: Performance Obligation ID
|
21831
|
-
description: |
|
21832
|
-
The ID of a performance obligation. Performance obligations are
|
21833
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21834
|
-
Recurly RevRec Advanced features.
|
21835
|
-
maxLength: 13
|
21836
|
-
setup_fee_revenue_schedule_type:
|
21837
|
-
title: Setup fee revenue schedule type
|
21838
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21839
|
-
setup_fee_accounting_code:
|
21840
|
-
type: string
|
21841
|
-
title: Setup fee accounting code
|
21842
|
-
description: Accounting code for invoice line items for the plan's setup
|
21843
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
21844
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21845
|
-
maxLength: 20
|
21846
|
-
avalara_transaction_type:
|
21847
|
-
type: integer
|
21848
|
-
title: Avalara Transaction Type
|
21849
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
21850
|
-
in combination with the service type describe how the plan is taxed. Refer
|
21851
|
-
to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types)
|
21852
|
-
for more available t/s types.
|
21853
|
-
minimum: 0
|
21854
|
-
avalara_service_type:
|
21855
|
-
type: integer
|
21856
|
-
title: Avalara Service Type
|
21857
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
21858
|
-
in combination with the service type describe how the plan is taxed. Refer
|
21859
|
-
to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types)
|
21860
|
-
for more available t/s types.
|
21861
|
-
minimum: 0
|
21862
|
-
tax_code:
|
21863
|
-
type: string
|
21864
|
-
maxLength: 50
|
21865
|
-
title: Tax code
|
21866
|
-
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
|
21867
|
-
tax solution to determine taxation rules. You can pass in specific tax
|
21868
|
-
codes using any of these tax integrations. For Recurly's In-the-Box tax
|
21869
|
-
offering you can also choose to instead use simple values of `unknown`,
|
21870
|
-
`physical`, or `digital` tax codes.
|
21871
|
-
tax_exempt:
|
21872
|
-
type: boolean
|
21873
|
-
title: Tax exempt?
|
21874
|
-
description: "`true` exempts tax on the plan, `false` applies tax on the
|
21875
|
-
plan."
|
21876
|
-
vertex_transaction_type:
|
21877
|
-
type: string
|
21878
|
-
title: Vertex Transaction Type
|
21879
|
-
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
21880
|
-
`rental`, `lease`.
|
21881
|
-
currencies:
|
21882
|
-
type: array
|
21883
|
-
title: Pricing
|
21884
|
-
items:
|
21885
|
-
"$ref": "#/components/schemas/PlanPricing"
|
21886
|
-
minItems: 1
|
21887
|
-
hosted_pages:
|
21888
|
-
type: object
|
21889
|
-
title: Hosted pages settings
|
21890
|
-
"$ref": "#/components/schemas/PlanHostedPages"
|
21891
|
-
add_ons:
|
21892
|
-
type: array
|
21893
|
-
title: Add Ons
|
21894
|
-
items:
|
21895
|
-
"$ref": "#/components/schemas/AddOnCreate"
|
21896
|
-
allow_any_item_on_subscriptions:
|
21897
|
-
type: boolean
|
21898
|
-
title: Allow any item on subscriptions
|
21899
|
-
default: false
|
21900
|
-
description: |
|
21901
|
-
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
21902
|
-
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
21903
|
-
If `false`, only plan add-ons can be used.
|
21904
|
-
dunning_campaign_id:
|
21905
|
-
type: string
|
21906
|
-
title: Dunning Campaign ID
|
21907
|
-
description: Unique ID to identify a dunning campaign. Used to specify if
|
21908
|
-
a non-default dunning campaign should be assigned to this plan. For sites
|
21909
|
-
without multiple dunning campaigns enabled, the default dunning campaign
|
21910
|
-
will always be used.
|
21911
|
-
required:
|
21912
|
-
- code
|
21913
|
-
- name
|
21914
|
-
- currencies
|
21915
|
-
PlanHostedPages:
|
21916
|
-
type: object
|
21917
|
-
properties:
|
21918
|
-
success_url:
|
21919
|
-
type: string
|
21920
|
-
title: Success redirect URL
|
21921
|
-
description: URL to redirect to after signup on the hosted payment pages.
|
21922
|
-
cancel_url:
|
21888
|
+
title: Success redirect URL
|
21889
|
+
description: URL to redirect to after signup on the hosted payment pages.
|
21890
|
+
cancel_url:
|
21923
21891
|
type: string
|
21924
21892
|
title: Cancel redirect URL (deprecated)
|
21925
21893
|
description: URL to redirect to on canceled signup on the hosted payment
|
@@ -21938,33 +21906,54 @@ components:
|
|
21938
21906
|
type: object
|
21939
21907
|
properties:
|
21940
21908
|
currency:
|
21941
|
-
|
21942
|
-
title: Currency
|
21943
|
-
description: 3-letter ISO 4217 currency code.
|
21944
|
-
maxLength: 3
|
21909
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
21945
21910
|
setup_fee:
|
21946
|
-
|
21947
|
-
|
21948
|
-
|
21949
|
-
|
21911
|
+
"$ref": "#/components/schemas/UnitAmount"
|
21912
|
+
title: Setup Fee
|
21913
|
+
description: This field is deprecated, please use top level `setup_fees`
|
21914
|
+
instead. Amount of one-time setup fee automatically charged at the beginning
|
21950
21915
|
of a subscription billing cycle. For subscription plans with a trial,
|
21951
21916
|
the setup fee will be charged at the time of signup. Setup fees do not
|
21952
21917
|
increase with the quantity of a subscription plan.
|
21953
|
-
|
21954
|
-
maximum: 1000000
|
21918
|
+
deprecated: true
|
21955
21919
|
unit_amount:
|
21956
|
-
|
21957
|
-
|
21958
|
-
|
21959
|
-
|
21960
|
-
|
21961
|
-
maximum: 1000000
|
21920
|
+
"$ref": "#/components/schemas/UnitAmount"
|
21921
|
+
title: Unit Price
|
21922
|
+
description: This field should not be sent when the pricing model is `'ramp'`.
|
21923
|
+
price_segment_id:
|
21924
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
21962
21925
|
tax_inclusive:
|
21963
|
-
|
21964
|
-
|
21965
|
-
|
21966
|
-
|
21967
|
-
|
21926
|
+
"$ref": "#/components/schemas/TaxInclusive"
|
21927
|
+
PlanCurrencies:
|
21928
|
+
title: Pricing
|
21929
|
+
type: array
|
21930
|
+
items:
|
21931
|
+
"$ref": "#/components/schemas/PlanPricing"
|
21932
|
+
minItems: 1
|
21933
|
+
PlanSetupPricingCreate:
|
21934
|
+
type: object
|
21935
|
+
properties:
|
21936
|
+
currency:
|
21937
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
21938
|
+
unit_amount:
|
21939
|
+
"$ref": "#/components/schemas/UnitAmount"
|
21940
|
+
title: Setup Fee
|
21941
|
+
description: Amount of one-time setup fee automatically charged at the beginning
|
21942
|
+
of a subscription billing cycle. For subscription plans with a trial,
|
21943
|
+
the setup fee will be charged at the time of signup. Setup fees do not
|
21944
|
+
increase with the quantity of a subscription plan.
|
21945
|
+
PlanSetupPricing:
|
21946
|
+
type: object
|
21947
|
+
properties:
|
21948
|
+
currency:
|
21949
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
21950
|
+
unit_amount:
|
21951
|
+
"$ref": "#/components/schemas/UnitAmount"
|
21952
|
+
title: Setup Fee
|
21953
|
+
description: Amount of one-time setup fee automatically charged at the beginning
|
21954
|
+
of a subscription billing cycle. For subscription plans with a trial,
|
21955
|
+
the setup fee will be charged at the time of signup. Setup fees do not
|
21956
|
+
increase with the quantity of a subscription plan.
|
21968
21957
|
PlanRampInterval:
|
21969
21958
|
type: object
|
21970
21959
|
title: Plan Ramp Interval
|
@@ -21980,198 +21969,38 @@ components:
|
|
21980
21969
|
"$ref": "#/components/schemas/PlanRampPricing"
|
21981
21970
|
PlanUpdate:
|
21982
21971
|
type: object
|
21983
|
-
|
21984
|
-
|
21985
|
-
|
21986
|
-
|
21987
|
-
|
21988
|
-
|
21989
|
-
|
21990
|
-
|
21991
|
-
|
21992
|
-
|
21993
|
-
|
21994
|
-
|
21995
|
-
|
21996
|
-
|
21997
|
-
|
21998
|
-
|
21999
|
-
|
22000
|
-
|
22001
|
-
|
22002
|
-
|
22003
|
-
|
22004
|
-
|
22005
|
-
|
22006
|
-
|
22007
|
-
|
22008
|
-
|
22009
|
-
|
22010
|
-
|
22011
|
-
|
22012
|
-
|
22013
|
-
|
22014
|
-
|
22015
|
-
description: Units for the plan's trial period.
|
22016
|
-
default: months
|
22017
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
22018
|
-
trial_length:
|
22019
|
-
type: integer
|
22020
|
-
title: Trial length
|
22021
|
-
description: Length of plan's trial period in `trial_units`. `0` means `no
|
22022
|
-
trial`.
|
22023
|
-
default: 0
|
22024
|
-
minimum: 0
|
22025
|
-
trial_requires_billing_info:
|
22026
|
-
type: boolean
|
22027
|
-
title: Trial Requires BillingInfo
|
22028
|
-
description: Allow free trial subscriptions to be created without billing
|
22029
|
-
info. Should not be used if billing info is needed for initial invoice
|
22030
|
-
due to existing uninvoiced charges or setup fee.
|
22031
|
-
default: true
|
22032
|
-
total_billing_cycles:
|
22033
|
-
type: integer
|
22034
|
-
title: Total billing cycles
|
22035
|
-
description: Automatically terminate plans after a defined number of billing
|
22036
|
-
cycles.
|
22037
|
-
minimum: 0
|
22038
|
-
auto_renew:
|
22039
|
-
type: boolean
|
22040
|
-
title: Auto renew
|
22041
|
-
default: true
|
22042
|
-
description: Subscriptions will automatically inherit this value once they
|
22043
|
-
are active. If `auto_renew` is `true`, then a subscription will automatically
|
22044
|
-
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
22045
|
-
will expire at the end of its term. `auto_renew` can be overridden on
|
22046
|
-
the subscription record itself.
|
22047
|
-
ramp_intervals:
|
22048
|
-
type: array
|
22049
|
-
title: Ramp Intervals
|
22050
|
-
items:
|
22051
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
22052
|
-
custom_fields:
|
22053
|
-
"$ref": "#/components/schemas/CustomFields"
|
22054
|
-
revenue_schedule_type:
|
22055
|
-
title: Revenue schedule type
|
22056
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
22057
|
-
liability_gl_account_id:
|
22058
|
-
type: string
|
22059
|
-
title: General Ledger Account ID
|
22060
|
-
description: |
|
22061
|
-
The ID of a general ledger account. General ledger accounts are
|
22062
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22063
|
-
Recurly RevRec Advanced features.
|
22064
|
-
maxLength: 13
|
22065
|
-
revenue_gl_account_id:
|
22066
|
-
type: string
|
22067
|
-
title: General Ledger Account ID
|
22068
|
-
description: |
|
22069
|
-
The ID of a general ledger account. General ledger accounts are
|
22070
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22071
|
-
Recurly RevRec Advanced features.
|
22072
|
-
maxLength: 13
|
22073
|
-
performance_obligation_id:
|
22074
|
-
type: string
|
22075
|
-
title: Performance Obligation ID
|
22076
|
-
description: |
|
22077
|
-
The ID of a performance obligation. Performance obligations are
|
22078
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22079
|
-
Recurly RevRec Advanced features.
|
22080
|
-
maxLength: 13
|
22081
|
-
setup_fee_liability_gl_account_id:
|
22082
|
-
type: string
|
22083
|
-
title: General Ledger Account ID
|
22084
|
-
description: |
|
22085
|
-
The ID of a general ledger account. General ledger accounts are
|
22086
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22087
|
-
Recurly RevRec Advanced features.
|
22088
|
-
maxLength: 13
|
22089
|
-
setup_fee_revenue_gl_account_id:
|
22090
|
-
type: string
|
22091
|
-
title: General Ledger Account ID
|
22092
|
-
description: |
|
22093
|
-
The ID of a general ledger account. General ledger accounts are
|
22094
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22095
|
-
Recurly RevRec Advanced features.
|
22096
|
-
maxLength: 13
|
22097
|
-
setup_fee_performance_obligation_id:
|
22098
|
-
type: string
|
22099
|
-
title: Performance Obligation ID
|
22100
|
-
description: |
|
22101
|
-
The ID of a performance obligation. Performance obligations are
|
22102
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22103
|
-
Recurly RevRec Advanced features.
|
22104
|
-
maxLength: 13
|
22105
|
-
setup_fee_revenue_schedule_type:
|
22106
|
-
title: Setup fee revenue schedule type
|
22107
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
22108
|
-
setup_fee_accounting_code:
|
22109
|
-
type: string
|
22110
|
-
title: Setup fee accounting code
|
22111
|
-
description: Accounting code for invoice line items for the plan's setup
|
22112
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
22113
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
22114
|
-
maxLength: 20
|
22115
|
-
avalara_transaction_type:
|
22116
|
-
type: integer
|
22117
|
-
title: Avalara Transaction Type
|
22118
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
22119
|
-
in combination with the service type describe how the plan is taxed. Refer
|
22120
|
-
to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types)
|
22121
|
-
for more available t/s types.
|
22122
|
-
minimum: 0
|
22123
|
-
avalara_service_type:
|
22124
|
-
type: integer
|
22125
|
-
title: Avalara Service Type
|
22126
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
22127
|
-
in combination with the service type describe how the plan is taxed. Refer
|
22128
|
-
to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types)
|
22129
|
-
for more available t/s types.
|
22130
|
-
minimum: 0
|
22131
|
-
tax_code:
|
22132
|
-
type: string
|
22133
|
-
maxLength: 50
|
22134
|
-
title: Tax code
|
22135
|
-
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
|
22136
|
-
tax solution to determine taxation rules. You can pass in specific tax
|
22137
|
-
codes using any of these tax integrations. For Recurly's In-the-Box tax
|
22138
|
-
offering you can also choose to instead use simple values of `unknown`,
|
22139
|
-
`physical`, or `digital` tax codes.
|
22140
|
-
tax_exempt:
|
22141
|
-
type: boolean
|
22142
|
-
title: Tax exempt?
|
22143
|
-
description: "`true` exempts tax on the plan, `false` applies tax on the
|
22144
|
-
plan."
|
22145
|
-
vertex_transaction_type:
|
22146
|
-
type: string
|
22147
|
-
title: Vertex Transaction Type
|
22148
|
-
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
22149
|
-
`rental`, `lease`.
|
22150
|
-
currencies:
|
22151
|
-
type: array
|
22152
|
-
title: Pricing
|
22153
|
-
description: Optional when the pricing model is 'ramp'.
|
22154
|
-
items:
|
22155
|
-
"$ref": "#/components/schemas/PlanPricing"
|
22156
|
-
minItems: 1
|
22157
|
-
hosted_pages:
|
22158
|
-
type: object
|
22159
|
-
title: Hosted pages settings
|
22160
|
-
"$ref": "#/components/schemas/PlanHostedPages"
|
22161
|
-
allow_any_item_on_subscriptions:
|
22162
|
-
type: boolean
|
22163
|
-
title: Allow any item on subscriptions
|
22164
|
-
description: |
|
22165
|
-
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
22166
|
-
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
22167
|
-
If `false`, only plan add-ons can be used.
|
22168
|
-
dunning_campaign_id:
|
22169
|
-
type: string
|
22170
|
-
title: Dunning Campaign ID
|
22171
|
-
description: Unique ID to identify a dunning campaign. Used to specify if
|
22172
|
-
a non-default dunning campaign should be assigned to this plan. For sites
|
22173
|
-
without multiple dunning campaigns enabled, the default dunning campaign
|
22174
|
-
will always be used.
|
21972
|
+
allOf:
|
21973
|
+
- type: object
|
21974
|
+
properties:
|
21975
|
+
id:
|
21976
|
+
type: string
|
21977
|
+
title: Plan ID
|
21978
|
+
description: This field has no effect on the request/response.
|
21979
|
+
maxLength: 13
|
21980
|
+
readOnly: true
|
21981
|
+
deprecated: true
|
21982
|
+
code:
|
21983
|
+
"$ref": "#/components/schemas/PlanCode"
|
21984
|
+
name:
|
21985
|
+
"$ref": "#/components/schemas/PlanName"
|
21986
|
+
currencies:
|
21987
|
+
title: Pricing
|
21988
|
+
description: Required only when `pricing_model` is `'fixed'`.
|
21989
|
+
type: array
|
21990
|
+
items:
|
21991
|
+
"$ref": "#/components/schemas/PlanPricing"
|
21992
|
+
minItems: 1
|
21993
|
+
ramp_intervals:
|
21994
|
+
type: array
|
21995
|
+
title: Ramp Intervals
|
21996
|
+
items:
|
21997
|
+
"$ref": "#/components/schemas/PlanRampInterval"
|
21998
|
+
setup_fees:
|
21999
|
+
type: array
|
22000
|
+
title: Setup Fees
|
22001
|
+
items:
|
22002
|
+
"$ref": "#/components/schemas/PlanSetupPricingCreate"
|
22003
|
+
- "$ref": "#/components/schemas/PlanCommon"
|
22175
22004
|
AddOnPricing:
|
22176
22005
|
type: object
|
22177
22006
|
properties:
|
@@ -22234,17 +22063,13 @@ components:
|
|
22234
22063
|
type: object
|
22235
22064
|
properties:
|
22236
22065
|
currency:
|
22237
|
-
|
22238
|
-
title: Currency
|
22239
|
-
description: 3-letter ISO 4217 currency code.
|
22240
|
-
maxLength: 3
|
22066
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
22241
22067
|
unit_amount:
|
22242
|
-
|
22243
|
-
|
22244
|
-
title: Unit price
|
22068
|
+
"$ref": "#/components/schemas/UnitAmount"
|
22069
|
+
title: Unit Price
|
22245
22070
|
description: Represents the price for the Ramp Interval.
|
22246
|
-
|
22247
|
-
|
22071
|
+
price_segment_id:
|
22072
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
22248
22073
|
required:
|
22249
22074
|
- currency
|
22250
22075
|
- unit_amount
|
@@ -22252,25 +22077,29 @@ components:
|
|
22252
22077
|
type: object
|
22253
22078
|
properties:
|
22254
22079
|
currency:
|
22255
|
-
|
22256
|
-
title: Currency
|
22257
|
-
description: 3-letter ISO 4217 currency code.
|
22258
|
-
maxLength: 3
|
22080
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
22259
22081
|
unit_amount:
|
22260
|
-
|
22261
|
-
format: float
|
22262
|
-
title: Unit price
|
22263
|
-
minimum: 0
|
22264
|
-
maximum: 1000000
|
22082
|
+
"$ref": "#/components/schemas/UnitAmount"
|
22265
22083
|
tax_inclusive:
|
22266
|
-
|
22267
|
-
title: Tax Inclusive?
|
22268
|
-
default: false
|
22269
|
-
description: This field is deprecated. Please do not use it.
|
22270
|
-
deprecated: true
|
22084
|
+
"$ref": "#/components/schemas/TaxInclusive"
|
22271
22085
|
required:
|
22272
22086
|
- currency
|
22273
22087
|
- unit_amount
|
22088
|
+
PriceSegmentId:
|
22089
|
+
type: string
|
22090
|
+
description: The price segment ID, e.g. `e28zov4fw0v2`.
|
22091
|
+
maxLength: 50
|
22092
|
+
PriceSegmentCode:
|
22093
|
+
type: string
|
22094
|
+
description: The price segment code, e.g. `my-price-segment`.
|
22095
|
+
maxLength: 50
|
22096
|
+
pattern: "/^[a-z0-9_+-]+$/"
|
22097
|
+
PriceSegmentIdOrCode:
|
22098
|
+
type: string
|
22099
|
+
description: The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`.
|
22100
|
+
For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
|
22101
|
+
maxLength: 55
|
22102
|
+
pattern: "/^[a-z0-9_+-]+$/"
|
22274
22103
|
Tier:
|
22275
22104
|
type: object
|
22276
22105
|
properties:
|
@@ -23045,6 +22874,8 @@ components:
|
|
23045
22874
|
description: Only for merchants using Recurly's In-The-Box taxes.
|
23046
22875
|
tax_info:
|
23047
22876
|
"$ref": "#/components/schemas/TaxInfo"
|
22877
|
+
price_segment_id:
|
22878
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
23048
22879
|
total:
|
23049
22880
|
type: number
|
23050
22881
|
format: float
|
@@ -23600,6 +23431,8 @@ components:
|
|
23600
23431
|
when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
|
23601
23432
|
and `business_entity_code` are present, `business_entity_id` will be used.
|
23602
23433
|
Only allowed if the `timeframe` is not `now`.
|
23434
|
+
price_segment_id:
|
23435
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
23603
23436
|
unit_amount:
|
23604
23437
|
type: number
|
23605
23438
|
format: float
|
@@ -23768,6 +23601,8 @@ components:
|
|
23768
23601
|
and `business_entity_code` are present, `business_entity_id` will be used.
|
23769
23602
|
account:
|
23770
23603
|
"$ref": "#/components/schemas/AccountCreate"
|
23604
|
+
price_segment_id:
|
23605
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
23771
23606
|
billing_info_id:
|
23772
23607
|
type: string
|
23773
23608
|
title: Billing Info ID
|
@@ -23975,6 +23810,8 @@ components:
|
|
23975
23810
|
the subscription plan for the provided currency.
|
23976
23811
|
minimum: 0
|
23977
23812
|
maximum: 1000000
|
23813
|
+
price_segment_id:
|
23814
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
23978
23815
|
tax_inclusive:
|
23979
23816
|
type: boolean
|
23980
23817
|
title: Tax Inclusive?
|
@@ -24115,6 +23952,8 @@ components:
|
|
24115
23952
|
description: For manual invoicing, this identifies the PO number associated
|
24116
23953
|
with the subscription.
|
24117
23954
|
maxLength: 50
|
23955
|
+
price_segment_id:
|
23956
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
24118
23957
|
net_terms:
|
24119
23958
|
type: integer
|
24120
23959
|
title: Terms that the subscription is due on
|
@@ -24218,6 +24057,11 @@ components:
|
|
24218
24057
|
format: float
|
24219
24058
|
title: Assigns the subscription's shipping cost. If this is greater than
|
24220
24059
|
zero then a `method_id` or `method_code` is required.
|
24060
|
+
expected_first_delivery_at:
|
24061
|
+
type: string
|
24062
|
+
format: date-time
|
24063
|
+
title: Expected first delivery date
|
24064
|
+
description: The expected date of the first delivery for the subscription.
|
24221
24065
|
SubscriptionShippingUpdate:
|
24222
24066
|
type: object
|
24223
24067
|
title: Subscription shipping details
|
@@ -24256,6 +24100,11 @@ components:
|
|
24256
24100
|
format: float
|
24257
24101
|
title: Assigns the subscription's shipping cost. If this is greater than
|
24258
24102
|
zero then a `method_id` or `method_code` is required.
|
24103
|
+
expected_first_delivery_at:
|
24104
|
+
type: string
|
24105
|
+
format: date-time
|
24106
|
+
title: Expected first delivery date
|
24107
|
+
description: The expected date of the first delivery for the subscription.
|
24259
24108
|
SubscriptionRampInterval:
|
24260
24109
|
type: object
|
24261
24110
|
title: Subscription Ramp Interval
|
@@ -24291,6 +24140,12 @@ components:
|
|
24291
24140
|
format: float
|
24292
24141
|
title: Unit price
|
24293
24142
|
description: Represents the price for the ramp interval.
|
24143
|
+
TaxInclusive:
|
24144
|
+
type: boolean
|
24145
|
+
title: Tax Inclusive?
|
24146
|
+
default: false
|
24147
|
+
description: This field is deprecated. Please do not use it.
|
24148
|
+
deprecated: true
|
24294
24149
|
TaxInfo:
|
24295
24150
|
type: object
|
24296
24151
|
title: Tax info
|
@@ -24716,6 +24571,11 @@ components:
|
|
24716
24571
|
title: Begin time query parameter
|
24717
24572
|
description: The date-time to be included when listing UniqueCouponCodes
|
24718
24573
|
format: date-time
|
24574
|
+
UnitAmount:
|
24575
|
+
type: number
|
24576
|
+
format: float
|
24577
|
+
minimum: 0
|
24578
|
+
maximum: 1000000
|
24719
24579
|
Usage:
|
24720
24580
|
type: object
|
24721
24581
|
properties:
|
@@ -25134,6 +24994,7 @@ components:
|
|
25134
24994
|
format: date-time
|
25135
24995
|
description: When the current settings were updated in Recurly.
|
25136
24996
|
DunningInterval:
|
24997
|
+
type: object
|
25137
24998
|
properties:
|
25138
24999
|
days:
|
25139
25000
|
type: integer
|
@@ -25158,6 +25019,7 @@ components:
|
|
25158
25019
|
items:
|
25159
25020
|
type: string
|
25160
25021
|
DunningCampaignsBulkUpdateResponse:
|
25022
|
+
type: object
|
25161
25023
|
properties:
|
25162
25024
|
object:
|
25163
25025
|
type: string
|
@@ -26011,6 +25873,7 @@ components:
|
|
26011
25873
|
format: date-time
|
26012
25874
|
description: When the invoice template was updated in Recurly.
|
26013
25875
|
PaymentMethod:
|
25876
|
+
type: object
|
26014
25877
|
properties:
|
26015
25878
|
object:
|
26016
25879
|
"$ref": "#/components/schemas/PaymentMethodEnum"
|
@@ -27161,6 +27024,7 @@ components:
|
|
27161
27024
|
- amazon
|
27162
27025
|
- amazon_billing_agreement
|
27163
27026
|
- apple_pay
|
27027
|
+
- apple_pay_merchant_token
|
27164
27028
|
- bank_account_info
|
27165
27029
|
- braintree_apple_pay
|
27166
27030
|
- check
|