recurly 4.65.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 +11 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +55 -14
- 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_update.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 +388 -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:
|
@@ -19793,6 +19898,11 @@ components:
|
|
19793
19898
|
are removed from the accouts or subscriptions, will be hard deleted an
|
19794
19899
|
no longer visible.
|
19795
19900
|
readOnly: true
|
19901
|
+
CurrencyCode:
|
19902
|
+
type: string
|
19903
|
+
title: Currency
|
19904
|
+
description: 3-letter ISO 4217 currency code.
|
19905
|
+
maxLength: 3
|
19796
19906
|
GeneralLedgerAccountId:
|
19797
19907
|
type: string
|
19798
19908
|
title: General Ledger Account ID
|
@@ -21501,6 +21611,25 @@ components:
|
|
21501
21611
|
type: string
|
21502
21612
|
title: Reference Type
|
21503
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
|
21504
21633
|
PlanMini:
|
21505
21634
|
type: object
|
21506
21635
|
title: Plan mini details
|
@@ -21516,64 +21645,48 @@ components:
|
|
21516
21645
|
title: Object type
|
21517
21646
|
readOnly: true
|
21518
21647
|
code:
|
21519
|
-
|
21520
|
-
title: Plan code
|
21521
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21522
|
-
Page URLs and in the invoice exports.
|
21523
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21524
|
-
maxLength: 50
|
21648
|
+
"$ref": "#/components/schemas/PlanCode"
|
21525
21649
|
name:
|
21526
|
-
|
21527
|
-
|
21528
|
-
description: This name describes your plan and will appear on the Hosted
|
21529
|
-
Payment Page and the subscriber's invoice.
|
21530
|
-
maxLength: 255
|
21531
|
-
Plan:
|
21650
|
+
"$ref": "#/components/schemas/PlanName"
|
21651
|
+
PlanCommon:
|
21532
21652
|
type: object
|
21533
|
-
description: Full plan details.
|
21534
21653
|
properties:
|
21535
|
-
id:
|
21536
|
-
type: string
|
21537
|
-
title: Plan ID
|
21538
|
-
maxLength: 13
|
21539
|
-
readOnly: true
|
21540
|
-
object:
|
21541
|
-
type: string
|
21542
|
-
title: Object type
|
21543
|
-
readOnly: true
|
21544
|
-
code:
|
21545
|
-
type: string
|
21546
|
-
title: Plan code
|
21547
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21548
|
-
Page URLs and in the invoice exports.
|
21549
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21550
|
-
maxLength: 50
|
21551
|
-
state:
|
21552
|
-
title: State
|
21553
|
-
description: The current state of the plan.
|
21554
|
-
readOnly: true
|
21555
|
-
"$ref": "#/components/schemas/ActiveStateEnum"
|
21556
|
-
name:
|
21557
|
-
type: string
|
21558
|
-
title: Name
|
21559
|
-
description: This name describes your plan and will appear on the Hosted
|
21560
|
-
Payment Page and the subscriber's invoice.
|
21561
|
-
maxLength: 255
|
21562
21654
|
description:
|
21563
21655
|
type: string
|
21564
21656
|
title: Description
|
21565
21657
|
description: Optional description, not displayed.
|
21566
|
-
|
21567
|
-
|
21568
|
-
|
21569
|
-
|
21570
|
-
|
21571
|
-
|
21572
|
-
|
21573
|
-
|
21574
|
-
|
21575
|
-
|
21576
|
-
|
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"
|
21577
21690
|
trial_unit:
|
21578
21691
|
title: Trial unit
|
21579
21692
|
description: Units for the plan's trial period.
|
@@ -21609,36 +21722,8 @@ components:
|
|
21609
21722
|
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
21610
21723
|
will expire at the end of its term. `auto_renew` can be overridden on
|
21611
21724
|
the subscription record itself.
|
21612
|
-
pricing_model:
|
21613
|
-
title: Pricing Model
|
21614
|
-
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21615
|
-
ramp_intervals:
|
21616
|
-
type: array
|
21617
|
-
title: Ramp Intervals
|
21618
|
-
items:
|
21619
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
21620
21725
|
custom_fields:
|
21621
21726
|
"$ref": "#/components/schemas/CustomFields"
|
21622
|
-
revenue_schedule_type:
|
21623
|
-
title: Revenue schedule type
|
21624
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21625
|
-
setup_fee_revenue_schedule_type:
|
21626
|
-
title: Setup fee revenue schedule type
|
21627
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21628
|
-
accounting_code:
|
21629
|
-
type: string
|
21630
|
-
title: Plan accounting code
|
21631
|
-
description: Accounting code for invoice line items for the plan. If no
|
21632
|
-
value is provided, it defaults to plan's code.
|
21633
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21634
|
-
maxLength: 20
|
21635
|
-
setup_fee_accounting_code:
|
21636
|
-
type: string
|
21637
|
-
title: Setup fee accounting code
|
21638
|
-
description: Accounting code for invoice line items for the plan's setup
|
21639
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
21640
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21641
|
-
maxLength: 20
|
21642
21727
|
avalara_transaction_type:
|
21643
21728
|
type: integer
|
21644
21729
|
title: Avalara Transaction Type
|
@@ -21674,12 +21759,6 @@ components:
|
|
21674
21759
|
title: Vertex Transaction Type
|
21675
21760
|
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
21676
21761
|
`rental`, `lease`.
|
21677
|
-
currencies:
|
21678
|
-
type: array
|
21679
|
-
title: Pricing
|
21680
|
-
items:
|
21681
|
-
"$ref": "#/components/schemas/PlanPricing"
|
21682
|
-
minItems: 1
|
21683
21762
|
hosted_pages:
|
21684
21763
|
type: object
|
21685
21764
|
title: Hosted pages settings
|
@@ -21698,244 +21777,117 @@ components:
|
|
21698
21777
|
a non-default dunning campaign should be assigned to this plan. For sites
|
21699
21778
|
without multiple dunning campaigns enabled, the default dunning campaign
|
21700
21779
|
will always be used.
|
21701
|
-
|
21702
|
-
|
21703
|
-
|
21704
|
-
|
21705
|
-
|
21706
|
-
|
21707
|
-
|
21708
|
-
|
21709
|
-
|
21710
|
-
|
21711
|
-
|
21712
|
-
|
21713
|
-
|
21714
|
-
|
21715
|
-
|
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"
|
21716
21823
|
required:
|
21717
21824
|
- code
|
21718
21825
|
- name
|
21719
|
-
|
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:
|
21720
21884
|
type: object
|
21721
21885
|
properties:
|
21722
|
-
|
21723
|
-
type: string
|
21724
|
-
title: Plan code
|
21725
|
-
description: Unique code to identify the plan. This is used in Hosted Payment
|
21726
|
-
Page URLs and in the invoice exports.
|
21727
|
-
pattern: "/^[a-z0-9_+-]+$/i"
|
21728
|
-
maxLength: 50
|
21729
|
-
name:
|
21730
|
-
type: string
|
21731
|
-
title: Name
|
21732
|
-
description: This name describes your plan and will appear on the Hosted
|
21733
|
-
Payment Page and the subscriber's invoice.
|
21734
|
-
maxLength: 255
|
21735
|
-
description:
|
21886
|
+
success_url:
|
21736
21887
|
type: string
|
21737
|
-
title:
|
21738
|
-
description:
|
21739
|
-
|
21740
|
-
type: string
|
21741
|
-
title: Plan accounting code
|
21742
|
-
description: Accounting code for invoice line items for the plan. If no
|
21743
|
-
value is provided, it defaults to plan's code.
|
21744
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21745
|
-
maxLength: 20
|
21746
|
-
interval_unit:
|
21747
|
-
title: Interval unit
|
21748
|
-
description: Unit for the plan's billing interval.
|
21749
|
-
default: months
|
21750
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21751
|
-
interval_length:
|
21752
|
-
type: integer
|
21753
|
-
title: Interval length
|
21754
|
-
description: Length of the plan's billing interval in `interval_unit`.
|
21755
|
-
default: 1
|
21756
|
-
minimum: 1
|
21757
|
-
trial_unit:
|
21758
|
-
title: Trial unit
|
21759
|
-
description: Units for the plan's trial period.
|
21760
|
-
default: months
|
21761
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
21762
|
-
trial_length:
|
21763
|
-
type: integer
|
21764
|
-
title: Trial length
|
21765
|
-
description: Length of plan's trial period in `trial_units`. `0` means `no
|
21766
|
-
trial`.
|
21767
|
-
default: 0
|
21768
|
-
minimum: 0
|
21769
|
-
trial_requires_billing_info:
|
21770
|
-
type: boolean
|
21771
|
-
title: Trial Requires BillingInfo
|
21772
|
-
description: Allow free trial subscriptions to be created without billing
|
21773
|
-
info. Should not be used if billing info is needed for initial invoice
|
21774
|
-
due to existing uninvoiced charges or setup fee.
|
21775
|
-
default: true
|
21776
|
-
total_billing_cycles:
|
21777
|
-
type: integer
|
21778
|
-
title: Total billing cycles
|
21779
|
-
description: Automatically terminate plans after a defined number of billing
|
21780
|
-
cycles.
|
21781
|
-
minimum: 0
|
21782
|
-
auto_renew:
|
21783
|
-
type: boolean
|
21784
|
-
title: Auto renew
|
21785
|
-
default: true
|
21786
|
-
description: Subscriptions will automatically inherit this value once they
|
21787
|
-
are active. If `auto_renew` is `true`, then a subscription will automatically
|
21788
|
-
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
21789
|
-
will expire at the end of its term. `auto_renew` can be overridden on
|
21790
|
-
the subscription record itself.
|
21791
|
-
pricing_model:
|
21792
|
-
title: Pricing Model
|
21793
|
-
"$ref": "#/components/schemas/PricingModelTypeEnum"
|
21794
|
-
ramp_intervals:
|
21795
|
-
type: array
|
21796
|
-
title: Ramp Intervals
|
21797
|
-
items:
|
21798
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
21799
|
-
custom_fields:
|
21800
|
-
"$ref": "#/components/schemas/CustomFields"
|
21801
|
-
revenue_schedule_type:
|
21802
|
-
title: Revenue schedule type
|
21803
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21804
|
-
liability_gl_account_id:
|
21805
|
-
type: string
|
21806
|
-
title: General Ledger Account ID
|
21807
|
-
description: |
|
21808
|
-
The ID of a general ledger account. General ledger accounts are
|
21809
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21810
|
-
Recurly RevRec Advanced features.
|
21811
|
-
maxLength: 13
|
21812
|
-
revenue_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
|
-
performance_obligation_id:
|
21821
|
-
type: string
|
21822
|
-
title: Performance Obligation ID
|
21823
|
-
description: |
|
21824
|
-
The ID of a performance obligation. Performance obligations are
|
21825
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21826
|
-
Recurly RevRec Advanced features.
|
21827
|
-
maxLength: 13
|
21828
|
-
setup_fee_liability_gl_account_id:
|
21829
|
-
type: string
|
21830
|
-
title: General Ledger Account ID
|
21831
|
-
description: |
|
21832
|
-
The ID of a general ledger account. General ledger accounts 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_gl_account_id:
|
21837
|
-
type: string
|
21838
|
-
title: General Ledger Account ID
|
21839
|
-
description: |
|
21840
|
-
The ID of a general ledger account. General ledger accounts are
|
21841
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21842
|
-
Recurly RevRec Advanced features.
|
21843
|
-
maxLength: 13
|
21844
|
-
setup_fee_performance_obligation_id:
|
21845
|
-
type: string
|
21846
|
-
title: Performance Obligation ID
|
21847
|
-
description: |
|
21848
|
-
The ID of a performance obligation. Performance obligations are
|
21849
|
-
only accessible as a part of the Recurly RevRec Standard and
|
21850
|
-
Recurly RevRec Advanced features.
|
21851
|
-
maxLength: 13
|
21852
|
-
setup_fee_revenue_schedule_type:
|
21853
|
-
title: Setup fee revenue schedule type
|
21854
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
21855
|
-
setup_fee_accounting_code:
|
21856
|
-
type: string
|
21857
|
-
title: Setup fee accounting code
|
21858
|
-
description: Accounting code for invoice line items for the plan's setup
|
21859
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
21860
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
21861
|
-
maxLength: 20
|
21862
|
-
avalara_transaction_type:
|
21863
|
-
type: integer
|
21864
|
-
title: Avalara Transaction Type
|
21865
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
21866
|
-
in combination with the service type describe how the plan is taxed. Refer
|
21867
|
-
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)
|
21868
|
-
for more available t/s types.
|
21869
|
-
minimum: 0
|
21870
|
-
avalara_service_type:
|
21871
|
-
type: integer
|
21872
|
-
title: Avalara Service Type
|
21873
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
21874
|
-
in combination with the service type describe how the plan is taxed. Refer
|
21875
|
-
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)
|
21876
|
-
for more available t/s types.
|
21877
|
-
minimum: 0
|
21878
|
-
tax_code:
|
21879
|
-
type: string
|
21880
|
-
maxLength: 50
|
21881
|
-
title: Tax code
|
21882
|
-
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
|
21883
|
-
tax solution to determine taxation rules. You can pass in specific tax
|
21884
|
-
codes using any of these tax integrations. For Recurly's In-the-Box tax
|
21885
|
-
offering you can also choose to instead use simple values of `unknown`,
|
21886
|
-
`physical`, or `digital` tax codes.
|
21887
|
-
tax_exempt:
|
21888
|
-
type: boolean
|
21889
|
-
title: Tax exempt?
|
21890
|
-
description: "`true` exempts tax on the plan, `false` applies tax on the
|
21891
|
-
plan."
|
21892
|
-
vertex_transaction_type:
|
21893
|
-
type: string
|
21894
|
-
title: Vertex Transaction Type
|
21895
|
-
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
21896
|
-
`rental`, `lease`.
|
21897
|
-
currencies:
|
21898
|
-
type: array
|
21899
|
-
title: Pricing
|
21900
|
-
items:
|
21901
|
-
"$ref": "#/components/schemas/PlanPricing"
|
21902
|
-
minItems: 1
|
21903
|
-
hosted_pages:
|
21904
|
-
type: object
|
21905
|
-
title: Hosted pages settings
|
21906
|
-
"$ref": "#/components/schemas/PlanHostedPages"
|
21907
|
-
add_ons:
|
21908
|
-
type: array
|
21909
|
-
title: Add Ons
|
21910
|
-
items:
|
21911
|
-
"$ref": "#/components/schemas/AddOnCreate"
|
21912
|
-
allow_any_item_on_subscriptions:
|
21913
|
-
type: boolean
|
21914
|
-
title: Allow any item on subscriptions
|
21915
|
-
default: false
|
21916
|
-
description: |
|
21917
|
-
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
21918
|
-
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
21919
|
-
If `false`, only plan add-ons can be used.
|
21920
|
-
dunning_campaign_id:
|
21921
|
-
type: string
|
21922
|
-
title: Dunning Campaign ID
|
21923
|
-
description: Unique ID to identify a dunning campaign. Used to specify if
|
21924
|
-
a non-default dunning campaign should be assigned to this plan. For sites
|
21925
|
-
without multiple dunning campaigns enabled, the default dunning campaign
|
21926
|
-
will always be used.
|
21927
|
-
required:
|
21928
|
-
- code
|
21929
|
-
- name
|
21930
|
-
- currencies
|
21931
|
-
PlanHostedPages:
|
21932
|
-
type: object
|
21933
|
-
properties:
|
21934
|
-
success_url:
|
21935
|
-
type: string
|
21936
|
-
title: Success redirect URL
|
21937
|
-
description: URL to redirect to after signup on the hosted payment pages.
|
21938
|
-
cancel_url:
|
21888
|
+
title: Success redirect URL
|
21889
|
+
description: URL to redirect to after signup on the hosted payment pages.
|
21890
|
+
cancel_url:
|
21939
21891
|
type: string
|
21940
21892
|
title: Cancel redirect URL (deprecated)
|
21941
21893
|
description: URL to redirect to on canceled signup on the hosted payment
|
@@ -21954,33 +21906,54 @@ components:
|
|
21954
21906
|
type: object
|
21955
21907
|
properties:
|
21956
21908
|
currency:
|
21957
|
-
|
21958
|
-
title: Currency
|
21959
|
-
description: 3-letter ISO 4217 currency code.
|
21960
|
-
maxLength: 3
|
21909
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
21961
21910
|
setup_fee:
|
21962
|
-
|
21963
|
-
|
21964
|
-
|
21965
|
-
|
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
|
21966
21915
|
of a subscription billing cycle. For subscription plans with a trial,
|
21967
21916
|
the setup fee will be charged at the time of signup. Setup fees do not
|
21968
21917
|
increase with the quantity of a subscription plan.
|
21969
|
-
|
21970
|
-
maximum: 1000000
|
21918
|
+
deprecated: true
|
21971
21919
|
unit_amount:
|
21972
|
-
|
21973
|
-
|
21974
|
-
|
21975
|
-
|
21976
|
-
|
21977
|
-
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"
|
21978
21925
|
tax_inclusive:
|
21979
|
-
|
21980
|
-
|
21981
|
-
|
21982
|
-
|
21983
|
-
|
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.
|
21984
21957
|
PlanRampInterval:
|
21985
21958
|
type: object
|
21986
21959
|
title: Plan Ramp Interval
|
@@ -21996,198 +21969,38 @@ components:
|
|
21996
21969
|
"$ref": "#/components/schemas/PlanRampPricing"
|
21997
21970
|
PlanUpdate:
|
21998
21971
|
type: object
|
21999
|
-
|
22000
|
-
|
22001
|
-
|
22002
|
-
|
22003
|
-
|
22004
|
-
|
22005
|
-
|
22006
|
-
|
22007
|
-
|
22008
|
-
|
22009
|
-
|
22010
|
-
|
22011
|
-
|
22012
|
-
|
22013
|
-
|
22014
|
-
|
22015
|
-
|
22016
|
-
|
22017
|
-
|
22018
|
-
|
22019
|
-
|
22020
|
-
|
22021
|
-
|
22022
|
-
|
22023
|
-
|
22024
|
-
|
22025
|
-
|
22026
|
-
|
22027
|
-
|
22028
|
-
|
22029
|
-
|
22030
|
-
|
22031
|
-
description: Units for the plan's trial period.
|
22032
|
-
default: months
|
22033
|
-
"$ref": "#/components/schemas/IntervalUnitEnum"
|
22034
|
-
trial_length:
|
22035
|
-
type: integer
|
22036
|
-
title: Trial length
|
22037
|
-
description: Length of plan's trial period in `trial_units`. `0` means `no
|
22038
|
-
trial`.
|
22039
|
-
default: 0
|
22040
|
-
minimum: 0
|
22041
|
-
trial_requires_billing_info:
|
22042
|
-
type: boolean
|
22043
|
-
title: Trial Requires BillingInfo
|
22044
|
-
description: Allow free trial subscriptions to be created without billing
|
22045
|
-
info. Should not be used if billing info is needed for initial invoice
|
22046
|
-
due to existing uninvoiced charges or setup fee.
|
22047
|
-
default: true
|
22048
|
-
total_billing_cycles:
|
22049
|
-
type: integer
|
22050
|
-
title: Total billing cycles
|
22051
|
-
description: Automatically terminate plans after a defined number of billing
|
22052
|
-
cycles.
|
22053
|
-
minimum: 0
|
22054
|
-
auto_renew:
|
22055
|
-
type: boolean
|
22056
|
-
title: Auto renew
|
22057
|
-
default: true
|
22058
|
-
description: Subscriptions will automatically inherit this value once they
|
22059
|
-
are active. If `auto_renew` is `true`, then a subscription will automatically
|
22060
|
-
renew its term at renewal. If `auto_renew` is `false`, then a subscription
|
22061
|
-
will expire at the end of its term. `auto_renew` can be overridden on
|
22062
|
-
the subscription record itself.
|
22063
|
-
ramp_intervals:
|
22064
|
-
type: array
|
22065
|
-
title: Ramp Intervals
|
22066
|
-
items:
|
22067
|
-
"$ref": "#/components/schemas/PlanRampInterval"
|
22068
|
-
custom_fields:
|
22069
|
-
"$ref": "#/components/schemas/CustomFields"
|
22070
|
-
revenue_schedule_type:
|
22071
|
-
title: Revenue schedule type
|
22072
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
22073
|
-
liability_gl_account_id:
|
22074
|
-
type: string
|
22075
|
-
title: General Ledger Account ID
|
22076
|
-
description: |
|
22077
|
-
The ID of a general ledger account. General ledger accounts are
|
22078
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22079
|
-
Recurly RevRec Advanced features.
|
22080
|
-
maxLength: 13
|
22081
|
-
revenue_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
|
-
performance_obligation_id:
|
22090
|
-
type: string
|
22091
|
-
title: Performance Obligation ID
|
22092
|
-
description: |
|
22093
|
-
The ID of a performance obligation. Performance obligations are
|
22094
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22095
|
-
Recurly RevRec Advanced features.
|
22096
|
-
maxLength: 13
|
22097
|
-
setup_fee_liability_gl_account_id:
|
22098
|
-
type: string
|
22099
|
-
title: General Ledger Account ID
|
22100
|
-
description: |
|
22101
|
-
The ID of a general ledger account. General ledger accounts 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_gl_account_id:
|
22106
|
-
type: string
|
22107
|
-
title: General Ledger Account ID
|
22108
|
-
description: |
|
22109
|
-
The ID of a general ledger account. General ledger accounts are
|
22110
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22111
|
-
Recurly RevRec Advanced features.
|
22112
|
-
maxLength: 13
|
22113
|
-
setup_fee_performance_obligation_id:
|
22114
|
-
type: string
|
22115
|
-
title: Performance Obligation ID
|
22116
|
-
description: |
|
22117
|
-
The ID of a performance obligation. Performance obligations are
|
22118
|
-
only accessible as a part of the Recurly RevRec Standard and
|
22119
|
-
Recurly RevRec Advanced features.
|
22120
|
-
maxLength: 13
|
22121
|
-
setup_fee_revenue_schedule_type:
|
22122
|
-
title: Setup fee revenue schedule type
|
22123
|
-
"$ref": "#/components/schemas/RevenueScheduleTypeEnum"
|
22124
|
-
setup_fee_accounting_code:
|
22125
|
-
type: string
|
22126
|
-
title: Setup fee accounting code
|
22127
|
-
description: Accounting code for invoice line items for the plan's setup
|
22128
|
-
fee. If no value is provided, it defaults to plan's accounting code.
|
22129
|
-
pattern: "/^[a-z0-9_+-]+$/"
|
22130
|
-
maxLength: 20
|
22131
|
-
avalara_transaction_type:
|
22132
|
-
type: integer
|
22133
|
-
title: Avalara Transaction Type
|
22134
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
22135
|
-
in combination with the service type describe how the plan is taxed. Refer
|
22136
|
-
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)
|
22137
|
-
for more available t/s types.
|
22138
|
-
minimum: 0
|
22139
|
-
avalara_service_type:
|
22140
|
-
type: integer
|
22141
|
-
title: Avalara Service Type
|
22142
|
-
description: Used by Avalara for Communications taxes. The transaction type
|
22143
|
-
in combination with the service type describe how the plan is taxed. Refer
|
22144
|
-
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)
|
22145
|
-
for more available t/s types.
|
22146
|
-
minimum: 0
|
22147
|
-
tax_code:
|
22148
|
-
type: string
|
22149
|
-
maxLength: 50
|
22150
|
-
title: Tax code
|
22151
|
-
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
|
22152
|
-
tax solution to determine taxation rules. You can pass in specific tax
|
22153
|
-
codes using any of these tax integrations. For Recurly's In-the-Box tax
|
22154
|
-
offering you can also choose to instead use simple values of `unknown`,
|
22155
|
-
`physical`, or `digital` tax codes.
|
22156
|
-
tax_exempt:
|
22157
|
-
type: boolean
|
22158
|
-
title: Tax exempt?
|
22159
|
-
description: "`true` exempts tax on the plan, `false` applies tax on the
|
22160
|
-
plan."
|
22161
|
-
vertex_transaction_type:
|
22162
|
-
type: string
|
22163
|
-
title: Vertex Transaction Type
|
22164
|
-
description: Used by Vertex for tax calculations. Possible values are `sale`,
|
22165
|
-
`rental`, `lease`.
|
22166
|
-
currencies:
|
22167
|
-
type: array
|
22168
|
-
title: Pricing
|
22169
|
-
description: Optional when the pricing model is 'ramp'.
|
22170
|
-
items:
|
22171
|
-
"$ref": "#/components/schemas/PlanPricing"
|
22172
|
-
minItems: 1
|
22173
|
-
hosted_pages:
|
22174
|
-
type: object
|
22175
|
-
title: Hosted pages settings
|
22176
|
-
"$ref": "#/components/schemas/PlanHostedPages"
|
22177
|
-
allow_any_item_on_subscriptions:
|
22178
|
-
type: boolean
|
22179
|
-
title: Allow any item on subscriptions
|
22180
|
-
description: |
|
22181
|
-
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
22182
|
-
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
22183
|
-
If `false`, only plan add-ons can be used.
|
22184
|
-
dunning_campaign_id:
|
22185
|
-
type: string
|
22186
|
-
title: Dunning Campaign ID
|
22187
|
-
description: Unique ID to identify a dunning campaign. Used to specify if
|
22188
|
-
a non-default dunning campaign should be assigned to this plan. For sites
|
22189
|
-
without multiple dunning campaigns enabled, the default dunning campaign
|
22190
|
-
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"
|
22191
22004
|
AddOnPricing:
|
22192
22005
|
type: object
|
22193
22006
|
properties:
|
@@ -22250,17 +22063,13 @@ components:
|
|
22250
22063
|
type: object
|
22251
22064
|
properties:
|
22252
22065
|
currency:
|
22253
|
-
|
22254
|
-
title: Currency
|
22255
|
-
description: 3-letter ISO 4217 currency code.
|
22256
|
-
maxLength: 3
|
22066
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
22257
22067
|
unit_amount:
|
22258
|
-
|
22259
|
-
|
22260
|
-
title: Unit price
|
22068
|
+
"$ref": "#/components/schemas/UnitAmount"
|
22069
|
+
title: Unit Price
|
22261
22070
|
description: Represents the price for the Ramp Interval.
|
22262
|
-
|
22263
|
-
|
22071
|
+
price_segment_id:
|
22072
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
22264
22073
|
required:
|
22265
22074
|
- currency
|
22266
22075
|
- unit_amount
|
@@ -22268,25 +22077,29 @@ components:
|
|
22268
22077
|
type: object
|
22269
22078
|
properties:
|
22270
22079
|
currency:
|
22271
|
-
|
22272
|
-
title: Currency
|
22273
|
-
description: 3-letter ISO 4217 currency code.
|
22274
|
-
maxLength: 3
|
22080
|
+
"$ref": "#/components/schemas/CurrencyCode"
|
22275
22081
|
unit_amount:
|
22276
|
-
|
22277
|
-
format: float
|
22278
|
-
title: Unit price
|
22279
|
-
minimum: 0
|
22280
|
-
maximum: 1000000
|
22082
|
+
"$ref": "#/components/schemas/UnitAmount"
|
22281
22083
|
tax_inclusive:
|
22282
|
-
|
22283
|
-
title: Tax Inclusive?
|
22284
|
-
default: false
|
22285
|
-
description: This field is deprecated. Please do not use it.
|
22286
|
-
deprecated: true
|
22084
|
+
"$ref": "#/components/schemas/TaxInclusive"
|
22287
22085
|
required:
|
22288
22086
|
- currency
|
22289
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_+-]+$/"
|
22290
22103
|
Tier:
|
22291
22104
|
type: object
|
22292
22105
|
properties:
|
@@ -23061,6 +22874,8 @@ components:
|
|
23061
22874
|
description: Only for merchants using Recurly's In-The-Box taxes.
|
23062
22875
|
tax_info:
|
23063
22876
|
"$ref": "#/components/schemas/TaxInfo"
|
22877
|
+
price_segment_id:
|
22878
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
23064
22879
|
total:
|
23065
22880
|
type: number
|
23066
22881
|
format: float
|
@@ -23616,6 +23431,8 @@ components:
|
|
23616
23431
|
when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
|
23617
23432
|
and `business_entity_code` are present, `business_entity_id` will be used.
|
23618
23433
|
Only allowed if the `timeframe` is not `now`.
|
23434
|
+
price_segment_id:
|
23435
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
23619
23436
|
unit_amount:
|
23620
23437
|
type: number
|
23621
23438
|
format: float
|
@@ -23784,6 +23601,8 @@ components:
|
|
23784
23601
|
and `business_entity_code` are present, `business_entity_id` will be used.
|
23785
23602
|
account:
|
23786
23603
|
"$ref": "#/components/schemas/AccountCreate"
|
23604
|
+
price_segment_id:
|
23605
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
23787
23606
|
billing_info_id:
|
23788
23607
|
type: string
|
23789
23608
|
title: Billing Info ID
|
@@ -23991,6 +23810,8 @@ components:
|
|
23991
23810
|
the subscription plan for the provided currency.
|
23992
23811
|
minimum: 0
|
23993
23812
|
maximum: 1000000
|
23813
|
+
price_segment_id:
|
23814
|
+
"$ref": "#/components/schemas/PriceSegmentIdOrCode"
|
23994
23815
|
tax_inclusive:
|
23995
23816
|
type: boolean
|
23996
23817
|
title: Tax Inclusive?
|
@@ -24131,6 +23952,8 @@ components:
|
|
24131
23952
|
description: For manual invoicing, this identifies the PO number associated
|
24132
23953
|
with the subscription.
|
24133
23954
|
maxLength: 50
|
23955
|
+
price_segment_id:
|
23956
|
+
"$ref": "#/components/schemas/PriceSegmentId"
|
24134
23957
|
net_terms:
|
24135
23958
|
type: integer
|
24136
23959
|
title: Terms that the subscription is due on
|
@@ -24317,6 +24140,12 @@ components:
|
|
24317
24140
|
format: float
|
24318
24141
|
title: Unit price
|
24319
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
|
24320
24149
|
TaxInfo:
|
24321
24150
|
type: object
|
24322
24151
|
title: Tax info
|
@@ -24742,6 +24571,11 @@ components:
|
|
24742
24571
|
title: Begin time query parameter
|
24743
24572
|
description: The date-time to be included when listing UniqueCouponCodes
|
24744
24573
|
format: date-time
|
24574
|
+
UnitAmount:
|
24575
|
+
type: number
|
24576
|
+
format: float
|
24577
|
+
minimum: 0
|
24578
|
+
maximum: 1000000
|
24745
24579
|
Usage:
|
24746
24580
|
type: object
|
24747
24581
|
properties:
|