recurly 3.18.1 → 4.0.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/.github_changelog_generator +1 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +82 -80
- data/CONTRIBUTING.md +0 -4
- data/GETTING_STARTED.md +20 -17
- data/README.md +0 -3
- data/lib/recurly/client.rb +41 -23
- data/lib/recurly/client/operations.rb +768 -546
- data/lib/recurly/errors.rb +5 -23
- data/lib/recurly/errors/api_errors.rb +3 -0
- data/lib/recurly/pager.rb +4 -14
- data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
- data/lib/recurly/requests/account_create.rb +2 -2
- data/lib/recurly/requests/account_purchase.rb +2 -2
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/add_on_pricing.rb +5 -1
- data/lib/recurly/requests/add_on_update.rb +2 -2
- data/lib/recurly/requests/address.rb +0 -8
- data/lib/recurly/requests/billing_info_create.rb +1 -25
- data/lib/recurly/requests/coupon_create.rb +1 -1
- data/lib/recurly/requests/external_transaction.rb +1 -1
- data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
- data/lib/recurly/requests/line_item_create.rb +1 -1
- data/lib/recurly/requests/subscription_add_on_create.rb +6 -2
- data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
- data/lib/recurly/requests/subscription_change_create.rb +1 -1
- data/lib/recurly/requests/subscription_create.rb +3 -3
- data/lib/recurly/requests/tier.rb +2 -2
- data/lib/recurly/requests/tier_pricing.rb +22 -0
- data/lib/recurly/resources/add_on.rb +1 -1
- data/lib/recurly/resources/add_on_pricing.rb +5 -1
- data/lib/recurly/resources/address.rb +0 -8
- data/lib/recurly/resources/address_with_name.rb +46 -0
- data/lib/recurly/resources/coupon.rb +5 -17
- data/lib/recurly/resources/invoice.rb +6 -2
- data/lib/recurly/resources/line_item.rb +4 -0
- data/lib/recurly/resources/plan.rb +1 -1
- data/lib/recurly/resources/subscription_add_on.rb +6 -2
- data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/resources/subscription_change.rb +0 -4
- data/lib/recurly/resources/tier.rb +2 -2
- data/lib/recurly/resources/tier_pricing.rb +22 -0
- data/lib/recurly/resources/transaction.rb +2 -2
- data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
- data/lib/recurly/resources/usage.rb +5 -1
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +1835 -1785
- data/scripts/changelog +1 -1
- metadata +9 -9
- data/CODE_OF_CONDUCT.md +0 -130
- data/lib/recurly/errors/network_errors.rb +0 -10
- data/lib/recurly/resources/line_item_list.rb +0 -26
- data/lib/recurly/resources/subscription_change_preview.rb +0 -78
data/scripts/changelog
CHANGED
@@ -7,7 +7,7 @@ else
|
|
7
7
|
if [ "$1" == "--pending" ]; then
|
8
8
|
github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
|
9
9
|
elif [ "$1" == "--release-tag" ]; then
|
10
|
-
github_changelog_generator -t $GITHUB_TOKEN --unreleased true --
|
10
|
+
github_changelog_generator -t $GITHUB_TOKEN --unreleased true --future-release "$2"
|
11
11
|
else
|
12
12
|
github_changelog_generator -t $GITHUB_TOKEN
|
13
13
|
fi
|
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
|
+
version: 4.0.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-
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -125,7 +125,6 @@ files:
|
|
125
125
|
- ".travis.yml"
|
126
126
|
- ".yardopts"
|
127
127
|
- CHANGELOG.md
|
128
|
-
- CODE_OF_CONDUCT.md
|
129
128
|
- CONTRIBUTING.md
|
130
129
|
- GETTING_STARTED.md
|
131
130
|
- Gemfile
|
@@ -140,13 +139,12 @@ files:
|
|
140
139
|
- lib/recurly/connection_pool.rb
|
141
140
|
- lib/recurly/errors.rb
|
142
141
|
- lib/recurly/errors/api_errors.rb
|
143
|
-
- lib/recurly/errors/network_errors.rb
|
144
142
|
- lib/recurly/http.rb
|
145
143
|
- lib/recurly/pager.rb
|
146
144
|
- lib/recurly/request.rb
|
147
145
|
- lib/recurly/requests.rb
|
148
146
|
- lib/recurly/requests/account_acquisition_cost.rb
|
149
|
-
- lib/recurly/requests/
|
147
|
+
- lib/recurly/requests/account_acquisition_update.rb
|
150
148
|
- lib/recurly/requests/account_create.rb
|
151
149
|
- lib/recurly/requests/account_purchase.rb
|
152
150
|
- lib/recurly/requests/account_update.rb
|
@@ -167,7 +165,7 @@ files:
|
|
167
165
|
- lib/recurly/requests/invoice_collect.rb
|
168
166
|
- lib/recurly/requests/invoice_create.rb
|
169
167
|
- lib/recurly/requests/invoice_refund.rb
|
170
|
-
- lib/recurly/requests/
|
168
|
+
- lib/recurly/requests/invoice_update.rb
|
171
169
|
- lib/recurly/requests/item_create.rb
|
172
170
|
- lib/recurly/requests/item_update.rb
|
173
171
|
- lib/recurly/requests/line_item_create.rb
|
@@ -200,6 +198,7 @@ files:
|
|
200
198
|
- lib/recurly/requests/subscription_shipping_update.rb
|
201
199
|
- lib/recurly/requests/subscription_update.rb
|
202
200
|
- lib/recurly/requests/tier.rb
|
201
|
+
- lib/recurly/requests/tier_pricing.rb
|
203
202
|
- lib/recurly/requests/usage_create.rb
|
204
203
|
- lib/recurly/resource.rb
|
205
204
|
- lib/recurly/resources.rb
|
@@ -214,6 +213,7 @@ files:
|
|
214
213
|
- lib/recurly/resources/add_on_mini.rb
|
215
214
|
- lib/recurly/resources/add_on_pricing.rb
|
216
215
|
- lib/recurly/resources/address.rb
|
216
|
+
- lib/recurly/resources/address_with_name.rb
|
217
217
|
- lib/recurly/resources/billing_info.rb
|
218
218
|
- lib/recurly/resources/billing_info_updated_by.rb
|
219
219
|
- lib/recurly/resources/binary_file.rb
|
@@ -240,7 +240,6 @@ files:
|
|
240
240
|
- lib/recurly/resources/item.rb
|
241
241
|
- lib/recurly/resources/item_mini.rb
|
242
242
|
- lib/recurly/resources/line_item.rb
|
243
|
-
- lib/recurly/resources/line_item_list.rb
|
244
243
|
- lib/recurly/resources/measured_unit.rb
|
245
244
|
- lib/recurly/resources/payment_method.rb
|
246
245
|
- lib/recurly/resources/plan.rb
|
@@ -257,14 +256,15 @@ files:
|
|
257
256
|
- lib/recurly/resources/subscription_add_on.rb
|
258
257
|
- lib/recurly/resources/subscription_add_on_tier.rb
|
259
258
|
- lib/recurly/resources/subscription_change.rb
|
260
|
-
- lib/recurly/resources/subscription_change_preview.rb
|
261
259
|
- lib/recurly/resources/subscription_shipping.rb
|
262
260
|
- lib/recurly/resources/tax_info.rb
|
263
261
|
- lib/recurly/resources/tier.rb
|
262
|
+
- lib/recurly/resources/tier_pricing.rb
|
264
263
|
- lib/recurly/resources/transaction.rb
|
265
264
|
- lib/recurly/resources/transaction_error.rb
|
266
265
|
- lib/recurly/resources/transaction_payment_gateway.rb
|
267
266
|
- lib/recurly/resources/unique_coupon_code.rb
|
267
|
+
- lib/recurly/resources/unique_coupon_code_params.rb
|
268
268
|
- lib/recurly/resources/usage.rb
|
269
269
|
- lib/recurly/resources/user.rb
|
270
270
|
- lib/recurly/schema.rb
|
@@ -293,7 +293,7 @@ metadata:
|
|
293
293
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
294
294
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
295
295
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
296
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/
|
296
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.0
|
297
297
|
post_install_message:
|
298
298
|
rdoc_options: []
|
299
299
|
require_paths:
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
|
2
|
-
# Contributor Covenant Code of Conduct
|
3
|
-
|
4
|
-
## Our Pledge
|
5
|
-
|
6
|
-
We as members, contributors, and leaders pledge to make participation in our
|
7
|
-
community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
9
|
-
identity and expression, level of experience, education, socio-economic status,
|
10
|
-
nationality, personal appearance, race, religion, or sexual identity
|
11
|
-
and orientation.
|
12
|
-
|
13
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
14
|
-
diverse, inclusive, and healthy community.
|
15
|
-
|
16
|
-
## Our Standards
|
17
|
-
|
18
|
-
Examples of behavior that contributes to a positive environment for our
|
19
|
-
community include:
|
20
|
-
|
21
|
-
* Demonstrating empathy and kindness toward other people
|
22
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
23
|
-
* Giving and gracefully accepting constructive feedback
|
24
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
25
|
-
and learning from the experience
|
26
|
-
* Focusing on what is best not just for us as individuals, but for the
|
27
|
-
overall community
|
28
|
-
|
29
|
-
Examples of unacceptable behavior include:
|
30
|
-
|
31
|
-
* The use of sexualized language or imagery, and sexual attention or
|
32
|
-
advances of any kind
|
33
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
34
|
-
* Public or private harassment
|
35
|
-
* Publishing others' private information, such as a physical or email
|
36
|
-
address, without their explicit permission
|
37
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
38
|
-
professional setting
|
39
|
-
|
40
|
-
## Enforcement Responsibilities
|
41
|
-
|
42
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
43
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
44
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
45
|
-
or harmful.
|
46
|
-
|
47
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
48
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
49
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
50
|
-
decisions when appropriate.
|
51
|
-
|
52
|
-
## Scope
|
53
|
-
|
54
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
55
|
-
an individual is officially representing the community in public spaces.
|
56
|
-
Examples of representing our community include using an official e-mail address,
|
57
|
-
posting via an official social media account, or acting as an appointed
|
58
|
-
representative at an online or offline event.
|
59
|
-
|
60
|
-
## Enforcement
|
61
|
-
|
62
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
|
-
reported to the community leaders responsible for enforcement at
|
64
|
-
dx@recurly.com.
|
65
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
66
|
-
|
67
|
-
All community leaders are obligated to respect the privacy and security of the
|
68
|
-
reporter of any incident.
|
69
|
-
|
70
|
-
## Enforcement Guidelines
|
71
|
-
|
72
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
73
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
74
|
-
|
75
|
-
### 1. Correction
|
76
|
-
|
77
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
78
|
-
unprofessional or unwelcome in the community.
|
79
|
-
|
80
|
-
**Consequence**: A private, written warning from community leaders, providing
|
81
|
-
clarity around the nature of the violation and an explanation of why the
|
82
|
-
behavior was inappropriate. A public apology may be requested.
|
83
|
-
|
84
|
-
### 2. Warning
|
85
|
-
|
86
|
-
**Community Impact**: A violation through a single incident or series
|
87
|
-
of actions.
|
88
|
-
|
89
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
90
|
-
interaction with the people involved, including unsolicited interaction with
|
91
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
92
|
-
includes avoiding interactions in community spaces as well as external channels
|
93
|
-
like social media. Violating these terms may lead to a temporary or
|
94
|
-
permanent ban.
|
95
|
-
|
96
|
-
### 3. Temporary Ban
|
97
|
-
|
98
|
-
**Community Impact**: A serious violation of community standards, including
|
99
|
-
sustained inappropriate behavior.
|
100
|
-
|
101
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
102
|
-
communication with the community for a specified period of time. No public or
|
103
|
-
private interaction with the people involved, including unsolicited interaction
|
104
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
105
|
-
Violating these terms may lead to a permanent ban.
|
106
|
-
|
107
|
-
### 4. Permanent Ban
|
108
|
-
|
109
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
110
|
-
standards, including sustained inappropriate behavior, harassment of an
|
111
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
112
|
-
|
113
|
-
**Consequence**: A permanent ban from any sort of public interaction within
|
114
|
-
the community.
|
115
|
-
|
116
|
-
## Attribution
|
117
|
-
|
118
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
119
|
-
version 2.0, available at
|
120
|
-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
121
|
-
|
122
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
123
|
-
enforcement ladder](https://github.com/mozilla/diversity).
|
124
|
-
|
125
|
-
[homepage]: https://www.contributor-covenant.org
|
126
|
-
|
127
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
128
|
-
https://www.contributor-covenant.org/faq. Translations are available at
|
129
|
-
https://www.contributor-covenant.org/translations.
|
130
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
module Recurly
|
2
|
-
module Errors
|
3
|
-
class NetworkError < StandardError; end
|
4
|
-
class InvalidResponseError < NetworkError; end
|
5
|
-
class TimeoutError < NetworkError; end
|
6
|
-
class ConnectionFailedError < NetworkError; end
|
7
|
-
class SSLError < NetworkError; end
|
8
|
-
class UnavailableError < NetworkError; end
|
9
|
-
end
|
10
|
-
end
|
@@ -1,26 +0,0 @@
|
|
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 LineItemList < Resource
|
8
|
-
|
9
|
-
# @!attribute data
|
10
|
-
# @return [Array[LineItem]]
|
11
|
-
define_attribute :data, Array, { :item_type => :LineItem }
|
12
|
-
|
13
|
-
# @!attribute has_more
|
14
|
-
# @return [Boolean] Indicates there are more results on subsequent pages.
|
15
|
-
define_attribute :has_more, :Boolean
|
16
|
-
|
17
|
-
# @!attribute next
|
18
|
-
# @return [String] Path to subsequent page of results.
|
19
|
-
define_attribute :next, String
|
20
|
-
|
21
|
-
# @!attribute object
|
22
|
-
# @return [String] Will always be List.
|
23
|
-
define_attribute :object, String
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,78 +0,0 @@
|
|
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 SubscriptionChangePreview < Resource
|
8
|
-
|
9
|
-
# @!attribute activate_at
|
10
|
-
# @return [DateTime] Activated at
|
11
|
-
define_attribute :activate_at, DateTime
|
12
|
-
|
13
|
-
# @!attribute activated
|
14
|
-
# @return [Boolean] Returns `true` if the subscription change is activated.
|
15
|
-
define_attribute :activated, :Boolean
|
16
|
-
|
17
|
-
# @!attribute add_ons
|
18
|
-
# @return [Array[SubscriptionAddOn]] These add-ons will be used when the subscription renews.
|
19
|
-
define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
|
20
|
-
|
21
|
-
# @!attribute created_at
|
22
|
-
# @return [DateTime] Created at
|
23
|
-
define_attribute :created_at, DateTime
|
24
|
-
|
25
|
-
# @!attribute custom_fields
|
26
|
-
# @return [Array[CustomField]] The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
|
27
|
-
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
28
|
-
|
29
|
-
# @!attribute deleted_at
|
30
|
-
# @return [DateTime] Deleted at
|
31
|
-
define_attribute :deleted_at, DateTime
|
32
|
-
|
33
|
-
# @!attribute id
|
34
|
-
# @return [String] The ID of the Subscription Change.
|
35
|
-
define_attribute :id, String
|
36
|
-
|
37
|
-
# @!attribute invoice_collection
|
38
|
-
# @return [InvoiceCollection] Invoice Collection
|
39
|
-
define_attribute :invoice_collection, :InvoiceCollection
|
40
|
-
|
41
|
-
# @!attribute object
|
42
|
-
# @return [String] Object type
|
43
|
-
define_attribute :object, String
|
44
|
-
|
45
|
-
# @!attribute plan
|
46
|
-
# @return [PlanMini] Just the important parts.
|
47
|
-
define_attribute :plan, :PlanMini
|
48
|
-
|
49
|
-
# @!attribute quantity
|
50
|
-
# @return [Integer] Subscription quantity
|
51
|
-
define_attribute :quantity, Integer
|
52
|
-
|
53
|
-
# @!attribute revenue_schedule_type
|
54
|
-
# @return [String] Revenue schedule type
|
55
|
-
define_attribute :revenue_schedule_type, String
|
56
|
-
|
57
|
-
# @!attribute setup_fee_revenue_schedule_type
|
58
|
-
# @return [String] Setup fee revenue schedule type
|
59
|
-
define_attribute :setup_fee_revenue_schedule_type, String
|
60
|
-
|
61
|
-
# @!attribute shipping
|
62
|
-
# @return [SubscriptionShipping] Subscription shipping details
|
63
|
-
define_attribute :shipping, :SubscriptionShipping
|
64
|
-
|
65
|
-
# @!attribute subscription_id
|
66
|
-
# @return [String] The ID of the subscription that is going to be changed.
|
67
|
-
define_attribute :subscription_id, String
|
68
|
-
|
69
|
-
# @!attribute unit_amount
|
70
|
-
# @return [Float] Unit amount
|
71
|
-
define_attribute :unit_amount, Float
|
72
|
-
|
73
|
-
# @!attribute updated_at
|
74
|
-
# @return [DateTime] Updated at
|
75
|
-
define_attribute :updated_at, DateTime
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|