recurly 4.6.0 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b355c5446a85f7911c3f383a4c4a5f54ab5153fc2764680c4bd739aba9b3bc9
4
- data.tar.gz: 1fa2e60c2bf6970b0d6187ae18130c0813551ccec839b9ee4e80e6e4a5e1a77c
3
+ metadata.gz: 2e93393e1aee1ef2ace7f7df79d0f815b9ab54a99189807f92070b327d940307
4
+ data.tar.gz: 2ea549f2a93dda275202ce603c6a53e8b00a88c2eda91d212f473c66a0bea981
5
5
  SHA512:
6
- metadata.gz: 3a71c147eb618bd49ef0350bf6492f1c8d0d0cafedfd6aebaf6a3ac35b9e13f11fa3ad7133baae2ec11b8e5ac7994e77ea768eceeaf90d2681e6c189e3723ced
7
- data.tar.gz: 7dba56f22aacea3aad801bd5a5fd3d7f26a72b2d0a5aab7f1418865cbaf8d56da51d6682514a2752989b49b7e3bf04cb06d75aecd00f13fc3880317aee2f1915
6
+ metadata.gz: e64f85ad01d99cb0001717137bfe8011c06cee11e5ac932d26042f297261d50d8ab54dfbf926c8811ae5f370c12609410fcaac082fa40c1abca3b99de7eaacd5
7
+ data.tar.gz: de50a1d18e695ce700b0f1125a68045c07e212c919236a485df2dcb21ed7e16b035cafde525c07c43275629c8fc64640565c605fb2d9c86ed5b41d70e4e3e0c7
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.6.0
2
+ current_version = 4.7.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.7.0](https://github.com/recurly/recurly-client-ruby/tree/4.7.0) (2021-08-19)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.6.0...4.7.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 (get_preview_renewal) [#722](https://github.com/recurly/recurly-client-ruby/pull/722) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
3
14
  ## [4.6.0](https://github.com/recurly/recurly-client-ruby/tree/4.6.0) (2021-08-11)
4
15
 
5
16
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.5.0...4.6.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.6'
8
+ gem 'recurly', '~> 4.7'
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.
@@ -3300,6 +3300,20 @@ module Recurly
3300
3300
  put(path, **options)
3301
3301
  end
3302
3302
 
3303
+ # Fetch a preview of a subscription's renewal invoice(s)
3304
+ #
3305
+ # {https://developers.recurly.com/api/v2021-02-25#operation/get_preview_renewal get_preview_renewal api documenation}
3306
+ #
3307
+ # @param subscription_id [String] Subscription ID or UUID. For ID no prefix is used e.g. +e28zov4fw0v2+. For UUID use prefix +uuid-+, e.g. +uuid-123457890+.
3308
+ # @param params [Hash] Optional query string parameters:
3309
+ #
3310
+ # @return [Resources::InvoiceCollection] A preview of the subscription's renewal invoice(s).
3311
+ #
3312
+ def get_preview_renewal(subscription_id:, **options)
3313
+ path = interpolate_path("/subscriptions/{subscription_id}/preview_renewal", subscription_id: subscription_id)
3314
+ get(path, **options)
3315
+ end
3316
+
3303
3317
  # Fetch a subscription's pending change
3304
3318
  #
3305
3319
  # {https://developers.recurly.com/api/v2021-02-25#operation/get_subscription_change get_subscription_change api documenation}
@@ -7,7 +7,7 @@ module Recurly
7
7
  class SubscriptionPause < Request
8
8
 
9
9
  # @!attribute remaining_pause_cycles
10
- # @return [Integer] Number of billing cycles to pause the subscriptions.
10
+ # @return [Integer] Number of billing cycles to pause the subscriptions. A value of 0 will cancel any pending pauses on the subscription.
11
11
  define_attribute :remaining_pause_cycles, Integer
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.6.0"
2
+ VERSION = "4.7.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -12434,6 +12434,43 @@ paths:
12434
12434
  schema:
12435
12435
  "$ref": "#/components/schemas/Error"
12436
12436
  x-code-samples: []
12437
+ "/subscriptions/{subscription_id}/preview_renewal":
12438
+ get:
12439
+ tags:
12440
+ - subscription
12441
+ operationId: get_preview_renewal
12442
+ summary: Fetch a preview of a subscription's renewal invoice(s)
12443
+ description: The subscriptions's renewal invoice(s) will be returned if they
12444
+ exist; if they don't (for example, if the subscription is not set to renew),
12445
+ it will return an result with no invoices.
12446
+ parameters:
12447
+ - "$ref": "#/components/parameters/subscription_id"
12448
+ responses:
12449
+ '200':
12450
+ description: A preview of the subscription's renewal invoice(s).
12451
+ content:
12452
+ application/json:
12453
+ schema:
12454
+ "$ref": "#/components/schemas/InvoiceCollection"
12455
+ '400':
12456
+ description: Invalid or unpermitted parameter.
12457
+ content:
12458
+ application/json:
12459
+ schema:
12460
+ "$ref": "#/components/schemas/Error"
12461
+ '404':
12462
+ description: Incorrect site ID or subscription ID.
12463
+ content:
12464
+ application/json:
12465
+ schema:
12466
+ "$ref": "#/components/schemas/Error"
12467
+ default:
12468
+ description: Unexpected error.
12469
+ content:
12470
+ application/json:
12471
+ schema:
12472
+ "$ref": "#/components/schemas/Error"
12473
+ x-code-samples: []
12437
12474
  "/subscriptions/{subscription_id}/change":
12438
12475
  get:
12439
12476
  tags:
@@ -20075,7 +20112,8 @@ components:
20075
20112
  remaining_pause_cycles:
20076
20113
  type: integer
20077
20114
  title: Remaining pause cycles
20078
- description: Number of billing cycles to pause the subscriptions.
20115
+ description: Number of billing cycles to pause the subscriptions. A value
20116
+ of 0 will cancel any pending pauses on the subscription.
20079
20117
  required:
20080
20118
  - remaining_pause_cycles
20081
20119
  SubscriptionShipping:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -297,7 +297,7 @@ metadata:
297
297
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
298
298
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
299
299
  homepage_uri: https://github.com/recurly/recurly-client-ruby
300
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.6.0
300
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.7.0
301
301
  post_install_message:
302
302
  rdoc_options: []
303
303
  require_paths: