recurly 3.19.0 → 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/workflows/docs.yml +1 -1
- data/.github_changelog_generator +8 -0
- data/.travis.yml +0 -3
- data/CHANGELOG.md +202 -268
- data/CONTRIBUTING.md +0 -4
- data/GETTING_STARTED.md +20 -17
- data/README.md +0 -3
- data/lib/recurly/client/operations.rb +774 -630
- data/lib/recurly/client.rb +44 -28
- data/lib/recurly/errors/api_errors.rb +3 -2
- data/lib/recurly/errors.rb +5 -23
- data/lib/recurly/pager.rb +5 -15
- data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
- data/lib/recurly/requests/account_create.rb +2 -6
- data/lib/recurly/requests/account_purchase.rb +2 -6
- data/lib/recurly/requests/account_update.rb +0 -4
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/add_on_pricing.rb +5 -5
- data/lib/recurly/requests/add_on_update.rb +2 -2
- data/lib/recurly/requests/address.rb +1 -9
- data/lib/recurly/requests/billing_info_create.rb +2 -30
- data/lib/recurly/requests/coupon_create.rb +1 -1
- data/lib/recurly/requests/external_transaction.rb +1 -1
- data/lib/recurly/requests/invoice_address.rb +1 -1
- data/lib/recurly/requests/invoice_collect.rb +1 -1
- data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
- data/lib/recurly/requests/line_item_create.rb +2 -6
- data/lib/recurly/requests/plan_create.rb +0 -4
- data/lib/recurly/requests/plan_pricing.rb +0 -4
- data/lib/recurly/requests/plan_update.rb +0 -4
- data/lib/recurly/requests/pricing.rb +0 -4
- data/lib/recurly/requests/purchase_create.rb +1 -1
- data/lib/recurly/requests/shipping_address_create.rb +1 -1
- data/lib/recurly/requests/shipping_address_update.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 -9
- data/lib/recurly/requests/subscription_create.rb +5 -9
- data/lib/recurly/requests/subscription_pause.rb +1 -1
- data/lib/recurly/requests/subscription_purchase.rb +2 -6
- data/lib/recurly/requests/subscription_update.rb +1 -5
- data/lib/recurly/requests/tier.rb +2 -2
- data/lib/recurly/requests/tier_pricing.rb +22 -0
- data/lib/recurly/resources/account.rb +0 -4
- data/lib/recurly/resources/account_mini.rb +0 -4
- data/lib/recurly/resources/add_on.rb +1 -1
- data/lib/recurly/resources/add_on_pricing.rb +5 -5
- data/lib/recurly/resources/address.rb +1 -9
- data/lib/recurly/resources/address_with_name.rb +46 -0
- data/lib/recurly/resources/billing_info.rb +1 -5
- data/lib/recurly/resources/billing_info_updated_by.rb +1 -1
- data/lib/recurly/resources/coupon.rb +5 -17
- data/lib/recurly/resources/invoice.rb +7 -7
- data/lib/recurly/resources/invoice_address.rb +1 -1
- data/lib/recurly/resources/line_item.rb +7 -7
- data/lib/recurly/resources/payment_method.rb +0 -4
- data/lib/recurly/resources/plan.rb +1 -5
- data/lib/recurly/resources/plan_pricing.rb +0 -4
- data/lib/recurly/resources/pricing.rb +0 -4
- data/lib/recurly/resources/shipping_address.rb +1 -1
- data/lib/recurly/resources/subscription.rb +0 -4
- 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 -12
- data/lib/recurly/resources/tax_info.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 +3 -7
- 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 +1949 -2573
- data/scripts/build +2 -2
- data/scripts/bump +11 -0
- data/scripts/changelog +14 -0
- data/scripts/format +2 -2
- data/scripts/prepare-release +29 -43
- data/scripts/release +20 -5
- metadata +15 -22
- data/.changelog_config.yaml +0 -11
- data/CODE_OF_CONDUCT.md +0 -130
- data/lib/recurly/errors/network_errors.rb +0 -10
- data/lib/recurly/requests/billing_info_verify.rb +0 -14
- data/lib/recurly/requests/dunning_campaigns_bulk_update.rb +0 -18
- data/lib/recurly/requests/subscription_change_billing_info_create.rb +0 -14
- data/lib/recurly/resources/dunning_campaign.rb +0 -50
- data/lib/recurly/resources/dunning_campaigns_bulk_update_response.rb +0 -18
- data/lib/recurly/resources/dunning_cycle.rb +0 -58
- data/lib/recurly/resources/dunning_interval.rb +0 -18
- data/lib/recurly/resources/line_item_list.rb +0 -26
- data/lib/recurly/resources/subscription_change_billing_info.rb +0 -14
- data/lib/recurly/resources/subscription_change_preview.rb +0 -86
- data/lib/recurly/resources/tax_detail.rb +0 -26
data/scripts/build
CHANGED
data/scripts/bump
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
if [ "$1" == "--next-version" ]; then
|
5
|
+
shift
|
6
|
+
bump2version --dry-run --list "$@" | grep new_version | cut -d "=" -f 2
|
7
|
+
elif [ "$1" == "--this-version" ]; then
|
8
|
+
grep current_version .bumpversion.cfg | awk -F" = " '{print $2}'
|
9
|
+
else
|
10
|
+
bump2version "$@"
|
11
|
+
fi
|
data/scripts/changelog
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
if [ -z "$GITHUB_TOKEN" ]; then
|
5
|
+
echo "Environment variable GITHUB_TOKEN must be set"
|
6
|
+
else
|
7
|
+
if [ "$1" == "--pending" ]; then
|
8
|
+
github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
|
9
|
+
elif [ "$1" == "--release-tag" ]; then
|
10
|
+
github_changelog_generator -t $GITHUB_TOKEN --unreleased true --future-release "$2"
|
11
|
+
else
|
12
|
+
github_changelog_generator -t $GITHUB_TOKEN
|
13
|
+
fi
|
14
|
+
fi
|
data/scripts/format
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
if [ "$1" == "--check" ]; then
|
4
|
-
|
4
|
+
./bin/rufo . --check
|
5
5
|
RESULT=$?
|
6
6
|
if [ $RESULT != 0 ]; then
|
7
7
|
echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
|
8
8
|
exit $RESULT
|
9
9
|
fi
|
10
10
|
else
|
11
|
-
|
11
|
+
./bin/rufo . -x
|
12
12
|
fi
|
data/scripts/prepare-release
CHANGED
@@ -1,50 +1,36 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
+
set -e
|
2
3
|
|
3
|
-
#
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
# major,minor,patch
|
5
|
+
PART=${1}
|
6
|
+
NEXT_VERSION=$(./scripts/bump --next-version "$PART")
|
7
|
+
UNRELEASED_LOG="/tmp/ruby-pending-changes.md"
|
7
8
|
|
8
|
-
|
9
|
+
if [ -z "$NEXT_VERSION" ]; then
|
10
|
+
echo "Failed to get next version"
|
11
|
+
else
|
12
|
+
# Generate pending changes in tmpfile
|
13
|
+
./scripts/changelog --pending $UNRELEASED_LOG
|
14
|
+
# Add a git message header of Release X.Y.Z
|
15
|
+
printf "Release %s\n\n$(cat $UNRELEASED_LOG)" "$NEXT_VERSION" > $UNRELEASED_LOG
|
16
|
+
# Delete credit line
|
17
|
+
sed -i '' -e '$ d' $UNRELEASED_LOG
|
9
18
|
|
10
|
-
|
11
|
-
echo "Working directory is not clean. Aborting."
|
12
|
-
exit 1
|
13
|
-
fi
|
19
|
+
git checkout -b "release-$NEXT_VERSION"
|
14
20
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
21
|
+
# Actually bump the version
|
22
|
+
./scripts/bump "$PART"
|
23
|
+
|
24
|
+
# Rebuild docs
|
25
|
+
./scripts/build
|
26
|
+
|
27
|
+
# Make the commit
|
28
|
+
git add . --all
|
29
|
+
git commit -F "$UNRELEASED_LOG"
|
30
|
+
|
31
|
+
# Push up this branch for PR
|
32
|
+
git push origin "release-$NEXT_VERSION"
|
19
33
|
|
20
|
-
#
|
21
|
-
|
22
|
-
part=${1}
|
23
|
-
if [ "$part" != "patch" ] && [ "$part" != "minor" ] && [ "$part" != "major" ]; then
|
24
|
-
echo "'$part' is not a valid option: major|minor|patch"
|
25
|
-
exit 1
|
34
|
+
# Create PR
|
35
|
+
hub pull-request -c -F "$UNRELEASED_LOG"
|
26
36
|
fi
|
27
|
-
new_version=$(bump2version --list "$part" | grep new_version | cut -d "=" -f 2)
|
28
|
-
|
29
|
-
# Generate Changelog
|
30
|
-
changelogly --future-release "$new_version"
|
31
|
-
|
32
|
-
while [[ "$#" -gt 0 ]]; do
|
33
|
-
case $1 in
|
34
|
-
# Create release notes artifact
|
35
|
-
-n|--notes-out)
|
36
|
-
echo "$new_version
|
37
|
-
|
38
|
-
$(
|
39
|
-
cat CHANGELOG.md | sed -n "/^## \[$new_version\]/,/^##/p" | sed '$d;1d'
|
40
|
-
)" | awk '{$1=$1};1' > $2
|
41
|
-
shift
|
42
|
-
;;
|
43
|
-
|
44
|
-
# Create release notes artifact
|
45
|
-
-t|--tag-out)
|
46
|
-
echo "$new_version" > $2
|
47
|
-
;;
|
48
|
-
esac
|
49
|
-
shift
|
50
|
-
done
|
data/scripts/release
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
|
3
2
|
set -e
|
4
3
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
# TODO this file could be gone
|
5
|
+
RELEASED_LOG="/tmp/ruby-pending-changes.md"
|
6
|
+
THIS_VERSION=$(./scripts/bump --this-version)
|
7
|
+
|
8
|
+
# Generate the changelog with changes in this release
|
9
|
+
./scripts/changelog --release-tag "$THIS_VERSION"
|
10
|
+
git add CHANGELOG.md
|
11
|
+
git commit -m "Update Changelog for Release $THIS_VERSION"
|
12
|
+
git push origin master
|
9
13
|
|
10
14
|
# publish
|
11
15
|
# Clean up any leftover gems
|
@@ -15,3 +19,14 @@ gem build recurly.gemspec
|
|
15
19
|
# Push what should be the only gem present
|
16
20
|
gem push ./*.gem
|
17
21
|
|
22
|
+
# create release
|
23
|
+
hub release create -c -F "$RELEASED_LOG" "$THIS_VERSION"
|
24
|
+
|
25
|
+
# Copy-pasteable messages for announcments
|
26
|
+
echo ":ruby: Ruby $THIS_VERSION Released :ruby:"
|
27
|
+
echo ":rubygems: Rubygems: https://rubygems.org/gems/recurly/versions/$THIS_VERSION"
|
28
|
+
echo "Release: https://github.com/recurly/recurly-client-ruby/releases/tag/$THIS_VERSION"
|
29
|
+
echo "Changelog:"
|
30
|
+
echo "\`\`\`"
|
31
|
+
cat "$RELEASED_LOG"
|
32
|
+
echo "\`\`\`"
|
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
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,16 +116,15 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- ".bumpversion.cfg"
|
119
|
-
- ".changelog_config.yaml"
|
120
119
|
- ".github/ISSUE_TEMPLATE/bug-report.md"
|
121
120
|
- ".github/ISSUE_TEMPLATE/question-or-other.md"
|
122
121
|
- ".github/workflows/docs.yml"
|
122
|
+
- ".github_changelog_generator"
|
123
123
|
- ".gitignore"
|
124
124
|
- ".rspec"
|
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
|
@@ -155,21 +153,19 @@ files:
|
|
155
153
|
- lib/recurly/requests/add_on_update.rb
|
156
154
|
- lib/recurly/requests/address.rb
|
157
155
|
- lib/recurly/requests/billing_info_create.rb
|
158
|
-
- lib/recurly/requests/billing_info_verify.rb
|
159
156
|
- lib/recurly/requests/coupon_bulk_create.rb
|
160
157
|
- lib/recurly/requests/coupon_create.rb
|
161
158
|
- lib/recurly/requests/coupon_pricing.rb
|
162
159
|
- lib/recurly/requests/coupon_redemption_create.rb
|
163
160
|
- lib/recurly/requests/coupon_update.rb
|
164
161
|
- lib/recurly/requests/custom_field.rb
|
165
|
-
- lib/recurly/requests/dunning_campaigns_bulk_update.rb
|
166
162
|
- lib/recurly/requests/external_refund.rb
|
167
163
|
- lib/recurly/requests/external_transaction.rb
|
168
164
|
- lib/recurly/requests/invoice_address.rb
|
169
165
|
- lib/recurly/requests/invoice_collect.rb
|
170
166
|
- lib/recurly/requests/invoice_create.rb
|
171
167
|
- lib/recurly/requests/invoice_refund.rb
|
172
|
-
- lib/recurly/requests/
|
168
|
+
- lib/recurly/requests/invoice_update.rb
|
173
169
|
- lib/recurly/requests/item_create.rb
|
174
170
|
- lib/recurly/requests/item_update.rb
|
175
171
|
- lib/recurly/requests/line_item_create.rb
|
@@ -192,7 +188,6 @@ files:
|
|
192
188
|
- lib/recurly/requests/subscription_add_on_tier.rb
|
193
189
|
- lib/recurly/requests/subscription_add_on_update.rb
|
194
190
|
- lib/recurly/requests/subscription_cancel.rb
|
195
|
-
- lib/recurly/requests/subscription_change_billing_info_create.rb
|
196
191
|
- lib/recurly/requests/subscription_change_create.rb
|
197
192
|
- lib/recurly/requests/subscription_change_shipping_create.rb
|
198
193
|
- lib/recurly/requests/subscription_create.rb
|
@@ -203,6 +198,7 @@ files:
|
|
203
198
|
- lib/recurly/requests/subscription_shipping_update.rb
|
204
199
|
- lib/recurly/requests/subscription_update.rb
|
205
200
|
- lib/recurly/requests/tier.rb
|
201
|
+
- lib/recurly/requests/tier_pricing.rb
|
206
202
|
- lib/recurly/requests/usage_create.rb
|
207
203
|
- lib/recurly/resource.rb
|
208
204
|
- lib/recurly/resources.rb
|
@@ -217,6 +213,7 @@ files:
|
|
217
213
|
- lib/recurly/resources/add_on_mini.rb
|
218
214
|
- lib/recurly/resources/add_on_pricing.rb
|
219
215
|
- lib/recurly/resources/address.rb
|
216
|
+
- lib/recurly/resources/address_with_name.rb
|
220
217
|
- lib/recurly/resources/billing_info.rb
|
221
218
|
- lib/recurly/resources/billing_info_updated_by.rb
|
222
219
|
- lib/recurly/resources/binary_file.rb
|
@@ -230,10 +227,6 @@ files:
|
|
230
227
|
- lib/recurly/resources/credit_payment.rb
|
231
228
|
- lib/recurly/resources/custom_field.rb
|
232
229
|
- lib/recurly/resources/custom_field_definition.rb
|
233
|
-
- lib/recurly/resources/dunning_campaign.rb
|
234
|
-
- lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
|
235
|
-
- lib/recurly/resources/dunning_cycle.rb
|
236
|
-
- lib/recurly/resources/dunning_interval.rb
|
237
230
|
- lib/recurly/resources/error.rb
|
238
231
|
- lib/recurly/resources/error_may_have_transaction.rb
|
239
232
|
- lib/recurly/resources/export_dates.rb
|
@@ -247,7 +240,6 @@ files:
|
|
247
240
|
- lib/recurly/resources/item.rb
|
248
241
|
- lib/recurly/resources/item_mini.rb
|
249
242
|
- lib/recurly/resources/line_item.rb
|
250
|
-
- lib/recurly/resources/line_item_list.rb
|
251
243
|
- lib/recurly/resources/measured_unit.rb
|
252
244
|
- lib/recurly/resources/payment_method.rb
|
253
245
|
- lib/recurly/resources/plan.rb
|
@@ -264,16 +256,15 @@ files:
|
|
264
256
|
- lib/recurly/resources/subscription_add_on.rb
|
265
257
|
- lib/recurly/resources/subscription_add_on_tier.rb
|
266
258
|
- lib/recurly/resources/subscription_change.rb
|
267
|
-
- lib/recurly/resources/subscription_change_billing_info.rb
|
268
|
-
- lib/recurly/resources/subscription_change_preview.rb
|
269
259
|
- lib/recurly/resources/subscription_shipping.rb
|
270
|
-
- lib/recurly/resources/tax_detail.rb
|
271
260
|
- lib/recurly/resources/tax_info.rb
|
272
261
|
- lib/recurly/resources/tier.rb
|
262
|
+
- lib/recurly/resources/tier_pricing.rb
|
273
263
|
- lib/recurly/resources/transaction.rb
|
274
264
|
- lib/recurly/resources/transaction_error.rb
|
275
265
|
- lib/recurly/resources/transaction_payment_gateway.rb
|
276
266
|
- lib/recurly/resources/unique_coupon_code.rb
|
267
|
+
- lib/recurly/resources/unique_coupon_code_params.rb
|
277
268
|
- lib/recurly/resources/usage.rb
|
278
269
|
- lib/recurly/resources/user.rb
|
279
270
|
- lib/recurly/schema.rb
|
@@ -287,6 +278,8 @@ files:
|
|
287
278
|
- openapi/api.yaml
|
288
279
|
- recurly.gemspec
|
289
280
|
- scripts/build
|
281
|
+
- scripts/bump
|
282
|
+
- scripts/changelog
|
290
283
|
- scripts/clean
|
291
284
|
- scripts/format
|
292
285
|
- scripts/prepare-release
|
@@ -300,8 +293,8 @@ metadata:
|
|
300
293
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
301
294
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
302
295
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
303
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/
|
304
|
-
post_install_message:
|
296
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.0
|
297
|
+
post_install_message:
|
305
298
|
rdoc_options: []
|
306
299
|
require_paths:
|
307
300
|
- lib
|
@@ -317,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
310
|
version: '0'
|
318
311
|
requirements: []
|
319
312
|
rubygems_version: 3.0.3
|
320
|
-
signing_key:
|
313
|
+
signing_key:
|
321
314
|
specification_version: 4
|
322
315
|
summary: The ruby client for Recurly's V3 API
|
323
316
|
test_files: []
|
data/.changelog_config.yaml
DELETED
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,14 +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 Requests
|
7
|
-
class BillingInfoVerify < Request
|
8
|
-
|
9
|
-
# @!attribute gateway_code
|
10
|
-
# @return [String] An identifier for a specific payment gateway.
|
11
|
-
define_attribute :gateway_code, String
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,18 +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 Requests
|
7
|
-
class DunningCampaignsBulkUpdate < Request
|
8
|
-
|
9
|
-
# @!attribute plan_codes
|
10
|
-
# @return [Array[String]] List of `plan_codes` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_ids` is present.
|
11
|
-
define_attribute :plan_codes, Array, { :item_type => String }
|
12
|
-
|
13
|
-
# @!attribute plan_ids
|
14
|
-
# @return [Array[String]] List of `plan_ids` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_codes` is present.
|
15
|
-
define_attribute :plan_ids, Array, { :item_type => String }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,14 +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 Requests
|
7
|
-
class SubscriptionChangeBillingInfoCreate < Request
|
8
|
-
|
9
|
-
# @!attribute three_d_secure_action_result_token_id
|
10
|
-
# @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
|
11
|
-
define_attribute :three_d_secure_action_result_token_id, String
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,50 +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 DunningCampaign < Resource
|
8
|
-
|
9
|
-
# @!attribute code
|
10
|
-
# @return [String] Campaign code.
|
11
|
-
define_attribute :code, String
|
12
|
-
|
13
|
-
# @!attribute created_at
|
14
|
-
# @return [DateTime] When the current campaign was created in Recurly.
|
15
|
-
define_attribute :created_at, DateTime
|
16
|
-
|
17
|
-
# @!attribute default_campaign
|
18
|
-
# @return [Boolean] Whether or not this is the default campaign for accounts or plans without an assigned dunning campaign.
|
19
|
-
define_attribute :default_campaign, :Boolean
|
20
|
-
|
21
|
-
# @!attribute deleted_at
|
22
|
-
# @return [DateTime] When the current campaign was deleted in Recurly.
|
23
|
-
define_attribute :deleted_at, DateTime
|
24
|
-
|
25
|
-
# @!attribute description
|
26
|
-
# @return [String] Campaign description.
|
27
|
-
define_attribute :description, String
|
28
|
-
|
29
|
-
# @!attribute dunning_cycles
|
30
|
-
# @return [Array[DunningCycle]] Dunning Cycle settings.
|
31
|
-
define_attribute :dunning_cycles, Array, { :item_type => :DunningCycle }
|
32
|
-
|
33
|
-
# @!attribute id
|
34
|
-
# @return [String]
|
35
|
-
define_attribute :id, String
|
36
|
-
|
37
|
-
# @!attribute name
|
38
|
-
# @return [String] Campaign name.
|
39
|
-
define_attribute :name, String
|
40
|
-
|
41
|
-
# @!attribute object
|
42
|
-
# @return [String] Object type
|
43
|
-
define_attribute :object, String
|
44
|
-
|
45
|
-
# @!attribute updated_at
|
46
|
-
# @return [DateTime] When the current campaign was updated in Recurly.
|
47
|
-
define_attribute :updated_at, DateTime
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,18 +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 DunningCampaignsBulkUpdateResponse < Resource
|
8
|
-
|
9
|
-
# @!attribute object
|
10
|
-
# @return [String] Object type
|
11
|
-
define_attribute :object, String
|
12
|
-
|
13
|
-
# @!attribute plans
|
14
|
-
# @return [Array[Plan]] An array containing all of the `Plan` resources that have been updated.
|
15
|
-
define_attribute :plans, Array, { :item_type => :Plan }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,58 +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 DunningCycle < Resource
|
8
|
-
|
9
|
-
# @!attribute applies_to_manual_trial
|
10
|
-
# @return [Boolean] Whether the dunning settings will be applied to manual trials. Only applies to trial cycles.
|
11
|
-
define_attribute :applies_to_manual_trial, :Boolean
|
12
|
-
|
13
|
-
# @!attribute created_at
|
14
|
-
# @return [DateTime] When the current settings were created in Recurly.
|
15
|
-
define_attribute :created_at, DateTime
|
16
|
-
|
17
|
-
# @!attribute expire_subscription
|
18
|
-
# @return [Boolean] Whether the subscription(s) should be cancelled at the end of the dunning cycle.
|
19
|
-
define_attribute :expire_subscription, :Boolean
|
20
|
-
|
21
|
-
# @!attribute fail_invoice
|
22
|
-
# @return [Boolean] Whether the invoice should be failed at the end of the dunning cycle.
|
23
|
-
define_attribute :fail_invoice, :Boolean
|
24
|
-
|
25
|
-
# @!attribute first_communication_interval
|
26
|
-
# @return [Integer] The number of days after a transaction failure before the first dunning email is sent.
|
27
|
-
define_attribute :first_communication_interval, Integer
|
28
|
-
|
29
|
-
# @!attribute intervals
|
30
|
-
# @return [Array[DunningInterval]] Dunning intervals.
|
31
|
-
define_attribute :intervals, Array, { :item_type => :DunningInterval }
|
32
|
-
|
33
|
-
# @!attribute send_immediately_on_hard_decline
|
34
|
-
# @return [Boolean] Whether or not to send an extra email immediately to customers whose initial payment attempt fails with either a hard decline or invalid billing info.
|
35
|
-
define_attribute :send_immediately_on_hard_decline, :Boolean
|
36
|
-
|
37
|
-
# @!attribute total_dunning_days
|
38
|
-
# @return [Integer] The number of days between the first dunning email being sent and the end of the dunning cycle.
|
39
|
-
define_attribute :total_dunning_days, Integer
|
40
|
-
|
41
|
-
# @!attribute total_recycling_days
|
42
|
-
# @return [Integer] The number of days between a transaction failure and the end of the dunning cycle.
|
43
|
-
define_attribute :total_recycling_days, Integer
|
44
|
-
|
45
|
-
# @!attribute type
|
46
|
-
# @return [String] The type of invoice this cycle applies to.
|
47
|
-
define_attribute :type, String
|
48
|
-
|
49
|
-
# @!attribute updated_at
|
50
|
-
# @return [DateTime] When the current settings were updated in Recurly.
|
51
|
-
define_attribute :updated_at, DateTime
|
52
|
-
|
53
|
-
# @!attribute version
|
54
|
-
# @return [Integer] Current campaign version.
|
55
|
-
define_attribute :version, Integer
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|