recurly 4.8.0 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +11 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/requests/subscription_change_shipping_create.rb +8 -0
- data/lib/recurly/requests/subscription_update.rb +4 -0
- data/lib/recurly/resources/subscription.rb +16 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +41 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38f52125b8c12aad80f605fc94ea0587a73ea82823fb8aec6b2deae2f706983c
|
4
|
+
data.tar.gz: f223a30e3a884cb319e020cb074aa00b88aeb0d44529ddab8539f5636dc38ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec68d64ac36472c09c7267b3439eb2b3d63e0d7c17ad8245068c0378395e1562d4de229b360c8aab6ac2995db1c4fa1804c230f4ec1831213bb51cf8bed6d36
|
7
|
+
data.tar.gz: 922e7c9f74131d607115100ae592da8f6d50fa72760d66d90b6e15ec824a31e1d34c6202895f43d37a482bf493bbd5e06bad3fa184008b54bc42d637f2ef062f
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.9.0](https://github.com/recurly/recurly-client-ruby/tree/4.9.0) (2021-09-16)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.8.0...4.9.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (Support to new subscription fields and response) [#725](https://github.com/recurly/recurly-client-ruby/pull/725) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
3
14
|
## [4.8.0](https://github.com/recurly/recurly-client-ruby/tree/4.8.0) (2021-09-01)
|
4
15
|
|
5
16
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.7.0...4.8.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.
|
8
|
+
gem 'recurly', '~> 4.9'
|
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.
|
@@ -6,6 +6,14 @@ module Recurly
|
|
6
6
|
module Requests
|
7
7
|
class SubscriptionChangeShippingCreate < Request
|
8
8
|
|
9
|
+
# @!attribute address
|
10
|
+
# @return [ShippingAddressCreate]
|
11
|
+
define_attribute :address, :ShippingAddressCreate
|
12
|
+
|
13
|
+
# @!attribute address_id
|
14
|
+
# @return [String] Assign a shipping address from the account's existing shipping addresses. If this and address are both present, address will take precedence.
|
15
|
+
define_attribute :address_id, String
|
16
|
+
|
9
17
|
# @!attribute amount
|
10
18
|
# @return [Float] Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
|
11
19
|
define_attribute :amount, Float
|
@@ -26,6 +26,10 @@ module Recurly
|
|
26
26
|
# @return [String] Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.
|
27
27
|
define_attribute :customer_notes, String
|
28
28
|
|
29
|
+
# @!attribute gateway_code
|
30
|
+
# @return [String] If present, this subscription's transactions will use the payment gateway with this code.
|
31
|
+
define_attribute :gateway_code, String
|
32
|
+
|
29
33
|
# @!attribute net_terms
|
30
34
|
# @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.
|
31
35
|
define_attribute :net_terms, Integer
|
@@ -86,6 +86,10 @@ module Recurly
|
|
86
86
|
# @return [DateTime] Expires at
|
87
87
|
define_attribute :expires_at, DateTime
|
88
88
|
|
89
|
+
# @!attribute gateway_code
|
90
|
+
# @return [String] If present, this subscription's transactions will use the payment gateway with this code.
|
91
|
+
define_attribute :gateway_code, String
|
92
|
+
|
89
93
|
# @!attribute id
|
90
94
|
# @return [String] Subscription ID
|
91
95
|
define_attribute :id, String
|
@@ -146,10 +150,22 @@ module Recurly
|
|
146
150
|
# @return [Float] Estimated total, before tax.
|
147
151
|
define_attribute :subtotal, Float
|
148
152
|
|
153
|
+
# @!attribute tax
|
154
|
+
# @return [Float] Estimated tax
|
155
|
+
define_attribute :tax, Float
|
156
|
+
|
157
|
+
# @!attribute tax_info
|
158
|
+
# @return [TaxInfo] Tax info
|
159
|
+
define_attribute :tax_info, :TaxInfo
|
160
|
+
|
149
161
|
# @!attribute terms_and_conditions
|
150
162
|
# @return [String] Terms and conditions
|
151
163
|
define_attribute :terms_and_conditions, String
|
152
164
|
|
165
|
+
# @!attribute total
|
166
|
+
# @return [Float] Estimated total
|
167
|
+
define_attribute :total, Float
|
168
|
+
|
153
169
|
# @!attribute total_billing_cycles
|
154
170
|
# @return [Integer] The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.
|
155
171
|
define_attribute :total_billing_cycles, Integer
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -12611,7 +12611,16 @@ paths:
|
|
12611
12611
|
- subscription_change
|
12612
12612
|
operationId: create_subscription_change
|
12613
12613
|
summary: Create a new subscription change
|
12614
|
-
description:
|
12614
|
+
description: |
|
12615
|
+
Calling this will overwrite an existing, pending subscription change.
|
12616
|
+
|
12617
|
+
If a subscription has a pending change, and a change is submitted which matches
|
12618
|
+
the subscription as it currently exists, the pending change will be deleted,
|
12619
|
+
and you will receive a 204 No Content response.
|
12620
|
+
|
12621
|
+
If a subscription has no pending
|
12622
|
+
change, and a change is submitted which matches the subscription as it currently
|
12623
|
+
exists, a 422 Unprocessable Entity validation error will be returned.
|
12615
12624
|
parameters:
|
12616
12625
|
- "$ref": "#/components/parameters/subscription_id"
|
12617
12626
|
requestBody:
|
@@ -12627,6 +12636,8 @@ paths:
|
|
12627
12636
|
application/json:
|
12628
12637
|
schema:
|
12629
12638
|
"$ref": "#/components/schemas/SubscriptionChange"
|
12639
|
+
'204':
|
12640
|
+
description: The previous pending change was reverted.
|
12630
12641
|
'404':
|
12631
12642
|
description: Incorrect site ID.
|
12632
12643
|
content:
|
@@ -19443,6 +19454,16 @@ components:
|
|
19443
19454
|
format: float
|
19444
19455
|
title: Estimated total, before tax.
|
19445
19456
|
minimum: 0
|
19457
|
+
tax:
|
19458
|
+
type: number
|
19459
|
+
format: float
|
19460
|
+
title: Estimated tax
|
19461
|
+
tax_info:
|
19462
|
+
"$ref": "#/components/schemas/TaxInfo"
|
19463
|
+
total:
|
19464
|
+
type: number
|
19465
|
+
format: float
|
19466
|
+
title: Estimated total
|
19446
19467
|
collection_method:
|
19447
19468
|
title: Collection method
|
19448
19469
|
default: automatic
|
@@ -19502,6 +19523,12 @@ components:
|
|
19502
19523
|
set. This timestamp is used for alerting customers to reauthorize in 3
|
19503
19524
|
years in accordance with NACHA rules. If a subscription becomes inactive
|
19504
19525
|
or the billing info is no longer a bank account, this timestamp is cleared.
|
19526
|
+
gateway_code:
|
19527
|
+
type: string
|
19528
|
+
title: Gateway Code
|
19529
|
+
description: If present, this subscription's transactions will use the payment
|
19530
|
+
gateway with this code.
|
19531
|
+
maxLength: 13
|
19505
19532
|
billing_info_id:
|
19506
19533
|
type: string
|
19507
19534
|
title: Billing Info ID
|
@@ -19956,6 +19983,13 @@ components:
|
|
19956
19983
|
format: float
|
19957
19984
|
title: Assigns the subscription's shipping cost. If this is greater than
|
19958
19985
|
zero then a `method_id` or `method_code` is required.
|
19986
|
+
address_id:
|
19987
|
+
type: string
|
19988
|
+
titpe: Shipping address ID
|
19989
|
+
description: Assign a shipping address from the account's existing shipping
|
19990
|
+
addresses. If this and address are both present, address will take precedence.
|
19991
|
+
address:
|
19992
|
+
"$ref": "#/components/schemas/ShippingAddressCreate"
|
19959
19993
|
SubscriptionCreate:
|
19960
19994
|
type: object
|
19961
19995
|
properties:
|
@@ -20264,6 +20298,12 @@ components:
|
|
20264
20298
|
at 31 days exactly.
|
20265
20299
|
minimum: 0
|
20266
20300
|
default: 0
|
20301
|
+
gateway_code:
|
20302
|
+
type: string
|
20303
|
+
title: Gateway Code
|
20304
|
+
description: If present, this subscription's transactions will use the payment
|
20305
|
+
gateway with this code.
|
20306
|
+
maxLength: 13
|
20267
20307
|
shipping:
|
20268
20308
|
"$ref": "#/components/schemas/SubscriptionShippingUpdate"
|
20269
20309
|
billing_info_id:
|
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.
|
4
|
+
version: 4.9.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-09-
|
11
|
+
date: 2021-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -302,7 +302,7 @@ metadata:
|
|
302
302
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
303
303
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
304
304
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
305
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
305
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.9.0
|
306
306
|
post_install_message:
|
307
307
|
rdoc_options: []
|
308
308
|
require_paths:
|