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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2eff66410b1aee2ef302ab1b35dbe355ef69e69d5c82ffb88e3e111b96ed589
4
- data.tar.gz: a481d2e74e67ad8fcaa78a938bbdaaf6e86e6519f99350fffd3e245f54270f10
3
+ metadata.gz: 77ba4ba0c1fdf8abde591f11cf95bd727ff60e279e806f66d6d5cb11462f2bdf
4
+ data.tar.gz: 29c17176e6dd1228a30716b0e92306ebd76ef87a41c40f1be38a82a60a6b1cfc
5
5
  SHA512:
6
- metadata.gz: 0a9d62924b675a5f8c417f3d2a5a622bbeb7bd6789781e8eb169b84c2ec6feb18f3068b388365626c6743b549af065a5b3c46b0004923d568766d5a667bf296c
7
- data.tar.gz: 14f3346e00aa13044267a72752f6b9e1e880cac5c97b9a8b4330ec9160474dbe10a97df35bc60c31fc9b91a7175921485742138d37f89352b7a8ef06e6881e12
6
+ metadata.gz: 22a4d56b96b2c7e635b504bd08574a4314c389d7154ff281aa346e62e705aea538f7b4700836b3048353fbfbc1884824d289e06e17a09ca57567165969929791
7
+ data.tar.gz: 437441e666c9dd8b0d03de3df2f11cb4da5332674c58f472867359899fc219211c8f70343ca40fd1eae606008db49b52b7b5da7afa31f2195d95729e84cc0b68
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.65.0
2
+ current_version = 4.66.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.66.0](https://github.com/recurly/recurly-client-ruby/tree/4.66.0) (2025-07-22)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.65.0...4.66.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 [#933](https://github.com/recurly/recurly-client-ruby/pull/933) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
3
14
  ## [4.65.0](https://github.com/recurly/recurly-client-ruby/tree/4.65.0) (2025-07-09)
4
15
 
5
16
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.64.0...4.65.0)
data/GETTING_STARTED.md CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
5
5
  In your Gemfile, add `recurly` as a dependency.
6
6
 
7
7
  ```ruby
8
- gem 'recurly', '~> 4.65'
8
+ gem 'recurly', '~> 4.66'
9
9
  ```
10
10
 
11
11
  > *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
@@ -2566,7 +2566,7 @@ module Recurly
2566
2566
  #
2567
2567
  # {https://developers.recurly.com/api/v2021-02-25#operation/get_invoice get_invoice api documentation}
2568
2568
  #
2569
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2569
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2570
2570
  # @param params [Hash] Optional query string parameters:
2571
2571
  #
2572
2572
  # @return [Resources::Invoice] An invoice.
@@ -2589,7 +2589,7 @@ module Recurly
2589
2589
  #
2590
2590
  # {https://developers.recurly.com/api/v2021-02-25#operation/update_invoice update_invoice api documentation}
2591
2591
  #
2592
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2592
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2593
2593
  # @param body [Requests::InvoiceUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::InvoiceUpdate}
2594
2594
  # @param params [Hash] Optional query string parameters:
2595
2595
  #
@@ -2617,7 +2617,7 @@ module Recurly
2617
2617
  #
2618
2618
  # {https://developers.recurly.com/api/v2021-02-25#operation/get_invoice_pdf get_invoice_pdf api documentation}
2619
2619
  #
2620
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2620
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2621
2621
  # @param params [Hash] Optional query string parameters:
2622
2622
  #
2623
2623
  # @return [Resources::BinaryFile] An invoice as a PDF.
@@ -2643,7 +2643,7 @@ module Recurly
2643
2643
  #
2644
2644
  # {https://developers.recurly.com/api/v2021-02-25#operation/apply_credit_balance apply_credit_balance api documentation}
2645
2645
  #
2646
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2646
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2647
2647
  # @param params [Hash] Optional query string parameters:
2648
2648
  # :site_id [String] Site ID or subdomain. For ID no prefix is used e.g. +e28zov4fw0v2+. For subdomain use prefix +subdomain-+, e.g. +subdomain-recurly+.
2649
2649
  #
@@ -2667,7 +2667,7 @@ module Recurly
2667
2667
  #
2668
2668
  # {https://developers.recurly.com/api/v2021-02-25#operation/collect_invoice collect_invoice api documentation}
2669
2669
  #
2670
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2670
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2671
2671
  # @param params [Hash] Optional query string parameters:
2672
2672
  # :body [Requests::InvoiceCollect] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::InvoiceCollect}
2673
2673
  #
@@ -2691,7 +2691,7 @@ module Recurly
2691
2691
  #
2692
2692
  # {https://developers.recurly.com/api/v2021-02-25#operation/mark_invoice_failed mark_invoice_failed api documentation}
2693
2693
  #
2694
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2694
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2695
2695
  # @param params [Hash] Optional query string parameters:
2696
2696
  #
2697
2697
  # @return [Resources::Invoice] The updated invoice.
@@ -2714,7 +2714,7 @@ module Recurly
2714
2714
  #
2715
2715
  # {https://developers.recurly.com/api/v2021-02-25#operation/mark_invoice_successful mark_invoice_successful api documentation}
2716
2716
  #
2717
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2717
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2718
2718
  # @param params [Hash] Optional query string parameters:
2719
2719
  #
2720
2720
  # @return [Resources::Invoice] The updated invoice.
@@ -2737,7 +2737,7 @@ module Recurly
2737
2737
  #
2738
2738
  # {https://developers.recurly.com/api/v2021-02-25#operation/reopen_invoice reopen_invoice api documentation}
2739
2739
  #
2740
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2740
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2741
2741
  # @param params [Hash] Optional query string parameters:
2742
2742
  #
2743
2743
  # @return [Resources::Invoice] The updated invoice.
@@ -2760,7 +2760,7 @@ module Recurly
2760
2760
  #
2761
2761
  # {https://developers.recurly.com/api/v2021-02-25#operation/void_invoice void_invoice api documentation}
2762
2762
  #
2763
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2763
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2764
2764
  # @param params [Hash] Optional query string parameters:
2765
2765
  #
2766
2766
  # @return [Resources::Invoice] The updated invoice.
@@ -2783,7 +2783,7 @@ module Recurly
2783
2783
  #
2784
2784
  # {https://developers.recurly.com/api/v2021-02-25#operation/record_external_transaction record_external_transaction api documentation}
2785
2785
  #
2786
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2786
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2787
2787
  # @param body [Requests::ExternalTransaction] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalTransaction}
2788
2788
  # @param params [Hash] Optional query string parameters:
2789
2789
  #
@@ -2798,7 +2798,7 @@ module Recurly
2798
2798
  #
2799
2799
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_invoice_line_items list_invoice_line_items api documentation}
2800
2800
  #
2801
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2801
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2802
2802
  # @param params [Hash] Optional query string parameters:
2803
2803
  # :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using
2804
2804
  # commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
@@ -2850,7 +2850,7 @@ module Recurly
2850
2850
  #
2851
2851
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_invoice_coupon_redemptions list_invoice_coupon_redemptions api documentation}
2852
2852
  #
2853
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2853
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2854
2854
  # @param params [Hash] Optional query string parameters:
2855
2855
  # :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using
2856
2856
  # commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
@@ -2897,7 +2897,7 @@ module Recurly
2897
2897
  #
2898
2898
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_related_invoices list_related_invoices api documentation}
2899
2899
  #
2900
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2900
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2901
2901
  # @param params [Hash] Optional query string parameters:
2902
2902
  #
2903
2903
  # @return [Pager<Resources::Invoice>] A list of the credit or charge invoices associated with the invoice.
@@ -2922,7 +2922,7 @@ module Recurly
2922
2922
  #
2923
2923
  # {https://developers.recurly.com/api/v2021-02-25#operation/refund_invoice refund_invoice api documentation}
2924
2924
  #
2925
- # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
2925
+ # @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+. For number with prefix or country code, use +number-+ and +prefix+, e.g. +number-TEST-FR1001+
2926
2926
  # @param body [Requests::InvoiceRefund] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::InvoiceRefund}
2927
2927
  # @param params [Hash] Optional query string parameters:
2928
2928
  #
@@ -3376,6 +3376,47 @@ module Recurly
3376
3376
  delete(path, **options)
3377
3377
  end
3378
3378
 
3379
+ # List a site's price segments
3380
+ #
3381
+ # {https://developers.recurly.com/api/v2021-02-25#operation/list_price_segments list_price_segments api documentation}
3382
+ #
3383
+ # @param params [Hash] Optional query string parameters:
3384
+ # :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using
3385
+ # commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
3386
+ #
3387
+ # *Important notes:*
3388
+ #
3389
+ # * The +ids+ parameter cannot be used with any other ordering or filtering
3390
+ # parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
3391
+ # * Invalid or unknown IDs will be ignored, so you should check that the
3392
+ # results correspond to your request.
3393
+ # * Records are returned in an arbitrary order. Since results are all
3394
+ # returned at once you can sort the records yourself.
3395
+ #
3396
+ # :limit [Integer] Limit number of records 1-200.
3397
+ # :order [String] Sort order.
3398
+ #
3399
+ # @return [Pager<Resources::PriceSegment>] A list of price segments.
3400
+ #
3401
+ def list_price_segments(**options)
3402
+ path = "/price_segments"
3403
+ pager(path, **options)
3404
+ end
3405
+
3406
+ # Fetch a price segment
3407
+ #
3408
+ # {https://developers.recurly.com/api/v2021-02-25#operation/get_price_segment get_price_segment api documentation}
3409
+ #
3410
+ # @param price_segment_id [String] The price segment ID or code. For ID no prefix is used e.g. +e28zov4fw0v2+. For code use prefix +code-+, e.g. +code-gold+.
3411
+ # @param params [Hash] Optional query string parameters:
3412
+ #
3413
+ # @return [Resources::PriceSegment] A price segment.
3414
+ #
3415
+ def get_price_segment(price_segment_id:, **options)
3416
+ path = interpolate_path("/price_segments/{price_segment_id}", price_segment_id: price_segment_id)
3417
+ get(path, **options)
3418
+ end
3419
+
3379
3420
  # List a site's add-ons
3380
3421
  #
3381
3422
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_add_ons list_add_ons api documentation}
@@ -35,7 +35,7 @@ module Recurly
35
35
  define_attribute :code, String
36
36
 
37
37
  # @!attribute currencies
38
- # @return [Array[PlanPricing]] Pricing
38
+ # @return [Array[PlanPricing]] Required only when `pricing_model` is `'fixed'`.
39
39
  define_attribute :currencies, Array, { :item_type => :PlanPricing }
40
40
 
41
41
  # @!attribute custom_fields
@@ -110,6 +110,10 @@ module Recurly
110
110
  # @return [String] Setup fee revenue schedule type
111
111
  define_attribute :setup_fee_revenue_schedule_type, String
112
112
 
113
+ # @!attribute setup_fees
114
+ # @return [Array[PlanSetupPricingCreate]] Setup Fees
115
+ define_attribute :setup_fees, Array, { :item_type => :PlanSetupPricingCreate }
116
+
113
117
  # @!attribute tax_code
114
118
  # @return [String] Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
115
119
  define_attribute :tax_code, String
@@ -119,7 +123,7 @@ module Recurly
119
123
  define_attribute :tax_exempt, :Boolean
120
124
 
121
125
  # @!attribute total_billing_cycles
122
- # @return [Integer] Automatically terminate plans after a defined number of billing cycles.
126
+ # @return [Integer] Automatically terminate subscriptions after a defined number of billing cycles. Number of billing cycles before the plan automatically stops renewing, defaults to `null` for continuous, automatic renewal.
123
127
  define_attribute :total_billing_cycles, Integer
124
128
 
125
129
  # @!attribute trial_length
@@ -10,8 +10,12 @@ module Recurly
10
10
  # @return [String] 3-letter ISO 4217 currency code.
11
11
  define_attribute :currency, String
12
12
 
13
+ # @!attribute price_segment_id
14
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
15
+ define_attribute :price_segment_id, String
16
+
13
17
  # @!attribute setup_fee
14
- # @return [Float] Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
18
+ # @return [Float] This field is deprecated, please use top level `setup_fees` instead. Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
15
19
  define_attribute :setup_fee, Float
16
20
 
17
21
  # @!attribute tax_inclusive
@@ -19,7 +23,7 @@ module Recurly
19
23
  define_attribute :tax_inclusive, :Boolean
20
24
 
21
25
  # @!attribute unit_amount
22
- # @return [Float] This field should not be sent when the pricing model is 'ramp'.
26
+ # @return [Float] This field should not be sent when the pricing model is `'ramp'`.
23
27
  define_attribute :unit_amount, Float
24
28
  end
25
29
  end
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [String] 3-letter ISO 4217 currency code.
11
11
  define_attribute :currency, String
12
12
 
13
+ # @!attribute price_segment_id
14
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
15
+ define_attribute :price_segment_id, String
16
+
13
17
  # @!attribute unit_amount
14
18
  # @return [Float] Represents the price for the Ramp Interval.
15
19
  define_attribute :unit_amount, Float
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Requests
7
+ class PlanSetupPricingCreate < Request
8
+
9
+ # @!attribute currency
10
+ # @return [String] 3-letter ISO 4217 currency code.
11
+ define_attribute :currency, String
12
+
13
+ # @!attribute unit_amount
14
+ # @return [Float] Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
15
+ define_attribute :unit_amount, Float
16
+ end
17
+ end
18
+ end
@@ -31,7 +31,7 @@ module Recurly
31
31
  define_attribute :code, String
32
32
 
33
33
  # @!attribute currencies
34
- # @return [Array[PlanPricing]] Optional when the pricing model is 'ramp'.
34
+ # @return [Array[PlanPricing]] Required only when `pricing_model` is `'fixed'`.
35
35
  define_attribute :currencies, Array, { :item_type => :PlanPricing }
36
36
 
37
37
  # @!attribute custom_fields
@@ -51,7 +51,7 @@ module Recurly
51
51
  define_attribute :hosted_pages, :PlanHostedPages
52
52
 
53
53
  # @!attribute id
54
- # @return [String] Plan ID
54
+ # @return [String] This field has no effect on the request/response.
55
55
  define_attribute :id, String
56
56
 
57
57
  # @!attribute liability_gl_account_id
@@ -98,6 +98,10 @@ module Recurly
98
98
  # @return [String] Setup fee revenue schedule type
99
99
  define_attribute :setup_fee_revenue_schedule_type, String
100
100
 
101
+ # @!attribute setup_fees
102
+ # @return [Array[PlanSetupPricingCreate]] Setup Fees
103
+ define_attribute :setup_fees, Array, { :item_type => :PlanSetupPricingCreate }
104
+
101
105
  # @!attribute tax_code
102
106
  # @return [String] Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
103
107
  define_attribute :tax_code, String
@@ -107,7 +111,7 @@ module Recurly
107
111
  define_attribute :tax_exempt, :Boolean
108
112
 
109
113
  # @!attribute total_billing_cycles
110
- # @return [Integer] Automatically terminate plans after a defined number of billing cycles.
114
+ # @return [Integer] Automatically terminate subscriptions after a defined number of billing cycles. Number of billing cycles before the plan automatically stops renewing, defaults to `null` for continuous, automatic renewal.
111
115
  define_attribute :total_billing_cycles, Integer
112
116
 
113
117
  # @!attribute trial_length
@@ -15,7 +15,7 @@ module Recurly
15
15
  define_attribute :tax_inclusive, :Boolean
16
16
 
17
17
  # @!attribute unit_amount
18
- # @return [Float] Unit price
18
+ # @return [Float]
19
19
  define_attribute :unit_amount, Float
20
20
  end
21
21
  end
@@ -54,6 +54,10 @@ module Recurly
54
54
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
55
55
  define_attribute :po_number, String
56
56
 
57
+ # @!attribute price_segment_id
58
+ # @return [String] The price segment ID, e.g. `e28zov4fw0v2`.
59
+ define_attribute :price_segment_id, String
60
+
57
61
  # @!attribute proration_settings
58
62
  # @return [ProrationSettings] Allows you to control how any resulting charges and credits will be calculated and prorated.
59
63
  define_attribute :proration_settings, :ProrationSettings
@@ -90,6 +90,10 @@ module Recurly
90
90
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
91
91
  define_attribute :po_number, String
92
92
 
93
+ # @!attribute price_segment_id
94
+ # @return [String] The price segment ID, e.g. `e28zov4fw0v2`.
95
+ define_attribute :price_segment_id, String
96
+
93
97
  # @!attribute quantity
94
98
  # @return [Integer] Optionally override the default quantity of 1.
95
99
  define_attribute :quantity, Integer
@@ -34,6 +34,10 @@ module Recurly
34
34
  # @return [String] Plan ID
35
35
  define_attribute :plan_id, String
36
36
 
37
+ # @!attribute price_segment_id
38
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
39
+ define_attribute :price_segment_id, String
40
+
37
41
  # @!attribute quantity
38
42
  # @return [Integer] Optionally override the default quantity of 1.
39
43
  define_attribute :quantity, Integer
@@ -46,6 +46,10 @@ module Recurly
46
46
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
47
47
  define_attribute :po_number, String
48
48
 
49
+ # @!attribute price_segment_id
50
+ # @return [String] The price segment ID, e.g. `e28zov4fw0v2`.
51
+ define_attribute :price_segment_id, String
52
+
49
53
  # @!attribute remaining_billing_cycles
50
54
  # @return [Integer] The remaining billing cycles in the current term.
51
55
  define_attribute :remaining_billing_cycles, Integer
@@ -35,7 +35,7 @@ module Recurly
35
35
  define_attribute :created_at, DateTime
36
36
 
37
37
  # @!attribute currencies
38
- # @return [Array[PlanPricing]] Pricing
38
+ # @return [Array[PlanPricing]] Present only when `pricing_model` is `'fixed'`.
39
39
  define_attribute :currencies, Array, { :item_type => :PlanPricing }
40
40
 
41
41
  # @!attribute custom_fields
@@ -70,6 +70,10 @@ module Recurly
70
70
  # @return [String] Unit for the plan's billing interval.
71
71
  define_attribute :interval_unit, String
72
72
 
73
+ # @!attribute liability_gl_account_id
74
+ # @return [String] The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
75
+ define_attribute :liability_gl_account_id, String
76
+
73
77
  # @!attribute name
74
78
  # @return [String] This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.
75
79
  define_attribute :name, String
@@ -78,6 +82,10 @@ module Recurly
78
82
  # @return [String] Object type
79
83
  define_attribute :object, String
80
84
 
85
+ # @!attribute performance_obligation_id
86
+ # @return [String] The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
87
+ define_attribute :performance_obligation_id, String
88
+
81
89
  # @!attribute pricing_model
82
90
  # @return [String] A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.
83
91
  define_attribute :pricing_model, String
@@ -86,6 +94,10 @@ module Recurly
86
94
  # @return [Array[PlanRampInterval]] Ramp Intervals
87
95
  define_attribute :ramp_intervals, Array, { :item_type => :PlanRampInterval }
88
96
 
97
+ # @!attribute revenue_gl_account_id
98
+ # @return [String] The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
99
+ define_attribute :revenue_gl_account_id, String
100
+
89
101
  # @!attribute revenue_schedule_type
90
102
  # @return [String] Revenue schedule type
91
103
  define_attribute :revenue_schedule_type, String
@@ -94,10 +106,26 @@ module Recurly
94
106
  # @return [String] Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.
95
107
  define_attribute :setup_fee_accounting_code, String
96
108
 
109
+ # @!attribute setup_fee_liability_gl_account_id
110
+ # @return [String] The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
111
+ define_attribute :setup_fee_liability_gl_account_id, String
112
+
113
+ # @!attribute setup_fee_performance_obligation_id
114
+ # @return [String] The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
115
+ define_attribute :setup_fee_performance_obligation_id, String
116
+
117
+ # @!attribute setup_fee_revenue_gl_account_id
118
+ # @return [String] The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.
119
+ define_attribute :setup_fee_revenue_gl_account_id, String
120
+
97
121
  # @!attribute setup_fee_revenue_schedule_type
98
122
  # @return [String] Setup fee revenue schedule type
99
123
  define_attribute :setup_fee_revenue_schedule_type, String
100
124
 
125
+ # @!attribute setup_fees
126
+ # @return [Array[PlanSetupPricing]] Setup Fees
127
+ define_attribute :setup_fees, Array, { :item_type => :PlanSetupPricing }
128
+
101
129
  # @!attribute state
102
130
  # @return [String] The current state of the plan.
103
131
  define_attribute :state, String
@@ -10,8 +10,12 @@ module Recurly
10
10
  # @return [String] 3-letter ISO 4217 currency code.
11
11
  define_attribute :currency, String
12
12
 
13
+ # @!attribute price_segment_id
14
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
15
+ define_attribute :price_segment_id, String
16
+
13
17
  # @!attribute setup_fee
14
- # @return [Float] Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
18
+ # @return [Float] This field is deprecated, please use top level `setup_fees` instead. Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
15
19
  define_attribute :setup_fee, Float
16
20
 
17
21
  # @!attribute tax_inclusive
@@ -19,7 +23,7 @@ module Recurly
19
23
  define_attribute :tax_inclusive, :Boolean
20
24
 
21
25
  # @!attribute unit_amount
22
- # @return [Float] This field should not be sent when the pricing model is 'ramp'.
26
+ # @return [Float] This field should not be sent when the pricing model is `'ramp'`.
23
27
  define_attribute :unit_amount, Float
24
28
  end
25
29
  end
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [String] 3-letter ISO 4217 currency code.
11
11
  define_attribute :currency, String
12
12
 
13
+ # @!attribute price_segment_id
14
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
15
+ define_attribute :price_segment_id, String
16
+
13
17
  # @!attribute unit_amount
14
18
  # @return [Float] Represents the price for the Ramp Interval.
15
19
  define_attribute :unit_amount, Float
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class PlanSetupPricing < Resource
8
+
9
+ # @!attribute currency
10
+ # @return [String] 3-letter ISO 4217 currency code.
11
+ define_attribute :currency, String
12
+
13
+ # @!attribute unit_amount
14
+ # @return [Float] Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
15
+ define_attribute :unit_amount, Float
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,22 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class PriceSegment < Resource
8
+
9
+ # @!attribute code
10
+ # @return [String] The price segment code, e.g. `my-price-segment`.
11
+ define_attribute :code, String
12
+
13
+ # @!attribute id
14
+ # @return [String] The price segment ID, e.g. `e28zov4fw0v2`.
15
+ define_attribute :id, String
16
+
17
+ # @!attribute object
18
+ # @return [String] Object type
19
+ define_attribute :object, String
20
+ end
21
+ end
22
+ end
@@ -15,7 +15,7 @@ module Recurly
15
15
  define_attribute :tax_inclusive, :Boolean
16
16
 
17
17
  # @!attribute unit_amount
18
- # @return [Float] Unit price
18
+ # @return [Float]
19
19
  define_attribute :unit_amount, Float
20
20
  end
21
21
  end
@@ -138,6 +138,10 @@ module Recurly
138
138
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
139
139
  define_attribute :po_number, String
140
140
 
141
+ # @!attribute price_segment_id
142
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
143
+ define_attribute :price_segment_id, String
144
+
141
145
  # @!attribute quantity
142
146
  # @return [Integer] Subscription quantity
143
147
  define_attribute :quantity, Integer
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.65.0"
2
+ VERSION = "4.66.0"
3
3
  end